Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
problems recompiling kernel [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
snakeo2
Veteran
Veteran


Joined: 01 Jan 2006
Posts: 1237

PostPosted: Tue Oct 27, 2009 1:23 pm    Post subject: problems recompiling kernel [SOLVED] Reply with quote

Yet another thread about problems recompiling a kernel. It seems that everytime I try to recompile a kernel, it never goes smoothly. I recently migrated my dual boot system (xp & gentoo) to a new computer and added windows 7 to now have a triple boot system. After getting all those issues associated fixed, I was able to boot into my working kernel, but since I switched from Nvidia to ATI, xorg no longer works. My NIC is not working as well and havent figured out why exactly. So I decided to compile a new kernel (2.6.29-r5) and i'm now getting error 15 and for the life of me I cant figure out why.

first thing i did was

eselect kernel list, and selected kernel 2.6.29-r5. Then I cd /usr/src/linux and ran make menuconfig. Selected whatever applied to my system, ran make && make modules_install. when that was done, I went ahead and ran

mount /dev/sdb1 /mnt/gentoo/boot (my boot partition). I then proceed to

cp arch/x86_64/boot/bzImage /boot/kernel/2.6.29-r5
cp arch/x86_64/boot/bzImage /boot/2.6.29-r5

and created the entry in my grub.conf and nothing.

here is my entry in grub.

title Gentoo Linux
root (hd2,0)
kernel /boot/2.6.29-gentoo-r5 root=/dev/sdb3

I also tried

root (hd2,0)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sdb3

none of them worked. my drives

/dev/hda ---xp
/dev/sda----windows 7
/dev/sdb-----gentoo

for gentoo

sdb1 /boot
sdb2 /swap
sdb3 /root
sdb4 extended
sdb5 /home
sdb6 /virtual box

any suggestion will be appreciated, thanks,
_________________
Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2


Last edited by snakeo2 on Wed Oct 28, 2009 12:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Oct 27, 2009 1:39 pm    Post subject: Reply with quote

Was /boot mounted when you copied your kernel?
Back to top
View user's profile Send private message
snakeo2
Veteran
Veteran


Joined: 01 Jan 2006
Posts: 1237

PostPosted: Tue Oct 27, 2009 2:08 pm    Post subject: Reply with quote

At first it wasnt, but when i realized I went back and did the entire process from scratch and mounted /boot and then copied the bzImage to /boot. I'm really not sure why is not booting.
_________________
Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6102
Location: Dallas area

PostPosted: Tue Oct 27, 2009 2:17 pm    Post subject: Re: problems recompiling kernel Reply with quote

snakeo2 wrote:
I then proceed to

cp arch/x86_64/boot/bzImage /boot/kernel/2.6.29-r5
cp arch/x86_64/boot/bzImage /boot/2.6.29-r5

and created the entry in my grub.conf and nothing.

here is my entry in grub.

title Gentoo Linux
root (hd2,0)
kernel /boot/2.6.29-gentoo-r5 root=/dev/sdb3

I also tried

root (hd2,0)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sdb3

none of them worked.


Try naming them consistently.

You did this
Quote:
cp arch/x86_64/boot/bzImage /boot/2.6.29-r5


then tried looking for this
Quote:
kernel /boot/2.6.29-gentoo-r5 root=/dev/sdb3


change the line in grub.conf from
Code:
kernel /boot/2.6.29-gentoo-r5 root=/dev/sdb3

to
Code:
kernel /boot/2.6.29-r5 root=/dev/sdb3


if that is what you really named them.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
snakeo2
Veteran
Veteran


Joined: 01 Jan 2006
Posts: 1237

PostPosted: Tue Oct 27, 2009 5:08 pm    Post subject: Reply with quote

I actually just did again, and this time I made sure I was consistant. Here is what I did

cd/ usr/src/linux
make menuconfig

make && make modules_install
mount /dev/sdb1 /mnt/gentoo/boot
cp arch/x86_64/boo/bzImage /boot/kernel-2.6.29-gentoo-r5

made edits to my grub.conf

title Gentoo Linux
root (hd2,0)
kernel /boot/kernel-2.6.29-gentoo-r5 root=/dev/sdb3

rebooted...same error 15!!! (frustration setting in)
_________________
Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2
Back to top
View user's profile Send private message
snakeo2
Veteran
Veteran


Joined: 01 Jan 2006
Posts: 1237

PostPosted: Tue Oct 27, 2009 5:14 pm    Post subject: Reply with quote

If this helps, Just mounted my /boot partition and ran ls -l, this is what I have

-rw-r--r-- 1 root root 3578176 Oct 27 12:55 kernel-2.6.29-gentoo-r5

-rw-r--r-- 1 root root 3578176 Oct 27 07:21 2.6.29-gentoo-r5

It looks like the difference can be attributed to the fact that i copied the bzImage twice one using the convention kernel-x.x.x-gentoo-x
and the other one i didnt use kernel
_________________
Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Oct 27, 2009 5:37 pm    Post subject: Reply with quote

when you are in the grub setup try
Code:
grub> find /boot/kernel-2.6.29-gentoo-r5
Back to top
View user's profile Send private message
Anon-E-moose
Watchman
Watchman


Joined: 23 May 2008
Posts: 6102
Location: Dallas area

PostPosted: Tue Oct 27, 2009 5:50 pm    Post subject: Reply with quote

error 15 is a file not found error

It's not finding something, but I don't know if it is coming from the kernel or grub itself.
_________________
PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland
Back to top
View user's profile Send private message
snakeo2
Veteran
Veteran


Joined: 01 Jan 2006
Posts: 1237

PostPosted: Tue Oct 27, 2009 7:24 pm    Post subject: Reply with quote

Mike,

I tried your suggestions and this is what came back:

(hd2,2) which would suggest that i copied it to my /root partition? My understanding is that grub labels partition beginning at 0

/boot (hd2,0)
/swap (hd2,1)
/root (hd2,2)

which doesnt make any sense to me since i copied it to /boot which it's (hd2,0)....maybe you can make sense of it?
_________________
Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2
Back to top
View user's profile Send private message
snakeo2
Veteran
Veteran


Joined: 01 Jan 2006
Posts: 1237

PostPosted: Tue Oct 27, 2009 9:53 pm    Post subject: Reply with quote

Ok, I'm filing this under "I'm stupid". It wasnt making sense to me, so I ran

ls /mnt/gentoo/boot and noticed that the bzImage for the kernel I'm trying to compile was not there despite the fact that I had mounted /boot partition prior to coping the bzImage. So I went ahead and re-did but this time I ran the following command:

cp arch/x86_64/boot/bzImage /mnt/gentoo/boot/kernel-2.6.29-gentoo-r5 and made necessary edits to my grub.conf file and it worked. I'm still without internet as my eth0 is not being loaded during boot up. Here is the output of lspci

Ethernet Controller: Realtek Semiconductor RTL8111/8168B PCI express Gigabit ethernet controller. I found this thread and compiled the driver they suggested:

"R8169" and that didnt work. Any ideas will be appreciated. thanks guys.

https://forums.gentoo.org/viewtopic-t-799444-highlight-rtl8111.html
_________________
Gigabyte MA790X-UD4P Motherboard
AMD Phenom II X4 940 Black Edition
MSI ATI R4650 PCIe2
250GB SATA Drive
4GB Corsair DDR2
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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