[U-Boot] setting u-boot params based on serial number

Ben Warren biggerbadderben at gmail.com
Fri Oct 23 18:58:09 CEST 2009


David Collier wrote:
> This may be bloody obvious to most of you, but I'm still learning.
>
> I have a batch of boards in production.
>
> say serial numbers 1 to 50
>
> I want to set the 2 mac address, and the ip address so that the last few
> digits match the serial number.
>
> can I do this easily with some sort of u-boot script? Or can I run an app
> I write myself in C or whatever, and get it to do setenv commands?
>
>   
Yes
> AVR32, if it matters
>
>   
It shouldn't.  You can do this any number of ways, but if it was me I'd 
script it off-target.  I'm a big fan of Python, so tend to use pexpect 
for this sort of thing.
> TVM
>
> David Collier
>   
regards,
Ben


More information about the U-Boot mailing list