udev 151: yet more pandora hacks
authorGrazvydas Ignotas <notasas@gmail.com>
Sat, 6 Jul 2013 17:03:36 +0000 (20:03 +0300)
committerGrazvydas Ignotas <notasas@gmail.com>
Sat, 6 Jul 2013 17:03:36 +0000 (20:03 +0300)
stop it from trying to load nonsensical modules and taking forever
to boot.

recipes/udev/udev-151/omap3-pandora/local.rules
recipes/udev/udev_151.bb

index 42b7d61..2c597eb 100644 (file)
@@ -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"
index 5f44d23..c8d7cfc 100644 (file)
@@ -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"