[U-Boot-Users] how to get result using eeprom cmd under u-boot 1.1
Vladimir Gurevich
vag at paulidav.org
Mon Feb 13 10:32:09 CET 2006
Hello Jin,
Xu, Jin (SDC) wrote:
> When I use " eeprom read 0 0 1 " cmd, It only display " EEPROM @0x0
> read: addr 00000000 off 0000 count 1 ... done "
>
The format of the "eeprom" command is (as I'm sure you already know):
eeprom {read,write} <addr> <offset> <count>
The <addr> argument is the MEMORY address and that's where the result of
the transaction will be placed.
Thus,
1) Using 0 as <addr> is a pretty risky idea to begin with: :)
2) The more proper usage will be:
eeprom read 0x100000 0 10
md.b 0x100000 10
And, of course, a quick look at the source code is worth thousand emails :)
Happy hacking,
Vladimir
More information about the U-Boot
mailing list