12.01.2011 18:15, David Henderson пишет:
So far in my project, I've been loading the kernel modules (drivers)
manually in the startup scripts. This is, obviously, far from ideal as
this will only allow the OS to work on a fixed set of hardware. I've
been investigating how to use mdev to install the drivers for detected
hardware (e.g. network cards). So far, it looks like I'll have to
setup a script that's called by mdev to process any kernel modules
related to the hardware in /etc/mdev.conf. The problem I've found is
that I can't really find an example of how to do this with mdev (udev
seems to use $MODALIAS with /etc/udev/scripts). I've also searched the
busybox documentation for mdev which doesn't cover this topic. Can
anyone point me to some relevant documentation/example, or provide
something to get me started?
Thanks,
Dave
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox
For cold-plug hardware detection I used simple modalias search +
modprobe by aliases (5 lines in script). Works perfectly with full
modprobe, on tiny variant of modprobe (which loads just 1st matching
module) it fails sometimes for devices like IDE controllers that have 2
or more corresponding modules (for ex., generic ata which matches by
device class&etc and vendor driver which match VenID/DevID). You can see
it in LEAF v4.
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox