I'm trying to start my Raspberry Pi with a custom 5.10.y cross-compiled Kernel for https://cdimage.ubuntu.com/releases/20.04.2/release/ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz with HUGETLB enabled.
I've successfully cross-compiled the Kernel (I believe) and installed it to my SD card following the generic cross-compilation instructions from the Raspberry Pi website. However, when booting, I get an error about initramfs not being able to find the correct Kernel.
I've copied the initramfs.conf
from the SD card into my cross compile directory and am running:
mkinitramfs -d ~/linux -o myinitramffs 5.10.0-v7l-custom
Which results in the following errors:
W: missing /lib/modules/5.10.0-v7l-custom
W: Ensure all necessary drivers are built into the linux image!
depmod: ERROR: could not open directory /lib/modules/5.10.0-v7l-custom: No such file or directory
depmod: FATAL: could not search modules: No such file or directory
How do I build an initramfs from my cross-compile machine for the Ubuntu 20.04 LTS Raspberry Pi image that will work with my custom Kernel?