Re: [U-Boot] recommended place to identify hardware using i2c-eeprom data.

2009-04-17 Thread Richard Retanubun
Stefan Roese wrote: > I suggest you take a look at "gd->board_type" (enabled via > CONFIG_BOARD_TYPES). This could be what you are looking for. Neat! Thanks for the tip. Unfortunately my "board_type" does not fit inside an unsigned long. For others on the ML, an example of using i2c eeprom with

Re: [U-Boot] recommended place to identify hardware using i2c-eeprom data.

2009-04-16 Thread Stefan Roese
On Friday 17 April 2009, 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 printen

Re: [U-Boot] recommended place to identify hardware using i2c-eeprom data.

2009-04-16 Thread Timur Tabi
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 result

[U-Boot] recommended place to identify hardware using i2c-eeprom data.

2009-04-16 Thread Richard Retanubun
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 proce