LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Kernel Recompile missing library modules (https://www.linuxquestions.org/questions/linux-software-2/kernel-recompile-missing-library-modules-17006/)

Bear 03-25-2002 09:58 PM

Kernel Recompile missing library modules
 
Well, it would seem that I'm one of the few people that actually got Red Hat 7.2 to install properly. And after much effort (and some help) I got it to dual boot with Windows XP by using GRUB.

However, Red Hat setup doesn't let you choose which filesystems are supported in your kernel and so I wanted to recompile my kernel to support NTFS and FAT partitions so I could listen to my mp3's while running Linux. So I downloaded kernel sources and walked myself through installing the sources and recompiling the kernel (a huge achievement since I'm a complete newbie). I added an entry for the new kernel in GRUB and booted into it but while booting there were a couple error messages that showed up. There was an error in "depmod" and "modprobe" and they had to do with being unable to locate

/lib/modules/2.4.18/modules.dep

Or something in that directory. What could have went wrong in my installation to cause this? Any suggestions would be appreciated.

Bear

:newbie:

hanzerik 03-26-2002 06:42 AM

Tell us the complete commands you typed when compiling your kernel.

ie:
make mrproper
make menuconfig
make dep
make bzImage
cp arch/i386/boot/bzImage /boot/bzImage-2-4-whatever
make modules
make modules_install

All this is done in /usr/src/linux, You may have to create a simlink to linux-2.4.7-10.
ln -s /usr/src/linux /usr/src/linux-2.4.7-10 or what ever redhat puts in /usr/src

http://www.linuxdoc.org/HOWTO/Kernel-HOWTO-2.html

Bear 03-26-2002 11:55 AM

I didn't realize that I needed to do do

# make modules
# make modules_install

Nond of the documentation that I had looked at had mentioned that. From what directory do I run those commands?

Bear

taz.devil 03-26-2002 12:09 PM

They are all in the kernel source directory in that sequence. I personally cp the bzImage file after I do make modules_install but it can work that way too. Just for fun I do it this way:

cd /usr/src/linux-2.4.18
make menuconfig
make dep
make bzImage
make modules
make modules_install
cp System.map /boot
cp arch/i386/boot/bzImage /boot/vmlinuz
The last two depend on where and what your bootloader are looking in and for as to what you'd name them.

Bear 03-26-2002 05:28 PM

Well I went back to where my sources were and ran make modules and make modules_install so my total process was

make mrproper
make xconfig
make dep
make bzImage
make modules
make modules_install

however there's still some sort of error having to do with modprobe and my soundcard and network card weren't enabled. Any suggestions?


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