Linux kernel on Orange Pi 4
Jump to navigation
Jump to search
Using Linux kernel on an Orange Pi 4.
This page is focused just on building a kernel. For the related required components, see Linux on Orange Pi 4.
Prerequisite: U-Boot on Orange Pi 4
Next steps: RootFS on Orange Pi 4
TODO: THIS!
Setup
TODO: Git clone
TODO: Cross compilation
CROSS_COMPILE=/path/to/toolchain/bin/aarch64-linux-gnu-
Compiling
TODO: compilation
Generate .config file
cd linux make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE rk3399_linux_defconfig
CORES=4 # number of CPU cores
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j${CORES} rk3399-orangepi.img
Flashing
dd if=boot.img of=sdb seek=32768