summaryrefslogtreecommitdiffstats
path: root/board/pm9263/env/bin/boot
diff options
context:
space:
mode:
Diffstat (limited to 'board/pm9263/env/bin/boot')
-rw-r--r--board/pm9263/env/bin/boot25
1 files changed, 17 insertions, 8 deletions
diff --git a/board/pm9263/env/bin/boot b/board/pm9263/env/bin/boot
index ed6f11a108..05241d93c0 100644
--- a/board/pm9263/env/bin/boot
+++ b/board/pm9263/env/bin/boot
@@ -2,9 +2,9 @@
. /env/config
-if [ x$1 = xflash ]; then
- root=flash
- kernel=flash
+if [ x$1 = xnand ]; then
+ root=nand
+ kernel=nand
fi
if [ x$1 = xnet ]; then
@@ -12,19 +12,26 @@ if [ x$1 = xnet ]; then
kernel=net
fi
+if [ x$1 = xnor ]; then
+ root=nor
+ kernel=nor
+fi
+
if [ x$ip = xdhcp ]; then
bootargs="$bootargs ip=dhcp"
else
bootargs="$bootargs ip=$eth0.ipaddr:$eth0.serverip:$eth0.gateway:$eth0.netmask:::"
fi
-if [ x$root = xflash ]; then
- bootargs="$bootargs root=$rootpart rootfstype=jffs2"
+if [ x$root = xnand ]; then
+ bootargs="$bootargs root=$rootpart_nand rootfstype=jffs2"
+elif [ x$root = xnor ]; then
+ bootargs="$bootargs root=$rootpart_nor rootfstype=jffs2"
else
- bootargs="$bootargs root=/dev/nfs nfsroot=192.168.23.111:$nfsroot"
+ bootargs="$bootargs root=/dev/nfs nfsroot=$eth0.serverip:$nfsroot,v3,tcp"
fi
-bootargs="$bootargs mtdparts=physmap-flash.0:$mtdparts"
+bootargs="$bootargs mtdparts=physmap-flash.0:$nor_parts"
if [ $kernel = net ]; then
if [ x$ip = xdhcp ]; then
@@ -32,7 +39,9 @@ if [ $kernel = net ]; then
fi
tftp $uimage uImage
bootm uImage
-else
+elif [ $kernel = nor ]; then
bootm /dev/nor0.kernel
+else
+ bootm /dev/nand0.kernel.bb
fi