Difference between revisions of "Linux kernel on Orange Pi 4"
Jump to navigation
Jump to search
| Line 26: | Line 26: | ||
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE rk3399_linux_defconfig</pre> | make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE rk3399_linux_defconfig</pre> | ||
| + | Compile the kernel | ||
<pre>CORES=4 # number of CPU cores | <pre>CORES=4 # number of CPU cores | ||
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j${CORES} rk3399-orangepi.img</pre> | make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j${CORES} rk3399-orangepi.img</pre> | ||
| + | |||
| + | {{Todo|Modules? Img to flash? boot.img}} | ||
== Flashing == | == Flashing == | ||
Revision as of 23:15, 27 March 2020
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
Compile the kernel
CORES=4 # number of CPU cores
make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j${CORES} rk3399-orangepi.img
TODO: Modules? Img to flash? boot.img
Flashing
dd if=boot.img of=sdb seek=32768