LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-29-2004, 08:20 AM   #1
Punkie
LQ Newbie
 
Registered: Apr 2003
Location: Montreal, Canada
Distribution: CLFS 1.0.0
Posts: 24

Rep: Reputation: 15
Learning to configure the kernel 2.6.x


I have a small problem configuring my kernel: I don't know what to write in the /etc/modprobe.conf file...

I am running "Linux from scratch" (http://www.linuxfromscratch.org/) - not a distribution per se, so I cannot just use the old file /etc/modules.conf (which also does not exist on my system, having built it by myself).

I have recently finished building the system, and I managed to compile a working kernel - and also upgraded to kernel 2.6.5. I installed the new version of module-init-tools.

I have looked at the documentation available with the 2.6.5 kernel, the old and new KERNEL HOWTO, the modprobe & modprobe.conf man pages, as well as various searches on the net regarding modprobe.conf, but I have not managed to find out how to write this file "from scratch", based on the hardware/options in the kernel I have. If anyone could help me by pointing out the documents to read, it would be great.

Hoping I didn't overlook any obvious documents and that I won't get killed because of my choice in "distro".
 
Old 04-29-2004, 08:28 AM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
A script called "generate-modprobe.conf" should be included in module-init-tools
 
Old 04-29-2004, 08:44 AM   #3
Punkie
LQ Newbie
 
Registered: Apr 2003
Location: Montreal, Canada
Distribution: CLFS 1.0.0
Posts: 24

Original Poster
Rep: Reputation: 15
Yes, that script takes the /etc/modules.conf and rewrites it to the new format of the /etc/modprobe.conf. Since I don't have any of these files the script doesn't work for me.
 
Old 04-29-2004, 09:10 AM   #4
Punkie
LQ Newbie
 
Registered: Apr 2003
Location: Montreal, Canada
Distribution: CLFS 1.0.0
Posts: 24

Original Poster
Rep: Reputation: 15
Seeing how many people look at the topic made me think maybe I should post the guides I have used:

KERNEL-HOWTO (the old version - and the link here presents a not so readable version, but I cannot find any other version. Look on your hard drive for the same file, some distributions used to install them)
http://cvsview.tldp.org/index.cgi/LD...viewcvs-markup

An updated verion of the Kernel HOWTO.
http://www.digitalhermit.com/~kwan/kernel.html
 
Old 04-29-2004, 03:46 PM   #5
Punkie
LQ Newbie
 
Registered: Apr 2003
Location: Montreal, Canada
Distribution: CLFS 1.0.0
Posts: 24

Original Poster
Rep: Reputation: 15
...I'm still looking for an answer....
 
Old 04-29-2004, 04:43 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Well it may not be the answer you're looking for but what I do is avoid the problem entirely by not building any modules. If I need the kernel to do something I build it into the kernel and if I don't need it I don't build it. I still have to use one module though as I have an Nvidia graphics card and the driver for that is a module so my /etc/modprobe.conf has one line.
alias char-major-195* nvidia
I used to build the Alsa drivers separately as the kernel modules used to be worse than the user space ones But I think they improved a lot in the 2.6.5 kernel and I can't hear the difference now, so they get built into the kernel as well now.
I think modules are useful for distributions that need the kernel to be able to run on any machine. It allows them to compile every feature in without making the kernel unfeasibly huge and then they can just call the modules they need at run time.
 
Old 05-18-2004, 07:16 PM   #7
refowe
LQ Newbie
 
Registered: May 2004
Posts: 2

Rep: Reputation: 0
http://www.linuxquestions.org/questi...014#post941014
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure kernel 2.6.12.5 damoncf Debian 1 08-25-2005 12:44 PM
Learning to configure the kernel 2.6.x Punkie Linux From Scratch 1 05-02-2004 08:43 AM
How do I configure Kernel Lordendu Linux - Newbie 1 09-25-2003 09:18 AM
Can I use the configure file from the last kernel on the new kernel? Pcghost Linux - General 6 07-15-2003 05:15 PM
Compiling/Learning the kernel drewski Linux - General 3 05-13-2003 04:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration