sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
925 stars 127 forks source link

Kernel recompilation #131

Closed TheChymera closed 4 years ago

TheChymera commented 4 years ago

I would like to recompile the kernel in order to add some custom options, but I notice /usr/src/linux is empty. What sources and config did you use for the genpi64lite image?

sakaki- commented 4 years ago

The kernel used is from here (for the RPi3) and here (for the RPi4). The configs used on the image may be viewed here. Custom native kernel build instructions in the readme, here. Cross-compilation instructions on the project's wiki here (and here).

hth, sakaki

TheChymera commented 4 years ago

Thanks for the info. Relating the options I wanted to enable, I notice the image contains sys-fs/f2fs-tools. Are the relevant modules enabled for em to be able to run my root partition as f2fs? The Gentoo Guide says CONFIG_F2FS_FS_SECURITY is required, but that appears to not be in the config.

sakaki- commented 4 years ago

Haven't tried f2fs for a while... if you need this setting, please just file a PR (example) on the bis kernel(s) to turn this on?

TheChymera commented 4 years ago

While this may become relevant again for kernel recompilation in general, it turns out that for F2FS your kernel “just works”, though sometimes there may be issues (which however are independent of your kernel config). https://github.com/sakaki-/gentoo-on-rpi-64bit/issues/138