openSUSE Forums > Programming/Scripting » Problem : uname -r returns outdated kn version

Go Back   openSUSE Forums > Programming/Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


Programming/Scripting Questions about programming, bash scripts, perl, php, cron jobs, ruby, python, etc.

Reply
Page 2 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #11 (permalink)  
Old 24-Oct-2009, 16:59
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

as of this thread : uname -r giving me wrong kernel version : Fedora, Fedora, 9 it might be an EXTRA_VERSION value in the /usr/src/linux/MakeFile . let's check it out people !!
__________________
Visit my OBS repository w/ various packages (java apps, some devices modules) !
http://download.opensuse.org/repositories/home://broumbroum23/
openSUSE_11.1_oss/
openSUSE_11.2_non-oss/

Reply With Quote
  #12 (permalink)  
Old 03-Nov-2009, 18:45
Puzzled Penguin
 
Join Date: Sep 2008
Posts: 3
jlmoya hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

I too have the same problem. I have checked everywhere and I have installed kernel version 2.6.27.37-0.1 but uname returns 2.6.27.19-3.2.

I have even recompiled and reinstalled the kernel with the same result.

Does anyone know where does uname get it version info from?

Thanks.
Reply With Quote
  #13 (permalink)  
Old 03-Nov-2009, 18:55
Explorer Penguin
 
Join Date: Apr 2009
Posts: 685
ab@novell.com hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Did you reboot after getting the .37-0.1 patches?

Good luck.





jlmoya wrote:
> I too have the same problem. I have checked everywhere and I have
> installed kernel version 2.6.27.37-0.1 but uname returns 2.6.27.19-3.2.
>
> Does anyone know where does uname get it version info from?
>
> Thanks.
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK8NEUAAoJEF+XTK08PnB5YJ4QAMhJjdWohd 92EVlPziB96e6Z
az0ssKgxGHdGToOzBVc5FDA81bHNxvXm+I/Y11M+uPgOqLLcV9/ArYDY2nSs9prt
Stc+/gtF4khK37rOAQpbiz0BWtwUch8iZrqKD0jYDuOQhT6bXmcYu7d rIKzP+tIa
C1rQ+9S9ccXBEOq5YQ5JmbdOPSZZb5Zj9YAl/HRR1dNXnGQf5hojAxYTc2nNY97O
+OIvH+YDChHHC/ckAIVizcpGfkjExlmngV+jr59ZCGsjHQ9znKn2z3nHq9muNy/u
lhfFqqqOMIqJkrMUeyBEHsV/fgqnCsSHFlCuU9gkfQEyanShVh5pp/2ixOtda/De
fw/TVZCsK+kukCPSA+HYwT7wJMVMAqpd2kE3ZhttimjWwN8YlEAPE nj322EIqg8q
GjThj1NkkN5AapYX97iem/tx1+J2mqdz299fe4MdIShHc6W1V87EilR6Psb/gitt
Z/zN2IKg2jlWCHRcOuDULh0/oOs5uSOzxcoM6s72pVtXx1dbmeQNyaLC41d4aGM5
22O06+EKnUCbS0HTxPHWGgMMPMx2bTTSKwSvgrF/Ld1hHthkyQY78nhjqNjQiFJD
wKFMP7R//lj+758obZ4S/hirtVCY/CsWk6aQqOvN701xML/efrd5h1xA/K9PWXwV
cZdI7OlnMxiNT2MLsavT
=qPhz
-----END PGP SIGNATURE-----
Reply With Quote
  #14 (permalink)  
Old 03-Nov-2009, 20:52
Puzzled Penguin
 
Join Date: Sep 2008
Posts: 3
jlmoya hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

Thanks, yes I did boot after I compiled the kernel and got the same result.
Reply With Quote
  #15 (permalink)  
Old 03-Nov-2009, 22:48
Explorer Penguin
 
Join Date: Apr 2009
Posts: 685
ab@novell.com hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

You compiled the kernel? For some reason I thought you had just updated
from the repositories. I think there is an option in the kernel
configuration that lets you add a string to your kernel version but I
think it only lets you append to the end; I could be wrong and maybe it
lets you set the entire version and that is not being updated.

Good luck.





jlmoya wrote:
> Thanks, yes I did boot after I compiled the kernel and got the same
> result.
>
>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJK8Qe4AAoJEF+XTK08PnB5yBsQALNOUhFwVr ziGV6qIi6HVHtp
sfoQcOQWAwIdKuHP2UsQoaZpgWMWMASHqUyWQXS3n2KUEAA1j7 N0aZSy3xGsNJSA
6bhpOx6wr1FYoPGEtAINAcPiXtyBGXaIDONsq3cWxyPZQGg8ef 7GJFb2yBUu9hCE
Qa44NFwCIo4pMIvt+I7/77AJ8olGBh1KULf1r24E8OpRqKEfFa6zOl0XZgpvbwHb
yxkOWsuJtAsPbNNSkxejsL3wYRfS62MkRNv3TQzkixFc0DKu2u LyzALVzxFcbmQG
w6VVkkRDnRhaWlUzSHXDYuFIQX8KLdXDAReAEsU15JcEhpotuz eSoM4aLxYjfQ4E
PN9Y3bWO5dwQ2HNSv7+OVyQxe4XFRXsXEbyPTFQH5IDfjKX6rj qgiAk5L6albEI0
m1M/AU0lp58lOinmaTqL9eZj+5xBUvso77svO1gkVcRf/+Em05oIAB0wJZBL1fNo
n/bmuqoFRCOSi8BvfkIY074Mq9cxYZydS3a+e9GuRYfIUO4oY8Lc VUxFSPVTwMh4
egVPdIZA2q8US/b6ZoGTBt4oFHz2/AFdCwiLZIku1WZZuNO+GZuW5XLMcJqNjZ52
NgNjb0B3/+ef9NT8N/lTXS2H3U3TutjfU/XZSYBP1Aw2hkfXtFQm559glhrzRxu4
tcz8tLWLsmq6hGrc2efC
=CE/y
-----END PGP SIGNATURE-----
Reply With Quote
  #16 (permalink)  
Old 03-Nov-2009, 23:21
Puzzled Penguin
 
Join Date: Sep 2008
Posts: 3
jlmoya hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

Got it working even though I'm still not pleased with the solution, apparently the error comes from an outdated VirtualBox driver. What I did was the following:
  1. Downloaded and installed the latest version of VirtualBox from url=http://www.virtualbox.org
  2. Executed /etc/init.d/vboxdrv setup as root. Got an error because kernel versions don't match but this procedure uninstalls the old driver.
  3. Now this is the part I don't like. I opened yast and updated the coreutils package, plus installed coreutils-debugsource (Wanted to look at the source and understand how uname got its data). After checking uname.c code, I again uninstalled the debug packages (coreutils-debuginfo and coreutils-debugsource).
  4. Again executed /etc/init.d/vboxdrv setup and it worked. Mainly because uname -r now returns the correct version.

I wish I knew exactly what happened, I guess I should be happy because it's working now.
Reply With Quote
  #17 (permalink)  
Old 04-Nov-2009, 01:42
Wise Penguin
 
Join Date: Mar 2009
Posts: 1,824
Akoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the roughAkoellh is a reputation jewel in the rough
Default Re: Problem : uname -r returns outdated kn version

Seems to be a (very rare) bug in coreutils you got hit by.

For people understanding german:

LINUX - openSUSE - [geloest] Installierte Kernelversion stimmt nicht bei uname
__________________
“Never attribute to malice that which can be adequately explained by stupidity.” (R.J. Hanlon)
Reply With Quote
  #18 (permalink)  
Old 08-Nov-2009, 17:48
broumbroum23's Avatar
Puzzled Penguin
 
Join Date: Jan 2009
Posts: 39
broumbroum23 hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

thank you.
then coreutils and coreutils-lang must be re-installed... lol
__________________
Visit my OBS repository w/ various packages (java apps, some devices modules) !
http://download.opensuse.org/repositories/home://broumbroum23/
openSUSE_11.1_oss/
openSUSE_11.2_non-oss/

Reply With Quote
  #19 (permalink)  
Old 21-Nov-2009, 07:18
Puzzled Penguin
 
Join Date: Aug 2009
Posts: 1
eumaster hasn't been rated much yet
Default Re: Problem : uname -r returns outdated kn version

Hi!

I has similar problem with 'uname -r'

Before I updated opensuse from 10.3 to 11.1.

first time I got 'uname -r' from 10.3 (~2.6.22...), then I removed all modules from /lib/modules/ for 10.3, and got:

# uname -a
Linux gamma 2.6.27.19-3.2-default #1 SMP 2009-10-15 14:56:58 +0200 x86_64 x86_64 x86_64 GNU/Linux

Real version is:
# cat /proc/version
Linux version 2.6.27.37-0.1-default (geeko@buildhost) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #1 SMP

Also I removed all virtualbox, kvm modules.

As I understood, 'uname' is a system call from kernel. But I don't understand how to replace the version in kernel?


PS. Main problem for me is: hibernate to disk doesn't work!
Reply With Quote
Reply
Page 2 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2