LinuxQuestions.org
Visit Jeremy's Blog.
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 06-18-2003, 03:23 PM   #1
SirRobbin
LQ Newbie
 
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17

Rep: Reputation: 0
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 ~
 
Old 06-18-2003, 07:37 PM   #2
Palin
Member
 
Registered: Feb 2003
Location: A Meatlocker, well feels like one
Distribution: Gentoo
Posts: 292

Rep: Reputation: 30
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.
 
Old 06-19-2003, 08:20 AM   #3
SirRobbin
LQ Newbie
 
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 06-19-2003, 08:26 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
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 ...... ?
 
Old 06-19-2003, 08:44 AM   #5
SirRobbin
LQ Newbie
 
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17

Original Poster
Rep: Reputation: 0
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 ~
 
Old 06-19-2003, 08:55 AM   #6
dorian33
Member
 
Registered: Jan 2003
Location: Poland, Warsaw
Distribution: LFS, Gentoo
Posts: 591

Rep: Reputation: 32
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.
 
Old 06-19-2003, 09:13 AM   #7
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
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.
 
Old 06-19-2003, 09:45 AM   #8
SirRobbin
LQ Newbie
 
Registered: May 2003
Location: State College, PA
Distribution: Red Hat 8.0
Posts: 17

Original Poster
Rep: Reputation: 0
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
 
Old 06-19-2003, 10:57 AM   #9
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
i used my mojo.
 
  


Reply


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
make modules_install bhomass Debian 2 11-21-2005 12:11 AM
make modules_install niteshg Fedora - Installation 5 12-28-2004 02:33 PM
make modules_install props666999 Slackware 5 11-16-2004 01:11 AM
make modules_install error props666999 Slackware 8 11-13-2004 10:41 PM
make modules_install ? shanenin Linux - Software 3 12-31-2003 11:41 PM

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

All times are GMT -5. The time now is 04:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration