LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 05-15-2007, 01:23 PM   #1
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Rep: Reputation: Disabled
custom compiled kernel 2.6.21.1 and rc.modules


Im having trouble

After compiling and installing kernel everything works nicely, but theres no modules loaded, what happens is when i log in as non root theres no module loaded, but then i go for instance iptables -L then that modules are loaded,

however im concerned about rc.modules, after installed custom kernel theres no rc.modules-2.6.21.1?
so my question is how do i load all modules in my customized kernel?

what steps are necessary?

Thanks guys!
 
Old 05-15-2007, 01:42 PM   #2
ak-87
Member
 
Registered: Apr 2005
Posts: 68

Rep: Reputation: 15
Well, I think that there should't be rc.modules created for your custom kernel. If you have installed Slack with test26 or huge26 kernel, then you should only link rc.modules with those kernel rc.modules. I.E.

Code:
#ln -s /etc/rc.d/rc.modules-generic-2.6.18 /etc/rc.d/rc.modules
Edit then rc.modules and uncomment lines for the modules you want to load or add new lines(in case there is no line that loads your module). Make rc.modules executable, and that's it.

Code:
#chmod +x /etc/rc.d/rc.modules

Last edited by ak-87; 05-15-2007 at 01:43 PM.
 
Old 05-15-2007, 01:44 PM   #3
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
did you install the modules? you know, the ones you did compile earlier...

please run
Quote:
uname -a
and
Quote:
du -sh /lib/modules/
a missing rc.modules is no excuse for no kernel modules
 
Old 05-15-2007, 03:30 PM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Did you run make modules_install when compiling a kernel?
 
Old 05-15-2007, 04:04 PM   #5
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
yes i installed modules of course.

uname -a reveals:

Linux parade 2.6.21.1 #1 Tue May 15 22:24:19 CEST 2007 i686 pentium4 i386 GNU/Linux


du -sh /lib/modules/
64M /lib/modules/

steps that i preformed are :

1. make menuconfig
2. make
3. make modules_install
4. cp /arch/i386/boot/bzImage /boot/vmlinuz-2.6.21.1
5. cp System.map /boot/System.map-2.6.21.1
6. cp .config /boot/config-2.6.21.1
7. cd /boot
8. ln -sf System.map-2.6.21.1 System.map
9. ln -sf config-2.6.21.1 config
10. ln -sf vmlinuz-2.6.21.1 vmlinuz
11. mkinitrd -c -k vmlinuz-2.6.21.1
12. in /etc/lilo.conf i added line initrd = /boot/initrd.gz
13. /sbin/lilo
14 init 6

thats all

p.s note that in /etc/rc.d/rc.modules are symlinked now to rc.modules-2.6.18

What should i do next?/what did i miss ?

Thanks guys!
 
Old 05-15-2007, 04:30 PM   #6
erklaerbaer
Member
 
Registered: Mar 2006
Posts: 381

Rep: Reputation: 30
so this got to be something stupid..

how do you check, wether modules are loaded? lsmod?
did you compile in the pseudo filesystems?

double check your kernel configuration.
 
Old 05-15-2007, 04:48 PM   #7
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
yes im checking wether modules are loaded with lsmod
for instance when i log in none modules are loaded with lsmod
then when i enter iptables -L
and then when i check lsmod heres what i get

Module Size Used by
iptable_filter 3204 0
ip_tables 12504 1 iptable_filter
x_tables 14724 1 ip_tables

everything in pseudofilesystems is checked , xcept the last entry there is modularized.

thats why im here to let me know what im missing on what should i be checking.

Thanks!
 
Old 05-15-2007, 05:01 PM   #8
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Can you load modules manually using modprobe?

You can add some text into rc.modules which should be written to a text file (like a log) to check if rc.modules file is being processed.
 
Old 05-16-2007, 05:37 AM   #9
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
yes ive tried that when i create rc.modules and enter some modules in it loads nicely, but then does it mean that i have to create rc.modules manually or modules wont get loaded ?

Or it should load them without rc.modules ?

However is there a script out there that i can see and that can get all neccessary modules loaded up for customized kernel?

I have also tried to install 2.6.21.1 from slackware and load modules, but then vfs mount error occurs?

and i also created initrd for it... where could be problem?

Thanks guys!
 
Old 05-16-2007, 06:57 AM   #10
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,897

Rep: Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322Reputation: 1322
rc.S:
Quote:
# Priority is given first to a script named "rc.modules.local", then
# to "rc.modules-$FULL_KERNEL_VERSION", and finally to the plain "rc.modules".
# Note that if /etc/rc.d/rc.modules.local is found, then that will be the ONLY
# rc.modules script the machine will run, so make sure it has everything in
# it that you need.
Since rc.modules is called from rc.S, take a look in /etc/rc.d to see if you have an empty or wrong rc.modules.local.
 
Old 05-16-2007, 07:03 AM   #11
General Failure
Member
 
Registered: Jan 2007
Location: Germany
Distribution: Slackware 13.37
Posts: 384

Rep: Reputation: 34
Quote:
Originally Posted by matters
However is there a script out there that i can see and that can get all neccessary modules loaded up for customized kernel?
Greg Kroah has such a script in his Kernel in a Nutshell book. You can find it here. The script is in chapter 7.

It tells you every module you need for your hardware. You could use that to create a custom rc.modules.
 
Old 05-16-2007, 09:55 AM   #12
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Check if rc.modules are executable and add your modules because rc.modules are loaded during this script. If you do not have such script, that's your problem you don't get any modules after boot.
 
Old 05-17-2007, 07:19 AM   #13
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
thanks all for the reply,

@general failure very interesting link hopefully will help me.
ill play today with it.

@Alien_hominid

rc.modules, is symlinked to other rc.modules-uname-r, the problem is that after custom installation rc.modules-2.6.21.1 wasnt created at all, thats why i asked if i need to create manually rc.modules-2.6.21.1, wich seems so!

Ill play with it today and will report after i finish,

Again, thanks all for the help so far!
 
Old 05-17-2007, 10:57 AM   #14
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
did you select kernel module autoloading in your config? iirc you really don't _need_ an rc.modules -> rc.modules-<uname -r> unless you don't have kernel autoloading.

thats except for maybe some stuff your startup services will need (ndiswrapper)
 
Old 05-18-2007, 08:56 AM   #15
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 281

Original Poster
Rep: Reputation: Disabled
first of all thanks all for the reply!

the link that general failure gave me was solution to all my problems!

Thanks to all once again!
 
  


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
custom compiled kernel reboots after uncompression, what is missing? krmane Linux - Kernel 0 08-28-2006 03:54 AM
kernel-headers and custom compiled kernels jaakkop Slackware 2 11-22-2005 11:21 AM
Just compiled a custom kernel no sound. Royle Debian 5 01-23-2005 05:10 AM
Updating a custom-compiled kernel mooreted Linux - Software 2 03-01-2004 09:55 AM
Compiled Custom Kernel booting problem _flaab_ Mandriva 3 11-13-2003 06:34 AM


All times are GMT -5. The time now is 12:16 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration