Discussion:
[U-Boot] Checking validity of rootfs in NAND-Flash
Harald.Vollmer
2011-11-04 17:13:44 UTC
Permalink
Hello everybody,

in my project, u-boot (2009.11) loads a large jffs2-rootfs image (80 MB, with an attached crc32-checksum) from SD-card into a NAND-Flash.
To ensure the validity of the rootfs, i let u-boot then clear the RAM-part, read back the rootfs from NAND into RAM, do a crc32 checksum over it and compare this
checksum with the crc32- checksum that was attached to the image.
This validity check takes about 70 seconds. Do you know a faster/better way of checking the validity?

Thanks in advance,
Harald Vollmer
Wolfgang Denk
2011-11-04 17:51:17 UTC
Permalink
Dear Harald.Vollmer at tieto.com,
Post by Harald.Vollmer
in my project, u-boot (2009.11) loads a large jffs2-rootfs image (80 MB, w
ith an attached crc32-checksum) from SD-card into a NAND-Flash.
To ensure the validity of the rootfs, i let u-boot then clear the RAM-part,
read back the rootfs from NAND into RAM, do a crc32 checksum over it and c
ompare this
checksum with the crc32- checksum that was attached to the image.
This validity check takes about 70 seconds. Do you know a faster/better way
of checking the validity?
Please make sure your line length does not exceed some 70 characters
or so. Thanks.


I smell this is on an ARM system? In this case you should update and
use a more recent version of U-Boot, where we have support for
caches. This usually helps a _lot_.

Best regards,

Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It's when they say 2 + 2 = 5 that I begin to argue." - Eric Pepke
Loading...