summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel
diff options
context:
space:
mode:
authorPetr Štetiar <ynezz@true.cz>2011-04-08 15:36:37 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-04-24 22:50:20 +0100
commit46197c431d283022acbdec6596f1904d15b545b0 (patch)
tree985d8df1147cf6395d96d429620d0c8c75c306bb /meta/recipes-kernel
parent679a4b2639a9ef6e70a803f4b12a57de8ee5184b (diff)
downloadpoky-46197c431d283022acbdec6596f1904d15b545b0.tar.gz
modutils-initscripts: fix wrong order of module loading happening in udev
In the current state, udev init script is loaded as 3rd and modutils.sh as 20th, so udevadm called in udev init script loads all kernel modules in some unpredictable order, not honoring in any way specified order of modules in /etc/modules. This causes some troubles mainly in the first boot. So to fix this we now move loading of the kernel modules just before we exec udev init script. Example of the current state: Starting udev rtc-m48t86 rtc-m48t86: rtc core: registered m48t86 as rtc0 rtc-m48t86 rtc-m48t86: battery ok ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx-rtc as rtc1 root@ts72xx:~# cat /etc/modules rtc-ep93xx ohci-hcd ts72xx_sbcinfo rtc-m48t86 As you can guess, this is really wrong behaviour, because I've rtc1 as the main time source for my system. root@ts72xx:~# cat /etc/default/hwclock HWCLOCKACCESS=yes HWCLOCKDEVICE=/dev/rtc1 Expected behaviour with this patch applied: Please wait: booting... ep93xx-rtc ep93xx-rtc: rtc core: registered ep93xx-rtc as rtc0 usbcore: registered new device driver usb ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver ... rtc-m48t86 rtc-m48t86: rtc core: registered m48t86 as rtc1 rtc-m48t86 rtc-m48t86: battery ok Starting udev (From OE-Core rev: a0629aa0dc55829565b7ab1725875eac065ab2f1) Signed-off-by: Petr Štetiar <ynezz@true.cz> (based on http://patches.openembedded.org/patch/1917/) Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r--meta/recipes-kernel/modutils/modutils-initscripts.bb4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-kernel/modutils/modutils-initscripts.bb b/meta/recipes-kernel/modutils/modutils-initscripts.bb
index 1665955291..5ae34b4df8 100644
--- a/meta/recipes-kernel/modutils/modutils-initscripts.bb
+++ b/meta/recipes-kernel/modutils/modutils-initscripts.bb
@@ -4,10 +4,10 @@ LICENSE = "PD"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=7bf87fc37976e93ec66ad84fac58c098" 4LIC_FILES_CHKSUM = "file://LICENSE;md5=7bf87fc37976e93ec66ad84fac58c098"
5SRC_URI = "file://modutils.sh \ 5SRC_URI = "file://modutils.sh \
6 file://PD.patch" 6 file://PD.patch"
7PR = "r4" 7PR = "r5"
8 8
9INITSCRIPT_NAME = "modutils.sh" 9INITSCRIPT_NAME = "modutils.sh"
10INITSCRIPT_PARAMS = "start 20 S ." 10INITSCRIPT_PARAMS = "start 2 S ."
11 11
12inherit update-rc.d 12inherit update-rc.d
13 13