crc32 command

Benoît Burnichon Benoit.Burnichon at airtag.com
Fri May 13 11:54:00 EDT 2011


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?

Regards,

Ben



More information about the barebox mailing list