CRC32 feature in FreeBSD's boot loader

Boris Astardzhiev boris.astardzhiev at gmail.com
Tue Oct 2 15:07:10 UTC 2012


Hello,

I'm not sure that this is the right mailing list but I couldn't find a
dedicated one.
I would like to contribute a new feature for the FreeBSD boot loader - a
command that
calculates the CRC32 of a specified file name. It uses libz's CRC32
implementation.

While attempting to make libstand's nandfs to work adequately I've
experienced NAND flash
page/block misreadings from U-Boot's API side. Therefore I was in a need of
a tool that could
prove that a file had been read correctly in this very stage of the FreeBSD
boot process.
So here it is.

In addition to the CRC calculation the size of the stipulated file is
printed as well.

Any comments will be appreciated.

Greetings,
Boris Astardzhiev / Smartcom Bulgaria AD
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loader-crc32.diff
Type: application/octet-stream
Size: 5390 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-fs/attachments/20121002/45749741/loader-crc32.obj


More information about the freebsd-fs mailing list