mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 15:34:55 +00:00
tools: mxsboot: pre-fill buffer with 0xff, not 0
The tool works for me, with imx28 and NAND memory, but the resulting blocks are reported as bad, both by u-boot and the kernel. This makes it impossible to erase from Linux (for an upgrade without console access, for example -- u-boot can "nand scrub" but linux can't). pre-filling with 0xff creates a proper boot loader image, but no bad-block marker is there when written to flash. Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Reviewed-by: Fabio Estevam <festevam@gmail.com> Reviewed-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
712aa6e24c
commit
4ac5620270
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ static int mx28_create_nand_image(int infd, int outfd)
|
|||
goto err0;
|
||||
}
|
||||
|
||||
memset(buf, 0, size);
|
||||
memset(buf, 0xff, size);
|
||||
|
||||
fcb = mx28_nand_get_fcb(MAX_BOOTSTREAM_SIZE);
|
||||
if (!fcb) {
|
||||
|
|
Loading…
Add table
Reference in a new issue