9
0
Fork 0

add default environment for ip337 board

This commit is contained in:
Sascha Hauer 2007-09-16 11:23:10 +02:00
parent a39a92a4c6
commit 6dfd4087b1
3 changed files with 52 additions and 0 deletions

26
board/ipe337/defenv/boot Normal file
View File

@ -0,0 +1,26 @@
exec /env/config
if [ "$root" = flash ]; then
bootargs="$bootargs root=/dev/mtdblock3"
else
bootargs="$bootargs root=/dev/nfs nfsroot=$eth0.serverip:$nfsroot,v3,tcp"
fi
if [ "$ip" = dhcp ]; then
bootargs="$bootargs ip=dhcp"
else
bootargs="$bootargs ip=$eth0.ip:$eth0.serverip:$eth0.gateway:$eth0.netmask:::"
fi
bootargs="$bootargs mtdparts=physmap_flash.0:$mtdparts"
if [ "$kernel" = net ]; then
if [ $ip = dhcp ]; then
dhcp
fi
tftpboot uImage $uimage
bootm uImage
else
bootm /dev/mtdblock2
fi

View File

@ -0,0 +1,17 @@
eth0.serverip=192.168.23.2
eth0.mac=80:87:78:74:73:63
mtdparts="128k(uboot)ro,128k(ubootenv),1536k(kernel),-(jffs2)"
ip=dhcp
nfsroot="/home/sha/octopus/blackfin/root"
uimage=uImage-bfin
jffs2=root-bfin.jffs2
bootargs="console=ttyBF0,115200"
# can be either 'net' or 'flash'
kernel=net
root=net

9
board/ipe337/defenv/init Normal file
View File

@ -0,0 +1,9 @@
echo -n "Hit any key to stop autoboot: "
timeout -a 3
if [ $? != 0 ]; then
exit
fi
exec /env/boot