summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2007-07-20 15:45:20 +0000
committerFlorian Fainelli <florian@openwrt.org>2007-07-20 15:45:20 +0000
commiteb021be571f1970a04c3f30cbcea66a5c6f90803 (patch)
treedd9c50ab42ed1e7bcfd509e30d649f172c608190
parent4ecbf2e252eb1e165d10fe8d441091b860ef0eda (diff)
downloadmtk-20170518-eb021be571f1970a04c3f30cbcea66a5c6f90803.zip
mtk-20170518-eb021be571f1970a04c3f30cbcea66a5c6f90803.tar.gz
mtk-20170518-eb021be571f1970a04c3f30cbcea66a5c6f90803.tar.bz2
Fix wget2nand with the host's patch-cmdline and the new kernel filename
SVN-Revision: 8076
-rwxr-xr-xtarget/linux/adm5120-2.6/base-files/default/sbin/wget2nand10
1 files changed, 1 insertions, 9 deletions
diff --git a/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand b/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand
index 1f7548a..adb56b9 100755
--- a/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand
+++ b/target/linux/adm5120-2.6/base-files/default/sbin/wget2nand
@@ -45,16 +45,8 @@ mount -t yaffs2 "$boot" /tmp/wget2nand-boot
echo "Copying filesystem..."
( wget -O - $url/openwrt-adm5120-2.6-rootfs.tgz) | ( cd /tmp/wget2nand/; tar xvz )
-wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-vmlinux.elf
+wget -O /tmp/wget2nand-boot/kernel $url/openwrt-adm5120-2.6-rb1xx-vmlinux
-# update the command line on the kernel to boot from the right place
-[ ! -e /sbin/patch-cmdline ] && {
- echo "Cannot find patch-cmdline"
- exit 1
-}
-
-echo "Patching the kernel command line"
-/sbin/patch-cmdline /tmp/wget2nand-boot/kernel "root=/dev/mtdblock1 rootfstype=yaffs2 init=/etc/preinit "
chmod +x /tmp/wget2nand-boot/kernel
# make sure everything is written before we unmount the partitions