View previous topic :: View next topic |
Author |
Message |
tobes n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 08 Apr 2005 Posts: 5
|
Posted: Thu May 04, 2006 7:51 pm Post subject: Problem compiling the kernel ! Help! |
|
|
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.
![Sad :-(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Headrush Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/111332295641fa913c28fea.jpg)
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Thu May 04, 2006 8:28 pm Post subject: |
|
|
Are you sure module-init-tools is emerged? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
sternklang Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Snow_Ball.jpg)
Joined: 10 Sep 2005 Posts: 1641 Location: Somewhere in time and space
|
Posted: Thu May 04, 2006 9:38 pm Post subject: Re: Problem compiling the kernel ! Help! |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
troymc Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Mar 2006 Posts: 553
|
Posted: Thu May 04, 2006 11:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sonicbhoc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/19626066624403a4096a7e1.gif)
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Fri May 05, 2006 12:00 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
troymc Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
Joined: 22 Mar 2006 Posts: 553
|
Posted: Fri May 05, 2006 12:08 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sonicbhoc Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/19626066624403a4096a7e1.gif)
Joined: 24 Oct 2005 Posts: 1805 Location: In front of the computer screen
|
Posted: Fri May 05, 2006 6:10 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
sternklang Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/gallery/Simpsons/Simpsons_-_Snow_Ball.jpg)
Joined: 10 Sep 2005 Posts: 1641 Location: Somewhere in time and space
|
Posted: Fri May 05, 2006 12:50 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|