Changeset dc591b5
- Timestamp:
- 02/02/2006 10:28:08 PM (18 years ago)
- Children:
- 9e77cff
- Parents:
- 1b3de968
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r1b3de968 rdc591b5 40 40 <para>February 2, 2006</para> 41 41 <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> 42 48 <listitem> 43 49 <para>[matthew] - Remove the hotplug package and related bootscript -
chapter06/creatingdirs.xml
r1b3de968 rdc591b5 29 29 install -dv /var/{opt,cache,lib/{misc,locate},local} 30 30 install -dv /opt/{bin,doc,include,info} 31 install -dv /opt/{lib,man/man{1,2,3,4,5,6,7,8}}</userinput></screen> 31 install -dv /opt/{lib,man/man{1,2,3,4,5,6,7,8}} 32 install -dv /lib/udev/devices</userinput></screen> 32 33 33 34 <para>Directories are, by default, created with permission mode 755, -
chapter06/udev.xml
r1b3de968 rdc591b5 29 29 <title>Installation of Udev</title> 30 30 31 <para>Create some devices that Udev cannot handle due to them being required 32 very early in the boot process:</para> 33 34 <screen><userinput>ln -sv /proc/self/fd /lib/udev/devices/fd 35 ln -sv /proc/self/fd/0 /lib/udev/devices/stdin 36 ln -sv /proc/self/fd/1 /lib/udev/devices/stdout 37 ln -sv /proc/self/fd/2 /lib/udev/devices/stderr 38 ln -sv /proc/kcore /lib/udev/devices/core</userinput></screen> 39 31 40 <para>Compile the package:</para> 32 41 33 <screen><userinput>make EXTRAS=extras/run_directory</userinput></screen> 42 <screen><userinput>make \ 43 EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id extras/firmware extras/floppy extras/scsi_id extras/usb_id extras/volume_id"</userinput></screen> 34 44 35 45 <para>The meaning of the make option:</para> … … 37 47 <variablelist> 38 48 <varlistentry> 39 <term><parameter>EXTRAS=extras/run_directory</parameter> 40 </term> 49 <term><parameter>EXTRAS=...</parameter></term> 41 50 <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> 46 53 </listitem> 47 54 </varlistentry> … … 53 60 <para>Install the package:</para> 54 61 55 <screen><userinput>make DESTDIR=/ EXTRAS=extras/run_directory install</userinput></screen> 62 <screen><userinput>make DESTDIR=/ \ 63 EXTRAS="extras/ata_id extras/cdrom_id extras/edd_id extras/firmware extras/floppy extras/scsi_id extras/usb_id extras/volume_id" \ 64 install</userinput></screen> 56 65 57 66 <para>The meaning of the make option:</para> … … 75 84 <screen><userinput>cp -v ../&udev-config-file; /etc/udev/rules.d/25-lfs.rules</userinput></screen> 76 85 86 <para>Alter Udev's configuration file so that Udev can automatically load kernel 87 modules.</para> 88 89 <screen><userinput>sed -i 147,150d /etc/udev/rules.d/25-lfs.rules 90 cat >> /etc/udev/rules.d/25-lfs.rules << EOF 91 # Rules to allow hotplugging of devices with modular drivers 92 ACTION=="add", SUBSYSTEM=="usb", MODALIAS=="*", \ 93 RUN+="/sbin/modprobe $modalias" 94 ACTION=="add", SUBSYSTEM=="scsi", SYSFS{type}=="[07]", \ 95 RUN+="/sbin/modprobe sd_mod" 96 EOF</userinput></screen> 97 77 98 <para>Install the documentation that explains how to create Udev rules:</para> 78 99 … … 81 102 <!-- Not for the LiveCD --> 82 103 <!-- Edit Me --> 104 83 105 <para>Run the <command>udevstart</command> program to create our full 84 106 complement of device nodes.</para> … … 93 115 <segtitle>Installed programs</segtitle> 94 116 <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> 97 118 <seg>/etc/udev</seg></seglistitem> 98 119 </segmentedlist> … … 102 123 <?dbhtml list-presentation="table"?> 103 124 104 <varlistentry id="udev">105 <term><command>udev</command></term>106 <listitem>107 <para>Creates device nodes in <filename108 class="directory">/dev</filename> or renames network interfaces (not109 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 the117 <filename class="directory">/etc/dev.d/</filename> directory in response118 to hotplug events119 </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 the130 <filename class="directory">/etc/hotplug.d/</filename> directory in131 response to hotplug events132 </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 139 125 <varlistentry id="udevcontrol"> 140 126 <term><command>udevcontrol</command></term> … … 175 161 </listitem></varlistentry> 176 162 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 <filename188 class="directory">/dev</filename> that correspond to drivers compiled directly189 into the kernel; it performs that task by simulating hotplug events presumably190 dropped by the kernel before invocation of this program (e.g., because the root191 filesystem has not been mounted) and submitting such synthetic hotplug events192 to <command>udev</command></para>193 <indexterm zone="ch-system-udev udevstart"><primary sortas="b-udevstart">udevstart</primary></indexterm>194 </listitem>195 </varlistentry>196 197 163 <varlistentry id="udevtest"> 198 164 <term><command>udevtest</command></term> -
chapter07/bootscripts.xml
r1b3de968 rdc591b5 48 48 49 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> 50 55 51 56 <para>Install the package:</para> -
general.ent
r1b3de968 rdc591b5 84 84 <!ENTITY tcl-version "8.4.12"> 85 85 <!ENTITY texinfo-version "4.8"> 86 <!ENTITY udev-version "0 71">86 <!ENTITY udev-version "084"> 87 87 <!ENTITY udev-config-file "udev-config-5.rules"> 88 88 <!ENTITY util-linux-version "2.12r"> -
patches.ent
r1b3de968 rdc591b5 31 31 <!ENTITY inetutils-man_pages-patch "inetutils-&inetutils-version;-no_server_man_pages-1.patch"> 32 32 33 <!ENTITY lfs-bootscripts-recent_udev-patch "lfs-bootscripts-&lfs-bootscripts-version;-recent_udev-1.patch"> 34 33 35 <!ENTITY linux-utf8-patch "linux-&linux-version;-utf8_input-2.patch"> 34 36
Note:
See TracChangeset
for help on using the changeset viewer.