Re: [U-Boot] [PATCH v3 8/8] palmtreo680: add utility that writes u-boot to flash

2013-04-16 Thread Marek Vasut
Dear Mike Dunn, > Thanks again Marek. A question below... > > > On 04/14/2013 10:38 AM, Marek Vasut wrote: > > > [...] > > >> + > >> + if (argc != 3) { > >> + printf("usage: %s \n", argv[0]); > >> + exit(-1); > > > > Use proper errno and "return" as you're returning from

Re: [U-Boot] [PATCH v3 8/8] palmtreo680: add utility that writes u-boot to flash

2013-04-16 Thread Mike Dunn
Thanks again Marek. A question below... On 04/14/2013 10:38 AM, Marek Vasut wrote: [...] >> + >> +if (argc != 3) { >> +printf("usage: %s \n", argv[0]); >> +exit(-1); > > Use proper errno and "return" as you're returning from main() anyway. Agreed regarding 're

Re: [U-Boot] [PATCH v3 8/8] palmtreo680: add utility that writes u-boot to flash

2013-04-14 Thread Marek Vasut
Dear Mike Dunn, > This adds a userspace linux utility that writes the u-boot image to an mtd > partition on the docg4 nand flash. > > A special utility is required to do this because u-boot is partially loaded > by an initial program loader (IPL) that is permanently programmed to the > boot regio

[U-Boot] [PATCH v3 8/8] palmtreo680: add utility that writes u-boot to flash

2013-04-12 Thread Mike Dunn
This adds a userspace linux utility that writes the u-boot image to an mtd partition on the docg4 nand flash. A special utility is required to do this because u-boot is partially loaded by an initial program loader (IPL) that is permanently programmed to the boot region of the flash. This IPL exp