From: Grazvydas Ignotas Date: Sat, 6 Jul 2013 17:03:36 +0000 (+0300) Subject: udev 151: yet more pandora hacks X-Git-Tag: sz_160~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=607e9e8703753c1c7725adc52ce81516eadee9ac;p=openembedded.git udev 151: yet more pandora hacks stop it from trying to load nonsensical modules and taking forever to boot. --- diff --git a/recipes/udev/udev-151/omap3-pandora/local.rules b/recipes/udev/udev-151/omap3-pandora/local.rules index 42b7d61318..2c597eb113 100644 --- a/recipes/udev/udev-151/omap3-pandora/local.rules +++ b/recipes/udev/udev-151/omap3-pandora/local.rules @@ -28,7 +28,7 @@ KERNEL=="rtc0", SYMLINK+="rtc" KERNEL=="fb0", SYMLINK+="fb" # Try and modprobe for drivers for new hardware -ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" +# ACTION=="add", DEVPATH=="/devices/*", ENV{MODALIAS}=="?*", RUN+="/sbin/modprobe $env{MODALIAS}" # Create a symlink to any touchscreen input device SUBSYSTEM=="input", KERNEL=="event[0-9]*", ATTRS{modalias}=="input:*-e0*,3,*a0,1,*18,*", SYMLINK+="input/touchscreen0" @@ -47,3 +47,15 @@ KERNEL=="uinput", NAME="input/%k", MODE="0666" # reserve fb2 for the system KERNEL=="fb2", ACTION=="add", MODE="0600" + +# On later kernels we have lots of modules and running modprobe becomes +# expensive and slows boot a lot. +# Prevent it from being run for stuff we know is compiled in +# pandora's kernel or is not needed in general +ACTION=="add", ENV{MODALIAS}=="platform:*" RUN="/bin/true" +ACTION=="add", ENV{MODALIAS}=="mmc:block" RUN="/bin/true" +ACTION=="add", ENV{MODALIAS}=="sdio:c00v104Cd9066" RUN="/bin/true" +ACTION=="add", DEVPATH=="*twl4030_keypad*" RUN="/bin/true" +ACTION=="add", DEVPATH=="*twl4030_pwrbutton*" RUN="/bin/true" +ACTION=="add", DEVPATH=="*gpio-keys*" RUN="/bin/true" +ACTION=="add", DEVPATH=="*/i2c-3/3-006[67]*" RUN="/bin/true" diff --git a/recipes/udev/udev_151.bb b/recipes/udev/udev_151.bb index 5f44d23ef6..c8d7cfc905 100644 --- a/recipes/udev/udev_151.bb +++ b/recipes/udev/udev_151.bb @@ -3,7 +3,7 @@ DESCRIPTION = "udev is a daemon which dynamically creates and removes device nod the hotplug package and requires a kernel not older than 2.6.12." LICENSE = "GPLv2+" -PR = "r21" +PR = "r22" # Untested DEFAULT_PREFERENCE = "-1"