use uInitrd.net for net install

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 7413270486
commit 842749bc98

@ -333,9 +333,9 @@ sudo cp -v ${TEMPDIR}/dl/${MLO} ${TEMPDIR}/disk/MLO
sudo cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/u-boot.bin sudo cp -v ${TEMPDIR}/dl/${UBOOT} ${TEMPDIR}/disk/u-boot.bin
echo "uInitrd Installer" echo "uInitrd Installer"
sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/initrd.mod ${TEMPDIR}/disk/uInitrd sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${TEMPDIR}/initrd.mod ${TEMPDIR}/disk/uInitrd.net
echo "uInitrd Normal Boot" echo "uInitrd Normal Boot"
sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${DIR}/dl/${DIST}/initrd.img-${KERNEL} ${TEMPDIR}/disk/uInitrd.final sudo mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n initramfs -d ${DIR}/dl/${DIST}/initrd.img-${KERNEL} ${TEMPDIR}/disk/uInitrd
echo "uImage" echo "uImage"
sudo mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n ${KERNEL} -d ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/uImage sudo mkimage -A arm -O linux -T kernel -C none -a 0x80008000 -e 0x80008000 -n ${KERNEL} -d ${TEMPDIR}/kernel/boot/vmlinuz-* ${TEMPDIR}/disk/uImage

@ -9,7 +9,7 @@ setenv mpurate 800
fi fi
setenv dvimode 1280x720MR-16@60 setenv dvimode 1280x720MR-16@60
setenv vram 12MB setenv vram 12MB
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd.net; bootm 0x80300000 0x81600000'
setenv bootargs console=tty0 root=/dev/ram0 rw vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate} setenv bootargs console=tty0 root=/dev/ram0 rw vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate}
boot boot

@ -17,6 +17,9 @@ case "$DIST" in
maverick) maverick)
FLASH_KERNEL_SKIP=yes FLASH_KERNEL_SKIP=yes
;; ;;
natty)
FLASH_KERNEL_SKIP=yes
;;
esac esac
fi fi

@ -32,8 +32,8 @@ index 61bc6ae..fea0a1b 100644
+ mount /dev/mmcblk0p1 /tmp/mmc + mount /dev/mmcblk0p1 /tmp/mmc
+ cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr + cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr + cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
+ mv /tmp/mmc/uInitrd /tmp/mmc/uInitrd.net + rm -f /tmp/mmc/uInitrd.net
+ mv /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd + sync
+ umount /tmp/mmc + umount /tmp/mmc
+ +
+ mkdir -p /target/boot/uboot + mkdir -p /target/boot/uboot

@ -32,8 +32,8 @@ index 61bc6ae..fea0a1b 100644
+ mount /dev/mmcblk0p1 /tmp/mmc + mount /dev/mmcblk0p1 /tmp/mmc
+ cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr + cp /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr + cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
+ mv /tmp/mmc/uInitrd /tmp/mmc/uInitrd.net + rm -f /tmp/mmc/uInitrd.net
+ mv /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd + sync
+ umount /tmp/mmc + umount /tmp/mmc
+ +
+ mkdir -p /target/boot/uboot + mkdir -p /target/boot/uboot

@ -7,7 +7,7 @@ if test "${beaglerev}" = "xMB"; then
echo "Kernel is not ready for 1Ghz limiting to 800Mhz" echo "Kernel is not ready for 1Ghz limiting to 800Mhz"
setenv mpurate 800 setenv mpurate 800
fi fi
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd.net; bootm 0x80300000 0x81600000'
setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw buddy=${buddy} mpurate=${mpurate} setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw buddy=${buddy} mpurate=${mpurate}
boot boot

@ -12,8 +12,8 @@ index 0000000..6d06fc7
+ mount /dev/mmcblk0p1 /tmp/mmc + mount /dev/mmcblk0p1 /tmp/mmc
+ rm -f /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr + rm -f /tmp/mmc/boot.scr /tmp/mmc/netinstall.scr
+ cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr + cp /tmp/mmc/normal.scr /tmp/mmc/boot.scr
+ rm -f /tmp/mmc/uInitrd + rm -f /tmp/mmc/uInitrd.net
+ mv /tmp/mmc/uInitrd.final /tmp/mmc/uInitrd + sync
+ sync + sync
+ umount /tmp/mmc + umount /tmp/mmc
+ +

Loading…
Cancel
Save