LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-11-2004, 03:42 AM   #1
cbielke
LQ Newbie
 
Registered: Jul 2004
Location: Munich / Germany
Distribution: SuSE
Posts: 5

Rep: Reputation: 0
installed kernel version?


I have got a problem to find out which kernel version is really installed.

I compiled and installed an updated kernel. I followed the instructions in the SuSE admin guide. I have done this a few times before, and it always worked well. But now there is a strange problem.

The compiled version is linux-2.6.5-7.111.5.

But after a reboot, uname -a sais
Linux nacktmull 2.6.5-7.108-default #1 Fri Dec 10 11:34:19 CET 2004 i686 i686 i386 GNU/Linux
(nacktmull is my machine)

and cat /proc/version also sais:
Linux version 2.6.5-7.108-default (geeko@buildhost) (gcc version 3.3.3 (SuSE Linux)) #1 Fri Dec 10 11:34:19 CET 2004

The date Fri Dec 10 is correct (the time when I compiled the new kernel). But the kernel version should be 2.6.5-7.111.5 and not 2.6.5-7.108.

Does anybody have an idea why the reported kernel version number is the old one? Everything in the installation looks correct:

/usr/src/linux -> linux-2.6.5-7.111.5,
/boot/vmlinuz -> vmlinuz-2.6.5-7.111.5-default.

That's what you expect. Also the entry in /boot/grub/menu.lst sais
kernel (hd0,3)/boot/vmlinuz root=/dev/hda4 vga=0x317 splash=native desktop resume=/dev/hda3 showopts

I would like to make shure that I have the 2.6.5-7.111.5 installed. And I would like uname and /dev/version to report the correct version number.
 
Old 12-11-2004, 11:22 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
I don't know how this could have happend, but I would say that the Makefile contains still the old version. If you are sure that you've installed the correct sources, then you could manually edit the Makefile to the correct version number (certainly requires to compile the kernel again).

Did you patch the old kernel or did you install new sources? I can't figure out how this could happen.
 
Old 12-11-2004, 06:09 PM   #3
cbielke
LQ Newbie
 
Registered: Jul 2004
Location: Munich / Germany
Distribution: SuSE
Posts: 5

Original Poster
Rep: Reputation: 0
The sources are not patched but downloaded when I did a SuSE yast online update.

The problem is: I think it should be the newer kernel, but I do not know how to verify this.

I do not know where the version information is written. Is it hard coded in the C source, or in the Makefile or in the config file?

If it is in the config file, could 'make oldconfig' have caused this problem?
 
Old 12-13-2004, 01:50 AM   #4
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
The version should be set in the Makefile. Have a look at the first few rows.

I think most of the methods you've already used:

Code:
rpm -q kernel-source
rpm -q kernel-default
uname -r
ls -l /usr/src/linux
ls -l /boot/vmlinuz
Code:
$>cat /usr/src/linux-2.6.7/Makefile
VERSION = 2
PATCHLEVEL = 6
SUBLEVEL = 7
EXTRAVERSION =
NAME=Zonked Quokka
...
I usually clone the old kernel config with
Code:
zcat /proc/config.gz > .config
make oldconfig
make prepare
I think make cloneconfig does the same.

Since you seem to be german, I would highly recommend to have a look here:
http://www.thomashertweck.de/kernel26.html
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding distribution + kernel version + gcc version + glib version. JCipriani Linux - General 8 04-19-2008 02:54 PM
Help! Installed the i686 kernel & glibc packages instead of the i386 version penguin_powered Linux - Newbie 3 04-11-2004 11:45 PM
redhat fedora gcc version (compiled for 2.4.20) doesn't match kernel version 2.4.22 start1000 Linux - Software 0 03-16-2004 08:17 PM
Xfree prob radeon.o kernel module version is 1.1.1 but version 1.5.0 or newer needed. jimdaworm Slackware 0 10-01-2003 06:27 PM
Sample Driver Module incompatibility with Kernel version (or gcc version) jvs Linux - General 1 06-07-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration