Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Can't boot after kernel rebuild
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
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sun May 05, 2013 1:23 pm    Post subject: [Solved] Can't boot after kernel rebuild Reply with quote

Yesterday I updated my gentoo and got an ACL problem (mounting related) due to kde was updated to 4.10.
So I have to include CONFIG_TMPFS_POSIX_ACL option into kernel because kernel-3.7.10-gentoo that was installed during update has not this option enabled.
I did:

Code:
zcat /proc/config.gz > /usr/src/linux/.config
make menuconfig


found and enabled (as built-in) CONFIG_TMPFS_POSIX_ACL=y
and rebuilt kernel:

Code:
make && make modules_install
cp arch/x86_64/boot/bzImage /boot/kernel-3.7.10-gentoo


But this kernel boots me into single user mode. I can't start X and boot into kde. lsmod doesn't show nvidia module. modprobe tells nvidia module not found.
What I did wrong?

The default kernel (I saved it as backup before rebuilding) still boots fine.

Thanks in advance for any help.


Last edited by creaker on Sun May 05, 2013 5:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sun May 05, 2013 2:34 pm    Post subject: Reply with quote

I found that I have now two directories under /lib/modules:
3.7.10-gentoo and 3.7.10-gentoo-r1
The first one contains nvidia.ko module under /lib/modules/3.7.10-gentoo/video directory.
The second doesn't contains this module at all...

It looks like default kernel looks for modules into /lib/modules/3.7.10-gentoo but kernel i rebuilt looks into /lib/modules/3.7.10-gentoo-r1
What this means? I'm a bit confused :roll:
Back to top
View user's profile Send private message
ulenrich
Veteran
Veteran


Joined: 10 Oct 2010
Posts: 1483

PostPosted: Sun May 05, 2013 2:46 pm    Post subject: Reply with quote

creaker wrote:
It looks like default kernel looks for modules into /lib/modules/3.7.10-gentoo but kernel i rebuilt looks into /lib/modules/3.7.10-gentoo-r1

The booted kernel looks into /lib/modules/$(uname -r)

Look what you do run on:
uname -r
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sun May 05, 2013 3:02 pm    Post subject: Reply with quote

right now I booted into 3.7.10-gentoo. When nvidia was missing it was 3.7.10-gentoo-r1. I'm pretty sure.
I tried to copy kernel sources from /usr/src/linux-3.7.10-gentoo-r1 to /usr/src/linux-3.7.10-gentoo and built kernel and install modules under new directory (without -r1) but still have no this module under /lib/modules/3.7.10-gentoo-r1
All messed up. :roll:
Back to top
View user's profile Send private message
creaker
l33t
l33t


Joined: 14 Jul 2012
Posts: 651

PostPosted: Sun May 05, 2013 5:55 pm    Post subject: Reply with quote

Removed all the sources and did it again.

Code:
emerge --unmerge xorg-drivers
emerge --sync
emerge gentoo-sources
cd /usr/src/linux
make menuconfig
make
make modules_install
emerge -av  xorg-drivers
cp arch/x86_64/boot/bzImage /boot/kernel-3.7.10-gentoo-r1


Gentoo way just doesn't works. I do not have anything to do except install this module in NVidia way by running downloaded from nvidia.com bundle. It installed nvidia.ko and I got my kde back with new kernel and nvidia driver.
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