Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

398 bytes added, 19:45, 11 July 2023
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 &gt; is as follows, pay attention to switch the branch of the &gt; 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 &gt; follows, pay attention to switch the branch of the &gt; 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>
 
https://github.com/orangepi-xunlong/u-boot-orangepi/tree/'''v2021.07-sunxi'''
<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 &gt; compiling the image, scripts for specific functions, and the &gt; source code of some programs. The rootfs compressed package &gt; 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, &gt; 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 &gt; the script</p>{| class="wikitable" style="width:800px;" |-|
<p>test@test:~/orangepi-build$ '''ls'''</p>
<p>'''build.sh &nbsp;&nbsp;&nbsp; external &nbsp;&nbsp;&nbsp; kernel &nbsp;&nbsp;&nbsp; LICENSE &nbsp;&nbsp;&nbsp; output &nbsp;&nbsp;&nbsp; README.md &nbsp;&nbsp;&nbsp; scripts &nbsp;&nbsp;&nbsp; toolchains &nbsp;&nbsp;&nbsp; u-boot &nbsp;&nbsp;&nbsp; userpatches'''</p>|}</li></ol>
</li></ol>
<span id="compile-u-boot"></span>
 
== Compile u-boot ==