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

David Collier from_denx_uboot at dexdyne.com
Fri Oct 23 22:38:00 CEST 2009


wow

serialnumber=1234
set_mac_IP=setexprd sn34 ${serialnumber} % 100 ;setexprd sn12
${serialnumber} / 100; setenv ipaddr 10.212.${sn12}.${sn34}; setenv
ethaddr 00:90:46:20:${sn12}:${sn34}; setenv eth1addr
00:90:46:21:${sn12}:${sn34}; setenv sn12 ; setenv sn34

that's seriously useful!

TVM

David Collier

www.dexdyne.com


More information about the U-Boot mailing list