User Manual Orange Pi Zero 3

  Features   |  Use   |  Linux   |    Linux SDK     |  Android   |  Android SRC   |

RU          EN  

Chapt 4. Linux SDK - orangepi-build instruction
Страница:   124    125    126    127    128    129    130    131    132  


4.1. Compilation system requirements
The Linux SDK, orangepi-build, only supports running on X64 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.

test@test:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

If the computer is installed with a 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 note, do not 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, and please do not compile it on the Linux system of the development board Use orangepi-build in.

The download address of the installation image of Ubuntu 22.04 amd64 version is:

ubuntu-22.04-desktop-amd64.iso

After installing Ubuntu 22.04 on the computer or virtual machine, please set the software source of Ubuntu 22.04 to Tsinghua source (or other domestic sources that you think is fast), otherwise it is easy to make mistakes due to network reasons when installing software later.

The steps to replace Tsinghua source are as follows:

    a. For the method of replacing Tsinghua source, please refer to the instructions on this web page.

    https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/

    b. Note that the Ubuntu version needs to be switched to 22.04.

    c. The content of the /etc/apt/sources.list file that needs to be replaced is:

    test@test:~$ sudo mv /etc/apt/sources.list cat /etc/apt/sources.list.bak
    test@test:~$ sudo vim /etc/apt/sources.list

    # By default, the source image is commented to improve the speed of apt update, you can uncomment it yourself if necessary deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse

    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse

    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse

    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-security main restricted universe multiverse

    # Pre-release software source, not recommended to enable

    # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-proposed main restricted universe multiverse

    d. After the replacement, you need to update the download information and make sure that there is no error.

    test@test:~$ sudo apt-get update

    e. 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.


 <         > 


Страница:   124    125    126    127    128    129    130    131    132