[OE-core] [PATCH v2 3/4] busybox-mdev: Add hotplug kernel module support to mdev.conf

Mike Looijmans mike.looijmans at topic.nl
Thu Dec 18 14:19:24 UTC 2014


Add a line to mdev.conf that tells mdev to load kernel modules when
required.

For example, if you built wifi support as an external module, inserting
a wifi stick into a USB port will now automatically load that module
into the kernel and the wlan device will be ready for configuration.
Without this patch, you have to load required modules manually or force
them to load at system startup.
---
  meta/recipes-core/busybox/files/mdev.conf |    2 ++
  1 file changed, 2 insertions(+)

diff --git a/meta/recipes-core/busybox/files/mdev.conf 
b/meta/recipes-core/busybox/files/mdev.conf
index e688911..6dfd161 100644
--- a/meta/recipes-core/busybox/files/mdev.conf
+++ b/meta/recipes-core/busybox/files/mdev.conf
@@ -1,3 +1,5 @@
+$MODALIAS=.* 0:0 660 @modprobe "$MODALIAS"
+
  console 0:0 0600  cpu_dma_latency 0:0 0660  fb0:0 44 0660 -- 1.7.9.5



Met vriendelijke groet / kind regards,

Mike Looijmans
System Expert


TOPIC Embedded Systems
Eindhovenseweg 32-C, NL-5683 KH Best
Postbus 440, NL-5680 AK Best
Telefoon: (+31) (0) 499 33 69 79
Telefax:  (+31) (0) 499 33 69 70
E-mail: mike.looijmans at topic.nl
Website: www.topic.nl

Please consider the environment before printing this e-mail

Topic zoekt gedreven (embedded) software specialisten!
http://topic.nl/vacatures/topic-zoekt-software-engineers/




More information about the Openembedded-core mailing list