Skip to contentSkip to conversation

Documentation

DISCUSSION Alexander E. Patrakov 3 participants 3 messages May 27, 2004 – Jun 2, 2004

lore
Share & tools
lore
#0 lore raw

In the Linux From Scratch (LFS) support mailing list a question has been
asked: why can't hotplug load the "snd-pcm-oss" module automatically despite the fact that the Creative Live! soundcard is found and the "snd-emu10k1" module is loaded automatically for it. I answered this question, but another point has been raised there that should be really discussed here.

Namely, the problem is that the recommendations on building Linux kernel and writing /etc/modules.conf (or modprobe.conf) file that predate adoption of Hotplug are now wrong, invalid and even harmful. Since Hotplug and Udev will be probably included in the next version of LFS, and even experienced developers cannot build a trouble-free kernel for use with Hotplug and Udev on their first attempt, we expect a sharp increase of support questions per day in our list.

I could not find any up-to-date "good practice" documents upon building the kernel that work well with Hotplug and Udev. E.g., it is mentioned nowhere that if a character or block device driver is built as a module, then it will not be loaded automatically. Yes, that is in the Udev FAQ, but in the wrong form: you state that it is not the task of Udev to load modules (it is a negative statement), and I need an URL with some positive recommendations how to load modules and to avoid various chicken-and-egg problems. The snd-pcm-oss problem is also documented nowhere. (is there any comprehensive list of such undetectable modules?)

Could you please post link here to some good (possibly even "official") up-to-date and newbie-proof list of good kernel building practices? The discussion of modprobe.conf will be also very nice. I will be glad to put that link into the LFS book, thus avoiding repeated support questions.

If such document is not written yet, we should collaborate and write it.

Signature · 12 lines
Alexander E. Patrakov


-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
#1 lore raw
Quoted 7 lines · Alexander E. Patrakov

Could you please post link here to some good (possibly even "official") up-to-date and newbie-proof list of good kernel building practices? The discussion of modprobe.conf will be also very nice. I will be glad to put that link into the LFS book, thus avoiding repeated support questions.

If such document is not written yet, we should collaborate and write it.

I do not know of such a document yet, sorry.

thanks,

greg k-h

-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#2 lore raw
In reply to Alexander E. Patrakov
Quoted 30 lines · Alexander E. Patrakov

Date: Thu, 27 May 2004 19:12:23 +0600
From: Alexander E. Patrakov <[email protected]>
To: [email protected]
Subject: Documentation

In the Linux From Scratch (LFS) support mailing list a question has been
asked: why can't hotplug load the "snd-pcm-oss" module automatically despite the fact that the Creative Live! soundcard is found and the "snd-emu10k1" module is loaded automatically for it. I answered this question, but another point has been raised there that should be really discussed here.

Namely, the problem is that the recommendations on building Linux kernel and writing /etc/modules.conf (or modprobe.conf) file that predate adoption of Hotplug are now wrong, invalid and even harmful. Since Hotplug and Udev will be probably included in the next version of LFS, and even experienced developers cannot build a trouble-free kernel for use with Hotplug and Udev on their first attempt, we expect a sharp increase of support questions per day in our list.

I could not find any up-to-date "good practice" documents upon building the kernel that work well with Hotplug and Udev. E.g., it is mentioned nowhere that if a character or block device driver is built as a module, then it will not be loaded automatically. Yes, that is in the Udev FAQ, but in the wrong form: you state that it is not the task of Udev to load modules (it is a negative statement), and I need an URL with some positive recommendations how to load modules and to avoid various chicken-and-egg problems. The snd-pcm-oss problem is also documented nowhere. (is there any comprehensive list of such undetectable modules?)

Quoted 8 lines

Could you please post link here to some good (possibly even "official") up-to-date and newbie-proof list of good kernel building practices? The discussion of modprobe.conf will be also very nice. I will be glad to put that link into the LFS book, thus avoiding repeated support questions.

If such document is not written yet, we should collaborate and write it.

Dear Alexander

I do not have what you are looking for, but some notes I have made on use of udev for hotplugging flash memory devices and cd writing. In Linux-2.6 the kernel configuration for achieving these things are much simpler than for the 2.4 kernel. CD writing with the new kernel is so simple that the existing HOWTO (also included in Beyond LFS) is hopelessly outdated. Would you be able to use these notes, and would someone else in the LFS team be interested?

Kind regards

Niko Sauer
______________________
Unit of Advanced Study
University of Pretoria
Pretoria 0002
South Africa

Tel: [27][12] 420 3558
Fax: [27][12] 420 3904

-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X. From Windows to Linux, servers to mobile, InstallShield X is the one installation-authoring solution that does it all. Learn more and evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel