[U-Boot] Default base for numbers

Alexander Holler holler at ahsoftware.de
Tue Jan 25 09:53:49 CET 2011


Hello,

I've stumbled over the fact that the length parameter for sha1sum uses 
16 as default base, which I found a bit confusing.

E.g.
-------------------------
U-Boot>> tftp $loadaddr uImage
...
done
Bytes transferred = 1976384 (1e2840 hex)
U-Boot>> sha1sum $loadaddr 1976384
SHA1 for 00800000 ... 02176383 ==> 8d9cc7b167b6d1471d73d46cfc3b374091de88a6
U-Boot>> sha1sum $loadaddr 0x1e2840
SHA1 for 00800000 ... 009e283f ==> fde54f7409c785b7929d36624f77f71abd30282a
-------------------------
(The second one is correct)

Is the base 16 as default for numbers common for commands in u-boot or 
is that just a problem of md5sum and sha1sum?

Regards,

Alexander


More information about the U-Boot mailing list