Browse Source

Add creation of /etc/modprobe.conf to stop ohci_hcd & uhci_hcd from being loaded before ehci_hcd. Fixes #2280.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8876 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Matthew Burgess 16 years ago
parent
commit
200e4660ba
2 changed files with 34 additions and 0 deletions
  1. 7 0
      chapter01/changelog.xml
  2. 27 0
      chapter08/kernel.xml

+ 7 - 0
chapter01/changelog.xml

@@ -40,6 +40,13 @@
     <listitem>
       <para>2009-05-16</para>
       <itemizedlist>
+        <listitem>
+          <para>[matthew] - Add creation of
+          <filename>/etc/modprobe.conf</filename> to prevent ohci_hcd and
+          uhci_hcd modules being loaded before ehci_hcd, and thus avoid a
+          boot-time warning. Fixes
+          <ulink url="&lfs-ticket-root;2280">#2280</ulink>.</para>
+        </listitem>
         <listitem>
           <para>[matthew] - Upgrade to Udev-142. Fixes
           <ulink url="&lfs-ticket-root;2395">#2395</ulink>.</para>

+ 27 - 0
chapter08/kernel.xml

@@ -175,6 +175,33 @@ cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput></screen>
 
   </sect2>
 
+  <sect2 id="conf-modprobe" role="configuration">
+    <title>Configuring Linux Module Load Order</title>
+
+    <indexterm zone="conf-modprobe">
+      <primary sortas="e-/etc/modprobe.conf">/etc/modprobe.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>Create a new file <filename>/etc/modprobe.conf</filename> by running
+    the following:</para>
+
+<screen><userinput>cat &gt; /etc/modprobe.conf &lt;&lt; "EOF"
+<literal># Begin /etc/modprobe.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>
+EOF</userinput></screen>
+
+  </sect2>
+
   <sect2 id="contents-kernel" role="content">
     <title>Contents of Linux</title>