Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 43 |
Nodes: | 6 (0 / 6) |
Uptime: | 96:28:43 |
Calls: | 290 |
Files: | 904 |
Messages: | 76,426 |
For some reason this didn't go through yesterday so, once again......
-------- Forwarded Message --------script
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
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
I have a recollection of reading somewhere online mention of ascript
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.