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? |
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.. |
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. |
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. |
Why don't you show us your grub's menu.lst file to clarify some things?
|
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 |
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. |
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. |