From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir Gurevich Date: Mon, 13 Feb 2006 01:32:09 -0800 Subject: [U-Boot-Users] how to get result using eeprom cmd under u-boot 1.1 In-Reply-To: <4F06A838FCD053488B5F39BA078807F502B64654@wrnxchg2.whiterocknetworks.com> References: <4F06A838FCD053488B5F39BA078807F502B64654@wrnxchg2.whiterocknetworks.com> Message-ID: <43F05219.7040300@paulidav.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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} The argument is the MEMORY address and that's where the result of the transaction will be placed. Thus, 1) Using 0 as 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