From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 24 Sep 2007 21:20:07 +0200 Subject: [U-Boot-Users] how to use 'eeprom read' command In-Reply-To: <46F7FB60.3030903@smiths-aerospace.com> References: <46F7D617.7060307@alphion.com> <46F7FB60.3030903@smiths-aerospace.com> Message-ID: <200709242120.07613.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday 24 September 2007, Jerry Van Baren wrote: > IIRC, "addr" is the memory (RAM) address that you read the eeprom data > into or is the source tow rite the eeprom data out. To read your i2c > device 0x54, you would do something like: > eeprom read 54 0 0 10 > and then would be able to see the 16 bytes of data with the md command: > md 0 > > Hope I'm not lying, No, you are correct. But I would suggest to not use RAM address 0, because on some architectures the lower address range is reserved for exception vectors. So please use: => eeprom read 54 100000 0 10 to read the first 16 (0x10) bytes to address 0x100000 (1MByte) in RAM. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================