* [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel
[not found] <379cf455-3ff3-47ad-4d0e-7d4a38920e37@wht.com.au>
@ 2024-10-06 14:16 ` Andrew Lowe
2024-10-09 22:08 ` Michael
0 siblings, 1 reply; 4+ messages in thread
From: Andrew Lowe @ 2024-10-06 14:16 UTC (permalink / raw
To: gentoo-user
For some reason this didn't go through yesterday so, once again......
-------- Forwarded Message --------
Subject: Creating a custom kernel from a -bin kernel
Date: Sat, 5 Oct 2024 18:55:50 +0800
From: Andrew Lowe <agl@wht.com.au>
Reply-To: agl@wht.com.au
Organization: Wombat High Tech
To: gentoo-user@lists.gentoo.org
Dear all,
I'm in the process of building a new machine. To get things up and
running I've decided to go with the gentoo-sources-bin kernel initially,
then once I get things basically working as I want I will go back to
building my kernels manually.
I've now reached that point, "hand rolling" the kernel, but it is a
pain, the first time round, getting things right.
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel
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 ` [gentoo-user] Fwd: " Eli Schwartz
0 siblings, 2 replies; 4+ messages in thread
From: Michael @ 2024-10-09 22:08 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1747 bytes --]
Hi Andrew,
On Sunday 6 October 2024 15:16:46 BST Andrew Lowe wrote:
> For some reason this didn't go through yesterday so, once again......
>
>
> -------- Forwarded Message --------
> Subject: Creating a custom kernel from a -bin kernel
> Date: Sat, 5 Oct 2024 18:55:50 +0800
> From: Andrew Lowe <agl@wht.com.au>
> Reply-To: agl@wht.com.au
> Organization: Wombat High Tech
> To: gentoo-user@lists.gentoo.org
>
> Dear all,
> I'm in the process of building a new machine. To get things up and
> running I've decided to go with the gentoo-sources-bin kernel initially,
> then once I get things basically working as I want I will go back to
> building my kernels manually.
>
> I've now reached that point, "hand rolling" the kernel, but it is a
> pain, the first time round, getting things right.
>
> 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.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-user] Re: Creating a custom kernel from a -bin kernel
2024-10-09 22:08 ` Michael
@ 2024-10-09 22:23 ` Peter Böhm
2024-10-10 0:44 ` [gentoo-user] Fwd: " Eli Schwartz
1 sibling, 0 replies; 4+ messages in thread
From: Peter Böhm @ 2024-10-09 22:23 UTC (permalink / raw
To: gentoo-user
> Have a look at this page:
>
> https://wiki.gentoo.org/wiki/Kernel/Configuration
or take the hard way and do it yourself:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/
Manual_kernel_configuration
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel
2024-10-09 22:08 ` Michael
2024-10-09 22:23 ` [gentoo-user] " Peter Böhm
@ 2024-10-10 0:44 ` Eli Schwartz
1 sibling, 0 replies; 4+ messages in thread
From: Eli Schwartz @ 2024-10-10 0:44 UTC (permalink / raw
To: gentoo-user
[-- 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 --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-10-10 0:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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 ` [gentoo-user] Fwd: " Eli Schwartz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox