From: Alexander Holler <holler@ahsoftware.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Default base for numbers
Date: Tue, 25 Jan 2011 09:53:49 +0100 [thread overview]
Message-ID: <4D3E8F9D.7040901@ahsoftware.de> (raw)
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
next reply other threads:[~2011-01-25 8:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-25 8:53 Alexander Holler [this message]
2011-01-25 9:16 ` [U-Boot] Default base for numbers 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D3E8F9D.7040901@ahsoftware.de \
--to=holler@ahsoftware.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox