All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Default base for numbers
@ 2011-01-25  8:53 Alexander Holler
  2011-01-25  9:16 ` Wolfgang Denk
  0 siblings, 1 reply; 13+ messages in thread
From: Alexander Holler @ 2011-01-25  8:53 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-01-25 13:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-25  8:53 [U-Boot] Default base for numbers Alexander Holler
2011-01-25  9:16 ` Wolfgang Denk
2011-01-25  9:38   ` Alexander Holler
2011-01-25 10:13     ` [U-Boot] Uboot can't start kernel after change from version 2009.01 to 2010.09 Maik Hänig
2011-01-25 10:54       ` Reinhard Meyer
2011-01-25 11:03         ` Maik Hänig
2011-01-25 11:18           ` Maik Hänig
2011-01-25 11:29             ` Andreas Bießmann
2011-01-25 11:36               ` Maik Hänig
2011-01-25 13:04               ` Maik Hänig
2011-01-25 11:26           ` Andreas Bießmann
2011-01-25 11:43             ` Maik Hänig
2011-01-25 10:19     ` Maik Hänig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.