Re: [PATCH] commands/crc32: add compare 2 files crc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Sep 22, 2010 at 05:25:49PM +0200, Peter Korsgaard wrote:
> >>>>> "Sascha" == Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> writes:
> 
>  Sascha> On Wed, Sep 22, 2010 at 12:36:25PM +0200, Jean-Christophe PLAGNIOL-VILLARD wrote:
>  >> add -F options to compare to file crc
>  >> 
>  >> it's usefull to compare what you flash in a partition
> 
>  Sascha> Why don't you use memcmp?
> 
>  Sascha> memcmp -s uImage -d /dev/nand0.kernel.bb 0 0
> 
> It's sometimes interesting to be able to compare a checksum with a file
> on the host (E.G. output of cksum/md5sum/sha1sum/..)

crc32 can output the crc checksum of a file using the -f option. What
Jean-Christophe added is an option to calculate the checksum of two
files (one given with -f and the other with -F). I just fail to see why
this must be done in a single step instead of using a crc32 followed by
a memcmp.

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


[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux