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.