public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] uname -a question
@ 2006-01-28 14:52 Ernie Schroder
  2006-01-28 15:31 ` Richard Fish
  0 siblings, 1 reply; 9+ messages in thread
From: Ernie Schroder @ 2006-01-28 14:52 UTC (permalink / raw
  To: gentoo-user

Where does uname find kernel version? For my last 2 new kernels, uname -a 
returns some off the wall kernel version. It seems to be picking up extra 
info from God know where.

$ uname -a
Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006 i686 
AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux

running kernel lines from grub.conf:

title  Gentoo-2.6.15
root   (hd0,0)
kernel /bzImage-2.6.15-r1 root=/dev/hda5

cat /proc/version
Linux version 2.6.15-gentoo-r12.6.14-r-4_new (root@MRK) (gcc version 3.4.4 
(Gentoo 3.4.4-r1, ssp-3.4.4-1.0, pie-8.7.8)) #1 Fri Jan 27 12:38:49 EST 2006

/lib/modules for the new kernels is affected too:

$ locate r12.6.14-r-4_new
/lib/modules/2.6.15-gentoo-r12.6.14-r-4_new
<snip>

Everything is working just fine, but this is annoying me to no end.

-- 
Regards, Ernie
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-28 14:52 [gentoo-user] uname -a question Ernie Schroder
@ 2006-01-28 15:31 ` Richard Fish
  2006-01-28 16:30   ` Ernie Schroder
  0 siblings, 1 reply; 9+ messages in thread
From: Richard Fish @ 2006-01-28 15:31 UTC (permalink / raw
  To: gentoo-user

On 1/28/06, Ernie Schroder <schroder@ntplx.net> wrote:
> Where does uname find kernel version? For my last 2 new kernels, uname -a
> returns some off the wall kernel version. It seems to be picking up extra
> info from God know where.

It comes from the version embedded in the kernel, returned via the
uname system call (man 2 uname).

carcharias rjf # strace -v -e uname uname
uname({sysname="Linux", nodename="carcharias",
release="2.6.15-suspend2-r3", version="#3 PREEMPT Sat Jan 21 10:00:05
MST 2006", machine="i686"}) = 0
uname({sysname="Linux", nodename="carcharias",
release="2.6.15-suspend2-r3", version="#3 PREEMPT Sat Jan 21 10:00:05
MST 2006", machine="i686"}) = 0

> $ uname -a
> Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006 i686
> AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux

There are various ways these versions can be set, including
EXTRAVERSION and LOCALVERSION.

What are using to build these kernels?

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-28 15:31 ` Richard Fish
@ 2006-01-28 16:30   ` Ernie Schroder
  2006-01-29 15:02     ` Neil Bothwick
  0 siblings, 1 reply; 9+ messages in thread
From: Ernie Schroder @ 2006-01-28 16:30 UTC (permalink / raw
  To: gentoo-user

On Saturday 28 January 2006 10:31, a tiny voice compelled Richard Fish to 
write:
> On 1/28/06, Ernie Schroder <schroder@ntplx.net> wrote:
> > Where does uname find kernel version? For my last 2 new kernels, uname -a
> > returns some off the wall kernel version. It seems to be picking up extra
> > info from God know where.
>
> It comes from the version embedded in the kernel, returned via the
> uname system call (man 2 uname).
>
> carcharias rjf # strace -v -e uname uname
> uname({sysname="Linux", nodename="carcharias",
> release="2.6.15-suspend2-r3", version="#3 PREEMPT Sat Jan 21 10:00:05
> MST 2006", machine="i686"}) = 0
> uname({sysname="Linux", nodename="carcharias",
> release="2.6.15-suspend2-r3", version="#3 PREEMPT Sat Jan 21 10:00:05
> MST 2006", machine="i686"}) = 0
>
> > $ uname -a
> > Linux MRK 2.6.15-gentoo-r12.6.14-r-4_new #1 Fri Jan 27 12:38:49 EST 2006
> > i686 AMD Athlon(tm) XP 2400+ AuthenticAMD GNU/Linux
>
> There are various ways these versions can be set, including
> EXTRAVERSION and LOCALVERSION.
>
> What are using to build these kernels?
>
> -Richard
 using the typical change symlink copy over .config, make oldconfig make && 
make modules_install    cp arch etc.
Obviously, I made a typo last upgrade but I can't figure out how to fix it 
now.
-- 
Regards, Ernie
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-28 16:30   ` Ernie Schroder
@ 2006-01-29 15:02     ` Neil Bothwick
  2006-01-29 15:33       ` Ernie Schroder
  0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2006-01-29 15:02 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 452 bytes --]

On Sat, 28 Jan 2006 11:30:42 -0500, Ernie Schroder wrote:

> > What are using to build these kernels?

>  using the typical change symlink copy over .config, make oldconfig
> make && make modules_install    cp arch etc.
> Obviously, I made a typo last upgrade but I can't figure out how to fix
> it now.

What does " grep VERSION /usr/src/linux/.config" return?


-- 
Neil Bothwick

Never drink coffee that's been anywhere near a fish.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-29 15:02     ` Neil Bothwick
@ 2006-01-29 15:33       ` Ernie Schroder
  2006-01-29 16:29         ` Neil Bothwick
  0 siblings, 1 reply; 9+ messages in thread
From: Ernie Schroder @ 2006-01-29 15:33 UTC (permalink / raw
  To: gentoo-user

On Sunday 29 January 2006 10:02, a tiny voice compelled Neil Bothwick to 
write:
> On Sat, 28 Jan 2006 11:30:42 -0500, Ernie Schroder wrote:
> > > What are using to build these kernels?
> >
> >  using the typical change symlink copy over .config, make oldconfig
> > make && make modules_install    cp arch etc.
> > Obviously, I made a typo last upgrade but I can't figure out how to fix
> > it now.
>
> What does " grep VERSION /usr/src/linux/.config" return?


$ grep VERSION /usr/src/linux/.config
CONFIG_LOCALVERSION="2.6.14-r-4_new"

Hmm that seems to be it. It would appear that I have to rebuild the kernel 
with appropriate version descriptor. I used my old config and added the 
2.6.14-r4-new string when I built that kernel. I guess I'll just live with it 
until I build another one. Thanks Neil.

-- 
Regards, Ernie
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-29 15:33       ` Ernie Schroder
@ 2006-01-29 16:29         ` Neil Bothwick
  2006-01-29 16:37           ` Ernie Schroder
  0 siblings, 1 reply; 9+ messages in thread
From: Neil Bothwick @ 2006-01-29 16:29 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 489 bytes --]

On Sun, 29 Jan 2006 10:33:39 -0500, Ernie Schroder wrote:

> $ grep VERSION /usr/src/linux/.config
> CONFIG_LOCALVERSION="2.6.14-r-4_new"
> 
> Hmm that seems to be it. It would appear that I have to rebuild the
> kernel with appropriate version descriptor. I used my old config and
> added the 2.6.14-r4-new string when I built that kernel.

You need to set it to "", but it's not critical for now.

-- 
Neil Bothwick

Veni, vermini, vomui
I came, I got ratted, I threw up

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-29 16:29         ` Neil Bothwick
@ 2006-01-29 16:37           ` Ernie Schroder
  2006-01-30 18:00             ` Jerry Eastmanhouser
  0 siblings, 1 reply; 9+ messages in thread
From: Ernie Schroder @ 2006-01-29 16:37 UTC (permalink / raw
  To: gentoo-user

On Sunday 29 January 2006 11:29, a tiny voice compelled Neil Bothwick to 
write:
> On Sun, 29 Jan 2006 10:33:39 -0500, Ernie Schroder wrote:
> > $ grep VERSION /usr/src/linux/.config
> > CONFIG_LOCALVERSION="2.6.14-r-4_new"
> >
> > Hmm that seems to be it. It would appear that I have to rebuild the
> > kernel with appropriate version descriptor. I used my old config and
> > added the 2.6.14-r4-new string when I built that kernel.
>
> You need to set it to "", but it's not critical for now.

So true! I am annoyed by this but as far as I can see, the only way to get rid 
of the string is to rebuild my kernel. I guess I'll wait for the next version 
bump.

-- 
Regards, Ernie
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-29 16:37           ` Ernie Schroder
@ 2006-01-30 18:00             ` Jerry Eastmanhouser
  2006-01-31 16:57               ` Richard Fish
  0 siblings, 1 reply; 9+ messages in thread
From: Jerry Eastmanhouser @ 2006-01-30 18:00 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1478 bytes --]

I thought that this was in the top 4 lines of the kernel Makefile.
It's embedded in the kernel after the kernel is compiled.
Example is from my servers below for the 2.4 kernel.
The extraversion line is set to whatever I want...it just appends
that to the end of kernel name...so if you want to have two 2.4.31
kernels you just change the extra version to something different
to differenciate between the kernels.

Standard location is going to be /usr/src/linux/Makefile

*VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 31
EXTRAVERSION = -gentoo-r1*

*KERNELRELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)*



On 1/29/06, Ernie Schroder <schroder@ntplx.net> wrote:
>
> On Sunday 29 January 2006 11:29, a tiny voice compelled Neil Bothwick to
> write:
> > On Sun, 29 Jan 2006 10:33:39 -0500, Ernie Schroder wrote:
> > > $ grep VERSION /usr/src/linux/.config
> > > CONFIG_LOCALVERSION="2.6.14-r-4_new"
> > >
> > > Hmm that seems to be it. It would appear that I have to rebuild the
> > > kernel with appropriate version descriptor. I used my old config and
> > > added the 2.6.14-r4-new string when I built that kernel.
> >
> > You need to set it to "", but it's not critical for now.
>
> So true! I am annoyed by this but as far as I can see, the only way to get
> rid
> of the string is to rebuild my kernel. I guess I'll wait for the next
> version
> bump.
>
> --
> Regards, Ernie
> --
> gentoo-user@gentoo.org mailing list
>
>

[-- Attachment #2: Type: text/html, Size: 2001 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] uname -a question
  2006-01-30 18:00             ` Jerry Eastmanhouser
@ 2006-01-31 16:57               ` Richard Fish
  0 siblings, 0 replies; 9+ messages in thread
From: Richard Fish @ 2006-01-31 16:57 UTC (permalink / raw
  To: gentoo-user

On 1/30/06, Jerry Eastmanhouser <fuct.it@gmail.com> wrote:
> I thought that this was in the top 4 lines of the kernel Makefile.
>
> Standard location is going to be /usr/src/linux/Makefile
>
>
> VERSION = 2
> PATCHLEVEL = 4

This is still true with the 2.6 kernel, except that there is now also
a LOCALVERSION that comes from the .config file.

-Richard

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-01-31 17:03 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-28 14:52 [gentoo-user] uname -a question Ernie Schroder
2006-01-28 15:31 ` Richard Fish
2006-01-28 16:30   ` Ernie Schroder
2006-01-29 15:02     ` Neil Bothwick
2006-01-29 15:33       ` Ernie Schroder
2006-01-29 16:29         ` Neil Bothwick
2006-01-29 16:37           ` Ernie Schroder
2006-01-30 18:00             ` Jerry Eastmanhouser
2006-01-31 16:57               ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox