LinuxQuestions.org
Register a domain and help support LQ
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
 
LinkBack Search this Thread
Old 06-15-2007, 04:06 PM   #1
dasoberdick
Member
 
Registered: Aug 2004
Location: Michigan
Distribution: redhat 9.0
Posts: 99

Rep: Reputation: 15
no modules loaded


I just complied a new 2.6.21.5 kernel and when I rebooted I dont have any modules loaded. When I made the new kernel I said

make
make modules
make modules_install (not sure if the last one is redundant)

Now when I run locate to try to find some of the modules I need to install manually I cant find any.
 
Old 06-15-2007, 04:13 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
So, 'lsmod' produces not output at all ? (yes, 'make modules' is redundant with 'make', which is aka. 'make all')
 
Old 06-15-2007, 04:23 PM   #3
dasoberdick
Member
 
Registered: Aug 2004
Location: Michigan
Distribution: redhat 9.0
Posts: 99

Original Poster
Rep: Reputation: 15
lsmod doesnt list a thing and I cant modprobe any of the modules I need right now. I cant even find them.
 
Old 06-15-2007, 04:57 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
I need more info on what you did. Can you describe what you did in more detail.
 
Old 06-15-2007, 05:10 PM   #5
dasoberdick
Member
 
Registered: Aug 2004
Location: Michigan
Distribution: redhat 9.0
Posts: 99

Original Poster
Rep: Reputation: 15
i really didnt do much more then that. I unpacked the source into /usr/src and pointed the sim link linux at it. I went into that directory and did make menuconfig and set up everything the way I wanted it. I exited out of there and said

make
make modules
make modules_install

I copied the bzImage over to /boot/vmlinuz. I went into lilo.config and added the only kernel image that i had renamed to vmlinuz.old. Then I ran lilo and it added my windows partition and the two linux kernels.

This is odd now, when i rebooted it went through lilo, it drew the dots across the screen as it was loading and then nothing. The screen was blank. The hard drive light was still flikering and i could hear it running so i didnt think it was stalled. I pressed ctrl alt del and the thing rebooted. The second time I waited till I knew it would be at the login prompt and logged in blind. Then I ran startx and the systems display came up and I was in KDE. I ran iwconfig to see if my wireless was up and there was nothing. I did a locate ipw2200 and only the source code came up in the kernel source directory. When I ran lsmod it said that nothing was loaded. Thats the most detailed explanation I can give you.

Thanks,

Ryan
 
Old 06-16-2007, 07:47 AM   #6
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 274

Rep: Reputation: Disabled
i suggest that you do custom compiling kernel that suits your hardware, and then create your own /etc/rc.d/rc.modules-2.6.21.5
do chmod 755 rc.modules-2.6.21.5 and do as ln -sf rc.modules-2.6.21.5 rc.modules

http://www.kroah.com/lkn/ chapter 7 will show you what modules you need for your hardware(theres a script you need to run to determine what modules you need) and that way you accomplish editing rc.modules-2.6.21.5 and enter those in to load up.

the best to do is make mrproper, make menuconfig, make && make modules_install and then copy into boot vmlinuz, config and System.map you can then do your customized modules as described wich is preferable (at least for me) or you can then cat rc.modules-2.6.18 > rc.modules-2.6.21.5 chmod 755 rc.modules-2.6.21.5 and have rc.modules to be symlinked to rc.modules-2.6.21.5 edit lilo.conf or grub start lilo and it should be it!

Last edited by matters; 06-16-2007 at 07:56 AM.
 
Old 06-16-2007, 12:36 PM   #7
dasoberdick
Member
 
Registered: Aug 2004
Location: Michigan
Distribution: redhat 9.0
Posts: 99

Original Poster
Rep: Reputation: 15
Quote:
i suggest that you do custom compiling kernel that suits your hardware, and then create your own /etc/rc.d/rc.modules-2.6.21.5
do chmod 755 rc.modules-2.6.21.5 and do as ln -sf rc.modules-2.6.21.5 rc.modules
I went in there just to have a look at it and see whats there and its not. That file does not even exist. What went wrong?
 
Old 06-16-2007, 01:32 PM   #8
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
Just make your own, I suggest starting with one of the 2.6.x ones that Slackware provides.
 
Old 06-16-2007, 02:48 PM   #9
dasoberdick
Member
 
Registered: Aug 2004
Location: Michigan
Distribution: redhat 9.0
Posts: 99

Original Poster
Rep: Reputation: 15
so can I just copy the one for my old 2.6.17 kernel? Or create a simlink to it? Seems like compiling the new kernel should have created the new file. What was the point of compiling in all these modules if I still have to write a file to have the modules loaded. Seems rather redundant to me. Where did the old modules file come from?
 
Old 06-16-2007, 03:01 PM   #10
matters
Member
 
Registered: May 2007
Distribution: Slackware
Posts: 274

Rep: Reputation: Disabled
First of all, go to /etc/lib/modules
there should be directory 2.6.21.5 and files in that dir. If thats the case modules are installed. and im sure theres such dir.

next thing to tell is that after kernel is compiled from source there modules wont get load at first, lsmod will show nothing. and rc.modules-2.6.21.5 wont get created automatically, you have to create yourself.

to illustrate that lsmod is actually working without a problem, ill assume that you configured 2.6.21.5 to have inside iptables,

by doing /usr/sbin/iptables -L will display your firewall default table, along with directives if you alredy configured it.

if you got an error then that means you didnt enable it in kernel,
but lets say you did

then you go lsmod
and ull see ip_tables
and x_tables listed for instance

thats just to illustrate that lsmod will actually list something before you load your modules

next you need to do is this :

ill assume that you wanted to upgrade kernel from 2.6.18 to 2.6.21.5

Code:
cd /etc/rc.d/
cat rc.modules-2.6.18 > rc.modules-2.6.21.5
chmod 755 rc.modules-2.6.21.5
ln -sf rc.modules-2.6.21.5 rc.modules
thats one way that will load modules on reboot, however if you want to have modules only for your hardware then check the link i gave you previously, chapter 7, and then you can instead cat rc.modules-2.6.18 > rc.modules-2.6.21.5

you just create rc.modules-2.6.21.5 empty file and enter modules in the file that script from generated, and that means that only modules from your hardware will load.

Last edited by matters; 06-16-2007 at 03:08 PM.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
help: using loaded modules Rostfrei Programming 4 11-16-2006 01:23 PM
extra modules loaded dambla Linux - General 2 08-03-2006 12:57 PM
Too Many Modules Loaded XSIWILL Suse/Novell 2 02-24-2006 10:13 PM
Change Loaded Modules thadco Linux - Hardware 1 09-06-2005 07:58 PM
Find out which modules are loaded? redneon Linux - General 8 05-25-2004 12:03 PM


All times are GMT -5. The time now is 06:26 AM.

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
Open Source Consulting | Domain Registration