difference between two kernel version shown by ‘uname -a'

If none of the more specific forums is the right place to ask

difference between two kernel version shown by ‘uname -a'

Postby jw915086731 » 2018-03-26 04:34

I am using debian 9.4, the kernel version shown by 'uname -a' is different, what's the actual kernel version? What does '4.9.82-1+deb9u3' mean?

Code: Select all
Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02) x86_64 GNU/Linux

'apt-get source linux' can get the source code of current kernel, then I can get original kernel tar file and debian patch.

Code: Select all
linux-4.9.82                         linux_4.9.82-1+deb9u3.dsc
linux_4.9.82-1+deb9u3.debian.tar.xz  linux_4.9.82.orig.tar.xz

'linux_4.9.82-1+deb9u3.debian.tar.xz' contains many files, what are them used for? how to patch the it to 'linux_4.9.82.orig.tar.xz ' ?

'linux-4.9.82' is the kernel source folder outputted by 'apt-get source' command, which can be compiled to vmlinux. However, I usually can't debug the crash dump files with the vmlinux, as 'crash' command gives the error message: mismatch version. Should I download 'kernel 4.9.0' from kernel.org instead of 'linux-4.9.82' to debug my current running kernel ?
Posts: 1
Joined: 2018-03-26 03:48

Re: difference between two kernel version shown by ‘uname -a

Postby Segfault » 2018-03-26 12:03

I'll tell you how it works. First, there is a kernel image. It does not matter what it is called, you can name it bumbumohoh and as long as your booloader can find it it will boot. Now, uname -a tells you the internal name of running kernel. Another command, file, can tell you also names of not running kernels.
Code: Select all
file /boot/*

To debug there has to be corresponding System.map. And indeed, if you are using modules they go to /lib/modules/<version>/. Optionally, there can be initrd which will supplement the kernel image with missing modules needed to boot your box. This is how it is done with generic kernels.
Posts: 664
Joined: 2005-09-24 12:24

Re: difference between two kernel version shown by ‘uname -a

Postby None1975 » 2018-03-26 13:39

Check this.
OS: Debian 9.4 / WM: Xmonad
Debian Wiki | DontBreakDebian, My config files in github
Linux User #607425
User avatar
Posts: 505
Joined: 2015-11-29 18:23
Location: Lithuania, Vilnius

Re: difference between two kernel version shown by ‘uname -a

Postby stevepusser » 2018-03-26 16:45

The debian "4.9.0-6" is a kernel ABI that's set in the debian/config/defines file. It doesn't change between security updates for the standard 4.9 kernel. I surmise that this is to make sure that the security updates are seen as updates by apt instead of entirely different kernels.

As for what all those files in the debian folder are for, that is a rather complicated topic. Basically, they are instructions files as to how to patch, configure, build, and package the kernel.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: GIMP 2.10.4, Pale Moon 27.9.4, wine-staging 3.12, MPC-QT 18.03, Linux kernel 4.17.6, Krita 4.1.1
User avatar
Posts: 9719
Joined: 2009-10-06 05:53

Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests