LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 08-06-2005, 07:31 AM   #1
joeyjwc
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2, Fedora Core 5, Kubuntu
Posts: 61

Rep: Reputation: 15
Compiled Kernel -- Modules can't be Found...


What used to be a simple little project has now turned into a nightmare. Let me give you the whole story. If you want to read it, that's great and I think it would help to understand the context of the problem that I'm having, but I guess you don't have to (unless you like stories).

I decided to get back into Linux again. After SUSE messed up my laptop quite a bit, I uninstalled everything and let all my Linux stuff sit for a year or so. Consequently, I have lost most of my skills in Linux and that's why I'm posting in the newbie forum.

I wanted to get back into Linux with project. A cluster to be exact. I bought 3 $30 computers at a flea market of sorts and was graciously given a monitor and a somewhat new computer by a family member who had recently upgraded. I also bought another excellent ViewSonic monitor. Anyways...

I installed Redhat 9 into all of them. Then, I used the latest version of the openMosix kernel RPM - version 2.4.26-openmosix1. Again, a perfect install. Finally, I put in the patched kernel source RPM (kernel-source-i386-2.4.26-openmosix1 or something like that). The website for openMosix (if you don't already know) is http://openmosix.sf.net . Now, here comes the tricky part:

I have an NVidia graphics card in the computer that I designate as a "master" (it's really just the one I attach the keyboard and monitor to). Being a perfectionist, I wanted to install the NVidia graphics card driver. This would give me accelerated 3D support, etc. Simple right? I have the kernel source in the /usr/src/linux-2.4.26-openmosix1/ directory and it's the same version as the RPM, so it should compile and install the driver fine. WRONG!!! When I ran the installer, it complained about how I had the rivafb driver either compiled into the kernel or as a module. So, I guessed it would probably be a module and I would have an easy time by just using rmmod. Wrong again. It turned out that it was compiled into the kernel (argh) and I had to recompile the kernel.

Let me say something here. I'm very scared of recompiling the kernel. I've done it before and things turned out into a giant mess. I've had to reinstall 5 gB of software several times. Kernel compilation scares me.

So, I did:
make oldconfig
And answered N to all the new stuff.
Then I did:
make xconfig
And found that the rivafb driver was completely grayed out so it wouldn't be installed.
Then, in the Makefile, I set EXTRAVERSION to be -openmosix1a so I wouldn't be compiling over a good kernel.
Then:
make dep
make bzImage
make modules && make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.26-openmosix1a
cp System.map /boot/System.map-2.4.26-openmosix1a
ln -s /boot/System.map-2.4.26-openmosix1a /boot/System.map
mkinitrd /boot/initrd-2.4.26-openmosix1a.img 2.4.26-openmosix1a

Then, I edited the grub.conf file properly.
Okay, so it looks like I'm all set to go.

I restart my computer and select the new kernel.
It starts by loading up and somewhere in there, it says that the ext3 module can't be loaded because it can't be found.
Then init starts and I get a bunch of errors with USB modules not being found.
Then net modules not being found.

Basically, no modules were loaded. I ignored this for the moment and went to install the NVidia drivers. They installed fine.

Then I rebooted again (just for fun I guess) and the modules still weren't being loaded. I went to /lib/modules/2.4.26-openmosix1a and was quite surprised at what I saw.

Here's somewhat of a directory listing:
Code:
/lib/modules/2.4.26-openmosix-1a
|--drivers
.   |--net
.      |--dummy.o
.   |--video
.      |--nvidia.o
That's it. No other modules. No wonder the modules weren't being found.

My question is this:
Where did my modules go? Or if they were compiled into the kernel (which they might have been), why does it complain that it can't find modules?

Here is my guess:
Before starting configuration of the kernel and such, the guides say to do make mrproper. I'm not sure what it does, but one guide says it cleans up stale files. I think that my modules were compiled into the kernel but there is a so-called "stale" file in there that tells to look for modules. It's a stupid guess, I know, so that's why I'm asking before I do anything to mess up my system even more.

Thanks so much for your help.

Last edited by joeyjwc; 08-06-2005 at 01:05 PM.
 
Old 08-06-2005, 09:37 AM   #2
Tino27
Member
 
Registered: Aug 2003
Location: Akron, OH
Distribution: Slackware 14.2-stable, Ubuntu 16.04 LTS
Posts: 401

Rep: Reputation: 30
The only thing I can think of is that perhaps you need to do a "make" after the "make bzImage" and before the "make modules".

Good luck.
 
Old 08-07-2005, 05:27 AM   #3
joeyjwc
Member
 
Registered: Mar 2004
Distribution: Slackware 10.2, Fedora Core 5, Kubuntu
Posts: 61

Original Poster
Rep: Reputation: 15
Along with doing that, I found some old configuration files to go by so I'm all set now. Sorry about that. Thanks.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
kernel compiled. starts up. no modules, and etc. RHLinuxGUY Slackware 5 04-14-2005 07:04 PM
kernel options compiled in to modules w/o reboot redjokerx Linux - General 2 04-02-2005 12:44 AM
2.6.8 kernel compiled, ndiswrapper module not found kersten78 Slackware 2 10-04-2004 03:51 AM
kernel compiled no keyboard not found - toshiba/ slackware 9.1 noir911 Linux - Laptop and Netbook 0 09-23-2004 11:31 AM
Compiled own kernel and got: Kernel panic: No init found. Try passing init= option to fbl Linux - General 12 01-14-2003 03:38 AM

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

All times are GMT -5. The time now is 07:22 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