[U-Boot-Users] how to get result using eeprom cmd under u-boot 1.1

When I use " eeprom read 0 0 1 " cmd, It only display " EEPROM @0x0 read: addr 00000000 off 0000 count 1 ... done "
how can I get the value using the eeprom cmd ?
I am sure that the funtion which eeprom_read ( cmd_eeprom.c ) call are right.
Thanks & Regards Xu Jin

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
participants (2)
-
Vladimir Gurevich
-
Xu, Jin (SDC)