Changeset 9f0158c
- Timestamp:
- 03/21/2006 04:04:33 PM (18 years ago)
- Children:
- 6249eea
- Parents:
- 6712c004
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r6712c004 r9f0158c 36 36 </listitem> 37 37 --> 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> 38 50 39 51 <listitem> -
chapter01/whatsnew.xml
r6712c004 r9f0158c 107 107 <para>Less &less-version;</para> 108 108 </listitem> 109 < !--<listitem>109 <listitem> 110 110 <para>LFS-Bootscripts &lfs-bootscripts-version;</para> 111 </listitem> -->111 </listitem> 112 112 <listitem> 113 113 <para>Libtool &libtool-version;</para> … … 230 230 </listitem> 231 231 <listitem> 232 <para>&lfs-bootscripts-recent_udev-patch;</para>233 </listitem>234 <listitem>235 232 <para>MAN-DB-&man-db-version;</para> 236 233 </listitem> -
chapter03/patches.xml
r6712c004 r9f0158c 132 132 133 133 <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>141 134 <term>Inetutils GCC-4.x Fix Patch - 2 KB:</term> 142 135 <listitem> -
chapter06/udev.xml
r6712c004 r9f0158c 113 113 <screen><userinput>install -m644 -D -v docs/writing_udev_rules/index.html /usr/share/doc/udev-&udev-version;/index.html</userinput></screen> 114 114 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 > bug.c << EOF 133 /* Simple event recorder */ 134 #define _GNU_SOURCE 135 #include <sys/types.h> 136 #include <sys/stat.h> 137 #include <fcntl.h> 138 #include <unistd.h> 139 #include <stdlib.h> 140 #include <argz.h> 141 int 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, &envz, &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 } 158 EOF</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 > /etc/udev/rules.d/90-bug.rules << "EOF" 167 ACTION=="add", RUN+="bug" 168 EOF</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> 122 175 123 176 </sect2> -
chapter07/bootscripts.xml
r6712c004 r9f0158c 44 44 <title>Installation of LFS-Bootscripts</title> 45 45 46 <para>Prevent the hotplug bootscript from being installed, as the hotplug47 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 with52 recent versions of Udev:</para>53 54 <screen><userinput>patch -Np1 -i ../&lfs-bootscripts-recent_udev-patch;</userinput></screen>55 56 46 <para>Install the package:</para> 57 47 … … 67 57 68 58 <seglistitem> 69 <seg>checkfs, cleanfs, console, functions, halt, hotplug,ifdown, ifup,59 <seg>checkfs, cleanfs, console, functions, halt, ifdown, ifup, 70 60 localnet, mountfs, mountkernfs, network, rc, reboot, sendsignals, 71 61 setclock, static, swap, sysklogd, template, and udev</seg> … … 136 126 </varlistentry> 137 127 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 148 128 <varlistentry id="ifdown-bootscripts"> 149 129 <term><command>ifdown</command></term> -
chapter08/kernel.xml
r6712c004 r9f0158c 99 99 <screen><userinput>make</userinput></screen> 100 100 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 104 105 class="directory">linux-&linux-version;/Documentation</filename> directory. 105 106 Also, <filename>modprobe.conf(5)</filename> may be of interest.</para> 106 107 <para>Be very careful when reading other documentation relating to kernel108 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 a111 user-written script inserts the corresponding module into the kernel, and not112 all modules are detectable by Hotplug. Note that statements like the one below113 in the <filename>/etc/modprobe.conf</filename> file do not work with114 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, we119 strongly recommend starting with a completely non-modular kernel120 configuration, especially if this is the first time using Udev.</para>121 107 122 108 <para>Install the modules, if the kernel configuration uses them:</para> -
general.ent
r6712c004 r9f0158c 1 1 <?xml version="1.0" encoding="ISO-8859-1"?> 2 <!ENTITY version "udev_update-200603 11">3 <!ENTITY releasedate "March 11, 2006">2 <!ENTITY version "udev_update-20060321"> 3 <!ENTITY releasedate "March 21, 2006"> 4 4 <!ENTITY milestone "6.2"> 5 5 <!ENTITY generic-version "udev_update"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> … … 57 57 <!ENTITY kbd-version "1.12"> 58 58 <!ENTITY less-version "394"> 59 <!ENTITY lfs-bootscripts-version " 20051223">59 <!ENTITY lfs-bootscripts-version "udev_update-20060315"> 60 60 <!ENTITY libtool-version "1.5.22"> 61 61 <!ENTITY linux-version "2.6.15.6"> -
patches.ent
r6712c004 r9f0158c 33 33 <!ENTITY inetutils-man_pages-patch "inetutils-&inetutils-version;-no_server_man_pages-1.patch"> 34 34 35 <!ENTITY lfs-bootscripts-recent_udev-patch "lfs-bootscripts-&lfs-bootscripts-version;-recent_udev-1.patch">36 37 35 <!ENTITY linux-utf8-patch "linux-&linux-version;-utf8_input-1.patch"> 38 36
Note:
See TracChangeset
for help on using the changeset viewer.