- Timestamp:
- 02/02/2006 10:28:08 PM (19 years ago)
- Children:
- 9e77cff
- Parents:
- 1b3de968
- Location:
- chapter06
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
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>
Note:
See TracChangeset
for help on using the changeset viewer.