From a56c4bb4ed1f624285acc639cb4967c81883d567 Mon Sep 17 00:00:00 2001 From: "Alexander E. Patrakov" Date: Sat, 29 May 2004 15:11:32 +0000 Subject: Several kernel-related textual changes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3722 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 10 ++++++++++ chapter07/console.xml | 8 +++++--- chapter08/fstab.xml | 11 +++++------ chapter08/kernel.xml | 34 +++++++++++++++++++++++++++------- general.ent | 4 ++-- 5 files changed, 49 insertions(+), 18 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 3933c3a62..b235f02ea 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -102,6 +102,16 @@ first a summary, then a detailed log. +May 29, 2004 [alexander]: Mentioned the hotplug+udev+modules +problem. Removed the effectively dead link to the Kernel +HOWTO. + +May 29, 2004 [alexander]: Corrected usbfs line in +/etc/fstab. + +May 29, 2004 [alexander]: New LFS bootscripts already come +with the /etc/sysconfig/console file. Corrected the text. + May 25, 2004 [jeremy]: Chapter 6 - Upgraded psmisc to 21.5. diff --git a/chapter07/console.xml b/chapter07/console.xml index 837f335dd..c61bfc7db 100644 --- a/chapter07/console.xml +++ b/chapter07/console.xml @@ -22,10 +22,12 @@ the console initscript will do nothing. /etc/sysconfig/console as a configuration file. You need to decide which keymap and screen font you will use. The language-specific HOWTO can help you. -In the future releases of LFS-Bootscripts, there will be a pre-made +A pre-made /etc/sysconfig/console file with known -good settings for several countries, and you will just have to uncomment -the relevant section. +good settings for several countries was installed with the LFS-Bootscripts +package, and you just have to uncomment +the relevant section if your country is supported (but read the rest +of this section anyway). If still in doubt, look into /usr/share/kbd for valid keymaps and screen fonts. Then read the loadkeys diff --git a/chapter08/fstab.xml b/chapter08/fstab.xml index 812508335..5b706eee4 100644 --- a/chapter08/fstab.xml +++ b/chapter08/fstab.xml @@ -25,7 +25,6 @@ proc /proc proc defaults 0 0 sysfs /sys sysfs defaults 0 0 devpts /dev/pts devpts gid=4,mode=620 0 0 shm /dev/shm tmpfs defaults 0 0 -usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 # End /etc/fstab EOF @@ -33,8 +32,7 @@ usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 and fff with the values appropriate for your system -- for example hda2, hda5 and reiserfs. For all the details on the six fields in this -table, see man 5 fstab. Omit the usbfs line if you didn't -compile "USB device filesystem" into the kernel. +table, see man 5 fstab. When using a reiserfs partition, the 1 1 at the end of the line should be replaced with 0 0, as such a @@ -53,9 +51,10 @@ tree. fstab file. One example is a line to use if you intend to use USB devices: -usbfs /proc/bus/usb usbfs defaults 0 0 + usbfs /proc/bus/usb usbfs devgid=14,devmode=0660 0 0 -This option will of course only work if you have the relevant support -compiled into your kernel. +This option will of course only work if you have the +"Support for Host-side USB" and "USB device filesystem" +compiled into your kernel (not as a module). diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 6c5123ee0..41f658c04 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -64,8 +64,9 @@ scratch. the File systems menu and is normally enabled by default. LFS bootscripts make the assumption that you either compile -"USB device filesystem" directly into the kernel, or don't compile it at -all. They will not work properly if it is a module (usbcore.ko). +both "Support for Host-side USB" and +"USB device filesystem" directly into the kernel, or don't compile them at +all. Bootscripts will not work properly if it is a module (usbcore.ko). NPTL requires the kernel to be compiled with GCC 3.x, in this case &gcc-version;. Compiling with 2.95.x is known to cause failures in the glibc @@ -76,16 +77,35 @@ unless you know what you're getting yourself into. make -If you intend to use kernel modules, you will need an +If you intend to use kernel modules, you may need an /etc/modprobe.conf file. Information pertaining to modules and to kernel configuration in general may be found in the kernel documentation, which is found in the -linux-&linux-version;/Documentation directory. The -modules.conf man page and the kernel HOWTO at - may also be of +linux-&linux-version;/Documentation directory. +The +modprobe.conf man page + +may also be of interest to you. -Install the modules: +Be very suspicious while reading other documentation, because it +usually applies to 2.4.x kernels only. As far as the editors know, kernel +configuration issues specific to Hotplug and Udev +are documented nowhere. The problem is that Udev will create a device node +only if Hotplug or a user-written script inserts the corresponding module +into the kernel, and not all modules are detectable by Hotplug. Note +that statements like +alias char-major-XXX some-module +in /etc/modprobe.conf file don't work with +Udev, and other aliases are often unnecessary with Hotplug. + +Because of all those compilcations with Hotplug, Udev and modules, we +strongly recommend you to start with a completely non-modular kernel +configuration, especially if this is the first time you use Udev. + +Install the modules, if your kernel configuration uses them: make modules_install diff --git a/general.ent b/general.ent index f83bb6f58..a26c05c92 100644 --- a/general.ent +++ b/general.ent @@ -1,6 +1,6 @@ - - + + -- cgit v1.2.3-54-g00ecf