boot scripts: generate proper serial console based on what board is selected

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 2e92c095de
commit 12d53bc8fd

@ -163,6 +163,9 @@ fi
#Set uInitrd boot address
sed -i -e 's:UINITRD_ADDR:'$UINITRD_ADDR':g' ${DIR}/scripts/boot.scr/*.cmd
#Set the Serial Console
sed -i -e 's:SERIAL_CONSOLE:'$SERIAL_CONSOLE':g' ${DIR}/scripts/boot.scr/*.cmd
if [ "$USB_ROOTFS" ];then
sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/boot.scr/dvi-normal-*.cmd
sed -i 's/mmcblk0p5/sda1/g' ${DIR}/scripts/boot.scr/serial-normal-*.cmd
@ -743,6 +746,9 @@ function reset_scripts {
#Set uInitrd boot address
sed -i -e 's:'$UINITRD_ADDR':UINITRD_ADDR:g' ${DIR}/scripts/boot.scr/*.cmd
#Set the Serial Console
sed -i -e 's:'$SERIAL_CONSOLE':SERIAL_CONSOLE:g' ${DIR}/scripts/boot.scr/*.cmd
if [ "$USB_ROOTFS" ];then
sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/boot.scr/dvi-normal-*.cmd
sed -i 's/sda1/mmcblk0p5/g' ${DIR}/scripts/boot.scr/serial-normal-*.cmd
@ -801,6 +807,7 @@ case "$UBOOT_TYPE" in
ABI_VER=1
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
;;
beagle)
@ -812,6 +819,7 @@ case "$UBOOT_TYPE" in
ABI_VER=7
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
;;
panda)
@ -824,6 +832,7 @@ case "$UBOOT_TYPE" in
SMSC95XX_MOREMEM=1
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
;;
touchbook)
@ -835,6 +844,7 @@ case "$UBOOT_TYPE" in
ABI_VER=5
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
BETA_KERNEL=1
SERIAL_MODE=1
@ -849,6 +859,7 @@ case "$UBOOT_TYPE" in
ABI_VER=6
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
#with the crane, we need the beta kernel and serial-more
BETA_KERNEL=1
@ -864,6 +875,7 @@ case "$UBOOT_TYPE" in
ABI_VER=8
UIMAGE_ADDR="0x70800000"
UINITRD_ADDR="0x72100000"
SERIAL_CONSOLE="ttymxc0,115200"
BETA_KERNEL=1
SERIAL_MODE=1

@ -2,6 +2,6 @@ echo "Debug: Maverick DVI"
setenv dvimode 1280x720MR-16@60
setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}
boot

@ -2,6 +2,6 @@ echo "Debug: Natty DVI"
setenv dvimode 1280x720MR-16@60
setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} fixrtc buddy=${buddy} mpurate=${mpurate}
boot

@ -2,6 +2,6 @@ echo "Debug: Squeeze DVI"
setenv dvimode 1280x720MR-16@60
setenv vram 12MB
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE console=tty0 root=/dev/mmcblk0p5 ro vram=${vram} omapfb.mode=dvi:${dvimode} buddy=${buddy} mpurate=${mpurate}
boot

@ -1,5 +1,5 @@
echo "Debug: Maverick Serial"
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate}
boot

@ -1,5 +1,5 @@
echo "Debug: Natty Serial"
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE root=/dev/mmcblk0p5 ro fixrtc buddy=${buddy} mpurate=${mpurate}
boot

@ -1,5 +1,5 @@
echo "Debug: Squeeze Serial"
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage; fatload mmc 0:1 UINITRD_ADDR uInitrd; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/mmcblk0p5 ro buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE root=/dev/mmcblk0p5 ro buddy=${buddy} mpurate=${mpurate}
boot

@ -1,5 +1,5 @@
echo "Debug: running debian netinstall"
setenv bootcmd 'fatload mmc 0:1 UIMAGE_ADDR uImage.net; fatload mmc 0:1 UINITRD_ADDR uInitrd.net; bootm UIMAGE_ADDR UINITRD_ADDR'
setenv bootargs console=ttyO2,115200n8 root=/dev/ram0 rw buddy=${buddy} mpurate=${mpurate}
setenv bootargs console=SERIAL_CONSOLE root=/dev/ram0 rw buddy=${buddy} mpurate=${mpurate}
boot

Loading…
Cancel
Save