Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-06-2005, 07:31 AM   #1
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 . 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.
make dep
make bzImage
make modules && make modules_install
cp arch/i386/boot/bzImage /boot/vmlinuz-2.4.26-openmosix1a
cp /boot/
ln -s /boot/ /boot/
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:
.   |--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
Registered: Aug 2003
Location: Akron, OH
Distribution: SuSE 8.2, Slackware current, OpenBSD 3.5-3.8, Fedora Core 2
Posts: 400

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
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.


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
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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:11 PM.

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