LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Kernel Reporting Wrong Version (https://www.linuxquestions.org/questions/linux-general-1/kernel-reporting-wrong-version-305146/)

JShadow 03-23-2005 01:10 PM

Kernel Reporting Wrong Version
 
I trying to upgrade my kernel in Gentoo from 2.6.7-r11 to the latest 2.6.11-r4.

The new kernel compiled fine and loads ok, however it reports as being 2.6.7 when gentoo starts and when I do a uname -r.

I am 100% certain that I compiled and installed the correct version and that it is just reporting wrong. I redid my symlink just to be sure.

I think it got screwed up when I was trying to import my settings from my old one.

Can I just change the name to the correct one in the make file or is there some other method I have to use to correct this?

trickykid 03-23-2005 04:56 PM

Is it actually booting with the new kernel? Uname is usually pretty accurate on which kernel your running. If its reporting with uname and still states this at the login, I'm pretty sure its still booting with the old kernel.

Check your grub.conf and or lilo.conf and make sure everything is correct there to boot the right kernel.. check /etc/issue.net and or the motd file..

JShadow 03-23-2005 06:30 PM

grub is set to boot the new kernel. I removed the entry for the old one. The motd lists the o
d one.

I did forget to mention one thing. When I compile drivers now the old kernel's source directory is used but I get a kernel mismatch when trying to load them. This leads me to believe the new kernel is running.

J.W. 03-23-2005 11:21 PM

I think you're still running the old kernel, and to be honest it seems unlikely that uname would be reporting a false value, If you are still using the old kernel's source directory, then it appears that what you're actually doing is recompiling the existing kernel with new config options.


What does /usr/src/linux point to? Based on your description, it sounds like it's still pointing to the old kernel source directory. If so, you just need to delete that existing symbolic link and redirect to point to /usr/src/linux-2.<new>.<version> -- J.W.

harken 03-24-2005 04:32 AM

Why don't you show us your grub's menu.lst file to clarify some things?

Crashed_Again 03-24-2005 06:01 AM

Yeah I think J.W. got the answer. I would do this assuming your using gentoo-dev-sources:

Code:

cp /usr/src/linux-2.6.7-gentoo-r11/.config /usr/src/linux-2.6.11-gentoo-r4
rm /usr/src/linux
ln -sf /usr/src/linux-2.6.11-gentoo-r4 /usr/src/linux
cd /usr/src/linux
make clean
make && make modules_install
mount /boot
cp arch/i386/boot/bzImage /boot/gds-2.6.11-r4

Then add the gds-2.6.11-r4 line in your grub.conf

JShadow 03-24-2005 08:41 AM

Ok I'm not exactly sure what happened, but the problem is resolved.

I confirmed again that the link was corect, which it was. On a whim I did a make clean and then a make and now it reports fine. The old source directory must've been used at some point, though I still don't understand why.

I guess as long as it's working...

Thanks for all the replies.

J.W. 03-24-2005 09:34 AM

Cool - congrats on getting it working and thanks for posting back with the followup. -- J.W.


All times are GMT -5. The time now is 07:17 AM.