From: Gary Thomas <gary@mlbassoc.com>
To: Saul Wold <sgw@linux.intel.com>
Cc: Koen Kooi <koen@dominion.thruhere.net>,
openembedded-core@lists.openembedded.org,
Kang Kai <kai.kang@windriver.com>
Subject: Re: [PATCH 07/37] modutils-initscripts: fix wrong order of module loading happening in udev
Date: Mon, 25 Apr 2011 06:02:23 -0600 [thread overview]
Message-ID: <4DB562CF.1020100@mlbassoc.com> (raw)
In-Reply-To: <a0629aa0dc55829565b7ab1725875eac065ab2f1.1303539961.git.sgw@linux.intel.com>
On 04/23/2011 12:28 AM, Saul Wold wrote:
> From: =?UTF-8?q?Petr=20=C5=A0tetiar?=<ynezz@true.cz>
>
> 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
>
> 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>
> ---
> .../modutils/modutils-initscripts.bb | 4 ++--
> 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 1665955..5ae34b4 100644
> --- a/meta/recipes-kernel/modutils/modutils-initscripts.bb
> +++ b/meta/recipes-kernel/modutils/modutils-initscripts.bb
> @@ -4,10 +4,10 @@ LICENSE = "PD"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=7bf87fc37976e93ec66ad84fac58c098"
> SRC_URI = "file://modutils.sh \
> file://PD.patch"
> -PR = "r4"
> +PR = "r5"
>
> INITSCRIPT_NAME = "modutils.sh"
> -INITSCRIPT_PARAMS = "start 20 S ."
> +INITSCRIPT_PARAMS = "start 2 S ."
>
> inherit update-rc.d
>
Should there not be a corresponding change to modutils_2.4.27.bb? It's not clear to me
where there are these two separate recipes, but they should at least be kept in sync.
diff --git a/meta/recipes-kernel/modutils/modutils_2.4.27.bb b/meta/recipes-kernel/modutils/modutils_2.4.27.bb
index 1ebc90c..2944201 100644
--- a/meta/recipes-kernel/modutils/modutils_2.4.27.bb
+++ b/meta/recipes-kernel/modutils/modutils_2.4.27.bb
@@ -5,7 +5,7 @@ manageable for all users, administrators and distribution maintainers."
LICENSE = "GPLv2"
LIC_FILES_CHKSUM = "file://COPYING;md5=8ca43cbc842c2336e835926c2166c28b"
DEPENDS = "bison-native"
-PR = "r9"
+PR = "r10"
SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/modutils/v2.4/modutils-${PV}.tar.bz2 \
file://lex.l.diff;patch=1 \
@@ -51,7 +51,7 @@ if test -n "$D"; then
done
fi
fi
-update-rc.d $D modutils.sh start 20 S .
+update-rc.d $D modutils.sh start 2 S .
}
pkg_prerm_modutils () {
--
------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
------------------------------------------------------------
next prev parent reply other threads:[~2011-04-25 12:04 UTC|newest]
Thread overview: 53+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-23 6:28 [PATCH 00/37] V2 - Consolidated Pull Request Saul Wold
2011-04-23 6:28 ` [PATCH 01/37] slang: Fix host contamination issue Saul Wold
2011-04-23 6:28 ` [PATCH 02/37] tasks: Upgrade to 0.19 (from 0.18) Saul Wold
2011-04-23 6:28 ` [PATCH 03/37] avahi: Upgrade to 0.6.30 (from 0.6.28) Saul Wold
2011-04-23 6:28 ` [PATCH 04/37] consolekit: Upgrade to 0.4.4 (from 0.4.3) Saul Wold
2011-04-23 6:28 ` [PATCH 05/37] libgpg-error: Upgrade to 1.10 (from 1.9) Saul Wold
2011-04-23 6:28 ` [PATCH 06/37] jpeg: Upgrade to 8c (from 8b) Saul Wold
2011-04-23 6:28 ` [PATCH 07/37] modutils-initscripts: fix wrong order of module loading happening in udev Saul Wold
2011-04-25 12:02 ` Gary Thomas [this message]
2011-04-25 15:49 ` Saul Wold
2011-04-25 16:35 ` Koen Kooi
2011-04-25 17:07 ` Gary Thomas
2011-04-25 17:14 ` Gary Thomas
2011-04-26 5:47 ` Darren Hart
2011-04-26 17:51 ` Khem Raj
2011-04-28 9:25 ` Richard Purdie
2011-04-29 4:25 ` Darren Hart
2011-04-23 6:28 ` [PATCH 08/37] Control over when package init scripts are run Saul Wold
2011-04-23 6:29 ` [PATCH 09/37] qemu: disable sdl for target build Saul Wold
2011-04-23 6:29 ` [PATCH 10/37] libxfixes: upgrade from 4.0.5 to the latest version 5.0 Saul Wold
2011-04-23 6:29 ` [PATCH 11/37] util-macros: upgrade from 1.11.0 to 1.13.0 Saul Wold
2011-04-23 6:29 ` [PATCH 12/37] preferred-xorg-versions.inc: update libxfixes, util-macros, xorg-cf-files Saul Wold
2011-04-23 6:29 ` [PATCH 13/37] mdadm: upgrade from 3.1.4 to the latest version 3.2.1 Saul Wold
2011-04-23 6:29 ` [PATCH 14/37] liburcu: upgrade from 0.5.2 to 0.5.4 Saul Wold
2011-04-23 6:29 ` [PATCH 15/37] lttng-ust: upgrade from 0.11 to the latest version 0.12 Saul Wold
2011-04-23 6:29 ` [PATCH 16/37] task-poky-tools.bb, task-sdk-gmae.inc: enable lttng-ust for ARM Saul Wold
2011-04-23 6:29 ` [PATCH 17/37] lttng-viewer: upgrade from 0.12.36 to the latest version 0.12.38 Saul Wold
2011-04-23 6:29 ` [PATCH 18/37] distro_tracking_fields.inc: update the info for the following recipes Saul Wold
2011-04-23 6:29 ` [PATCH 19/37] puzzles: Upgrade to svn r9151 (from r9084) Saul Wold
2011-04-23 6:29 ` [PATCH 20/37] linux-tools.inc: turn off newt and dwarf for perf Saul Wold
2011-04-23 6:29 ` [PATCH 21/37] ofono: add bluez4 to DEPENDS list Saul Wold
2011-04-23 6:29 ` [PATCH 22/37] mpfr: upgrade from 3.0.0 to 3.0.1 Saul Wold
2011-04-23 6:29 ` [PATCH 23/37] python-gst: upgrade from 0.10.19 to 0.10.21 Saul Wold
2011-04-23 6:29 ` [PATCH 24/37] git: upgrade from 1.7.3.4 to 1.7.4.3 Saul Wold
2011-04-23 6:29 ` [PATCH 25/37] python-pycairo: fix installation path of __init__.py Saul Wold
2011-04-23 6:29 ` [PATCH 26/37] perl-5.12.2: use of PERLHOSTLIB var fix Saul Wold
2011-04-23 6:29 ` [PATCH 27/37] cpan.bbclass: export PERLHOSTLIB for perl modules Saul Wold
2011-04-23 6:29 ` [PATCH 28/37] libxml-parser-perl: upgrade from 2.36 to 2.40 Saul Wold
2011-04-23 6:29 ` [PATCH 29/37] distro_tracking: recipe information update Saul Wold
2011-04-23 6:29 ` [PATCH 30/37] qemu-helper-nativesdk: Update LIC_FILE_CHKSUM for renamed helper Saul Wold
2011-04-23 6:29 ` [PATCH 31/37] lsbsetup: add some workaround for LSB tests Saul Wold
2011-04-23 6:29 ` [PATCH 32/37] pcmciautils: Upgrade 017 -> 018 Saul Wold
2011-04-23 6:29 ` [PATCH 33/37] gconf-dbus: add SRCREV to recipe Saul Wold
2011-04-24 21:45 ` Richard Purdie
2011-04-23 6:29 ` [PATCH 34/37] xf86-video-omapfb: " Saul Wold
2011-04-23 6:29 ` [PATCH 35/37] task-base: allow distribution to define apm provider Saul Wold
2011-04-24 21:46 ` Richard Purdie
2011-04-24 22:25 ` [PATCH] " Martin Jansa
2011-04-24 22:41 ` Richard Purdie
2011-04-23 6:29 ` [PATCH 36/37] librsvg 2.32.1: fix postinst script Saul Wold
2011-04-23 6:29 ` [PATCH 37/37] create-lsb-image:Rename creat-lsb-image and fix some bugs Saul Wold
2011-04-24 21:28 ` Richard Purdie
2011-04-24 21:43 ` [PATCH 00/37] V2 - Consolidated Pull Request Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4DB562CF.1020100@mlbassoc.com \
--to=gary@mlbassoc.com \
--cc=kai.kang@windriver.com \
--cc=koen@dominion.thruhere.net \
--cc=openembedded-core@lists.openembedded.org \
--cc=sgw@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.