mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 22:11:33 +02:00
Fix wget2nand with the host's patch-cmdline and the new kernel filename
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8076 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7c70874270
commit
8e58a9600b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user