Changeset 9f0158c


Ignore:
Timestamp:
03/21/2006 04:04:33 PM (18 years ago)
Author:
Archaic <archaic@…>
Children:
6249eea
Parents:
6712c004
Message:

Updated the bootscripts. Removed references to hotplug and the
bootscripts udev patch. Removed reference to udevstart. Added
text and commands for generating Udev bug reports.

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/udev_update/BOOK@7443 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

Files:
8 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r6712c004 r9f0158c  
    3636    </listitem>
    3737-->
     38
     39    <listitem>
     40      <para>March 21, 2006</para>
     41      <itemizedlist>
     42        <listitem>
     43          <para>[archaic] - Updated the bootscripts. Removed references to
     44          hotplug and the bootscripts udev patch. Removed reference to
     45          udevstart. Added text and commands for generating Udev bug reports.
     46          </para>
     47        </listitem>
     48      </itemizedlist>
     49    </listitem>
    3850
    3951    <listitem>
  • chapter01/whatsnew.xml

    r6712c004 r9f0158c  
    107107      <para>Less &less-version;</para>
    108108    </listitem>
    109     <!--<listitem>
     109    <listitem>
    110110      <para>LFS-Bootscripts &lfs-bootscripts-version;</para>
    111     </listitem>-->
     111    </listitem>
    112112    <listitem>
    113113      <para>Libtool &libtool-version;</para>
     
    230230    </listitem>
    231231    <listitem>
    232       <para>&lfs-bootscripts-recent_udev-patch;</para>
    233     </listitem>
    234     <listitem>
    235232      <para>MAN-DB-&man-db-version;</para>
    236233    </listitem>
  • chapter03/patches.xml

    r6712c004 r9f0158c  
    132132
    133133    <varlistentry>
    134       <term>LFS Bootscripts Recent Udev Patch - 4 KB;</term>
    135       <listitem>
    136         <para><ulink url="&patches-root;&lfs-bootscripts-recent_udev-patch;"/></para>
    137       </listitem>   
    138     </varlistentry>
    139 
    140     <varlistentry>
    141134      <term>Inetutils GCC-4.x Fix Patch - 2 KB:</term>
    142135      <listitem>
  • chapter06/udev.xml

    r6712c004 r9f0158c  
    113113<screen><userinput>install -m644 -D -v docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen>
    114114
    115     <!-- Not for the LiveCD -->
    116     <!-- Edit Me -->
    117 
    118     <para>Run the <command>udevstart</command> program to create our full
    119     complement of device nodes.</para>
    120 
    121 <screen><userinput>/sbin/udevstart</userinput></screen>
     115    <important>
     116
     117      <para>When Udev is started by the LFS-Bootscripts, a replay of all kernel
     118      device events happens. These events tell Udev what devices exist.
     119      Sometimes the Udev bootscript doesn't wait long enough for
     120      <command>udevd</command> to process all of the replayed events and
     121      consequently the devices for those missed events are not created before the
     122      script exits. Since <command>udevd</command> is still running in the
     123      background, the devices will be created a few milliseconds later, but the
     124      next bootscript to run may require a device to exist before it has been
     125      created. To avoid such missed events, and to avoid hardcoding an overly
     126      long wait time, It is recommended that you run the following commands to
     127      aide the LFS development team in debugging these missed events and finding
     128      an acceptable solution more quickly.</para>
     129
     130      <para>First, create a simple C file:</para>
     131
     132<screen><userinput>cat &gt; bug.c &lt;&lt; EOF
     133/* Simple event recorder */
     134#define _GNU_SOURCE
     135#include &lt;sys/types.h&gt;
     136#include &lt;sys/stat.h&gt;
     137#include &lt;fcntl.h&gt;
     138#include &lt;unistd.h&gt;
     139#include &lt;stdlib.h&gt;
     140#include &lt;argz.h&gt;
     141int main(int argc, char * argv[])
     142{
     143  char * envz;
     144  size_t len;
     145  int bug;
     146  bug = open("/dev/bug", O_WRONLY | O_APPEND);
     147  if (bug == -1)
     148  return 0;
     149  setenv("_SEPARATOR", "--------------------------------------", 1);
     150  argz_create(environ, &amp;envz, &amp;len);
     151  argz_stringify(envz, len, '\n');
     152  envz[len-1]='\n';
     153  write(bug, envz, len);
     154  close(bug);
     155  free(envz);
     156  return 0;
     157}
     158EOF</userinput></screen>
     159
     160      <para>Now compile it:</para>
     161
     162<screen><userinput>gcc -o /lib/udev/bug bug.c</userinput></screen>
     163
     164      <para>The next step adds a simple logging rule to run this program.</para>
     165
     166<screen><userinput>cat &gt; /etc/udev/rules.d/90-bug.rules &lt;&lt; "EOF"
     167ACTION=="add", RUN+="bug"
     168EOF</userinput></screen>
     169
     170      <para>When booting the new LFS system, if any events are missed, a warning
     171      message will appear and a <filename>/dev/bugreport</filename> file will be
     172      created. The warning message will tell you where to send feedback.</para>
     173
     174    </important>
    122175
    123176  </sect2>
  • chapter07/bootscripts.xml

    r6712c004 r9f0158c  
    4444    <title>Installation of LFS-Bootscripts</title>
    4545
    46     <para>Prevent the hotplug bootscript from being installed, as the hotplug
    47       package is no longer installed.</para>
    48 
    49 <screen><userinput>sed -i '/hotplug/d' Makefile</userinput></screen>
    50 
    51     <para>Apply the following patch to allow the Udev bootscript to work with
    52     recent versions of Udev:</para>
    53 
    54 <screen><userinput>patch -Np1 -i ../&lfs-bootscripts-recent_udev-patch;</userinput></screen>
    55 
    5646    <para>Install the package:</para>
    5747
     
    6757
    6858      <seglistitem>
    69         <seg>checkfs, cleanfs, console, functions, halt, hotplug, ifdown, ifup,
     59        <seg>checkfs, cleanfs, console, functions, halt, ifdown, ifup,
    7060        localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals,
    7161        setclock, static, swap, sysklogd, template, and udev</seg>
     
    136126      </varlistentry>
    137127
    138       <varlistentry id="hotplug-bootscripts">
    139         <term><command>hotplug</command></term>
    140         <listitem>
    141           <para>Loads modules for system devices</para>
    142             <indexterm zone="ch-scripts-bootscripts hotplug-bootscripts">
    143           <primary sortas="d-hotplug">hotplug</primary>
    144           </indexterm>
    145         </listitem>
    146       </varlistentry>
    147 
    148128      <varlistentry id="ifdown-bootscripts">
    149129        <term><command>ifdown</command></term>
  • chapter08/kernel.xml

    r6712c004 r9f0158c  
    9999<screen><userinput>make</userinput></screen>
    100100
    101     <para>If using kernel modules, an <filename>/etc/modprobe.conf</filename> file
    102     may be needed. Information pertaining to modules and kernel configuration is
    103     located in the kernel documentation in the <filename
     101    <para>If using kernel modules, an <filename>/etc/modprobe.conf</filename>
     102    file may be needed. Information pertaining to modules and kernel
     103    configuration is located in <xref linkend="ch-scripts-udev"/> and in the
     104    kernel documentation in the <filename
    104105    class="directory">linux-&linux-version;/Documentation</filename> directory.
    105106    Also, <filename>modprobe.conf(5)</filename> may be of interest.</para>
    106 
    107     <para>Be very careful when reading other documentation relating to kernel
    108     modules because it usually applies to 2.4.x kernels only. As far as we know,
    109     kernel configuration issues specific to Hotplug and Udev are not documented.
    110     The problem is that Udev will create a device node only if Hotplug or a
    111     user-written script inserts the corresponding module into the kernel, and not
    112     all modules are detectable by Hotplug. Note that statements like the one below
    113     in the <filename>/etc/modprobe.conf</filename> file do not work with
    114     Udev:</para>
    115 
    116 <screen><literal>alias char-major-XXX some-module</literal></screen>
    117 
    118     <para>Because of the complications with Hotplug, Udev, and modules, we
    119     strongly recommend starting with a completely non-modular kernel
    120     configuration, especially if this is the first time using Udev.</para>
    121107
    122108    <para>Install the modules, if the kernel configuration uses them:</para>
  • general.ent

    r6712c004 r9f0158c  
    11<?xml version="1.0" encoding="ISO-8859-1"?>
    2 <!ENTITY version "udev_update-20060311">
    3 <!ENTITY releasedate "March 11, 2006">
     2<!ENTITY version "udev_update-20060321">
     3<!ENTITY releasedate "March 21, 2006">
    44<!ENTITY milestone "6.2">
    55<!ENTITY generic-version "udev_update"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
     
    5757<!ENTITY kbd-version "1.12">
    5858<!ENTITY less-version "394">
    59 <!ENTITY lfs-bootscripts-version "20051223">
     59<!ENTITY lfs-bootscripts-version "udev_update-20060315">
    6060<!ENTITY libtool-version "1.5.22">
    6161<!ENTITY linux-version "2.6.15.6">
  • patches.ent

    r6712c004 r9f0158c  
    3333<!ENTITY inetutils-man_pages-patch "inetutils-&inetutils-version;-no_server_man_pages-1.patch">
    3434
    35 <!ENTITY lfs-bootscripts-recent_udev-patch "lfs-bootscripts-&lfs-bootscripts-version;-recent_udev-1.patch">
    36 
    3735<!ENTITY linux-utf8-patch "linux-&linux-version;-utf8_input-1.patch">
    3836
Note: See TracChangeset for help on using the changeset viewer.