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

Marek Vasut marex at denx.de
Thu Apr 18 15:54:14 CEST 2013


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


More information about the U-Boot mailing list