LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-24-2004, 01:02 PM   #1
romasport
LQ Newbie
 
Registered: Sep 2003
Location: Campinas, Brasil
Posts: 9

Rep: Reputation: 0
Unhappy Select some modules in the kernel!


Well, suppose you have a customized kernel... everything is workig perfectly. Now you want to add some modules on it. You could do a "make menuconfig" (I guess all the settings you have chosen will be there) and just add those new modules... do a make modules and make mdules_install, am I right?
My problem is... I did not save a .config. If I have to do this (in this case, add the gamecon and joydev modules... and enable parallel port support), I need to reconfigure my kernel from scratch???
I'm a newbie and I would like to solve it with the easiest solution (if there is one!)

Thanx in advance!


Romeu
 
Old 05-24-2004, 03:03 PM   #2
AutOPSY
Member
 
Registered: Mar 2004
Location: US
Distribution: Redhat 9 - Linux 2.6.3
Posts: 836

Rep: Reputation: 31
Use insmod.
insmod inserts modules into an already running kernel.

To also load these modules at startup, you need the neccessary information in /etc/modules.conf
I belive, check those out.

vi /etc/modules.conf
man insmod
 
Old 05-24-2004, 04:03 PM   #3
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
romasport

I think what you are saying is you now need modules that were not originally compiled ?

Unless you have deliberately deleted the .config file it should be there

In my case it's in /usr/src/linux-2.4.22, don't forget that the "." makes the file hidden so if you are using the command line to view the contents of the directory use ls -a

Hope this helps

Pete
 
Old 05-25-2004, 06:48 AM   #4
romasport
LQ Newbie
 
Registered: Sep 2003
Location: Campinas, Brasil
Posts: 9

Original Poster
Rep: Reputation: 0
That is the point...

Yes Pete M, you are right.... Somehow, when I have downloaded another kernel source, I removed the correct .config.
I tough that, maybe, a easier solution would be go direct to the module source and compile it. But have no idea how to do it. And I also have to enabl the parallel port. I guess I have no other choice but modify my kernel again from scratch... "sic"


Roma
 
Old 05-25-2004, 12:05 PM   #5
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
romasport

If I where you I would leave your running Kernel as is and download a new source to work on

If you want to end up with the same kernel release, what I mean by that is say you have 2.4.22 currently working and you download and compile another 2.4.22, if you open the Makefile in a text editor such as vi right at the top there is an option "EXTRAVERSION =" add there something like "EXTRAVERSION = romasport" your new kernel when compiled will become "2.4.22 romasport" this way you won't get confused which is which and you will still have a working kernel to fall back on

Hope that makes sense

Good luck

Pete
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I select which kernel the server boots with? grub.conf? abefroman SUSE / openSUSE 3 06-20-2005 02:56 PM
2.6 kernel will only boot when I select it with LILO foamrotreturns Linux - Newbie 4 11-29-2004 11:18 AM
Kernel Modules and modules.conf init Linux - General 0 02-20-2004 06:51 PM
new kernel (2.4.22 up from 2.4.20-6) - missing modules - use old modules? Simon Bridge Linux - Software 1 02-04-2004 05:52 AM
can't select reiserfs during kernel configuration paavaka Linux - General 2 10-15-2001 04:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:21 PM.

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