I managed to cross-compile on my pi4 by following this guide https://www.tal.org/tutorials/raspberry ... bit-kernel + PI4 specific commands from official manual https://www.raspberrypi.org/documentati ... uilding.md , just used the lastest binutils and gcc versions. Build was successful modules installed, dtbs and kernel copied to /boot .... but I get black screen after rainbow at boot. Do I need something more such asjdonald wrote: ↑Sat Sep 07, 2019 9:45 pmThat can work in theory. Raspbian doesn't provide a gcc-aarch64-linux-gnu package, so you would likely compile under a 64-bit userland (e.g. Gentoo) or chroot (see above).
And I think you should set KERNEL=kernel8 (not kernel7 or kernel7l).
Sounds like you decided to cross-compile. Highly recommended if you might have to debug things and iterate. Get a toolchain via sudo apt install gcc-aarch64-linux-gnu on your Debian or Ubuntu x86_64 system. The toolchains under https://github.com/raspberrypi/tools are all rather old anyhow.
Code: Select all
echo "arm_64bit=1" >> /boot/config.txt