[U-Boot-Users] Ethernet port

Ulf Samuelsson ulf at atmel.com
Tue Sep 18 22:57:43 CEST 2007


tis 2007-09-18 klockan 21:09 +0200 skrev Wolfgang Denk:
> In message <20070918211917.GJ25557 at GNU> you wrote:
> > 
> >   Check the config file for the board you are referring. For eg, the
> >   ADS board i refer to have the following configurations for setting
> >   the ip and the mac respectively.
> > 
> >   #define CONFIG_IPADDR    192.168.1.253
> > 
> >   #define CONFIG_ETHADDR   00:E0:0C:00:00:FD
> 
> It is a terrible bad idea to set the IP address and especially the MAC
> address of your board in the config file, as then all your boards will
> share the same address, which will cause only trouble.
> 
> DO NOT DO THIS!!!
> 

Unless you use this functionality to simplify factory programming of the
device.

By having a compile time setup of ethaddr/ipaddr/serverip, you can
easily connect to a production PC using a twisted cable.

The production PC is equipped with a secondary ethernet board which
is configured as "serverip".

If this "feature" is used, it must be possible to reconfigure
the ethaddr/ipaddr combination to something unique.
You do not want to ship this to end customers.
An autoscript at the production PC can do this as part of the production
programming.

it is probably advisable to disallow booting the linux kernel if
the ethaddr/ipaddr has not changed.



> Best regards,
> 
> Wolfgang Denk
> 
-- 
Best Regards,
Ulf Samuelsson





More information about the U-Boot mailing list