[oe] [PATCH] Micro image needs some help
Peter Chubb
peter.chubb at nicta.com.au
Thu Jun 11 02:23:08 UTC 2009
I've been attempting to use the micro-image on a BeagleBoard. I have
a couple of problems:
-- not all the kernel modules necessary are installed (in fact, none
are.)
-- Nothing mounts /sys or /proc so udev bombs out early.
I don't know how to fix the modules problem yet, but the udev script
can easily be fixed to mount /proc and /sys instead of exiting. This
may not be the right fix, but it does work.
Signed-off-by: Peter Chubb <peter.chubb at nicta.com.au>
Index: openembedded/recipes/udev/udev-141/init
===================================================================
--- openembedded,orig/recipes/udev/udev-141/init 2009-06-11 12:13:28.000000000 +1000
+++ openembedded/recipes/udev/udev-141/init 2009-06-11 12:14:19.000000000 +1000
@@ -4,22 +4,28 @@
# Provides: udev
# Required-Start: mountvirtfs
# Required-Stop:
# Default-Start: S
# Default-Stop:
# Short-Description: Start udevd, populate /dev and load drivers.
### END INIT INFO
export TZ=/etc/localtime
-[ -d /sys/class ] || exit 1
-[ -r /proc/mounts ] || exit 1
+[ -d /sys/class ] || {
+ mount -t sysfs sys /sys || exit 1
+}
+
+[ -r /proc/mounts ] || {
+ mount -t procfs proc /proc || exit 1
+}
+
[ -x /sbin/udevd ] || exit 1
[ -f /etc/default/udev ] && . /etc/default/udev
[ -f /etc/udev/udev.conf ] && . /etc/udev/udev.conf
kill_udevd() {
if [ -x /sbin/pidof ]; then
pid=`/sbin/pidof -x udevd`
[ -n "$pid" ] && kill $pid
fi
}
--
Dr Peter Chubb peter DOT chubb AT nicta.com.au
http://www.ertos.nicta.com.au ERTOS within National ICT Australia
Kernel Engineering Group (KEG): Where Systems Brew.
More information about the Openembedded-devel
mailing list