View previous topic :: View next topic |
Author |
Message |
Lifthanger n00b
Joined: 15 Aug 2007 Posts: 20
|
Posted: Wed Aug 15, 2007 2:33 pm Post subject: kernel/modprobe looks in folder of old kernel *solved* |
|
|
Hi,
my soundcard never worked right, so I tried to compile the whole sound tree as a module.
I switched to 2.6.22-2 from 2.6.21-4.
Heres what I did:
unmerge all kernels
delete linux
emerge gentoo-sources with symlink flag
cd /usr/src/linux
make menuconfig
make && make modules_install
then I copy /arch/i386/boot/bzImage to /boot
reboot
now while booting there are errors like this
FATAL: Could not load /lib/modules/2.6.21-gentoo-r4/modules.dep: No such file or directory
same error message when I triy to use modprobe. lsmod shows no module loaded.
why is it searching for the wrong kernel?
now onto dmesg first line: inux version 2.6.21-gentoo-r4 (root@livecd) (gcc version 4.1.1 (Gentoo 4.1.1-r3)) #1 Sun Aug 12 17:12:09 CEST 2007
again wrong version, wrong gcc version and the date seems to be the date when I first compiled a kernel for this system.
I double checked my kernel and its the file that was just made and copied to /boot.
thanks for your help!
edit> after thinking about my last post, finally the alarmbells went off. I was using a fstab that didnt automount /boot
my cp commands just wrote to the root filesystem. thanks anyway for your time!
Last edited by Lifthanger on Wed Aug 15, 2007 5:24 pm; edited 1 time in total |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Wed Aug 15, 2007 2:45 pm Post subject: |
|
|
Did you update GRUB correctly?
What does 'uname -a' say?
And did double check the symlink
Simple things, sorry if you've already tried them! |
|
Back to top |
|
|
Lifthanger n00b
Joined: 15 Aug 2007 Posts: 20
|
Posted: Wed Aug 15, 2007 2:57 pm Post subject: |
|
|
no problem, Im almost sure its one of the simple things Im missing.
this is uname -a:
Linux lifti 2.6.21-gentoo-r4 #1 Sun Aug 12 17:12:09 CEST 2007 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux
the symlink is correct.
and I dont know what you mean by updating grub.I have to grub entries: kernel and kernelbak. I copied my old kernel to kernelbak and the
bzimage to kernel. In the meantime Ive also reinstalled grub a few times to double check that the right kernel file is used.
the boot partition is clean now except for the kernel file, but still the same messages. |
|
Back to top |
|
|
nemectic Apprentice
Joined: 20 Aug 2004 Posts: 182
|
Posted: Wed Aug 15, 2007 3:08 pm Post subject: |
|
|
Well, you're definitely using the old kernel right now...one thing: Quote: | then I copy /arch/i386/boot/bzImage to /boot |
Just to make sure, try Code: | cp /usr/src/linux/arch/i386/boot/bzImage /boot/kernel |
Just in case you didn't copy the file correctly. |
|
Back to top |
|
|
Lifthanger n00b
Joined: 15 Aug 2007 Posts: 20
|
Posted: Wed Aug 15, 2007 4:43 pm Post subject: |
|
|
I can confirm now, that Im booting the kernel Ive just made. I removed some vital settings and it wouldnt boot anymore.
dont know whats going wrong though. I dont think theres a known problem with this kernel.
I would give out a ssh login to my system per pm, if someone has too much time and is eager to make things work out, just post here . |
|
Back to top |
|
|
Lifthanger n00b
Joined: 15 Aug 2007 Posts: 20
|
Posted: Wed Aug 15, 2007 5:11 pm Post subject: |
|
|
it gets better. I got a kernel panic after renaming my grub entry to the kernel name make install suggests.
it startet booting and went into a kernel panic
so I reboot and choose the kernelbak file... file missing..
Ok so I think to myself maybe I deletet kernelbak and used kernel as new kernelbackup.
so I edit ithe line in grub to boot /boot/kernel and it boots no problem. the same system I posted dmesg and stuff from.
Now here comes the fun part: there is no /boot/kernel anymore!! what in hell did I just boot?
at least this would explain, why copying the new kernel to /boot/kernel didnt change a thing. |
|
Back to top |
|
|
|