'uname' is not updated after installing new '2.4.20' kernel??

'uname' is not updated after installing new '2.4.20' kernel??

Post by steve » Sat, 08 Mar 2003 02:46:57



hi;

using gentoo RC2.

I was using kernel 2.4.19.

when I did emerge 2 days ago, it downloaded a new kernel 2.4.20.

Ok, So I went to /usr/src and made a link to the new directory
and configured new kernel and build it (and modules, modules_install
etc...)
as I have done zillon times before:

lrwxrwxrwx    1 root     root  22  Mar  4 09:37 linux ->
linux-2.4.20-gentoo-r1
drwxr-xr-x   16 root     root  840 Mar  4 09:36
linux-2.4.19-gentoo-r10
drwxr-xr-x   16 root     root  840 Mar  4 10:02 linux-2.4.20-gentoo-r1

next, as usuall, I copied the newly compiled bzImage to /boot/bzImage

Quote:>cd /boot
>ls -l

total 3944
-rw-r--r--    1 root     root      1485414 Mar  4 10:05 bzImage
-rw-r--r--    1 root     root      1283810 Mar  1 18:48 bzImage.old

next I rebooted. btw, I am not using lilo, but the other boot manager
I think it is called grub.

so, after I shutdown the system and boot, I select as before the file
/boot/bzImage using the command

Quote:>kernel /boot/bzImage
>boot

now, when the system is up, I do 'uname' expecting it to say 2.4.20,
but
it is still saying 2.4.19 !

Quote:>uname -a

Linux mymachine.mydomain.com 2.4.19-gentoo-r10 #2 SMP Sat Feb 1
17:17:15 PST 2003 i686 Intel(R) XEON(TM) CPU 2.40GHz GenuineIntel
GNU/Linux

How could this be? is there another method to verify which kernel
version
I am running??

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Georg Sauthof » Sat, 08 Mar 2003 02:55:23



> hi;

Hi,

Quote:> How could this be? is there another method to verify which kernel
> version
> I am running??

dmesg | head -n 1

Regards
Georg Sauthoff

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Michael Heimin » Sat, 08 Mar 2003 04:43:19



> hi;
> using gentoo RC2.
> I was using kernel 2.4.19.
> it is still saying 2.4.19 !
>>uname -a
> Linux mymachine.mydomain.com 2.4.19-gentoo-r10 #2 SMP Sat Feb 1
> 17:17:15 PST 2003 i686 Intel(R) XEON(TM) CPU 2.40GHz GenuineIntel
> GNU/Linux

...

Quote:> How could this be? is there another method to verify which kernel
> version
> I am running??

I suspect 2.4.19 is still running, try 'cat /proc/version' but it's very
unlikely that it will show another version.

--
Michael Heiming

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of SPAM

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by steve » Sat, 08 Mar 2003 06:48:00





> >> How could this be? is there another method to verify which kernel
> >> version
> >> I am running??

> > dmesg | head -n 1

> or

> cat /proc/version

> GS

I did the above and this is the result

bash-2.05b# dmesg | head -n 1
 vendor init, caps: 3febfbff 00000000 00000000, vendor = 0

bash-2.05b# cat /proc/version

version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)) #2 SMP Sat Feb 1
17:17:15 PST 2003
bash-2.05b#

so, it is still running 2.4.19

strange. it should be 2.4.20, becuase that is the bzImage file I
build!
may be someone forgot to update the version string for the kernel in
2.4.20? do not where to look for that.

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Brett Holcom » Sat, 08 Mar 2003 08:04:19


it downloaded it when you synced but did you emerge the new kernel and then
build it with make dep, etc.?


> hi;

> using gentoo RC2.

> I was using kernel 2.4.19.

> when I did emerge 2 days ago, it downloaded a new kernel 2.4.20.

> Ok, So I went to /usr/src and made a link to the new directory
> and configured new kernel and build it (and modules, modules_install
> etc...)

--
Brett I. Holcomb

Microsoft MVP
AKA Grunt <><
Remove R777 to email
 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Floyd Davidso » Sat, 08 Mar 2003 09:31:45



>so, it is still running 2.4.19

>strange. it should be 2.4.20, becuase that is the bzImage file I
>build!
>may be someone forgot to update the version string for the kernel in
>2.4.20? do not where to look for that.

Maybe someone forgot to actually install their new bzImage file
and let LILO or GRUB in on the secret???? ;-(

--
Floyd L. Davidson         <http://www.ptialaska.net/~floyd>

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Nico Kadel-Garci » Sat, 08 Mar 2003 13:15:39






>>>>How could this be? is there another method to verify which kernel
>>>>version
>>>>I am running??

>>>dmesg | head -n 1

>>or

>>cat /proc/version

>>GS

> I did the above and this is the result

> bash-2.05b# dmesg | head -n 1
>  vendor init, caps: 3febfbff 00000000 00000000, vendor = 0

> bash-2.05b# cat /proc/version

> version 3.2.1 20021207 (Gentoo Linux 3.2.1-20021207)) #2 SMP Sat Feb 1
> 17:17:15 PST 2003
> bash-2.05b#

> so, it is still running 2.4.19

> strange. it should be 2.4.20, becuase that is the bzImage file I
> build!
> may be someone forgot to update the version string for the kernel in
> 2.4.20? do not where to look for that.

Maybe you forgot to run LILO or grub correctly or are getting an old MBR
that was never properly flushed? Because LILO points to the *block* that
the kernel is on, not the name of the kernel, and merely "rm'ing" a file
doesn't necessarily erase the blocks it used to live on.
 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Dennis Nienhüse » Sat, 08 Mar 2003 17:19:21



> next, as usuall, I copied the newly compiled bzImage to /boot/bzImage

>>cd /boot
>>ls -l
> total 3944
> -rw-r--r--    1 root     root      1485414 Mar  4 10:05 bzImage
> -rw-r--r--    1 root     root      1283810 Mar  1 18:48 bzImage.old

Maybe you just forgot to mount /boot?

Dennis

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by S. Par » Sun, 09 Mar 2003 15:17:36



> hi;

> using gentoo RC2.

> I was using kernel 2.4.19.

> when I did emerge 2 days ago, it downloaded a new kernel 2.4.20.

> Ok, So I went to /usr/src and made a link to the new directory
> and configured new kernel and build it (and modules, modules_install
> etc...)
> as I have done zillon times before:

> lrwxrwxrwx    1 root     root  22  Mar  4 09:37 linux ->
> linux-2.4.20-gentoo-r1
> drwxr-xr-x   16 root     root  840 Mar  4 09:36
> linux-2.4.19-gentoo-r10
> drwxr-xr-x   16 root     root  840 Mar  4 10:02 linux-2.4.20-gentoo-r1

> next, as usuall, I copied the newly compiled bzImage to /boot/bzImage

>>cd /boot
>>ls -l
> total 3944
> -rw-r--r--    1 root     root      1485414 Mar  4 10:05 bzImage
> -rw-r--r--    1 root     root      1283810 Mar  1 18:48 bzImage.old

> next I rebooted. btw, I am not using lilo, but the other boot manager
> I think it is called grub.

> so, after I shutdown the system and boot, I select as before the file
> /boot/bzImage using the command

>>kernel /boot/bzImage
>>boot

> now, when the system is up, I do 'uname' expecting it to say 2.4.20,
> but
> it is still saying 2.4.19 !

>>uname -a
> Linux mymachine.mydomain.com 2.4.19-gentoo-r10 #2 SMP Sat Feb 1
> 17:17:15 PST 2003 i686 Intel(R) XEON(TM) CPU 2.40GHz GenuineIntel
> GNU/Linux

> How could this be? is there another method to verify which kernel
> version
> I am running??

To make sure, check the version number listed at the top of the file
/usr/src/linux/Makefile. If it says, 2.4.19, you got wrong source.

Regards.

 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by Doug Mitt » Mon, 10 Mar 2003 09:37:54


Hi Steve;

I'm not going to say I have a solution to your problem BUT as of
kernel version 2.4.19 I noticed a change in the way kernel patches are
applied.

Somewhat like you I do the following:
- Download kernel patch (ie. patch-2.4.19.gz)
- cd /usr/src
- make a backup copy of my old kernel
  cp -av linux-2.4.18 linux-2.4.19
- change the /usr/src/linux symlink to point to 2.4.19
- gzip -cd patch-2.4.19.gz | patch -p0
- cd linux
- make oldconfig, etc, etc
- lilo, etc, etc.

When I went from 2.4.18 to 2.4.19 the new kernel was still identified
at 2.4.18!  Well, this isn't the first time I've gotten a bad patch so
I downloaded the whole source tree for 2.4.19, copied over .config and
tried again ... all was well.

When I upgraded from 2.4.19 to 2.4.20 the same problem showed up!  Two
bad patch files in a row is NOT possible so I investigated further.
It seems now, the 2.4.19 patch file is updating the linux-2.4.18
directory, NOT the linux symlink.

Now, this is a lot of typing without supplying a solution to your
problem BUT my point is there was a kernel handling change made right
around kernel 2.4.19 and you may be seeing another face of it.  Maybe
this will tweak yours (or another readers memory) and shed some light
on this issue.

Good luck in your search!


>hi;

>using gentoo RC2.

>I was using kernel 2.4.19.

>when I did emerge 2 days ago, it downloaded a new kernel 2.4.20.

>Ok, So I went to /usr/src and made a link to the new directory
>and configured new kernel and build it (and modules, modules_install
>etc...)
>as I have done zillon times before:

>lrwxrwxrwx    1 root     root  22  Mar  4 09:37 linux ->
>linux-2.4.20-gentoo-r1
>drwxr-xr-x   16 root     root  840 Mar  4 09:36
>linux-2.4.19-gentoo-r10
>drwxr-xr-x   16 root     root  840 Mar  4 10:02 linux-2.4.20-gentoo-r1

>next, as usuall, I copied the newly compiled bzImage to /boot/bzImage

>>cd /boot
>>ls -l
>total 3944
>-rw-r--r--    1 root     root      1485414 Mar  4 10:05 bzImage
>-rw-r--r--    1 root     root      1283810 Mar  1 18:48 bzImage.old

>next I rebooted. btw, I am not using lilo, but the other boot manager
>I think it is called grub.

>so, after I shutdown the system and boot, I select as before the file
>/boot/bzImage using the command

>>kernel /boot/bzImage
>>boot

>now, when the system is up, I do 'uname' expecting it to say 2.4.20,
>but
>it is still saying 2.4.19 !

>>uname -a
>Linux mymachine.mydomain.com 2.4.19-gentoo-r10 #2 SMP Sat Feb 1
>17:17:15 PST 2003 i686 Intel(R) XEON(TM) CPU 2.40GHz GenuineIntel
>GNU/Linux

>How could this be? is there another method to verify which kernel
>version
>I am running??

 ------------------------------------------------
          http://www3.sympatico.ca/dmitton
   SPAM Reduction: Remove "x." from my domain.
 ------------------------------------------------
 
 
 

'uname' is not updated after installing new '2.4.20' kernel??

Post by steve » Mon, 10 Mar 2003 13:16:05




> > next, as usuall, I copied the newly compiled bzImage to /boot/bzImage

> >>cd /boot
> >>ls -l
> > total 3944
> > -rw-r--r--    1 root     root      1485414 Mar  4 10:05 bzImage
> > -rw-r--r--    1 root     root      1283810 Mar  1 18:48 bzImage.old

> Maybe you just forgot to mount /boot?

> Dennis

thanks!  Yes, that was the problem.

I have /dev/hda1 as /boot, but gentoo does not mount /boot automatically
when the system comes up (for saftey I assume).

so I was copying bzImage to the mount point /boot on /dev/hda3 instead
to the real /boot on /dev/hda1, and grub was ofcourse looking at the real
/boot to load the kernel.