From: Eli Schwartz <eschwartz@gentoo.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel
Date: Wed, 9 Oct 2024 20:44:23 -0400 [thread overview]
Message-ID: <e18bf427-17e3-4c34-a360-c1d1819336f8@gentoo.org> (raw)
In-Reply-To: <2717394.BddDVKsqQX@rogueboard>
[-- Attachment #1.1: Type: text/plain, Size: 1673 bytes --]
On 10/9/24 6:08 PM, Michael wrote:
>> I have a recollection of reading somewhere online mention of a
> script
>> that will take the .config file from the "-bin" kernel and then
>> modprobe, I think, each listed module in turn to see if it is actually
>> being used and subsequently writing a new .config file that now only
>> contains the modules/options that the specific machine needs.
>>
>> Is this a mythical script that I have dreamt up after a long day and
>> too much chocolate or does it actually exist and does anyone have a link.
>>
>> Thanks for any thoughts,
>>
>> Andrew
>
> Have a look at this page:
>
> https://wiki.gentoo.org/wiki/Kernel/Configuration
>
> In particular, take notice of 'make localmodconfig'.
>
> Once you have a customised kernel as you like it and it boots successfully,
> you can copy your good /usr/src/linux/.config to any subsequently emerged new
> gentoo-source kernel trees and run 'make oldconfig' thereafter, to only have
> to deal with new kernel options.
See also https://wiki.gentoo.org/wiki/Modprobed-db
"make localmodconfig" will only handle what your current system state is
using right at that second -- modprobed-db maintains a database over
time of the modules that "make localmodconfig" would see, which means
you can run the -bin kernel for a bit under your usual workloads and
then activate "make localmodconfig" via that database without worrying
about "an important module I often use was not loaded today specifically
because I didn't run the program which needs it today. Now the newly
built kernel doesn't have that module at all, oops".
--
Eli Schwartz
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 236 bytes --]
prev parent reply other threads:[~2024-10-10 0:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <379cf455-3ff3-47ad-4d0e-7d4a38920e37@wht.com.au>
2024-10-06 14:16 ` [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel Andrew Lowe
2024-10-09 22:08 ` Michael
2024-10-09 22:23 ` [gentoo-user] " Peter Böhm
2024-10-10 0:44 ` Eli Schwartz [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=e18bf427-17e3-4c34-a360-c1d1819336f8@gentoo.org \
--to=eschwartz@gentoo.org \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox