crc32 command

Sascha Hauer s.hauer at pengutronix.de
Sat May 14 13:16:07 EDT 2011


On Sat, May 14, 2011 at 09:09:55AM +0200, Peter Korsgaard wrote:
> >>>>> "Sascha" == Sascha Hauer <s.hauer at pengutronix.de> writes:
> 
>  >> How can I use crc32 to verify the files I transfer?
> 
>  Sascha> The algorithms differ, so cksum is not usable here. Got curious
>  Sascha> myself and looked around in the net. the zip tool is usable for
>  Sascha> this:
> 
>  Sascha> zip test.zip barebox.bin; unzip -lv test.zip
> 
>  Sascha> Ok, this sucks, but there is also a standalone program (haven't tested
>  Sascha> this). See here:
> 
>  Sascha> http://docwiki.gumstix.org/index.php/Calculating_32_bit_CRCs
> 
> The crc32 command is largely legacy from u-boot. Would there be interest
> in a cksum command (it's afaik just like the normal crc32 except it also
> uses the length) or md5/sha1/sha256sum? We have all the infrastructure,
> so it should be easy to add.

md5sum would be very useful. Would it add much to the binary space?
(If yes, that would be no reason to not have it, but probably more
boards will enable this when it's small)

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list