Re: About "Debian is independent of the linux kernel"

2020-03-16 Thread Johann Klammer
On 03/05/2020 03:20 PM, Yongxian.Yao wrote:
> Hi
> 
> 
> Recently, I want to use the linux-4.9.90 on Debian9.12,but I doubts when 
> compiling the kernel. 
> 1、Is it necessary to use the config-4.9.0-12 to compile the linux-4.9.90 
> kernel? 
Yes, it is usually a good Idea to start with their config file and change those 
entries that you need. It tends to mostly(tm) work with the original source 
tree.
You will still have to tweak and compile at least three times to get the thing 
to boot.
> 2、Does Debian9.12 have any special kernel configuration?
The boot process usually works through an initrd disk image
which holds a bunch of loadable modules. You have to be careful 
that the file system of the initrd image is compiled into the kernel.
and you want to build all the relevant modules to use your 
disk controllers and filesystems and stuff or boot process will not complete.

> 3、How to understand that the Debian distribution is independent of the linux 
> kernel?
They also have BSD kernel and HURD kernel and such...




Re: About "Debian is independent of the linux kernel"

2020-03-05 Thread tomas
On Thu, Mar 05, 2020 at 09:25:07PM +0800, Yongxian.Yao wrote:
> Hi
> 
> 
> Recently, I want to use the linux-4.9.90 on Debian9.12,but I doubts when 
> compiling the kernel. 
> 1、Is it necessary to use the config-4.9.0-12 to compile the linux-4.9.90 
> kernel? 
> 2、Does Debian9.12 have any special kernel configuration?
> 3、How to understand that the Debian distribution is independent of the linux 
> kernel?

There is a subsection of the Debian wiki dedicated to the kernel
and its integration in Debian:

  https://wiki.debian.org/Kernel

Perhaps start with the FAQ:

  https://wiki.debian.org/KernelFAQ

Cheers
-- tomás


signature.asc
Description: Digital signature


Re: About "Debian is independent of the linux kernel"

2020-03-05 Thread Greg Wooledge
On Thu, Mar 05, 2020 at 09:25:07PM +0800, Yongxian.Yao wrote:
> Recently, I want to use the linux-4.9.90 on Debian9.12,

Why?  The kernel shipped by Debian for stretch is newer than this
(upstream version 4.9.210 currently).

>but I doubts when compiling the kernel. 

If you want to use an *old* kernel, you might not even need to compile
it.  You might simply be able to use one of the old linux-image-*
packages.  It depends on why you want an older kernel.

> 1、Is it necessary to use the config-4.9.0-12 to compile the linux-4.9.90 
> kernel? 

That configuration file is for the 4.9.210 (or thereabouts) kernel
source, so it may or may not work with your older source tree.

You might have better luck starting with a configuraton file for
whichever stretch kernel is closest to the old source tree you're
trying to build.

> 2、Does Debian9.12 have any special kernel configuration?

Too vague.  Let's go with "Yes".

> 3、How to understand that the Debian distribution is independent of the linux 
> kernel?

You can build a custom kernel and boot it.  That custom kernel is
yours, and you are the one who will be responsible for supporting it.

You could even use a kernel from some other distribution, but once
again, you're the one who's responsible if it doesn't work.



About "Debian is independent of the linux kernel"

2020-03-05 Thread Yongxian.Yao
Hi


Recently, I want to use the linux-4.9.90 on Debian9.12,but I doubts when 
compiling the kernel. 
1、Is it necessary to use the config-4.9.0-12 to compile the linux-4.9.90 
kernel? 
2、Does Debian9.12 have any special kernel configuration?
3、How to understand that the Debian distribution is independent of the linux 
kernel?


Thanks!


---
Yao