From: Timur Tabi Date: Thu, 16 Apr 2009 17:04:14 -0500 Subject: [U-Boot] recommended place to identify hardware using i2c-eeprom data. In-Reply-To: <49E7AAA4.5010007@RuggedCom.com> References: <49E7AAA4.5010007@RuggedCom.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Apr 16, 2009 at 5:01 PM, Richard Retanubun wrote: > 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?) Can you post some of your code? Maybe there's a bug. > Is there a recommended way/examples of doing this? Depends on the kind of initialization you're trying to do. -- Timur Tabi Linux kernel developer at Freescale