Difference between revisions of "Linux kernel on Orange Pi 4"
Jump to navigation
Jump to search
| Line 8: | Line 8: | ||
{{Todo|THIS!}} | {{Todo|THIS!}} | ||
| + | |||
| + | == Setup == | ||
| + | {{Todo|Git clone}} | ||
| + | |||
| + | {{Todo|1= | ||
| + | |||
| + | '''Cross compilation''' | ||
| + | |||
| + | <pre>CROSS_COMPILE=/path/to/toolchain/bin/aarch64-linux-gnu-</pre> | ||
| + | }} | ||
== Compiling == | == Compiling == | ||
| − | .. | + | {{Todo|compilation}} |
| + | |||
| + | Generate .config file | ||
| + | <pre>cd linux | ||
| + | make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE rk3399_linux_defconfig</pre> | ||
| + | |||
| + | <pre>CORES=4 # number of CPU cores | ||
| + | make ARCH=arm64 CROSS_COMPILE=$CROSS_COMPILE -j${CORES} rk3399-orangepi.img</pre> | ||
== Flashing == | == Flashing == | ||
Revision as of 23:14, 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
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