X-Git-Url: http://git.ozo.com/?p=openwrt-10.03%2F.git;a=blobdiff_plain;f=target%2Flinux%2Fadm5120-2.6%2Fbase-files%2Fdefault%2Fsbin%2Fwget2nand;h=adb56b946f9978c56bb5b9d584ddc236188f1d46;hp=1f7548aa0639102e7650636977f3e629ff76d0e1;hb=8e58a9600bf5801340920e18fc221afd1e0721cc;hpb=fbc526f4bfcd2d59aa2832717bd41499a0eb1011 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 1f7548aa0..adb56b946 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