From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3254158046 for ; Thu, 10 Oct 2024 00:44:33 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FEE8E2ABC; Thu, 10 Oct 2024 00:44:27 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 207A5E2AB7 for ; Thu, 10 Oct 2024 00:44:27 +0000 (UTC) Message-ID: Date: Wed, 9 Oct 2024 20:44:23 -0400 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel To: gentoo-user@lists.gentoo.org References: <379cf455-3ff3-47ad-4d0e-7d4a38920e37@wht.com.au> <2717394.BddDVKsqQX@rogueboard> Content-Language: en-US From: Eli Schwartz Autocrypt: addr=eschwartz@gentoo.org; keydata= xjMEZmeRNBYJKwYBBAHaRw8BAQdAYNZ7pUDWhx1i2f3p6L2ZLu4FcY18UoeGC04Gq/khqwfN I0VsaSBTY2h3YXJ0eiA8ZXNjaHdhcnR6QGdlbnRvby5vcmc+wpYEExYKAD4WIQTvUdMIsc4j CIi+DYTqQj6ToWND8QUCZoRL+gIbAwUJBKKGAAULCQgHAwUVCgkICwUWAgMBAAIeBQIXgAAK CRDqQj6ToWND8aB5AP9r4kB691nNtNwKkdRiOdl7/k6WYzokvHvDamXxRJ0I+gEAjZqR5V8y mfR3fy2Z+r2Joeqdt3CIv5IwPs64spBvigLOOARmZ5E0EgorBgEEAZdVAQUBAQdATT46Z06b 1X9xjXFCYFxmq/Tj3tSEKZInDWTpoHQp4l8DAQgHwn4EGBYKACYWIQTvUdMIsc4jCIi+DYTq Qj6ToWND8QUCZmeRNAIbDAUJBKKGAAAKCRDqQj6ToWND8a2RAP40KPfbfoiZAJW5boFmFJ3G TUBDJRh9CWHyaPqq2PN+0wD/R07oLzfnJUN209mzi9TuTuHjeZybysyqXSw4MAxkMAY= In-Reply-To: <2717394.BddDVKsqQX@rogueboard> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------9m4Jf2pOXwP2DhbeObtcgjUu" X-Archives-Salt: 4c48b416-97fb-4480-a9ff-33b4743fe39c X-Archives-Hash: 5bc81508ab73f6396b8491c2ca74a817 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --------------9m4Jf2pOXwP2DhbeObtcgjUu Content-Type: multipart/mixed; boundary="------------X3clBkzRq8e0qi9cOHE26lZH"; protected-headers="v1" From: Eli Schwartz To: gentoo-user@lists.gentoo.org Message-ID: Subject: Re: [gentoo-user] Fwd: Creating a custom kernel from a -bin kernel References: <379cf455-3ff3-47ad-4d0e-7d4a38920e37@wht.com.au> <2717394.BddDVKsqQX@rogueboard> In-Reply-To: <2717394.BddDVKsqQX@rogueboard> --------------X3clBkzRq8e0qi9cOHE26lZH Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/9/24 6:08 PM, Michael wrote: >> I have a recollection of reading somewhere online mention of a=20 > 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 li= nk. >> >> Thanks for any thoughts, >> >> Andrew >=20 > Have a look at this page: >=20 > https://wiki.gentoo.org/wiki/Kernel/Configuration >=20 > In particular, take notice of 'make localmodconfig'. >=20 > Once you have a customised kernel as you like it and it boots successfu= lly,=20 > you can copy your good /usr/src/linux/.config to any subsequently emerg= ed new=20 > gentoo-source kernel trees and run 'make oldconfig' thereafter, to only= have=20 > 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". --=20 Eli Schwartz --------------X3clBkzRq8e0qi9cOHE26lZH-- --------------9m4Jf2pOXwP2DhbeObtcgjUu Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature.asc" -----BEGIN PGP SIGNATURE----- wnsEABYIACMWIQTnFNnmK0TPZHnXm3qEp9ErcA0vVwUCZwcjZwUDAAAAAAAKCRCEp9ErcA0vVx9N AP9M/Ge4iSmQRX7qqBePUQLg7rnEOEnuWLyA8qF8075e9gEAyOVlbXG0JgMdGtixY09+MuM/GCkq o+NqGu6ggbdTkQg= =mE4V -----END PGP SIGNATURE----- --------------9m4Jf2pOXwP2DhbeObtcgjUu--