update cmd scripts and setup ttyS2

pull/8/head
Robert Nelson 15 years ago committed by Robert Nelson
parent 078c0c95b6
commit 935eb90d74

@ -10,6 +10,7 @@ KERNEL_PATCH=13
unset MMC unset MMC
unset FIRMWARE unset FIRMWARE
unset SERIAL_MODE unset SERIAL_MODE
unset IS_BETA
BOOT_LABEL=boot BOOT_LABEL=boot
PARTITION_PREFIX="" PARTITION_PREFIX=""
@ -51,10 +52,27 @@ function dl_xload_uboot {
wget -c --directory-prefix=${DIR}/dl/ http://ftp.debian.org/debian/dists/${DIST}/main/installer-armel/current/images/versatile/netboot/initrd.gz wget -c --directory-prefix=${DIR}/dl/ http://ftp.debian.org/debian/dists/${DIST}/main/installer-armel/current/images/versatile/netboot/initrd.gz
fi fi
if [ "${IS_BETA}" ] ; then
KERNEL_REL=2.6.34-rc7
KERNEL_PATCH=0
if test "-$DIST-" = "-lucid-"
then
KERNEL=${KERNEL_REL}-dl${KERNEL_PATCH}
else
KERNEL=${KERNEL_REL}-d${KERNEL_PATCH}
fi
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
else
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}kernel/beagle/${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}kernel/beagle/${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
#wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/linux-image-${KERNEL}_1.0${DIST}_armel.deb
wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/initrd.img-${KERNEL} wget -c --directory-prefix=${DIR}/dl/ ${MIRROR}${DIST}/v${KERNEL}/initrd.img-${KERNEL}
fi
if [ "${FIRMWARE}" ] ; then if [ "${FIRMWARE}" ] ; then
echo "" echo ""
@ -152,6 +170,7 @@ fi
then then
sudo cp -v ${DIR}/scripts/e2fsck.conf ${DIR}/initrd-tree/etc/e2fsck.conf sudo cp -v ${DIR}/scripts/e2fsck.conf ${DIR}/initrd-tree/etc/e2fsck.conf
sudo cp -v ${DIR}/scripts/flash-kernel.conf ${DIR}/initrd-tree/etc/flash-kernel.conf sudo cp -v ${DIR}/scripts/flash-kernel.conf ${DIR}/initrd-tree/etc/flash-kernel.conf
sudo cp -v ${DIR}/scripts/ttyS2.conf ${DIR}/initrd-tree/etc/ttyS2.conf
sudo dpkg -x ${DIR}/dl/mtd-utils_20090606-1_armel.deb ${DIR}/initrd-tree sudo dpkg -x ${DIR}/dl/mtd-utils_20090606-1_armel.deb ${DIR}/initrd-tree
fi fi
@ -318,6 +337,9 @@ Optional:
--serial-mode --serial-mode
Testing:
--beta
Additional/Optional options: Additional/Optional options:
-h --help -h --help
this help this help
@ -362,6 +384,9 @@ while [ ! -z "$1" ]; do
--serial-mode) --serial-mode)
SERIAL_MODE=1 SERIAL_MODE=1
;; ;;
--beta)
IS_BETA=1
;;
esac esac
shift shift
done done

@ -1,4 +1,4 @@
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'
setenv bootargs console=tty0 root=/dev/mmcblk0p5 ro omapfb.mode=dvi:1280x720MR-16@60 fixrtc buddy=${buddy} setenv bootargs console=tty0 console=ttyS2,115200n8 root=/dev/mmcblk0p5 ro omapfb.mode=dvi:1280x720MR-16@60 fixrtc buddy=${buddy}
boot boot

@ -1,4 +1,4 @@
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'
setenv bootargs console=tty0 root=/dev/mmcblk0p2 ro omapfb.mode=dvi:1280x720MR-16@60 buddy=${buddy} setenv bootargs console=tty0 console=ttyS2,115200n8 root=/dev/mmcblk0p2 ro omapfb.mode=dvi:1280x720MR-16@60 buddy=${buddy}
boot boot

@ -1,4 +1,4 @@
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'
setenv bootargs console=tty0 root=/dev/ram0 rw omapfb.mode=dvi:1280x720MR-16@60 buddy=${buddy} setenv bootargs console=tty0 root=/dev/ram0 rw omapfb.mode=dvi:1280x720MR-16@60 buddy=${buddy}
boot boot

@ -8,8 +8,8 @@ index 61bc6ae..fea0a1b 100644
+ cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf + cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
+ cp /etc/e2fsck.conf /target/etc/e2fsck.conf + cp /etc/e2fsck.conf /target/etc/e2fsck.conf
+ + mkdir -p /target/etc/init/
+ + cp /etc/ttyS2.conf /target/etc/init/ttyS2.conf
+ +
+ +
return 0 return 0

@ -1,4 +1,4 @@
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'
setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy}
boot boot

@ -1,4 +1,4 @@
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'
setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 ro buddy=${buddy} setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 ro buddy=${buddy}
boot boot

@ -1,4 +1,4 @@
setenv bootcmd 'mmc init; fatload mmc 0:1 0x80000000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80000000 0x81600000' setenv bootcmd 'mmc init; fatload mmc 0:1 0x80300000 uImage; fatload mmc 0:1 0x81600000 uInitrd; bootm 0x80300000 0x81600000'
setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw buddy=${buddy} setenv bootargs console=ttyS2,115200n8 root=/dev/ram0 rw buddy=${buddy}
boot boot

@ -0,0 +1,5 @@
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty 115200 ttyS2
Loading…
Cancel
Save