|
Embedded Linux Primer: A Practical, Real-World ApproachThis enables a system developer to associate devices with device drivers. For a simple embedded system, modprobe.conf might be empty or might contain very few lines. The modprobe utility is compiled with a set of default rules that establish the defaults in the absence of a valid modprobe.conf. Invoking modprobe with only the -c option displays the set of default rules used by modprobe. Listing 8-8 represents a typical modprobe.conf, which might be found on a system containing two Ethernet interfaces; one is a wireless adapter based on the Prism2 chipset, and the other is a typical PCI Ethernet card. This system also contains a sound subsystem based on an integrated Intel sound chipset. Listing 8-8. Typical modprobe.conf File $ cat /etc/modprobe.conf alias eth1 orinoci_pci options eth1 orinoco_debug=9 alias eth0 e100 alias snd-card-0 snd-intel8x0 options snd-card-0 index=0 $P When the kernel boots and discovers the wireless chipset, this configuration file instructs modprobe to load the orinoco_pci device driver, bound to kernel device eth1, and pass the optional module parameter orinoco_debug=9 to the device driver ...» |
Код для вставки книги в блог HTML
phpBB
текст
|
|