On the same page you can also find instructions on how to configure dracut to generate an accompanying Initrd.
The ebuild uses the patches provided by MNT, but unlike the kernel included in the official Debian image, it is not actually based on the Debian kernel sources and configuration. Instead it is based on the Gentoo-patched kernel sources and the Gentoo kernel configuration (which in turn is based on the Fedora kernel configuration).
I bumped the version to 6.1.20. Plus I tested the out-of-tree LPC module from the reform-tools repository and it works fine. Currently looking into how to best package that for Gentoo.
I’m planning to go the full manual kernel config route, but your ebuild (together with the build script in the official repo) is an excellent starting point.
I bumped the kernel ebuild to 6.6.16. This one is supposed to work on both the i.MX8MQ and the LS1028A. Note however, that I have only tested on LS1028A.
@soulsource I’ve also tested the ebuild now. It works well, module compiled and can be loaded.
For some reason though, /sys/class/power_supply/ remains empty after loading the module, but that might be an ls1028a thing?
Hmm, I have the /sys/class/power_supply/8xlifepo4 folder on my machine, which is using a custom kernel on the Banana Pi CM4 SoM.
The CONFIG_CHECK line in the ebuild was guesswork, based on the headers that the module includes. I might have missed some runtime dependency (if such things exist in the Linux kernel).
I could also imagine that there is still some hardware waiting for prerequisite modules to get loaded - /sys/kernel/debug/devices_deferred - but that’s guesswork too.
Luckily I managed to grab a friend who is well versed with such things and he helped me to patch the device tree. By now MNT have merged the change and I have updated my ebuild.
Plus, it has been merged into the list of overlays known by eselect repository. So you can now run the following on stock Gentoo to add it to your system:
The latest ebuild, 6.8.12-r1, now has support for all the same SOMs as the reference kernel.
Had to update anyway to add support for the i.mx8mplus on mnt reform2. I figured whilst I’m at it, I might as well include all the patches.
This means the kernel should now also work on the pocket reform.
Obviously I don’t have access to all SOMs. So I can’t say for sure what works and what doesn’t. I’ve tested on ls1028a and i.mx8mplus.
Booting on i.mx8mplus works mostly, but the keyboard ends up inoperable. Probably an issue with my initrd, but I’ll have to do some more testing some other time.
I got an rk3588. The latest ebuild, 6.11.6, is booting successfully on my reform 2.
For whatever reason, dracut is terrible at guessing which kernel modules need to be included in the initrd. So I have manually configured the list. It’s a bit of a mess since it’s a mostly unfiltered list of everything that gets loaded during typical use, but it works, so
I have the same issue on void. If I’m running dracut to make my initrootfs from chroot, I have to run it manually, but if I’m generating from within my booted system, IIRC it works