Hi Benoit, On Fri, May 13, 2011 at 05:54:00PM +0200, Benoît Burnichon wrote: > Hi all, > > I want to verify the version downloaded by tftp before installing it. > > I have the file on my workstation: > > $ cksum /var/lib/tftpboot/uImage-pcm038 > 2156276197 2317276 /var/lib/tftpboot/uImage-pcm038 > > Under my barebox, I then try to verify the file: > > barebox:/ crc32 > Usage: crc32 [OPTION] [AREA] > Calculate a crc32 checksum of a memory area > Options: > -f <file> Use file instead of memory > -v <crc> Verfify > > barebox:/ crc32 -f uImage-pcm038 -v 2156276197 0+2317276 > CRC32 for uImage-pcm038 0x00000000 ... 0x00235bdb ==> 0xd484eccb != 0x808629e5 ** ERROR ** > barebox:/ crc32 -f uImage-pcm038 > CRC32 for uImage-pcm038 0x00000000 ... 0x00235bdb ==> 0xd484eccb > > > I have barebox-2010.11.0 > > > How can I use crc32 to verify the files I transfer? The algorithms differ, so cksum is not usable here. Got curious myself and looked around in the net. the zip tool is usable for this: zip test.zip barebox.bin; unzip -lv test.zip Ok, this sucks, but there is also a standalone program (haven't tested this). See here: http://docwiki.gumstix.org/index.php/Calculating_32_bit_CRCs 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 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox