Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero 3

1,869 bytes removed, 10:19, 19 July 2023
How to install Debian system
== Prepare the required accessories ==
# micro Micro SD card, a high-speed SanDisk card of class 10 or above with a minimum capacity of 8GB
::[[File:zero3-img7.png]]
<li><p>USB to TTL module and DuPont line, when using the serial port debugging function, need USB to TTL module and DuPont line to connect the development board and computer</p></li>
[[File:zero3-img25-1.png]] [[File:zero3-img26.png]]
{| class="wikitable" style="background-color:#ffffdc;width:800px;"
|-
|
<big>'''Note that the Linux image mentioned here specifically refers to the image of Linux distributions such as Debian or Ubuntu downloaded from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html Orange Pi data download page].'''</big>
|}
# First prepare a micro SD card with a capacity of 8GB or more. The transmission speed of the micro SD card must be '''class 10 or above'''. It is recommended to use a micro SD card of SanDisk and other brands
# Then use the card reader to insert the micro SD card into the computer
# Download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;.img&quot; is the image file of the operating system. The size is generally more than 1GB
# Then download the burning software of Linux image——'''balenaEtcher,''' the download address is
<big>'''Please select balenaEtcher, right-click, and select Run as administrator.'''</big>
[[File:zero3-img31-1.png|center]]
|}
</ol>
</li></ol>
<ol start="4" style="list-style-type: decimal;">
<li><p>Download the Linux operating system image file compression package that you want to burn from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;.img&quot; is the image file of the operating system. The size is generally more than 1GB</p></li>
<li><p>Use Win32Diskimager to burn the Linux image to the micro SD card</p>
<ol style="list-style-type: lower-alpha;">
|-
|
<big>'''Note that the Linux image mentioned here specifically refers to the image of Linux distributions such as Debian or Ubuntu downloaded from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html Orange Pi data download page], and the Ubuntu PC refers to the personal computer with the Ubuntu system installed.'''</big>
|}
</ol>
<ol start="6" style="list-style-type: decimal;">
<li>Download the image file compression package of the Linux operating system that you want to burn from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html '''Orange Pi data download page'''], and then use the decompression software to decompress it. Among the decompressed files, the file ending with &quot;'''.img'''&quot; is the image file of the operating system. The size is generally above 1GB. The decompression command for the compressed package ending in 7z is as follows:</li>
{| class="wikitable" style="width:800px;"
<li><p>Download the Android image and PhoenixCard programming tool from the [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html '''Orange Pi data download page''']. '''<span style="color:#FF0000">Please ensure that the version of the PhonenixCrad tool is PhonixCard-4.2.8.</span>''' Please do not use the PhonixCard software version lower than 4.2.8 to burn the Android image. There may be problems with the Android image flashed by this version of the PhonixCard tool</p></li>
[[File:zero3-img49-1.png]]
</ol>
<ol start="7" style="list-style-type: decimal;">
<div class="figure">
::[[File:zero3-img60-1.png]]
</div>
|}
After entering the download page of the corresponding development board on [http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html '''the Orange Pi data download page'''], you can see the following download options. In the description below, the Ubuntu image and the Debian image are generally referred to as the Linux image.
[[File:zero3-img80.png]]
</ol>
<ol start="3" style="list-style-type: decimal;">
<li>Then restart the system and a login dialog box will appear, at which point a [[Orange Pi Zero 3#Linux system default login account and password|'''Linux system default login account and password''' ]] is required to enter the system</li>
<div class="figure">
test@test:~$ '''sudo -i'''
[sudo] password for test 的密码:
root@test:~'''<span style="color:#FF0000">#</span>'''
</ol>
<ol start="12" style="list-style-type: decimal;">
<li>Then you can directly drag the location shown in the figure below to set the size of the capacity, or you can set the size of the rootfs partition by setting the number in '''New siezesize(MiB)'''</li>
[[File:zero3-img97.png]]
</ol>
<ol start="15" style="list-style-type: decimal;">
<li>Then select '''Apply''', It it will officially start to expand the capacity of the rootfs partition</li>
[[File:zero3-img100.png]]
<ol start="3" style="list-style-type: decimal;">
<li>Then opengpartedopen gparted</li>
{| class="wikitable" style="width:800px;"
</ol>
<ol start="9" style="list-style-type: decimal;">
<li>Then you can directly drag the location shown in the figure below to set the size of the capacity, or you can set the size of the rootfs partition by setting the number in '''New siezesize(MiB)'''</li>
[[File:zero3-img97.png]]
<div class="figure">
[[File:zero3-img113-12.png]]
</div></ol>
<big><p>'''When running the hass command for the first time, you will download and install and cache some necessary libraries and dependencies to run. This process may take a few minutes. Note that at this time, the interface of Home Assistant cannot be seen in the browser. Please wait for a while before refreshing.'''</p></big>
|}
<p>[[File:zero3-img194-1.png]]</p></li></ol>
<span id="opencv-installation-method"></span>
|-
|
<big>'''aapanel Linux panel is a server management software that improves operation and maintenance efficiency. It supports more than 100 server management functions such as one -click LAMP/LNMP/cluster/monitoring/website/FTP/database/Java (extracted excerpted from the [https://www.bt.cn/new/index.html Baota official website of the aapanel])'''</big>
|}
<p>[[File:zero3-img218.png]]</p></li>
<li><p>Then search '''Google Pinyin''' and click '''OK'''</p>
<p>[[File:zero3-img219-1.png]]</p></li>
<li><p>Then bring '''Google Pinyin''' to the front</p>
<p>[[File:zero3-img220.png]]</p>
</div></li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>8)Then select the path to be uploaded to the development board on the right side of the filezilla software, and then select the file to be uploaded on the Ubuntu PC on the left side of the filezilla software, then click the right mouse button, and then click the upload option to start uploading the file to the development board.
<div class="figure">
</div></li></ol>
<ol start="8" style="list-style-type: decimal;">
<li>8)Then select the path to be uploaded to the development board on the right side of the filezilla software, and then select the file to be uploaded on the Windows PC on the left side of the filezilla software, then click the right mouse button, and then click the upload option to start uploading the file to the development board.
<div class="figure">
<p>'''https://mirrors.tuna.tsinghua.edu.cn/ubuntu-releases/22.04/ubuntu-22.04-desktop-amd64.iso'''</p>
|}
 
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:
 
<ol style="list-style-type: lower-alpha;">
<li>For the method of replacing Tsinghua source, please refer to the instructions on this web page.
 
{| class="wikitable" style="width:800px;"
|-
|
[https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ '''https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/''']
|}
</li></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:zero3-img293.png]]</p></li>
<li><p>The content of the '''/etc/apt/sources.list''' file that needs to be replaced is:</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''sudo mv /etc/apt/sources.list cat /etc/apt/sources.list.bak'''</p>
<p>test@test:~$ '''sudo vim /etc/apt/sources.list'''</p>
<p># By default, the source image is commented to improve the speed of apt update, you can uncomment it yourself if necessary</p>
<p>deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse</p>
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy main restricted universe multiverse</p>
<p>deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse</p>
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-updates main restricted universe multiverse</p>
<p>deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse</p>
<p># deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ jammy-backports main restricted universe multiverse</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 download information and make sure that there is no error.</p>
{| class="wikitable" style="width:800px;"
|-
|
<p>test@test:~$ '''sudo apt-get 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>
<span id="get-the-source-code-of-linux-sdk"></span>
|-
|
[https://mirrors.tuna.tsinghua.edu.cn/armbian-releases/_toolchain/ '''https://mirrorsimola.tuna.tsinghua.eduarmbian.cncom/armbian-releasesdl/_toolchain/''']
|}
<ol style="list-style-type: decimal;">
<li><p>Download '''rootcheck.apk''' from the <span class="mark">[http://www.orangepi.org/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-3.html '''official tool''']</span> on the development board data download page</p>
<p>[[File:zero3-img349.png|1200px]]</p><p>[[File:zero3-img350.png|1200px]]</p></li>
<li><p>Then make sure that the adb connection between the Ubuntu PC and the development board is normal. For how to use adb, please refer to the instructions in the section on [[Orange Pi Zero 3#How to use ADB|'''how to use ADB''']]</p></li>
<li><p>Then use the adb command to install rootcheck.apk to the Android system, of course, you can also use the U disk to copy the installation</p>
|-
|
<big>'''It doesn’t doesn't matter if there is no w25q64 module, because there is a SPIFlash connected to SPI0 on the development board, and the configuration of SPI0 is also enabled by default in Android, so we can also directly use the onboard SPIFlash test.'''</big>
|}
</li></ol>
| style="text-align: center;"| 2023-07-05
| style="text-align: center;"| initial version
|-
| style="text-align: center;"| v1.1
| style="text-align: center;"| 2023-07-14
| style="text-align: center;"| Add the compilation method of Android 12 source code
|}
: *initial version
|-
| 2023-07-13
|
Opios-arch-aarch64-xfce-opizero3-23.07-linux6.1.31.img.xz
 
: *initial version
|}