8,367
edits
Changes
→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 ".img" 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 ".img" 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 "'''.img'''" 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>
|}
<ol style="list-style-type: lower-alpha;">
<li><p>Enter the following command on the command line to make pwm1 output a 50Hz rectangular square wave</p>
{| class="wikitable" style="width:800px;"
|-
</ol>
<ol start="3" style="list-style-type: lower-alpha;">
<li>Enter the following command on the command line to make pwm3 output a 50Hz rectangular square wave</li>
{| class="wikitable" style="width:800px;"
|-
<ol style="list-style-type: lower-alpha;">
<li><p>'''--channel''': Specify the channel number of SPI</p></li>
<li><p>'''--port''': specify Specify the port number of SPI</p></li></ol>
</li>
<li><p>Do not short-circuit the mosi and miso pins of SPI1, the output result of running spidev_test.py is as follows, you can see that the data of TX and RX are inconsistent</p>
<ol style="list-style-type: decimal;">
<li><p>First of all, please install docker and make sure that docker can run normally. '''For the installation steps of docker'''The Method Of Installing The Docker, please refer to the instructions in the section on [[Orange Pi Zero 3#The Method Of Installing The Docker|'''how to install Docker''']].</p></li>
<li><p>Then you can search for the docker image of Home Assistant</p>
{| class="wikitable" style="width:800px;"
<big><p>'''It takes a while for the Home Assistant container to start. If the following interface is not displayed normally, please wait for a few seconds and then refresh. If the following interface is not displayed normally after waiting for more than one minute, it means that there is a problem with the installation of Home Assistant. At this time, you need to check whether there is a problem with the previous installation and setting process.'''</p></big>
|}
<p>[[File:zero3-img188-1.png]]</p></li>
<li><p>Then enter '''your name''', '''user name''' and '''password''' and click '''Create Account'''</p>
<p>[[File:zero3-img189-1.png]]</p></li>
<li><p>Then follow the interface prompts to set according to your preferences, and then click Next</p>
<p>[[File:zero3-img190-1.png]]</p></li>
<li><p>Then click Next</p>
<p>[[File:zero3-img191-1.png]]</p></li>
<li><p>Then click Finish</p>
<p>[[File:zero3-img192-1.png]]</p></li>
<li><p>The final main interface displayed by Home Assistant is shown in the figure below</p>
<p>[[File:zero3-img193-1.png]]</p></li>
<li><p>How to stop the Home Assistant container</p>
<ol style="list-style-type: lower-alpha;">
<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>
|}
<span id="get-the-source-code-of-linux-sdk"></span>
|-
|
|}
<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
|}