diff options
Diffstat (limited to 'chapter08')
-rw-r--r-- | chapter08/kernel.xml | 30 |
1 files changed, 16 insertions, 14 deletions
diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index a2b737b8d..8cb0b89c7 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -100,10 +100,11 @@ <screen><userinput remap="make">make</userinput></screen> - <para>If using kernel modules, an <filename>/etc/modprobe.conf</filename> - file may be needed. Information pertaining to modules and kernel - configuration is located in <xref linkend="ch-scripts-udev"/> and in the - kernel documentation in the <filename + <para>If using kernel modules, module configuration in <filename + class="directory">/etc/modprobe.d</filename> may be required. + Information pertaining to modules and kernel configuration is + located in <xref linkend="ch-scripts-udev"/> and in the kernel + documentation in the <filename class="directory">linux-&linux-version;/Documentation</filename> directory. Also, <filename>modprobe.conf(5)</filename> may be of interest.</para> @@ -184,25 +185,26 @@ cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput></screen> <title>Configuring Linux Module Load Order</title> <indexterm zone="conf-modprobe"> - <primary sortas="e-/etc/modprobe.conf">/etc/modprobe.conf</primary> + <primary sortas="e-/etc/modprobe.d/usb.conf">/etc/modprobe.d/usb.conf</primary> </indexterm> - <para>The <filename>/etc/modprobe.conf</filename> file needs to be created - so that if the USB drivers (ehci_hcd, ohci_hcd and uhci_hcd) have been built - as modules, they will be loaded in the correct order; ehci_hcd needs to be - loaded prior to ohci_hcd and uhci_hcd in order to avoid a warning being - output at boot time.</para> + <para>The <filename>/etc/modprobe.d/usb.conf</filename> file needs to be + created so that if the USB drivers (ehci_hcd, ohci_hcd and uhci_hcd) have + been built as modules, they will be loaded in the correct order; ehci_hcd + needs to be loaded prior to ohci_hcd and uhci_hcd in order to avoid a + warning being output at boot time.</para> - <para>Create a new file <filename>/etc/modprobe.conf</filename> by running + <para>Create a new file <filename>/etc/modprobe.d/usb.conf</filename> by running the following:</para> -<screen><userinput>cat > /etc/modprobe.conf << "EOF" -<literal># Begin /etc/modprobe.conf +<screen><userinput>install -v -m755 /etc/modprobe.d +cat > /etc/modprobe.d/usb.conf << "EOF" +<literal># Begin /etc/modprobe.d/usb.conf install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true -# End /etc/modprobe.conf</literal> +# End /etc/modprobe.d/usb.conf</literal> EOF</userinput></screen> </sect2> |