Difference between revisions of "BSP Linux on Orange Pi 4"
| Line 29: | Line 29: | ||
vagrant init hashicorp/bionic64 | vagrant init hashicorp/bionic64 | ||
vagrant up | vagrant up | ||
| + | vagrant ssh | ||
| + | # inside vagrant: | ||
| + | sudo apt-get update | ||
| + | exit | ||
}} | }} | ||
=== Build Tools === | === Build Tools === | ||
{{code-block|1= | {{code-block|1= | ||
| − | git clone https://github.com/orangepi-xunlong/OrangePi_Build.git | + | vagrant ssh |
| − | cd OrangePi_Build | + | # inside vagrant: |
| − | ./Build_OrangePi.sh | + | git clone https://github.com/orangepi-xunlong/OrangePi_Build.git |
| + | cd OrangePi_Build | ||
| + | ./Build_OrangePi.sh | ||
| + | exit | ||
}} | }} | ||
| − | Enter your (sudo) password, let it download the repositories (listed above). | + | Enter your (sudo) password (empty when running under [[vagrant]]), let it download the repositories (listed above). |
| − | === | + | === Building === |
| − | {{Todo| | + | {{code-block|1= |
| + | vagrant ssh | ||
| + | # inside vagrant: | ||
| + | cd OrangePiRK3399 | ||
| + | ./build.sh | ||
| + | exit | ||
| + | }} | ||
| + | |||
| + | Select 'Orange Pi 4', 'Release Image' and wait for the image to be built. | ||
| + | {{Todo|I didn't actually try this, I just built the kernel.}} | ||
| − | + | === Flashing === | |
| + | The same process applies as for the Pre-Built Images, see [[Flashing Linux to SD Card]]. | ||
== External Links == | == External Links == | ||
| Line 51: | Line 68: | ||
** GIT repository: [https://github.com/orangepi-xunlong?tab=repositories github.com/orangepi-xulong] | ** GIT repository: [https://github.com/orangepi-xunlong?tab=repositories github.com/orangepi-xulong] | ||
*** Build Tools repository: [https://github.com/orangepi-xunlong/OrangePi_Build] | *** Build Tools repository: [https://github.com/orangepi-xunlong/OrangePi_Build] | ||
| + | *** Kernel compilation scripts: [https://github.com/orangepi-xunlong/OrangePiRK3399_scripts/blob/master/kernel_compile.sh] | ||
Revision as of 19:24, 31 March 2020
BSP Linux used on an Orange Pi 4
(!) Xunlong's provided Linux is an older 4.4 series kernel.
Contents
Installing Pre-Built Images
(!) Pre-Built kernel doesn't have support for CIFS (Samba file sharing)
- Download compressed *.img files from the vendor's page
- Extract the image files
- Flash the image to an SD Card
Building Custom Images
(!) Supplied build scripts use Rockchip's closed source binary toolkit rkbin/tools. This makes it unusable for running on the Orange Pi 4 (or any ARM device). The repository is usable only as a learning material.
The build tool is using these repositories:
Vagrant setup
vagrant init hashicorp/bionic64
vagrant up
vagrant ssh
- inside vagrant:
sudo apt-get update
exit
Build Tools
vagrant ssh
- inside vagrant:
git clone https://github.com/orangepi-xunlong/OrangePi_Build.git
cd OrangePi_Build
./Build_OrangePi.sh
exit
Enter your (sudo) password (empty when running under vagrant), let it download the repositories (listed above).
Building
vagrant ssh
- inside vagrant:
cd OrangePiRK3399
./build.sh
exit
Select 'Orange Pi 4', 'Release Image' and wait for the image to be built. TODO: I didn't actually try this, I just built the kernel.
Flashing
The same process applies as for the Pre-Built Images, see Flashing Linux to SD Card.
External Links
- Official sources
- Downloads page: [1]
- Wiki: [2]
- GIT repository: github.com/orangepi-xulong