[U-Boot-Users] [PATCH] update-ethaddr-handling-on-cmc-pu2-board.patch

Pantelis Antoniou panto at intracom.gr
Wed Nov 16 13:19:04 CET 2005


Martin Krause wrote:
> Update ethaddr handling on CMC-PU2 board
> Patch by Martin Krause, 16 Nov 2005
> 
> If the environment variable 'ethaddr' is not set in flash it is read from
> EEPROM (if valid), set in RAM and now also saved to flash. The same applies
> for the variable 'serial#'.
> This is done to optimise series production. Now, no 'saveenv' command
> has to be applied over the serial line. And thus no serial connection
> is necessery at all. Setting ethaddr only in RAM is not sufficient,
> because 'ethaddr' and 'serial#'  must be readable from linux with the 
> fw_printenv tool.
> 
> Signed-off-by: Martin Krause <martin.krause at tqs.de>
> 
> CHANGELOG:
> 
> * Update ethaddr handling on CMC-PU2 board
>   Patch by Martin Krause, 16 Nov 2005
> 
> Regards,
> Martin
> ---

I disagree. If you need this, pass the u-boot environment to the linux
kernel, or add a serial# member in bd_t.

Regards

Pantelis





More information about the U-Boot mailing list