diff options
author | Matthias Hentges <oe@hentges.net> | 2006-01-31 23:52:30 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2006-01-31 23:52:30 +0000 |
commit | 28655b2cf027be29af97f2c6d52b3256c66acff1 (patch) | |
tree | c70be4589d29eb75493a4614ac2a574ea744bcec /packages/altboot/files/altboot-menu | |
parent | e66483e9adcb6701bb7a2cdd6625324029d700c9 (diff) |
altboot:
- More kernel 2.6 changes
- Booting off SD seems to work as expected now
- Turn off printk before showing the menu, kernel messages make a mess of it
- Load keympas before showing the menu. init=/bin/sh is useless with a b0rked keymapping.
Diffstat (limited to 'packages/altboot/files/altboot-menu')
-rw-r--r-- | packages/altboot/files/altboot-menu/15-bootSD | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/packages/altboot/files/altboot-menu/15-bootSD b/packages/altboot/files/altboot-menu/15-bootSD index 6ce0cdc9b3..d086cde344 100644 --- a/packages/altboot/files/altboot-menu/15-bootSD +++ b/packages/altboot/files/altboot-menu/15-bootSD @@ -24,23 +24,24 @@ run_module() { /etc/init.d/devices start && echo ok >/dev/tty0|| die "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*" + # and starting udev at this point may not be the best idea... + if `uname -r | grep -q "2.6"` then - #echo "***" + #Let's just assume the device file name never changes... 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}]" + ! test -e /dev/mmcblk${dev_no}p${part_no} && mknod /dev/mmcblk${dev_no}p${part_no} b 254 $part_no fi - if test -n "$SD_KERNEL_MODULE" + # Kernel 2.6 has the SD driver compiled into the kernel + 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" + else + echo "No SD kernel module, configured, assuming it's build-in" fi echo -n "Mounting $SD_MOUNTPOINT..." >/dev/tty0 |