Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226037

Re: How to properly import the configuration of the Buster kernel into own development ?

From nito@dismail.de
Newsgroups linux.debian.user
Subject Re: How to properly import the configuration of the Buster kernel into own development ?
Date 2020-08-09 14:40 +0200
Message-ID <ABSMi-Ud-23@gated-at.bofh.it> (permalink)
References <ABRwS-ch-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Sun, Aug 09, 2020 at 13:14:19 +0200, Thomas Schmitt wrote:
> Hi,
> 
> are people here who make their own kernels and know how to import the
> configuration of the originally installed kernel ?
> 
> What should i do in order to bring the configuration of the original Buster
> kernel 4.19.0 to my experimental kernel which stems from the Buster package
> "linux-source-4.19" ?
> (There seem to be some new configuration options in the source kernel.)

For Debian systems the kernel config is shipped in /boot as 
/boot/config-(versioan and variant). You can use this as a basis, if you are 
on stable, maybe grab a newer config from unstable or testing first to reduce 
the config-differences between mainline and Debian's config.

Copy this config to your source tree as .config.
Then update your config with:
  make oldconfig
You'll be asked what to do about new config options that arent already ruled 
out by other selected options. (If you just want to select default for 
everything: make olddefconfig) 
Now you can treat it like every other (probably valid) config.


> I got lured by
>   https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html
> into following
>   "generate a configuration based on the running kernel and the currently
>    loaded modules (make localmodconfig)"
> which was obviously a poor decision.

If you want to save yourself some trouble with localmod, start with a 
known good distribution config (like debian's) and plug in all devices
you will ever use  before  you run make localmodconfig, to make sure 
necessary modules are loaded. You might still need to reenable some 
filesystems afterwards, if they weren't in use.


Nito

Back to linux.debian.user | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

How to properly import the configuration of the Buster kernel into own development ? "Thomas Schmitt" <scdbackup@gmx.net> - 2020-08-09 13:20 +0200
  Re: How to properly import the configuration of the Buster kernel  into own development ? The Wanderer <wanderer@fastmail.fm> - 2020-08-09 14:40 +0200
    How to properly import the configuration of the Buster kernel into own development ? "Thomas Schmitt" <scdbackup@gmx.net> - 2020-08-09 15:20 +0200
      Re: How to properly import the configuration of the Buster kernel  into own development ? songbird <songbird@anthive.com> - 2020-08-11 04:40 +0200
        Re: How to properly import the configuration of the Buster kernel into own development ? "Thomas Schmitt" <scdbackup@gmx.net> - 2020-08-11 11:20 +0200
  Re: How to properly import the configuration of the Buster kernel  into own development ? nito@dismail.de - 2020-08-09 14:40 +0200

csiph-web