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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-18-2003, 02:23 PM
|
#1
|
LQ Newbie
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17
Rep:
|
make modules_install doesn't work
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?
Thanks ~
|
|
|
06-18-2003, 06:37 PM
|
#2
|
Member
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292
Rep:
|
are you trying this as root ?
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.
|
|
|
06-19-2003, 07:20 AM
|
#3
|
LQ Newbie
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17
Original Poster
Rep:
|
I'm doing it as root.
There isn't an error message.. it just doesn't work. It doesn't make the file module-info 2.4.20 or make the modules in /lib/modules/2.4.20
When I boot up with the new kernel a bunch of the "tests" it runs say "FAILED" because the modules weren't loaded.
Thanks for the reply
|
|
|
06-19-2003, 07:26 AM
|
#4
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
when you type
make modules, does it spend a while compiling?
when you type make modules_install, do you see
the message at the end, installing modules in ...... ?
|
|
|
06-19-2003, 07:44 AM
|
#5
|
LQ Newbie
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17
Original Poster
Rep:
|
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.
Thanks ~
|
|
|
06-19-2003, 07:55 AM
|
#6
|
Member
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591
Rep:
|
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.
|
|
|
06-19-2003, 08:13 AM
|
#7
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
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.
|
|
|
06-19-2003, 08:45 AM
|
#8
|
LQ Newbie
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17
Original Poster
Rep:
|
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..
Does anyone have any idea what my problem was?
Thanks for everybody's help
|
|
|
06-19-2003, 09:57 AM
|
#9
|
Senior Member
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,306
Rep:
|
i used my mojo.
|
|
|
All times are GMT -5. The time now is 10:36 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|