LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Kernel compiling under Fedora Core 2 (https://www.linuxquestions.org/questions/linux-newbie-8/kernel-compiling-under-fedora-core-2-a-202101/)

midimarcus 07-07-2004 06:25 AM

Kernel compiling under Fedora Core 2
 
The question is: Why I can't get "make modules_install" work?

I'm running Fedora Core 2 on a PIV 2.4GHz with 512 MB RAM and currently with kernel-2.6.6-1.435.2.3 (installed from official FC2 rpm package).

I want to compile a new kernel with some optimizations but without success!
I've tried to compile from both Fedora official source rpm package (2.6.6-1.435) and from kernel.org source tarball (2.6.7) but I get always the same error, during make modules_install, which is the following:

if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7leonardo; fi"

Where the suffix leonardo is the custom EXTRAVERSION field in Makefile.

I've also tried to compile the same configuration file (saved from make menuconfig) in more than 1 machine running FC2 and with similar hardware but the result is the same!!

Is it possibile that the problem could be in any settings I've changed in make menuconfig?

I've compiled kernel several time in the past but this problem is uknown to me!

Help would be greatly appreciated!!:scratch:

Andrew Benton 07-07-2004 06:43 AM

Two things spring to mind, firstly, what makes you think there's been an error? It helps if you paste the lines before and after the error.
Second, filenames shouldn't have spaces in them. System.map 2.6.7leonardo is asking for trouble. Try System.map-2.6.7leonardo or System.map_2.6.7leonardo

midimarcus 07-07-2004 06:55 AM

Well, I think it is an error because compilation is interrupted and kernel does not run!!

Lines before are something like the following:
INSTALL drivers/media/video/zr36016.ko
INSTALL drivers/media/video/zr36050.ko
INSTALL drivers/media/video/zr36060.ko
INSTALL drivers/media/video/zr36067.ko


No other lines are printed after, the process exits with no message.

The space in filename isn't very clear in fact, becouse EXTRAVERSION in my Makefile is just "leonardo", while other fields are unchanged and without any space!

Vlad-A 07-07-2004 07:04 AM

if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.7leonardo; fi

is a normal output. It's displayed after the modules are copied into
/usr/lib/kernel-version directory and the module dependecies are creadted

This is the last step when compiling the kernel. After this step the compilation is done.

There isn't nothing what could look like an error.

Why do you think you are encountering an error ???

midimarcus 07-07-2004 10:16 AM

I think something is wrong because Kernel doesn't run!!
:-(

But perhaps I made another mistake elsewhere during set-up or compiling!!!
I'll try again with more care!
Could you tell me your general procedure to recompile from kernel.org source (2.6.7)?

Thanks!

Andrew Benton 07-07-2004 12:32 PM

So when you say the kernel doesn't run, could you give us more details? Does grub find the kernel and start to boot it? How far does the boot go?

Vlad-A 07-07-2004 01:48 PM

The kernel doesn't run ??

If you have invoked kernel compile with
make
then also make modules_install is invoked automatically.

Well there are additional steps after you have finished compileing the kernel.

1) Copy the compressed Image to /boot
2) Copy System.map to /boot
3) Make an initial ram disk for the kernel
4) Edit your grub.conf or lilo

This can be accomplished automatically by invoking make install at the end of make. So:

make install

cd into /boot
and make sure vmlinuz-2.6.7
initrd.img-2.6.7
system.map-2.6.7
are there

If initrd.img-2.6.7 is *not* there, then create it by
mkinitrd initrd.img-2.6.7 2.6.7

5) reboot
6) select the kernel from the menu

You may also take a look on:
http://www.linuxquestions.org/questi...a&pagenumber=2
There is a section describing what to do.

midimarcus 07-08-2004 06:23 AM

Thanks guys...

I'll try to recompile, I have a big the doubt of having made some stupid mistakes!!
Probably some very stupid mistakes!!

In the next 2-3 days I have no time to look at the problem but then I'll post the result!!:)


All times are GMT -5. The time now is 01:40 PM.