8,367
edits
Changes
→Compile with x64 Ubuntu22.04 computer
<ol style="list-style-type: decimal;">
<li><p>The Linux SDK, '''orangepi-build''', supports running on computers with '''Ubuntu 22.04''' installed, so before downloading orangepi-build, please make sure that the Ubuntu version installed on your computer is Ubuntu 22.04. The command to check the Ubuntu version installed on the computer is as follows. If the Release field does not display '''22.04''', it means that the current Ubuntu version does not meet the requirements. Please replace the system before performing the following operations.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''lsb_release -a'''</p>
<p>No LSB modules are available.</p>
<p>Description: Ubuntu 22.04 LTS</p>
<p>Release: '''22.04'''</p>
<p>Codename: jammy</p>|}</li>
<li><p>If the computer is installed with Windows system and there is no computer with Ubuntu 22.04 installed, you can consider using '''VirtualBox''' or '''VMware''' to install an Ubuntu 22.04 virtual machine in the Windows system. But please be careful not to compile orangepi-build on the WSL virtual machine, because orangepi-build has not been tested in the WSL virtual machine, so it cannot be guaranteed that orangepi-build can be used normally in WSL.</p></li>
<li><p>The download address of the installation image of Ubuntu 22.04 '''amd64''' version is:</p>
{| class="wikitable" style="width:800px;" |-|<p>[https://repo.huaweicloud.com/ubuntu-releases/21.04/ubuntu-21.04-desktop-amd64.iso '''https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/22.04/ubuntu-22.04-desktop-amd64.iso''']</p>
<p>or</p>
<p>'''https://repo.huaweicloud.com/ubuntu-releases/22.04/ubuntu-22.04.1-desktop-amd64.iso'''</p>|}</li>
<li><p>After installing Ubuntu 22.04 on the computer or virtual machine, please set the software source of Ubuntu 22.04 to Tsinghua source, otherwise it is easy to make mistakes due to network reasons when installing the software later</p>
<ol style="list-style-type: lower-alpha;">
<li>For the method of replacing Tsinghua source, please refer to the > instructions on this web page</li></ol></li></ol> [https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ '''https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/''']
{| class="wikitable" style="width:800px;"
|-
|
'''https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/'''
|}
</ol>
<ol start="2" style="list-style-type: lower-alpha;">
<li><p>Note that the Ubuntu version needs to be switched to 22.04</p>
<p>[[File:media/image534.png|576x241px]]</p></li>
<li><p>The content of the '''<span class="mark">/etc/apt/sources.lislist</span>'''t file that > needs to be replaced is</p>{| class="wikitable" style="width:800px;" |-|
<p>test@test:~$ '''sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak'''</p>
<p>test@test:~$ '''sudo vim /etc/apt/sources.list'''</p>
<p>deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse</p>
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse</p>
<p># Pre-release software source, not recommended to enable</p>
<p># deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</p>
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse</p>|}</li><li><p>After the replacement, you need to update the package information > and make sure there is no error</p>{| class="wikitable" style="width:800px;" |-|<p>test@test:~$ '''sudo apt update'''</p>|}</li><li><p>'''<span style="color:#FF0000">In addition, since the source codes such as the kernel and U-boot > are stored on GitHub, it is very important to ensure that the > computer can download codes from GitHub normally when compiling > the image.</span>'''</p></li></ol></li></ol>
<span id="get-the-source-code-of-linux-sdk"></span>