Dear Mike Dunn,

[...]

> +     if (argc != 3) {
> +             printf("usage: %s <image file> <mtd dev node>\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() semantics are misunderstood by so many :-(

[...]

Best regards,
Marek Vasut
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to