crc32 command

Sascha Hauer s.hauer at
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> 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 barebox.bin; unzip -lv
>  Sascha> Ok, this sucks, but there is also a standalone program (haven't tested
>  Sascha> this). See here:
>  Sascha>
> 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)


Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 |  |
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