I have successfully installed Ubuntu 20.04 LTS on a Raspberry Pi 4 using the following image:
https://ubuntu.com/download/raspberry-pi/thank-you?version=20.04&architecture=arm64+raspi
I want to customize the kernel, however, I have tried various methods but none of them produce a bootable 5.4.0 kernel. The /boot folder isn't standard by any means, so my question is does anyone have any idea to build a custom kernel on Ubuntu on a Raspberry Pi 4 for arm64? Any Ubuntu documentation that pertains to Ubuntu and this hardware would be grateful.
Best Answer
I feel your pain. There is a ton of information around, and most of it is close, but not exactly what you need. I recently succeeded in building and running 20.04 kernels for the pi 4. My notes are attached here. I'm not cross-compiling; I'm building on the pi itself. This has worked for me on both 32-bit and 64-bit installations.
Edited 2020-07-19: The original git command I gave below was:
That got me the latest code at the time I did it, but it has not been updated since. At this moment, it is still at kernel version 1009.
You can get the source for the exact kernel you currently have installed by doing:
If you do that, you will see a message indicating you can get the latest source code by doing this:
I did that just now and got source for kernel version 1012, which is later but still not the latest. The most recent system update installed binary kernel version 1013 on my pi 4.
I have updated the note below with the best information I have, but I'd still love to know if there is a publically-available git repo with even more recent pi 4 kernel source.
Here are the notes: