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

2013-04-16 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

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

2013-04-18 Thread Marek Vasut
Dear Mike Dunn, [...] > + if (argc != 3) { > + printf("usage: %s \n", argv[0]); btw is this /dev/mtdX or /dev/mtdblockX ? > + return -1; errno.h didn't work? Like ... return -EINVAL or such ? [...] > + blockbuf = calloc(RELIABLE_BLOCKSIZE, 1); calloc() seman

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

2013-04-18 Thread Mike Dunn
On 04/18/2013 06:54 AM, Marek Vasut wrote: > Dear Mike Dunn, > > [...] > >> +if (argc != 3) { >> +printf("usage: %s \n", argv[0]); > > btw is this /dev/mtdX or /dev/mtdblockX ? /dev/mtdx You must have defined a partition that starts at the offset at which you are placing the

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

2013-04-18 Thread Marek Vasut
Dear Mike Dunn, > On 04/18/2013 06:54 AM, Marek Vasut wrote: > > Dear Mike Dunn, > > > > [...] > > > >> + if (argc != 3) { > >> + printf("usage: %s \n", argv[0]); > > > > btw is this /dev/mtdX or /dev/mtdblockX ? > > /dev/mtdx You must have defined a partition that starts at the of