[U-Boot] How to random my mac in u-boot

Peter Pan pppeterpppan at gmail.com
Tue Feb 9 01:20:07 CET 2010


Thank you very much for your advice. That's a very nice approach.
We will try this in our next version.

2010/2/9 Aras Vaichas <arasv at magellan-technology.com>:
>>> There are many ways to install a MAC into your hardware -without
>>> hard-conding one into your image code.
>>>
>>>> Because of the quantity of the boards comparing with the number of workers,
>>>> we can not set the MAC address by hand. So what I means is to make the
>
> Our Linux devices all have an I2C EEPROM memory chip on board.
>
> Once the production electrical/smoke test is complete, this memory
> chip is programmed with SDRAM timings, SDRAM bus width, a unique MAC
> address and a unique serial number for the board. We use an external
> programming device to achieve this.
>
> This way we have a log of every MAC address and the serial number of
> the device to which it belongs.
>
> The first stage bootloader reads the SDRAM timings from the EEPROM,
> sets up the SDRAM, then copies U-Boot into SDRAM and then executes it.
>
> U-Boot then reads the MAC address from the EEPROM and programs it into the PHY.
>
> Aras
>


More information about the U-Boot mailing list