md5sum arguments
Antony Pavlov
antonynpavlov at gmail.com
Tue Jul 1 10:14:47 PDT 2014
Hi All!
Current 'md5sum' command gets FILE|AREA argument, e.g.
barebox:/ help md5sum
md5sum - calculate MD5 checksum
Usage: md5sum FILE|AREA...
Calculate a MD5 digest over a FILE or a memory area.
The *nix 'md5sum' gets [FILE]... argument.
This behavour can be misleading. E.g. today I have tryed this command sequence on
my qemu-malta machine:
barebox:/ memcpy -s /dev/zero -d 1M 0 0 0x100000
barebox:/ md5sum 1M
md5sum just hangs!
But this command sequence works fine:
barebox:/ memcpy -s /dev/zero -d zeros 0 0 0x100000
barebox:/ md5sum zeros
b6d81b360a5672d80c27430f39153e2c zeros 0x00000000 ... 0xffffffffffffffff
Do we really need this?
We can use 'addpart' on /dev/memory for creating partial memory device and run md5sum on it.
--
Best regards,
Antony Pavlov
More information about the barebox
mailing list