range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
293
3) orangepi-build will contain the following files and folders after downloading
a. build.sh: Compile the startup script
b. external: Contains the configuration files needed to compile the image, specific
scripts, and the source code of some programs, etc.
c. LICENSE: GPL 2 license file
d.
README.md:
orangepi-build documentation
e. scripts: General script for compiling Linux images
test@test:~/orangepi-build$ ls
build.sh external LICENSE README.md scripts
If you downloaded the code of orangepi-build from github, after downloading,
you may find that orangepi-build does not contain the source code of u-boot and
Linux kernel, nor does u-boot and Linux kernel need to use cross-compilation tools
Chain, this is normal, because these things are stored in other separate github
warehouses or some servers (the addresses will be detailed below). orangepi-build
will specify the address of u-boot, Linux kernel and cross-compilation toolchain in
the script and configuration file. When running orangepi-build, when it finds that
there are no such things locally, it will automatically go to the corresponding place
to download them.
4.2.2. Download the cross-compilation toolchain
The cross-compilation toolchain will only be downloaded when the
orangepi-build compilation image is used on an x64 computer. Compiling the Linux
image of the development board in the Ubuntu22.04 of the development board will
not download the cross-compilation toolchain. At this time,
orangepi-build/toolchains will be an empty folder.
1) When orangepi-build runs for the first time, it will automatically download the
cross-compilation toolchain and put it in the toolchains folder. Every time after running
the build.sh script of orangepi-build, it will check whether the cross-compilation
toolchain in toolchains exists , if it does not exist, the download will be restarted, if it
exists, it will be used directly, and the download will not be repeated.