From: Richard Retanubun <RichardRetanubun@RuggedCom.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] recommended place to identify hardware using i2c-eeprom data.
Date: Thu, 16 Apr 2009 18:01:08 -0400 [thread overview]
Message-ID: <49E7AAA4.5010007@RuggedCom.com> (raw)
Hi,
I am working on an MP8360E powerpc platform using uboot 2009.03.
our boards contain an i2c eeprom that identify the type of board it is.
sing this information I would like to have a universal u-boot binary that can read the eeprom
and use the data to influence how the rest of the boot proceeds. (e.g setup mac addresses, initialize GPIOs, call setenv to initialize other params).
I've tried extracting the information at board_early_init_r (because I need to initialize MAC address later using this information also)
and store the information using setenv("partnum" "extracted_board_id");
However, the resulting printenv after boot only contains "pa" with no data, so obviously I am doing something wrong (calling setenv too early?)
Is there a recommended way/examples of doing this?
I've thought about using the global data, but don't know if there is a struct member that is arch-independent.
Thanks for everyone's time.
- Richard Retanubun
next reply other threads:[~2009-04-16 22:01 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 22:01 Richard Retanubun [this message]
2009-04-16 22:04 ` [U-Boot] recommended place to identify hardware using i2c-eeprom data Timur Tabi
2009-04-17 4:22 ` Stefan Roese
2009-04-17 14:39 ` Richard Retanubun
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=49E7AAA4.5010007@RuggedCom.com \
--to=richardretanubun@ruggedcom.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