X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=target%2Flinux%2Fadm5120-2.6%2Fbase-files%2Fdefault%2Fsbin%2Fwget2nand;h=adb56b946f9978c56bb5b9d584ddc236188f1d46;hp=1f7548aa0639102e7650636977f3e629ff76d0e1;hb=bd10f1c810bdd107d0c97ea78577807584e0b4f5;hpb=40a971c77755ebd889573ccc4225eba19b8c52cd;ds=sidebyside 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 1f7548aa06..adb56b946f 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