Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
kernel/modprobe looks in folder of old kernel *solved*
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
Lifthanger
n00b
n00b


Joined: 15 Aug 2007
Posts: 20

PostPosted: Wed Aug 15, 2007 2:33 pm    Post subject: kernel/modprobe looks in folder of old kernel *solved* Reply with quote

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
View user's profile Send private message
nemectic
Apprentice
Apprentice


Joined: 20 Aug 2004
Posts: 182

PostPosted: Wed Aug 15, 2007 2:45 pm    Post subject: Reply with quote

Did you update GRUB correctly?
What does 'uname -a' say?
And did double check the symlink
Code:
cd /usr/src
ls -l


Simple things, sorry if you've already tried them!
Back to top
View user's profile Send private message
Lifthanger
n00b
n00b


Joined: 15 Aug 2007
Posts: 20

PostPosted: Wed Aug 15, 2007 2:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
nemectic
Apprentice
Apprentice


Joined: 20 Aug 2004
Posts: 182

PostPosted: Wed Aug 15, 2007 3:08 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lifthanger
n00b
n00b


Joined: 15 Aug 2007
Posts: 20

PostPosted: Wed Aug 15, 2007 4:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Lifthanger
n00b
n00b


Joined: 15 Aug 2007
Posts: 20

PostPosted: Wed Aug 15, 2007 5:11 pm    Post subject: Reply with quote

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
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