8,367
edits
Changes
→Download the cross-compilation toolchain
=== Download the cross-compilation toolchain ===
{| class="wikitable" style="background-color:#ffffdc;width:800px;" |-| <big>'''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.'''</big>|}
# 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.
<div class="figure">
::[[File:cm4-img391.png]]
</div>
<ol start="2" style="list-style-type: decimal;">
<li>The image URL of the cross-compilation toolchain in China is the open source software image site of Tsinghua University</li></ol>{| class="wikitable" style="width:800px;" |-|
https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/
|}</ol>
<ol start="3" style="list-style-type: decimal;">
<li>After '''toolchains''' is downloaded, it will contain multiple versions of cross-compilation toolchains, and the development board will only use two of them</li></ol>{| class="wikitable" style="width:800px;" |-|
test@test:~/orangepi-build$ '''ls toolchains/'''
gcc-linaro-arm-none-eabi-4.8-2014.04_linux
|}</ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>The cross-compilation toolchain used to compile the Linux kernel source code is</p>
<ol style="list-style-type: lower-alpha;">
<li>Linux5.10</li>{| class="wikitable" style="width:800px;" |-| '''gcc-arm-11.2-2022.02-x86_64-aarch64-none-linux-gnu'''|}</ol>
</li></ol>
<ol start="5" style="list-style-type: decimal;">
<li><p>The cross-compilation tool chain used to compile the u-boot source code is</p>
<ol style="list-style-type: lower-alpha;">
<li>v2017.09</li>{| class="wikitable" style="width:800px;" |-| '''gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu'''|}</ol>
</li></ol>
<span id="orangepi-build-complete-directory-structure-description"></span>
=== orangepi-build complete directory structure description ===