Changeset dc591b5


Ignore:
Timestamp:
02/02/2006 10:28:08 PM (18 years ago)
Author:
Matthew Burgess <matthew@…>
Children:
9e77cff
Parents:
1b3de968
Message:

Upgrade to Udev-084

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

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • chapter01/changelog.xml

    r1b3de968 rdc591b5  
    4040      <para>February 2, 2006</para>
    4141      <itemizedlist>
     42        <listitem>
     43          <para>[matthew] - Upgrade to Udev-084 and build all its extras to
     44          enable custom rules to be written more easily.  Also, change the
     45          rules file to handle kernel module loading and patch the udev
     46          bootscript to work with this version of udev.</para>
     47        </listitem>
    4248        <listitem>
    4349          <para>[matthew] - Remove the hotplug package and related bootscript
  • chapter06/creatingdirs.xml

    r1b3de968 rdc591b5  
    2929install -dv /var/{opt,cache,lib/{misc,locate},local}
    3030install -dv /opt/{bin,doc,include,info}
    31 install -dv /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen>
     31install -dv /opt/{lib,man/man{1,2,3,4,5,6,7,8}}
     32install -dv /lib/udev/devices</userinput></screen>
    3233
    3334<para>Directories are, by default, created with permission mode 755,
  • chapter06/udev.xml

    r1b3de968 rdc591b5  
    2929<title>Installation of Udev</title>
    3030
     31<para>Create some devices that Udev cannot handle due to them being required
     32very early in the boot process:</para>
     33
     34<screen><userinput>ln -sv /proc/self/fd /lib/udev/devices/fd
     35ln -sv /proc/self/fd/0 /lib/udev/devices/stdin
     36ln -sv /proc/self/fd/1 /lib/udev/devices/stdout
     37ln -sv /proc/self/fd/2 /lib/udev/devices/stderr
     38ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen>
     39
    3140<para>Compile the package:</para>
    3241
    33 <screen><userinput>make EXTRAS=extras/run_directory</userinput></screen>
     42<screen><userinput>make \
     43EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id extras/firmware extras/floppy extras/scsi_id extras/usb_id extras/volume_id"</userinput></screen>
    3444
    3545<para>The meaning of the make option:</para>
     
    3747<variablelist>
    3848  <varlistentry>
    39     <term><parameter>EXTRAS=extras/run_directory</parameter>
    40     </term>
     49    <term><parameter>EXTRAS=...</parameter></term>
    4150    <listitem>
    42       <para>This builds the <command>udev_run_devd</command> and
    43         <command>udev_run_hotplugd</command> binaries, which are required for
    44         correct handling of hotpluggable devices.
    45       </para>
     51      <para>This builds several helper binaries that can aid in writing custom
     52      Udev rules.</para>
    4653    </listitem>
    4754  </varlistentry>
     
    5360<para>Install the package:</para>
    5461
    55 <screen><userinput>make DESTDIR=/ EXTRAS=extras/run_directory install</userinput></screen>
     62<screen><userinput>make DESTDIR=/ \
     63EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id extras/firmware extras/floppy extras/scsi_id extras/usb_id extras/volume_id" \
     64install</userinput></screen>
    5665
    5766<para>The meaning of the make option:</para>
     
    7584<screen><userinput>cp -v ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen>
    7685
     86<para>Alter Udev's configuration file so that Udev can automatically load kernel
     87modules.</para>
     88
     89<screen><userinput>sed -i 147,150d /etc/udev/rules.d/25-lfs.rules
     90cat &gt;&gt; /etc/udev/rules.d/25-lfs.rules &lt;&lt; EOF
     91# Rules to allow hotplugging of devices with modular drivers
     92ACTION=="add", SUBSYSTEM=="usb", MODALIAS=="*", \
     93   RUN+="/sbin/modprobe $modalias"
     94ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", \
     95   RUN+="/sbin/modprobe sd_mod"
     96EOF</userinput></screen>
     97
    7798<para>Install the documentation that explains how to create Udev rules:</para>
    7899
     
    81102<!-- Not for the LiveCD -->
    82103<!-- Edit Me -->
     104
    83105<para>Run the <command>udevstart</command> program to create our full
    84106complement of device nodes.</para>
     
    93115<segtitle>Installed programs</segtitle>
    94116<segtitle>Installed directory</segtitle>
    95 <seglistitem><seg>udev, udev_run_devd, udev_run_hotplugd, udevcontrol, udevd,
    96 udevinfo, udevmonitor, udevsend, udevstart, and udevtest</seg>
     117<seglistitem><seg>udevcontrol, udevd, udevinfo, udevmonitor, and udevtest</seg>
    97118<seg>/etc/udev</seg></seglistitem>
    98119</segmentedlist>
     
    102123<?dbhtml list-presentation="table"?>
    103124                                                                               
    104 <varlistentry id="udev">
    105 <term><command>udev</command></term>
    106 <listitem>
    107 <para>Creates device nodes in <filename
    108 class="directory">/dev</filename> or renames network interfaces (not
    109 in LFS) in response to hotplug events</para>
    110 <indexterm zone="ch-system-udev udev"><primary sortas="b-udev">udev</primary></indexterm>
    111 </listitem></varlistentry>
    112 
    113 <varlistentry id="udev_run_devd">
    114   <term><command>udev_run_devd</command></term>
    115   <listitem>
    116     <para>Executes programs and scripts in the
    117       <filename class="directory">/etc/dev.d/</filename> directory in response
    118       to hotplug events
    119     </para>
    120     <indexterm zone="ch-system-udev udev_run_devd">
    121       <primary sortas="b-udev_run_devd">udev_run_devd</primary>
    122     </indexterm>
    123   </listitem>
    124 </varlistentry>
    125 
    126 <varlistentry id="udev_run_hotplugd">
    127   <term><command>udev_run_hotplugd</command></term>
    128   <listitem>
    129     <para>Executes programs and scripts in the
    130       <filename class="directory">/etc/hotplug.d/</filename> directory in
    131       response to hotplug events
    132     </para>
    133     <indexterm zone="ch-system-udev udev_run_hotplugd">
    134       <primary sortas="b-udev_run_hotplugd">udev_run_hotplugd</primary>
    135     </indexterm>
    136   </listitem>
    137 </varlistentry>
    138 
    139125<varlistentry id="udevcontrol">
    140126<term><command>udevcontrol</command></term>
     
    175161</listitem></varlistentry>
    176162
    177 <varlistentry id="udevsend">
    178 <term><command>udevsend</command></term>
    179 <listitem>
    180 <para>Delivers hotplug events to <command>udevd</command></para>
    181 <indexterm zone="ch-system-udev udevsend"><primary sortas="b-udevsend">udevsend</primary></indexterm>
    182 </listitem></varlistentry>
    183 
    184 <varlistentry id="udevstart">
    185 <term><command>udevstart</command></term>
    186 <listitem>
    187 <para>Creates device nodes in <filename
    188 class="directory">/dev</filename> that correspond to drivers compiled directly
    189 into the kernel; it performs that task by simulating hotplug events presumably
    190 dropped by the kernel before invocation of this program (e.g., because the root
    191 filesystem has not been mounted) and submitting such synthetic hotplug events
    192 to <command>udev</command></para>
    193 <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>
    194 </listitem>
    195 </varlistentry>
    196 
    197163<varlistentry id="udevtest">
    198164<term><command>udevtest</command></term>
  • chapter07/bootscripts.xml

    r1b3de968 rdc591b5  
    4848
    4949<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>
    5055
    5156    <para>Install the package:</para>
  • general.ent

    r1b3de968 rdc591b5  
    8484<!ENTITY tcl-version "8.4.12">
    8585<!ENTITY texinfo-version "4.8">
    86 <!ENTITY udev-version "071">
     86<!ENTITY udev-version "084">
    8787<!ENTITY udev-config-file "udev-config-5.rules">
    8888<!ENTITY util-linux-version "2.12r">
  • patches.ent

    r1b3de968 rdc591b5  
    3131<!ENTITY inetutils-man_pages-patch "inetutils-&inetutils-version;-no_server_man_pages-1.patch">
    3232
     33<!ENTITY lfs-bootscripts-recent_udev-patch "lfs-bootscripts-&lfs-bootscripts-version;-recent_udev-1.patch">
     34
    3335<!ENTITY linux-utf8-patch "linux-&linux-version;-utf8_input-2.patch">
    3436
Note: See TracChangeset for help on using the changeset viewer.