[Buildroot] SOLVED! Re: Buildroot 2011.11 on x86_64 - neither udev nor mdev loads needed modules at startup

Diego Iastrubni diegoiast at gmail.com
Tue Dec 27 11:56:24 UTC 2011


On Tue, Dec 27, 2011 at 1:59 AM, Wojciech Zabolotny <wzab01 at gmail.com>wrote:

> I've tested yet another configuration. With modprobe provided by busybox
> and without external module-init-tools.
> In this setup the modprobe is located correctly in /sbin, so the only
> modification needed to assure automatic loading of modules is addition of
> "udevadm trigger --action=add" to the /etc/init.d/S10udev file right after
> the  $UDEV_BIN -d || (echo "FAIL" && exit 1) line.
>
> ...

> #!/bin/sh
> [ "$ACTION" = add ]&&  [ "$MODALIAS" != "" ]&&  modprobe $MODALIAS
> [ "$ACTION" = remove ]&&  [ "$MODALIAS" != "" ]&&  modprobe -r $MODALIAS
> /sbin/mdev $@
>
> and passing it's path to the /sys/kernel/uevent_helper
>

Still not working here using udev. Everything seems to be as you described.
Next step - making that wrapper with add/remove actions.

[/root 10.10.10.44] $ cat /sys/kernel/uevent_helper
/sbin/udevadm
[/root 10.10.10.44] $ cat /etc/init.d/S10udev  | grep adm
#       (including startup time!) and administration.  For example, if
        #udevadm trigger
        udevadm trigger --action=add
        udevadm control --stop_exec_queue
[/root 10.10.10.44] $ grep modprobe /lib/udev/rules.d/*
/lib/udev/rules.d/75-probe_mtd.rules:KERNEL=="mtd*ro",
ENV{MTD_FTL}=="smartmedia", RUN+="/sbin/modprobe -bv sm_ftl"
/lib/udev/rules.d/80-drivers.rules:DRIVER!="?*", ENV{MODALIAS}=="?*",
RUN+="/sbin/modprobe -bv $env{MODALIAS}"
/lib/udev/rules.d/80-drivers.rules:SUBSYSTEM=="tifm",
ENV{TIFM_CARD_TYPE}=="SD", RUN+="/sbin/modprobe -bv tifm_sd"
/lib/udev/rules.d/80-drivers.rules:SUBSYSTEM=="tifm",
ENV{TIFM_CARD_TYPE}=="MS", RUN+="/sbin/modprobe -bv tifm_ms"
/lib/udev/rules.d/80-drivers.rules:SUBSYSTEM=="memstick",
RUN+="/sbin/modprobe -bv --all ms_block mspro_block"
/lib/udev/rules.d/80-drivers.rules:SUBSYSTEM=="i2o", RUN+="/sbin/modprobe
-bv i2o_block"
/lib/udev/rules.d/80-drivers.rules:SUBSYSTEM=="scsi",
ENV{DEVTYPE}=="scsi_device", TEST!="[module/sg]", RUN+="/sbin/modprobe -bv
sg"
/lib/udev/rules.d/80-drivers.rules:SUBSYSTEM=="module",
KERNEL=="parport_pc", RUN+="/sbin/modprobe -bv ppdev"
[/root 10.10.10.44] $ which modprobe
/sbin/modprobe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20111227/df4cc14a/attachment-0002.html>


More information about the buildroot mailing list