LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 07-07-2004, 06:25 AM   #1
midimarcus
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Rep: Reputation: 0
Unhappy 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!!
 
Old 07-07-2004, 06:43 AM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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
 
Old 07-07-2004, 06:55 AM   #3
midimarcus
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 07-07-2004, 07:04 AM   #4
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
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 ???

Last edited by Vlad-A; 07-07-2004 at 09:32 AM.
 
Old 07-07-2004, 10:16 AM   #5
midimarcus
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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!
 
Old 07-07-2004, 12:32 PM   #6
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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?
 
Old 07-07-2004, 01:48 PM   #7
Vlad-A
Member
 
Registered: May 2004
Location: Vienna, Austria
Distribution: Open SuSE 11, Mac OS X 10.5
Posts: 299

Rep: Reputation: 33
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.

Last edited by Vlad-A; 07-07-2004 at 02:12 PM.
 
Old 07-08-2004, 06:23 AM   #8
midimarcus
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
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!!
 
  


Reply



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
trouble compiling modules against custom fedora core 4 kernel blahJake Linux - Software 6 12-16-2006 06:54 AM
Compiling C in Fedora Core 2 mparsons Linux - Software 7 11-13-2005 11:16 PM
Compiling C programs in Fedora Core 2 dreamydinesh Linux - Software 4 10-03-2005 01:51 AM
Compiling Fedora Core Kernel betamike Fedora 2 03-04-2005 06:47 AM
Compiling 2.6.6 kernel in fedora core 2... SpItoS Linux - Newbie 4 01-17-2005 02:51 PM

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

All times are GMT -5. The time now is 05:59 AM.

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
Open Source Consulting | Domain Registration