public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* kernel version problem after patching
@ 2014-09-18 11:34 r02
  2014-09-18 12:00 ` Gene Heskett
  0 siblings, 1 reply; 3+ messages in thread
From: r02 @ 2014-09-18 11:34 UTC (permalink / raw)
  To: linux-kernel

There is a kernel version problem after patching the kernel. After
installing the kernel and the kernel modules, without patching the kernel,
then "uname" shows the right kernel version and in "/lib/modules/" there
was the right directory created. 

But after patching the kernel, installing it and the modules, then the 
kernelversion shown with "uname" and the modules directory in 
"/lib/modules/" is not correct anymore. 

For example: 
If i download the kernel 3.14.19, patch it, and install the kernel and the
modules then "uname" shows kernel version 3.14.0 and the modules are
installed in "/lib/modules/3.14.0/" instead of 3.14.19 which would be the
correct version.

The same problem happens with other kernel versions too below 3.14.19 and
also to kernel version 3.16.3 and versions below. But probably much more
kernel versions are affected from this problem.

If someone has an older kernel installed correctly, 3.16 for example, and
wants to install a patched second kernel, 3.16.3 for example, then the
modules directory of the first one will be overwritten unwanted due to
this version error because both kernels have the same modules directory
"/lib/modules/3.16.0".

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

* Re: kernel version problem after patching
  2014-09-18 11:34 kernel version problem after patching r02
@ 2014-09-18 12:00 ` Gene Heskett
  0 siblings, 0 replies; 3+ messages in thread
From: Gene Heskett @ 2014-09-18 12:00 UTC (permalink / raw)
  To: linux-kernel

On Thursday 18 September 2014, r02@safe-mail.net wrote:
>There is a kernel version problem after patching the kernel. After
>installing the kernel and the kernel modules, without patching the
>kernel, then "uname" shows the right kernel version and in
>"/lib/modules/" there was the right directory created.
>
>But after patching the kernel, installing it and the modules, then the
>kernelversion shown with "uname" and the modules directory in
>"/lib/modules/" is not correct anymore.
>
>For example:
>If i download the kernel 3.14.19, patch it, and install the kernel and
>the modules then "uname" shows kernel version 3.14.0 and the modules
>are installed in "/lib/modules/3.14.0/" instead of 3.14.19 which would
>be the correct version.
>
>The same problem happens with other kernel versions too below 3.14.19
>and also to kernel version 3.16.3 and versions below. But probably much
>more kernel versions are affected from this problem.
>
>If someone has an older kernel installed correctly, 3.16 for example,
>and wants to install a patched second kernel, 3.16.3 for example, then
>the modules directory of the first one will be overwritten unwanted due
>to this version error because both kernels have the same modules
>directory "/lib/modules/3.16.0".

I got bit by that when I built the tarball of 3.1.6.0 the first time, it 
all went into 3.16.  The .0 was missing in the tarballs Makefile.  And, 
that is how it unpacked from the tarball too.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
US V Castleman, SCOTUS, Mar 2014 is grounds for Impeaching SCOTUS

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

* Re: kernel version problem after patching
@ 2014-10-08 13:58 e40
  0 siblings, 0 replies; 3+ messages in thread
From: e40 @ 2014-10-08 13:58 UTC (permalink / raw)
  To: linux-kernel

  
To solve this error you have to edit the "Makefile" inside the 
main kernel directory after you have patched the kernel.

At the beginning of the "Makefile" there are three variables
which can contain wrong values after patching. These are:
"PATCHLEVEL", "SUBLEVEL" and "EXTRAVERSION".

 ---

On Thursday 18 September 2014, r02@safe-mail.net wrote:
>There is a kernel version problem after patching the kernel. After
>installing the kernel and the kernel modules, without patching the
>kernel, then "uname" shows the right kernel version and in
>"/lib/modules/" there was the right directory created.
>
>But after patching the kernel, installing it and the modules, then the
>kernelversion shown with "uname" and the modules directory in
>"/lib/modules/" is not correct anymore.
>
>For example:
>If i download the kernel 3.14.19, patch it, and install the kernel and
>the modules then "uname" shows kernel version 3.14.0 and the modules
>are installed in "/lib/modules/3.14.0/" instead of 3.14.19 which would
>be the correct version.
>
>The same problem happens with other kernel versions too below 3.14.19
>and also to kernel version 3.16.3 and versions below. But probably much
>more kernel versions are affected from this problem.
>
>If someone has an older kernel installed correctly, 3.16 for example,
>and wants to install a patched second kernel, 3.16.3 for example, then
>the modules directory of the first one will be overwritten unwanted due
>to this version error because both kernels have the same modules
>directory "/lib/modules/3.16.0".
 

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

end of thread, other threads:[~2014-10-08 13:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-18 11:34 kernel version problem after patching r02
2014-09-18 12:00 ` Gene Heskett
  -- strict thread matches above, loose matches on Subject: below --
2014-10-08 13:58 e40

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