Mailinglist Archive: opensuse (2700 mails)

< Previous Next >
Re: [SLE] uname -r different from usr/src/linux link
  • From: Sid Boyce <sboyce@xxxxxxxxxxxxxxxx>
  • Date: Fri, 01 Jul 2005 22:26:10 +0100
  • Message-id: <42C5B4F2.40406@xxxxxxxxxxxxxxxx>
Zoltan Szecsei wrote:
Can anyone tell me how this might have happened? - see listing below and note that uname -r returns one version of linux and /usr/src/linux is linked to a different version.

uname -r returns the kernel you are currently running which may not be the same as where /usr/src/linux is pointing. /usr/src/linux is surperfluous in 2.6 anyway.
I only noticed this after I tried to:

make clean ; make linux26

for zaptel which is part of asterisk.

First you need the kernel sources installed.
cd /usr/src/<kernel-source-directory>
make prepare-all
make cloneconfig
make && make modules_install
I make a habit of not touching my working kernel as it's easy to reboot on it if the new kernel fails or I mess it up. In the kernel Makefile, I change to something like EXTRAVERSION=-21.7a and copy the bzImage to /boot/, put in a line for the new kernel in /boot/grub/menu.lst, run mkinitrd and reboot on the new kernel.

Sid Boyce ... Hamradio License G3VBV, Keen licensed Private Pilot
Retired IBM Mainframes and Sun Servers Tech Support Specialist
Microsoft Windows Free Zone - Linux used for all Computing Tasks

< Previous Next >
This Thread