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

Aras Vaichas arasv at magellan-technology.com
Mon Feb 8 23:39:32 CET 2010


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