View previous topic :: View next topic |
Author |
Message |
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sun May 05, 2013 1:23 pm Post subject: [Solved] Can't boot after kernel rebuild |
|
|
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 |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sun May 05, 2013 2:34 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
ulenrich Veteran
Joined: 10 Oct 2010 Posts: 1483
|
Posted: Sun May 05, 2013 2:46 pm Post subject: |
|
|
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 |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sun May 05, 2013 3:02 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
creaker l33t
Joined: 14 Jul 2012 Posts: 651
|
Posted: Sun May 05, 2013 5:55 pm Post subject: |
|
|
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 |
|
|
|