LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   make modules_install doesn't work (https://www.linuxquestions.org/questions/linux-newbie-8/make-modules_install-doesnt-work-66400/)

SirRobbin 06-18-2003 02:23 PM

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 ~

Palin 06-18-2003 06:37 PM

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.

SirRobbin 06-19-2003 07:20 AM

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

whansard 06-19-2003 07:26 AM

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

SirRobbin 06-19-2003 07:44 AM

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 ~

dorian33 06-19-2003 07:55 AM

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.

whansard 06-19-2003 08:13 AM

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.

SirRobbin 06-19-2003 08:45 AM

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

whansard 06-19-2003 09:57 AM

i used my mojo.


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