diff --git a/board/pcm038/env/bin/init b/board/pcm038/env/bin/init index 33dabc2..b698dd5 100644 --- a/board/pcm038/env/bin/init +++ b/board/pcm038/env/bin/init @@ -16,6 +16,13 @@ source /env/bin/hush_hack fi +if [ -z $eth0.ethaddr ]; then + while [ -z $eth0.ethaddr ]; do + readline "no MAC address set for eth0. please enter the one found on your board: " eth0.ethaddr + done + echo -a /env/config "eth0.ethaddr=$eth0.ethaddr" +fi + echo echo -n "Hit any key to stop autoboot: " timeout -a $autoboot_timeout diff --git a/board/pcm038/env/config b/board/pcm038/env/config index e91cb0f..d6afdfb 100644 --- a/board/pcm038/env/config +++ b/board/pcm038/env/config @@ -4,14 +4,6 @@ kernel=net root=net -# use 'dhcp' todo dhcp in uboot and in kernel -ip=dhcp - -eth0.ipaddr=192.168.23.164 -eth0.netmask=255.255.255.0 -eth0.gateway=192.168.23.2 -eth0.serverip=192.168.23.2 - uimage=uImage-pcm038 jffs2=root-pcm038.jffs2 @@ -26,3 +18,11 @@ nand_parts="256k(uboot)ro,128k(ubootenv),1536k(kernel),-(root)" rootpart_nand="/dev/mtdblock7" +# use 'dhcp' to do dhcp in uboot and in kernel +ip=dhcp + +# or set your networking parameters here +#eth0.ipaddr=a.b.c.d +#eth0.netmask=a.b.c.d +#eth0.gateway=a.b.c.d +#eth0.serverip=a.b.c.d