public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Jerry Van Baren <gerald.vanbaren@smiths-aerospace.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] how to use 'eeprom read' command
Date: Mon, 24 Sep 2007 14:01:04 -0400	[thread overview]
Message-ID: <46F7FB60.3030903@smiths-aerospace.com> (raw)
In-Reply-To: <46F7D617.7060307@alphion.com>

Sachin Rane, Alphion Communications wrote:
> Hi,
> 
> I want to read boot eeprom using u-boot.
> Can you tell me which 'addr' I need to pass to the 'eeprom read' command?
> 
> --------------------------------------------------------------------------
> => help eeprom
> eeprom read  devaddr addr off cnt
> eeprom write devaddr addr off cnt
>        - read/write `cnt' bytes from `devaddr` EEPROM at offset `off'
> 
> --------------------------------------------------------------------------
> 
> I want to access boot eprom which is at 'devaddr' 0x54 and offset '0' to 
> '10'.
> 
> But I am not clear what ro pass for the 'addr' argument.
> 
> Regards,
> Sachin Rane

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,
gvb

  reply	other threads:[~2007-09-24 18:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-24 15:21 [U-Boot-Users] how to use 'eeprom read' command Sachin
2007-09-24 18:01 ` Jerry Van Baren [this message]
2007-09-24 19:20   ` Stefan Roese

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=46F7FB60.3030903@smiths-aerospace.com \
    --to=gerald.vanbaren@smiths-aerospace.com \
    --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