Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem compiling the kernel ! Help!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
tobes
n00b
n00b


Joined: 08 Apr 2005
Posts: 5

PostPosted: Thu May 04, 2006 7:51 pm    Post subject: Problem compiling the kernel ! Help! Reply with quote

I am running a HP NX6125 - I am using the AMD arch and when i go to complile the kernel 2.6.15-gentoo-r5 it appears to break out part way with the following:-

if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.15-gentoo-r5; fi

I thought it was maybe some dependency not enabled in the kernel causing it to fail but I cant seem to figure it out.

Anyone else seen this or anyone have a sample kernel config for the hpnx6125.

It's giving me a headache.

:-(
Back to top
View user's profile Send private message
Headrush
Watchman
Watchman


Joined: 06 Nov 2003
Posts: 5597
Location: Bizarro World

PostPosted: Thu May 04, 2006 8:28 pm    Post subject: Reply with quote

Are you sure module-init-tools is emerged?
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Thu May 04, 2006 9:38 pm    Post subject: Re: Problem compiling the kernel ! Help! Reply with quote

tobes wrote:
if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map 2.6.15-gentoo-r5; fi

Hi,

Have you done a manual kernel build before? That looks to me like the normal end of "make modules_install" rather than an error.
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Thu May 04, 2006 11:57 pm    Post subject: Reply with quote

I second sternklang's post.

I don't see an error there.

That's simply the final step that builds the modules.dep.



troymc
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Fri May 05, 2006 12:00 am    Post subject: Reply with quote

the command you should use to build a kernel is:
Code:
make clean && make && make modules_install install


Don't forget to read the text at the end of that last step! It's important. Also make install only works if you have a bootloader installed. e.g. Grub or Lilo. If you don't have those installed do this:

Code:
make clean && make && make modules_install && cp arch/i386/boot/bzImage /boot/kernel


FIXED FOR GREAT JUSTICE


Last edited by sonicbhoc on Fri May 05, 2006 6:10 am; edited 1 time in total
Back to top
View user's profile Send private message
troymc
Guru
Guru


Joined: 22 Mar 2006
Posts: 553

PostPosted: Fri May 05, 2006 12:08 am    Post subject: Reply with quote

sonicbhoc wrote:
the command you should use to build a kernel is:
Code:
make mrproper && make && make modules_install install


Don't forget to read the text at the end of that last step! It's important. Also make install only works if you have a bootloader installed. e.g. Grub or Lilo.


DANGER! Will Robinson! DANGER!

A couple of points, if I may.

1) make mrproper deletes your .config so everything else is going to fail with a message like "you have not configured your kernel yet" - try make clean instead.

2) chaining all the commands like that can be problematic if something goes wrong. You generally won't have any idea which step failed.


troymc
Back to top
View user's profile Send private message
sonicbhoc
Veteran
Veteran


Joined: 24 Oct 2005
Posts: 1805
Location: In front of the computer screen

PostPosted: Fri May 05, 2006 6:10 am    Post subject: Reply with quote

it deletes the config file!? good thing I didn't use it then, I just saw genkernel do it and thought it was like doing a clean but better.
Back to top
View user's profile Send private message
sternklang
Veteran
Veteran


Joined: 10 Sep 2005
Posts: 1641
Location: Somewhere in time and space

PostPosted: Fri May 05, 2006 12:50 pm    Post subject: Reply with quote

sonicbhoc wrote:
Code:
make clean && make && make modules_install && cp arch/i386/boot/bzImage /boot/kernel

I would also recommend sys-kernel/module-rebuild. With that, you tell it about modules not part of the kernel tree (like NVidia or ATI binary drivers) and run "module-rebuild rebuild" at the end to update those modules as well.

I also save my .config in /boot with the kernel name appended, so if I run into problems after booting a new kernel I can diff the two .config files to see what I changed that may have caused a problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum