serial, make more generic

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
pull/8/head
Robert Nelson 14 years ago
parent 743da99ffd
commit 7581f8e3b0

@ -157,6 +157,10 @@ fi
echo "Using: ${ACTUAL_DEB_FILE}"
#Setup serial
sed -i -e 's:SERIAL:'$SERIAL':g' ${DIR}/scripts/serial.conf
sed -i -e 's:SERIAL:'$SERIAL':g' ${DIR}/scripts/*-tweaks.diff
#Set uImage boot address
sed -i -e 's:UIMAGE_ADDR:'$UIMAGE_ADDR':g' ${DIR}/scripts/boot.scr/*.cmd
@ -497,8 +501,11 @@ esac
fi
if [ "${SERIAL_MODE}" ] ; then
if [ ! "${DO_UBOOT_DD}" ] ; then
#this needs more thought, need to disable the check for mx53loco, but maybe we don't need it for omap..
sudo touch ${TEMPDIR}/initrd-tree/etc/rcn-serial.conf
fi
fi
cd ${TEMPDIR}/initrd-tree/
find . | cpio -o -H newc | gzip -9 > ${TEMPDIR}/initrd.mod.gz
@ -740,6 +747,10 @@ echo "done"
function reset_scripts {
#Setup serial
sed -i -e 's:'$SERIAL':SERIAL:g' ${DIR}/scripts/serial.conf
sed -i -e 's:'$SERIAL':SERIAL:g' ${DIR}/scripts/*-tweaks.diff
#Set uInitrd boot address
sed -i -e 's:'$UIMAGE_ADDR':UIMAGE_ADDR:g' ${DIR}/scripts/boot.scr/*.cmd
@ -807,7 +818,8 @@ case "$UBOOT_TYPE" in
ABI_VER=1
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
SERIAL="ttyO2"
SERIAL_CONSOLE="${SERIAL},115200n8"
ZRELADD="0x80008000"
;;
@ -820,7 +832,8 @@ case "$UBOOT_TYPE" in
ABI_VER=7
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
SERIAL="ttyO2"
SERIAL_CONSOLE="${SERIAL},115200n8"
ZRELADD="0x80008000"
;;
@ -834,7 +847,8 @@ case "$UBOOT_TYPE" in
SMSC95XX_MOREMEM=1
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
SERIAL="ttyO2"
SERIAL_CONSOLE="${SERIAL},115200n8"
ZRELADD="0x80008000"
;;
@ -847,7 +861,8 @@ case "$UBOOT_TYPE" in
ABI_VER=5
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
SERIAL="ttyO2"
SERIAL_CONSOLE="${SERIAL},115200n8"
ZRELADD="0x80008000"
BETA_KERNEL=1
@ -863,7 +878,8 @@ case "$UBOOT_TYPE" in
ABI_VER=6
UIMAGE_ADDR="0x80300000"
UINITRD_ADDR="0x81600000"
SERIAL_CONSOLE="ttyO2,115200n8"
SERIAL="ttyO2"
SERIAL_CONSOLE="${SERIAL},115200n8"
ZRELADD="0x80008000"
#with the crane, we need the beta kernel and serial-more
@ -880,7 +896,8 @@ case "$UBOOT_TYPE" in
ABI_VER=8
UIMAGE_ADDR="0x70800000"
UINITRD_ADDR="0x72100000"
SERIAL_CONSOLE="ttymxc0,115200"
SERIAL="ttymxc0"
SERIAL_CONSOLE="${SERIAL},115200"
ZRELADD="0x70008000"
BETA_KERNEL=1

@ -30,7 +30,7 @@ index 0000000..6d06fc7
+ echo "vm.min_free_kbytes = 8192" >> /target/etc/sysctl.conf
+
+ if [ ! -e /etc/rcn-serial.conf ]; then
+ cat /target/etc/inittab | grep ttyO2 || echo "S:2345:respawn:/sbin/getty 115200 ttyO2" >> /target/etc/inittab
+ cat /target/etc/inittab | grep SERIAL || echo "S:2345:respawn:/sbin/getty 115200 SERIAL" >> /target/etc/inittab
+ fi
+
+ cp -r /lib/firmware/ /target/lib/

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

@ -2,4 +2,4 @@ start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]
respawn
exec /sbin/getty 115200 ttyO2
exec /sbin/getty 115200 SERIAL

@ -6,7 +6,7 @@ index 0000000..6d06fc7
@@ -0,0 +1,46 @@
+#!/bin/sh -e
+cp /etc/flash-kernel.conf /target/etc/flash-kernel.conf
+cp /etc/ttyO2.conf /target/etc/init/ttyO2.conf
+cp /etc/serial.conf /target/etc/init/SERIAL.conf
+
+if [ -e /etc/rcn.conf ]; then
+ mkdir -p /tmp/mmc

Loading…
Cancel
Save