🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.gentoo.user
Article #105

Re: [gentoo-user] Building a custom kernel

#105
From: Michael
Date: Fri, 06 Nov 2026 15:50
89 lines
6696 bytes
--nextPart0oPHS4D1SCWfADzpyuOV1Q
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="utf-8"; protected-headers="v1"
From: Michael <confabulate@kintzios.com>
To: gentoo-user@lists.gentoo.org
Reply-To: confabulate@kintzios.com
Subject: Re: [gentoo-user] Building a custom kernel
Date: Fri, 06 Nov 2026 15:40:15 +0000
Message-ID: <hokyXLvHR06uCKzIA5XC-g@kintzios.com>
In-Reply-To: <96dbc5af-dc8c-450e-9b4e-1e6a40be4cdd@oldfart.online>
References: <96dbc5af-dc8c-450e-9b4e-1e6a40be4cdd@oldfart.online>
MIME-Version: 1.0

On Friday, 6 November 2026 15:10:33 Greenwich Mean Time Pocket wrote:
> I have my gentoo project going very well and I would like to rebuild
> the rpi kernel to have btrfs built into the kernel instead of a
> module.
> 
> I want to use btrfs as the filesystem for the root partition as I do
> on my archlinux systems.
> 
> I have looked at the ebuilds for kernels and I can not figure them
> out. I have looking into portage as a later project after I finish
> this desktop project.
> 
> I have three options at this point.
> 
> 1. Use my custom kernel build from archlinuxarm using my PKGBUILD and
> remove the ebuild and extract the package archive to system.
> 
> 2. Modify a kernel ebuild.
> 
> 3. Create a initramfs
> 
> 
> Any one have any hints or direction on how to accomplish this?

In the first instance you can read these pages a couple of times to get 
a grounding on what options Gentoo offers, both in its distribution 
kernels and DIY from source:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
https://wiki.gentoo.org/wiki/Kernel

If you know your archlinuxarm is exactly, or mostly, what you want from 
a kernel configuration, you can use the archlinuxarm configuration to 
get you ready to compile your own kernel from source.  The general idea 
is to follow the basic steps below:

1. First emerge sys-kernel/gentoo-sources.
2. Check what modules are loaded when you boot with your archlinuxarm 
kernel.  You may wish to build some of these in-kernel, as opposed to 
have them as loadable modules and exclude any modules which do not need 
if you want to keep the kernel image small(er) in size.
3. Copy the archlinuxarm running .config into the gentoo-sources 
installed in /usr/src/linux/.
4. Run 'make oldconfig', followed by 'make menuconfig' to adjust the 
configuration as you want.
5. Compile and install as described at the bottom of the Handbook page 
above.

The above should get you mostly there.  You can use dracut or a UKI if 
you need an initramfs.

HTH.
--nextPart0oPHS4D1SCWfADzpyuOV1Q
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part.
Content-Transfer-Encoding: 7Bit

-----BEGIN PGP SIGNATURE-----

iQJPBAABCAA5FiEEXqhvaVh2ERicA8Ceseqq9sKVZxkFAmrt9N8bFIAAAAAABAAO
bWFudTIsMi41KzEuMTIsMiwyAAoJELHqqvbClWcZuwsQANZ4/j3J62Km7QG2SnTT
UDbQENWZwzBtPSXSemx/LvCKlNC+syYdWa6ek7P+8ZGbGG3Wi+c5q1Gqxaow37Ni
e/95P0SpnljJn/MPtXCX006qk6hbburpmH2GTYqxo2bvqCGuA1vASVUgRGMLg8Yc
Jmr9IgE/6i2mjvGjV4b1CKpcO46TmfYg0sVfzFUrejTCE7tyKro5p8kokuLAPH0U
0cfoRmK/LByDYTyN8ABTXM2tHa/Drb7LfvalackyPvu1UcbRixDmufSQWNbkMjiW
iodb+17mbqyS9n0zeEZ3o5NCvn2rov0FASGu6j1Oje7l5MvWuZg3tKVuEO+Nh3Wc
SVylm+efFvuawmLlcpUBKBr0keW622nDjG/0U6dS0abk09VABRkWDgZPFAUFPCnu
Qm4yEuSQtcOz5iFSq/d6c2CZuOEhdLQTtUFfU0g82YRkjfIcZw/MhtUwHxg96Kv/
eZCiPVXgCXNtBuNj1iw6xZVLO87fndFJKPy7DpBybw8aOpziGj0LthBlOYzXB+Fx
rIX6uDYpQzF7SXXFRvuBxCgNfNeCE/w9qooKXBkzLanb5qBI+XFfWoQ3hqyoZxFv
mOUJWlQC/vOLBi8v/1au6bD/o20blx9SQ1y/wIxU8X1OdqDKydAiioVzboLtmxD9
oFzZhBUIh2Oh6fJslusv+tcM
=Sd6w
-----END PGP SIGNATURE-----

--nextPart0oPHS4D1SCWfADzpyuOV1Q--
Technical Details
Message-ID: <NWumt-adAe-13@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
References: <NWtTs-adpa-21@gated-at.bofh.it>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!newsfeed.xs3.de!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Michael <confabulate@kintzios.com>
Newsgroups: linux.gentoo.user
Subject: Re: [gentoo-user] Building a custom kernel
Date: Fri, 06 Nov 2026 16:50:01 +0100
Message-ID: <NWumt-adAe-13@gated-at.bofh.it>
References: <NWtTs-adpa-21@gated-at.bofh.it>
X-Original-To: gentoo-user@lists.gentoo.org
X-Sender-ID: thundermail|x-authsender|confabulate@kintzios.com
X-Sender-ID: thundermail|x-authsender|confabulate@kintzios.com
X-Mc-Relay: Neutral
X-Mc-Copy: stored-urls
X-Mailchannels-Senderid: thundermail|x-authsender|confabulate@kintzios.com
X-Mailchannels-Auth-ID: thundermail
X-Suffer-Illegal: 54413f99417039e8_1793979623207_1983934014
X-Mc-Loop-Signature: 1793979623207:3893769251
X-Mc-Ingress-Time: 1793979623207
Authentication-Results: cloud238.thundercloud.uk;
        spf=pass (sender IP is 217.169.3.230) smtp.mailfrom=confabulate@kintzios.com smtp.helo=rogueboard.localnet
Received-Spf: pass (cloud238.thundercloud.uk: connection is authenticated)
List-ID: Gentoo Linux mail <gentoo-user.gentoo.org>
Reply-To: gentoo-user@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="nextPart0oPHS4D1SCWfADzpyuOV1Q";
 micalg="pgp-sha256"; protocol="application/pgp-signature"
X-Ppp-Message-ID: 
 <179397961681.3529584.15351131646208367059@cloud238.thundercloud.uk>
X-Ppp-Vhost: kintzios.com
X-Rspamd-Queue-ID: 4jLk010ZqGzGnsd
X-Rspamd-Server: mailclean11
X-Rspamd-Action: no action
X-Spamd-Result: default: False [-2.10 / 999.00];
	SIGNED_PGP(-2.00)[];
	MIME_GOOD(-0.20)[multipart/signed,text/plain];
	ONCE_RECEIVED(0.20)[];
	MX_GOOD(-0.10)[mail.kintzios.com];
	RCVD_TLS_ALL(0.00)[];
	DMARC_POLICY_ALLOW(0.00)[kintzios.com,none];
	REPLYTO_DOM_NEQ_TO_DOM(0.00)[];
	UWH_IDENTITY(0.00)[1|68dc2965926353e1|t=60|r=0|m=postfix|n=15|h=pppm:1:13/1+pppv:1:14/0|f=nv];
	FROM_HAS_DN(0.00)[];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	R_SPF_ALLOW(0.00)[+mx];
	ARC_NA(0.00)[];
	RCPT_COUNT_ONE(0.00)[1];
	MISSING_XM_UA(0.00)[];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:34931, ipnet:149.255.60.0/22, country:GB];
	TO_DN_NONE(0.00)[];
	REPLYTO_ADDR_EQ_FROM(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	PREVIOUSLY_DELIVERED(0.00)[gentoo-user@lists.gentoo.org];
	MID_RHS_MATCH_FROM(0.00)[];
	R_DKIM_NA(0.00)[];
	RCVD_VIA_SMTP_AUTH(0.00)[];
	HAS_REPLYTO(0.00)[confabulate@kintzios.com]
Approved: robomod@news.nic.it
Lines: 89
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 06 Nov 2026 15:40:15 +0000
X-Original-Message-ID: <hokyXLvHR06uCKzIA5XC-g@kintzios.com>
X-Original-References: <96dbc5af-dc8c-450e-9b4e-1e6a40be4cdd@oldfart.online>