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

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, [...] > + 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