[U-Boot-Users] Proposal for patch to configure network parameters
ulf at atmel.com
Fri Apr 20 23:59:07 CEST 2007
> Ulf Samuelsson wrote:
>> U-Boot has a number of network parameters like
>> While these can be defined in an "include/configs/<board>.h",
>> it would be nice to be able to define this in a separate file
>> since they are really not board specific.
> I agree that these don't belong in the board config file. In fact, I
> don't see why they should be board-specific at all. The U-Boot code in
> denx.de should have a config.h somewhere that specifies these, but we
> should probably not encourage board maintainers to have their own
>> This would allow you to automatically analyse your machine
>> to find out your host ipaddress, and add an appropriate
>> ipaddr, netmask, gatewayip etc and overwrite the file with a custom
>> default network configuration before you build.
> I don't think it makes sense to claim that the network properties are
> somehow tied to a board. Are there boards out there that have to have
> certain IP addresses?
If you setup serverip to point at your PC for board test&manufacture then
you can do:
setenv bootcmd tftp 21000000 autoscript.myboard ; autoscr
in your default (compile time) configuration.
autoscript is downloaded and executed
LED starts to blink when ready.
The autoscript.myboard is regenerated for every new board so they get a new
and other custom features..
I really do not see the harm in this.
> Timur Tabi
> Linux Kernel Developer @ Freescale
More information about the U-Boot