Linux kernel on Orange Pi 4

From Dejvino's Knowledge Base
Revision as of 23:14, 27 March 2020 by Dejvino (talk | contribs)
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

Related

External Links

  • Mainline Linux kernel [1]
    • Github mirror [2]
  • Rockchip Kernel [opensource.rock-chips.com/wiki_Rockchip_Kernel]
  • Xunlong BSP kernel [3]
    • instructions for older Orange Pis [4]
    • compilation script [5]
  • Armbian kernel patches [6]