summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorRod Whitby <rod@whitby.id.au>2006-01-30 23:31:55 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-01-30 23:31:55 +0000
commitfdba45cea1cc5644c003b5598350563f0d690a7f (patch)
treef77c31cd36af02b67809d5774ce93dcd5edce955 /packages
parent6a5fc4fe77b973acc7259d54960b7f0e73b73280 (diff)
parent1eb8f416a72dd98faea8018e4934bb4420a6ae99 (diff)
merge of 0bbfeca4a5e914b371359c7f066b9731f637102a
and cd257fc3be2c2b6a6d43881ec1ebc7fd3b1608ff
Diffstat (limited to 'packages')
-rw-r--r--packages/altboot/altboot.bb8
-rw-r--r--packages/altboot/files/akita/altboot-2.4.cfg (renamed from packages/altboot/files/akita/altboot.cfg)0
-rw-r--r--packages/altboot/files/akita/altboot-2.6.cfg26
-rw-r--r--packages/altboot/files/altboot-menu/15-bootSD22
-rw-r--r--packages/altboot/files/collie/altboot-2.4.cfg (renamed from packages/altboot/files/collie/altboot.cfg)0
-rw-r--r--packages/altboot/files/init.altboot21
-rw-r--r--packages/altboot/files/poodle/altboot-2.4.cfg (renamed from packages/altboot/files/poodle/altboot.cfg)0
-rw-r--r--packages/altboot/files/spitz/altboot-2.4.cfg (renamed from packages/altboot/files/spitz/altboot.cfg)0
8 files changed, 66 insertions, 11 deletions
diff --git a/packages/altboot/altboot.bb b/packages/altboot/altboot.bb
index 8912cc1bec..46a95ac5d6 100644
--- a/packages/altboot/altboot.bb
+++ b/packages/altboot/altboot.bb
@@ -4,16 +4,16 @@ SECTION = "base"
PRIORITY = "optional"
MAINTAINER = "Matthias 'CoreDump' Hentges <oe@hentges.net>"
LICENSE = "GPL"
-
+IGNORE_STRIP_ERRORS = "1"
-PR = "r13"
+PR = "r15"
SRC_URI = "file://altboot-menu \
file://altboot.rc \
file://altboot.func \
file://init.altboot \
- file://altboot.cfg"
+ file://altboot*.cfg"
# S = "${WORKDIR}/files"
@@ -24,7 +24,7 @@ do_install() {
install -d ${D}/etc/altboot.rc
install -d ${D}/usr/share/doc/altboot
- install -m 0644 ${WORKDIR}/altboot.cfg ${D}/etc
+ install -m 0644 ${WORKDIR}/altboot*.cfg ${D}/etc
install -m 0644 ${WORKDIR}/altboot.func ${D}/etc
# install -m 0644 ${WORKDIR}/docs/altboot/*.txt ${D}/usr/share/doc/altboot
install -m 0755 ${WORKDIR}/init.altboot ${D}/sbin
diff --git a/packages/altboot/files/akita/altboot.cfg b/packages/altboot/files/akita/altboot-2.4.cfg
index 9175cb1b06..9175cb1b06 100644
--- a/packages/altboot/files/akita/altboot.cfg
+++ b/packages/altboot/files/akita/altboot-2.4.cfg
diff --git a/packages/altboot/files/akita/altboot-2.6.cfg b/packages/altboot/files/akita/altboot-2.6.cfg
new file mode 100644
index 0000000000..ad15f7169e
--- /dev/null
+++ b/packages/altboot/files/akita/altboot-2.6.cfg
@@ -0,0 +1,26 @@
+# Handled by /sbin/init.altboot
+# Allow booting images from SD or CF instead of booting
+# the ROM.
+ENABLE_ALTBOOT="yes"
+TIMEOUT="4"
+REAL_INIT="/sbin/init.sysvinit"
+SH_SHELL="/bin/sh"
+
+IMAGE_PATH="boot-images"
+IMAGE_TYPE="ext2"
+FSCK_IMAGES="yes"
+
+SD_DEVICE="/dev/mmcblk0p1"
+SD_KERNEL_MODULE=""
+
+USB_STORAGE_MODULES="usb_ohci_pxa27x usb-storage"
+USB_STORAGE_PARTITION="/dev/sda1"
+USB_STORAGE_WAIT="4"
+
+INIT_RUNLEVEL="5"
+NO_GUI_RL="2"
+MASTER_PASSWORD=""
+ASK_PW_ON_BOOT="no"
+
+SD_MOUNTPOINT="/media/card"
+CF_MOUNTPOINT="/media/cf"
diff --git a/packages/altboot/files/altboot-menu/15-bootSD b/packages/altboot/files/altboot-menu/15-bootSD
index 60d9da4339..6ce0cdc9b3 100644
--- a/packages/altboot/files/altboot-menu/15-bootSD
+++ b/packages/altboot/files/altboot-menu/15-bootSD
@@ -23,9 +23,25 @@ run_module() {
echo -n "Generating device files..." >/dev/tty0
/etc/init.d/devices start && echo ok >/dev/tty0|| die "FAILED"
-
- echo -n "Loading SD kernel module..."
- /sbin/insmod $SD_KERNEL_MODULE >/dev/null 2>&1 && echo ok || die "insmod failed"
+ # We can't trust that the SD device file is there when running kernel 2.6 w/ udev
+ # Starting udev at this point may not be the best idea...
+# echo "*1*"
+ if `uname -r | grep -q "2.6"`
+ then
+ #echo "***"
+ dev_no="`echo "$SD_DEVICE" | sed -n "s/\/dev\/mmcblk\(.*\)p\(.*\)/\1/p"`"
+ part_no="`echo "/dev/mmcblk0p1" | sed -n "s/\/dev\/mmcblk\(.*\)p\(.*\)/\2/p"`"
+ ! test -e /dev/mmcblk${dev_no} && mknod /dev/mmcblk${dev_no} b 254 0
+ ! test -e /dev/mmcblk${dev_no}p${part_no} && mknod /dev/mmcblk${dev_no}p${part_no} b 254 $part_no
+
+ #echo "[mknod /dev/mmcblk${dev_no}p${part_no}]"
+ fi
+
+ if test -n "$SD_KERNEL_MODULE"
+ then
+ echo -n "Loading SD kernel module..."
+ /sbin/insmod $SD_KERNEL_MODULE >/dev/null 2>&1 && echo ok || die "insmod failed"
+ fi
echo -n "Mounting $SD_MOUNTPOINT..." >/dev/tty0
/bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT >/dev/null 2>&1 && echo ok >/dev/tty0|| die "/bin/mount -t auto -o defaults,noatime $SD_DEVICE $SD_MOUNTPOINT failed"
diff --git a/packages/altboot/files/collie/altboot.cfg b/packages/altboot/files/collie/altboot-2.4.cfg
index 9d2560f76b..9d2560f76b 100644
--- a/packages/altboot/files/collie/altboot.cfg
+++ b/packages/altboot/files/collie/altboot-2.4.cfg
diff --git a/packages/altboot/files/init.altboot b/packages/altboot/files/init.altboot
index 4d795ced42..2de4ba247c 100644
--- a/packages/altboot/files/init.altboot
+++ b/packages/altboot/files/init.altboot
@@ -17,7 +17,11 @@ REAL_INIT="/sbin/init.sysvinit"
INIT_RUNLEVEL="`cat /etc/inittab | sed -n "/^id\:/s/id\:\([0-9]\)\:.*$/\1/p"`"
test -z "$INIT_RUNLEVEL" && INIT_RUNLEVEL=5
-test -e /etc/altboot.cfg && . /etc/altboot.cfg || echo "WARNING: No altboot.cfg found! Check your installation of Altboot!" > /dev/tty1
+case "`uname -r`" in
+2.6*) test -e /etc/altboot-2.6.cfg && . /etc/altboot-2.6.cfg || echo "WARNING: No altboot-2.6.cfg found! Check your installation of Altboot!" > /dev/tty1;;
+2.4*) test -e /etc/altboot-2.4.cfg && . /etc/altboot-2.4.cfg || echo "WARNING: No altboot-2.4.cfg found! Check your installation of Altboot!" > /dev/tty1;;
+*) die "Unknown kernel [uname -r], no configuration found.";;
+esac
C_RED="\033[31m"
C_BLUE="\033[34m"
@@ -143,7 +147,11 @@ run_timer() {
then
mount -t proc proc /proc >/dev/null 2>&1
- key_ints="`cat /proc/interrupts | grep keyboard | awk '{print $2}'`"
+
+ case "`uname -r`" in
+ 2.4*) key_ints="`cat /proc/interrupts | grep keyboard | awk '{print $2}'`";;
+ 2.6*) key_ints="`cat /proc/interrupts | grep Spitzkbd`";;
+ esac
stty -echo
echo -en "\n\nPlease press any key to launch altboot." > /dev/tty1
@@ -152,9 +160,14 @@ run_timer() {
cnt=0
while test "$cnt" != "$TIMEOUT"
- do
+ do
sleep 1
- if test "`cat /proc/interrupts | grep keyboard | awk '{print $2}'`" != "$key_ints"
+ case "`uname -r`" in
+ 2.4*) key_ints_now="`cat /proc/interrupts | grep keyboard | awk '{print $2}'`";;
+ 2.6*) key_ints_now="`cat /proc/interrupts | grep Spitzkbd`";;
+ esac
+
+ if test "$key_ints_now" != "$key_ints"
then
launch_altboot=yes
stty echo
diff --git a/packages/altboot/files/poodle/altboot.cfg b/packages/altboot/files/poodle/altboot-2.4.cfg
index 9d2560f76b..9d2560f76b 100644
--- a/packages/altboot/files/poodle/altboot.cfg
+++ b/packages/altboot/files/poodle/altboot-2.4.cfg
diff --git a/packages/altboot/files/spitz/altboot.cfg b/packages/altboot/files/spitz/altboot-2.4.cfg
index 7a161b7a9c..7a161b7a9c 100644
--- a/packages/altboot/files/spitz/altboot.cfg
+++ b/packages/altboot/files/spitz/altboot-2.4.cfg