8,367
edits
Changes
→orangepi-build complete directory structure description
<li><p>The orangepi-build repository does not contain the source code of the linux kernel, u-boot, and cross-compilation toolchain after downloading. The source code of the linux kernel and u-boot is stored in an independent git repository</p>
<ol style="list-style-type: lower-alpha;">
<li><p>The git warehouse where the linux kernel source code is stored > is as follows, pay attention to switch the branch of the > linux-orangepi warehouse to</p>
<ol style="list-style-type: lower-alpha;">
<li><p>Linux5.4</p>
{| class="wikitable" style="width:800px;" |-| <p>https://github.com/orangepi-xunlong/linux-orangepi/tree/'''orange-pi-5.4-sun50iw9'''</p>|}</li>
<li><p>Linux6.1</p>
{| class="wikitable" style="width:800px;" |-| <p>https://github.com/orangepi-xunlong/linux-orangepi/tree/'''orange-pi-6.1-sun50iw9'''</p>|}</li></ol>
</li>
<li><p>The git warehouse where the u-boot source code is stored is as > follows, pay attention to switch the branch of the > u-boot-orangepi warehouse to</p>
<ol style="list-style-type: lower-alpha;">
<li><p>v2018.05</p>
{| class="wikitable" style="width:800px;" |-| <p>https://github.com/orangepi-xunlong/u-boot-orangepi/tree/'''v2018.05-h618'''</p>|}</li><li><p>v2021.07</p>{| class="wikitable" style="width:800px;" |-| <p>https://github.com/orangepi-xunlong/u-boot-orangepi/tree/'''v2021.07-sunxi'''</p>|}</li></ol>
</li></ol>
</li></ol>
<ol start="2" style="list-style-type: decimal;">
<ol style="list-style-type: lower-alpha;">
<li><p>'''build.sh''': Compile the startup script</p></li>
<li><p>'''external''': Contains the configuration files needed for > compiling the image, scripts for specific functions, and the > source code of some programs. The rootfs compressed package > cached during the compiling process is also stored in external</p></li>
<li><p>'''kernel''': Store the source code of the linux kernel</p></li>
<li><p>'''LICENSE''': GPL 2 license file</p></li>
<li><p>'''README.md''': orangepi-build documentation</p></li>
<li><p>'''output''': Store compiled u-boot, linux and other deb packages, > compilation logs, and compiled images and other files</p></li>
<li><p>'''scripts''': General script for compiling linux images</p></li>
<li><p>'''toolchains''': Store the cross-compilation toolchain</p></li>
<li><p>'''u-boot''': Store the source code of u-boot</p></li>
<li><p>'''userpatches''': Store the configuration files needed to compile > the script</p>{| class="wikitable" style="width:800px;" |-|
<p>test@test:~/orangepi-build$ '''ls'''</p>
<p>'''build.sh external kernel LICENSE output README.md scripts toolchains u-boot userpatches'''</p>|}</li></ol>
</li></ol>
<span id="compile-u-boot"></span>
== Compile u-boot ==