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.
Greetings, I am using Fedora Core 2 and I need to add some options to the kernel that are not turned on by default right after the initial installation. I configure the kernel options with "make menuconfig" and start the compiling process with "make". After make finishes I start the "make modules_install" but it finishes with the following error:
INSTALL lib/zlib_deflate/zlib_deflate.ko
INSTALL drivers/media/video/zr36016.ko
INSTALL drivers/media/video/zr36050.ko
INSTALL drivers/media/video/zr36060.ko
INSTALL drivers/media/video/zr36067.ko
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7-rc3; fi
make: *** [_modinst_post] Error 143
It takes a while for the error message line to appear after the line just before appears. I have tried to follow the instructions of kernel compiliing as much carefully as I could.
Go to your /usr/src/linux-2.x
I guess in your case it will be /usr/src/linux-2.6.7-rc3
So change in the directory containing the kernel sources you would like to enable the options.
Clean everything with
make clean
make mrproper
Make a backup of your Makefile.
cp Makefile Makefile.old.bak
At the top you will find an entry like:
Now recompile your kernel after configuring it via make menuconfig (of course also enable the options you need.)
So
make
after that
make modules_install
Unfortunately it is not working. I have tried so far to build the kernel from the original Fedora Core 2 distribution sources, linux-2.6.5-1.358 and the linux-2.6.7-rc3 which I downloaded. I have tried your suggestion to change the EXTRAVERSION =-rc3custom. The error is still the same. I have also tried to build with the following make options:
make O=/home/xodiak/build/kernel menuconfig
make O=/home/xodiak/build/kernel
make O=/home/xodiak/build/kernel modules_install
but after the
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7-rc3; fi
it still shows:
make: *** [_modinst_post] Error 143
I do not understand the nature of the error so I cannot try something specific to fix it.
Could it be related to the fact that I only have 128 MB of memory? Fedora needs 256MB as minimum.
The only reference to the problem I cound find on search engines is this, but unfortunately an answer is not offered without a cost.
As I was searching on howto and faq files on the internet and the specific error message,
make: *** [_modinst_post] Error 143
on search engines, I realised that I could find only one or two references of the same error, which made me believe that it is not a common error and that it must be me doing something wrong.
I thought that the problem might be that I installed Fedora Core 2 with only 128MB of memory.
As an experiment I pressed ctrl-alt-F6 to bring the text console, I logged in as root and went to the kernel source directory and typed:
make O=/home/xodiak/build/kernel modules_install
and in the end the following errors appeared:
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7-rc3; fi
Out of Memory: Killed process 2756 (rhm-applet-gui)
Out of Memory: Killed process 2748 (nautilus)
Out of Memory: Killed process 5956 (depmod)
make: *** [_modinst_post] Error 143
make: *** [modules_install] Error 2
This also reminded me that previously, as I run the make modules_install on a terminal window, mozilla would close if I had an open html document.
Do these messages mean that I must upgrade my memory? I am buying an additional 256 memory in the next few days and I wish that would fix the error.
In my case problem is not the memory, I run FC2 with 512 MB of RAM but I have the same problem as you, except for having no message like "make: *** [_modinst_post] Error 143" but only the first line saying "if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7leonardo; fi".
I tried to compile kernel from Fedora Core sources and from kernel.org sources; I also tried to compile in more than 1 machine but the result is the same!!
Do you really think the problem is so unusual?
Have you ever thought that the problem could be the configuration in make menuconfig?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.