Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

why is there a "+" in my kernel version string

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Geddy Leon
n00b
n00b
Posts: 22
Joined: Fri Jul 06, 2007 2:57 pm

why is there a "+" in my kernel version string

  • Quote

Post by Geddy Leon » Wed May 11, 2011 5:07 am

I built my own kernel from source - it works, but I noticed:

Code: Select all

$ uname -a
Linux dell_laptop 2.6.38.2+ #2 SMP PREEMPT Sun May 8 16:13:24 PDT 2011 x86_64 Intel(R) Core(TM)2 Duo CPU T9400 @ 2.53GHz GenuineIntel GNU/Linux
Why "2.6.38.2+" ? What determines if there is a "+" sign? Can I control that somehow? I don't think the genkernel generated kernels had a "+".

Thanks
Top
cach0rr0
Bodhisattva
Bodhisattva
User avatar
Posts: 4123
Joined: Thu Nov 13, 2008 11:14 pm
Location: Houston, Republic of Texas

  • Quote

Post by cach0rr0 » Wed May 11, 2011 6:09 am

this is normal, i cant remember what exactly controls it, but...

check out the Makefile ? include/config/kernel.release ?
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Top
s4e8
Guru
Guru
Posts: 311
Joined: Sat Jul 29, 2006 11:09 am

  • Quote

Post by s4e8 » Wed May 11, 2011 6:24 am

If the git tree doesn't end-up a tag, it will add a plus sign. It means this version plus something.
Top
Geddy Leon
n00b
n00b
Posts: 22
Joined: Fri Jul 06, 2007 2:57 pm

  • Quote

Post by Geddy Leon » Wed May 11, 2011 3:37 pm

I see. I wonder what I added. I cloned a kernel tree from kernel.org, then made a 2.6.38.2 branch from the tag

Code: Select all

$ git checkout -b br_2.6.38.2 v2.6.38.2 
Then I configured the kernel, compiled kernel and modules and installed them both. During kernel compile some new files are generated including
../include/linux/version.h which has the kernel version but, not sure where the "+" sign comes in from.

git tree doesn't end-up a tag
do you mean I should tag my own branch ?

I think I'd like to get rid of the "+".
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Sat Dec 19, 2015 3:24 am

http://stackoverflow.com/questions/1933 ... el-version
The plus sign at the end of your version string is there as an indicator that the kernel was built from modified sources (that is, there were non-committed changes). This is also indicated by the comments in scripts/setlocalversion.

To avoid the '+' being appended despite having a dirty working directory, simply set LOCALVERSION explicityly when running make:

make LOCALVERSION=
You may also have to change the configuration option CONFIG_LOCALVERSION_AUTO to n in your kernel config (.config) before building:

Code: Select all

sed -i "s|CONFIG_LOCALVERSION_AUTO=.*|CONFIG_LOCALVERSION_AUTO=n|" .config
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic