Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've been trying to recompile the 2.4.20 kernel for my linux machine. I'm running RedHat 8.0.
I do:
make mrproper
make xconfig
make dep
make clean
make bzImage
make modules
make modules_install
make install
I updated GRUB and rebooted. When it rebooted though, it didn't load several modules. I checked /boot and the file module-info was still pointing to my old kernel. There wasn't even a module-info-2.4.20 file in /boot. I checked /lib/modules/2.4.20 and there are only a few modules there even though I had a large number of modules loaded in my kernel.
I recompiled my kernel again and noticed that when I did make modules_install it kept saying this:
make[1]: Entering directory '/usr/src/linux-2.4.20/<folder>'
make[1]: Nothing to be done for <folder>
make[1]: Leaving directory '/usr/src/linux-2.4.20/<folder>'
<folder> was of course whatever module make was looking for.
How do I fix this problem of the kernel not installing my modules?
also more of the error listing is really needed what you posted doesn't let anyone know what the problem is. If you could post more of the exact error its throwing it would be easier to diagnose your issue.
It did take a while when I did make modules.. probably 40 minutes or so (I'm using a PIII 550 Mhz).
The last message that make modules_install says is:
cd /lib/modules/2.4.20; \
mkdir -p pcmcia; \
find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{} pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.4.20; fi
That message comes after it repeatedly does this:
make[1]: Entering directory '/usr/src/linux-2.4.20/<folder>'
make[1]: Nothing to be done for <folder>
make[1]: Leaving directory '/usr/src/linux-2.4.20/<folder>'
Where <folder> changes based on what module it's trying to install.
I suppose to remove the 'make clean' which removes all just compiled .o files.
I don't know also how 'make install' works. To be safe just copy /usr/src/.../bzImage to /boot directory and edit lilo/grub conf manually.
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304
Rep:
does make modules_install give any error?
sometimes with make modules_install,
which does a depmod -a, it returns an error
on modules already existing in the install directory, and
doesn't install the modules. if you delete those first
or us make -i modules_install, it will ignore the errors
and install them all anyway.
So I don't know why it suddenly works... but it does
The only thing I did differently was make modules_install twice (no errors) and then make install. After it worked I looked at /lib/modules/2.4.20/ and all the modules were there..
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.