Open main menu

Wiki-Orange Pi β

Changes

Orange Pi Zero Plus 2

45,380 bytes added, 20:13, 30 June 2022
no edit summary
=== '''Hardware specification of Orange Pi Zero Plus2''' ===
<br>
{| class="wikitable" style="width:800px;background:#ffffff;"
|-
|colspan=2| <div style="text-align:center;font-weight:700;">'''Hardware feature introduction'''</div>
<div>[[File:Orange-pi-zero-plus2-img2.png|500px|]]</div>
<br>
 
=== '''Interface instructions''' ===
<br>
<br>
<div>[[File:Orange-pi-zero-plus2-img4.png|600px|]]</div>
<br>
=== '''GPIO Specifications''' ===
<br>
A 26-pin GPIO interface on the Orange Pi Zero Plus2 is the same as Model A and Model B of Raspberry Pi. The picture below is GPIO pin define of Orange Pi Zero Plus2.
<div>[[File:Orange-pi-r1-img-3.png|800px]]</div>
<br>
<table style=" min-width: 800px;text-align: center;" border="1" bordercolor="#d8d8d8" cellspacing="0"
cellpadding="0">
<tr>
<td>OrangePi_zeroplus2(H5)</td>
<td></td>
<td></td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P01</td>
<td style="background-color: #5a5a5a;">VCC-3V3</td>
<td></td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P02</td>
<td style="background-color: #5a5a5a;">VCC-5V</td>
<td></td>
</tr>
<tr>
<td style="background-color: #b1a0c6;">CON3-P03</td>
<td style="background-color: #b1a0c6;">TWI0-SDA</td>
<td style="background-color: #b1a0c6;">PA12</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P04</td>
<td style="background-color: #5a5a5a;">VCC-5V</td>
<td></td>
</tr>
<tr>
<td style="background-color: #b1a0c6;">CON3-P05</td>
<td style="background-color: #b1a0c6;">TWI0-SCK</td>
<td style="background-color: #b1a0c6;">PA11</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P06</td>
<td style="background-color: #5a5a5a;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #938a53;">CON3-P07</td>
<td style="background-color: #938a53;">PWM1</td>
<td style="background-color: #938a53;">PA6</td>
</tr>
<tr>
<td style="background-color: #d99694;">CON3-P08</td>
<td style="background-color: #d99694;">UART2_TX</td>
<td style="background-color: #d99694;">PA0</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P09</td>
<td style="background-color: #5a5a5a;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #d99694;">CON3-P10</td>
<td style="background-color: #d99694;">UART2_RX</td>
<td style="background-color: #d99694;">PA1</td>
</tr>
<tr>
<td style="background-color: #c2d59a;">CON3-P11</td>
<td style="background-color: #c2d59a;">S-TWI-SCK</td>
<td style="background-color: #c2d59a;">PL0</td>
</tr>
<tr>
<td style="background-color: #938a53;">CON3-P12</td>
<td style="background-color: #938a53;">PD11</td>
<td style="background-color: #938a53;">PD11</td>
</tr>
<tr>
<td style="background-color: #c2d59a;">CON3-P13</td>
<td style="background-color: #c2d59a;">S-TWI-SDA</td>
<td style="background-color: #c2d59a;">PL1</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P14</td>
<td style="background-color: #5a5a5a;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #c2d59a;">CON3-P15</td>
<td style="background-color: #c2d59a;">UART2_CTS</td>
<td style="background-color: #c2d59a;">PA3</td>
</tr>
<tr>
<td style="background-color: #f9c090;">CON3-P16</td>
<td style="background-color: #f9c090;">TWI1-SDA</td>
<td style="background-color: #f9c090;">PA19</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P17</td>
<td style="background-color: #5a5a5a;">VCC3V3-EXT</td>
<td></td>
</tr>
<tr>
<td style="background-color: #f9c090;">CON3-P18</td>
<td style="background-color: #f9c090;">TWI1-SCK</td>
<td style="background-color: #f9c090;">PA18</td>
</tr>
<tr>
<td style="background-color: #92cddd;">CON3-P19</td>
<td style="background-color: #92cddd;">SPI1_MOSI</td>
<td style="background-color: #92cddd;">PA15</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P20</td>
<td style="background-color: #5a5a5a;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #92cddd;">CON3-P21</td>
<td style="background-color: #92cddd;">SPI1_MISO</td>
<td style="background-color: #92cddd;">PA16</td>
</tr>
<tr>
<td style="background-color: #c2d59a;">CON3-P22</td>
<td style="background-color: #c2d59a;">UART2_RTS</td>
<td style="background-color: #c2d59a;">PA2</td>
</tr>
<tr>
<td style="background-color: #92cddd;">CON3-P23</td>
<td style="background-color: #92cddd;">SPI1_CLK</td>
<td style="background-color: #92cddd;">PA14</td>
</tr>
<tr>
<td style="background-color: #92cddd;">CON3-P24</td>
<td style="background-color: #92cddd;">SPI1_CS</td>
<td style="background-color: #92cddd;">PA13</td>
</tr>
<tr>
<td style="background-color: #5a5a5a;">CON3-P25</td>
<td style="background-color: #5a5a5a;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #92cddd;">CON3-P26</td>
<td style="background-color: #92cddd;">PD14</td>
<td style="background-color: #92cddd;">PD14</td>
</tr>
</table>
<br>
 
=== '''Specification of CSI Camera Connector''' ===
<br>
The CSI Camera Connector is a 24-pin FPC connector which can connect external camera module with proper signal pin mappings. The pin of CIS connector can be defined as follows. The connector marked with "CON 1" on the Orange Pi Zero Plus2 is camera connector.
<div>[[File:Orange-pi-pc2-img6.png|800px]]</div>
<br>
'''Orange Pi Zero Plus2-CSI'''
<br>
<table style=" min-width: 800px;text-align: center;" border="1" bordercolor="#d8d8d8" cellspacing="0"
cellpadding="0">
<tr>
<td style="background-color: #808080;">CON1-P01</td>
<td style="background-color: #808080;">NC</td>
<td></td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P02</td>
<td style="background-color: #808080;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #33cccc;">CON1-P03</td>
<td style="background-color: #33cccc;">TWI2-SDA</td>
<td style="background-color: #33cccc;">PE13</td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P04 </td>
<td style="background-color: #808080;">VCC-CSI</td>
<td></td>
</tr>
<tr>
<td style="background-color: #33cccc;">CON1-P05 </td>
<td style="background-color: #33cccc;">TWI2-SCK</td>
<td style="background-color: #33cccc;">PE12</td>
</tr>
<tr>
<td style="background-color: #33cccc;">CON1-P06 </td>
<td style="background-color: #33cccc;">CSI-RESET#</td>
<td style="background-color: #33cccc;">PE15</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P07 </td>
<td style="background-color: #ff9900;">CSI-VSYNC</td>
<td style="background-color: #ff9900;">PE3</td>
</tr>
<tr>
<td style="background-color: #33cccc;">CON1-P08 </td>
<td style="background-color: #33cccc;">CSI-STBY-EN</td>
<td style="background-color: #33cccc;">PE15</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P09 </td>
<td style="background-color: #ff9900;">CSI-HSYNC</td>
<td style="background-color: #ff9900;">PE2</td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P10 </td>
<td style="background-color: #808080;">VDD1V8-CSI</td>
<td></td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P11 </td>
<td style="background-color: #808080;">VCC-CSI</td>
<td></td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P12 </td>
<td style="background-color: #ff9900;">CSI-D7</td>
<td style="background-color: #ff9900;">PE11</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P13 </td>
<td style="background-color: #ff9900;">CSI-MCLK</td>
<td style="background-color: #ff9900;">PE1</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P14 </td>
<td style="background-color: #ff9900;">CSI-D6</td>
<td style="background-color: #ff9900;">PE10</td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P15 </td>
<td style="background-color: #808080;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P16 </td>
<td style="background-color: #ff9900;">CSI-D5</td>
<td style="background-color: #ff9900;">PE9</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P17 </td>
<td style="background-color: #ff9900;">CSI-PCLK</td>
<td style="background-color: #ff9900;">PE0</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P18 </td>
<td style="background-color: #ff9900;">CSI-D4</td>
<td style="background-color: #ff9900;">PE8</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P19 </td>
<td style="background-color: #ff9900;">CSI-D0</td>
<td style="background-color: #ff9900;">PE4</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P20 </td>
<td style="background-color: #ff9900;">CSI-D3</td>
<td style="background-color: #ff9900;">PE7</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P21 </td>
<td style="background-color: #ff9900;">CSI-D1</td>
<td style="background-color: #ff9900;">PE5</td>
</tr>
<tr>
<td style="background-color: #ff9900;">CON1-P22 </td>
<td style="background-color: #ff9900;">CSI-D2</td>
<td style="background-color: #ff9900;">PE6</td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P23</td>
<td style="background-color: #808080;">GND</td>
<td></td>
</tr>
<tr>
<td style="background-color: #808080;">CON1-P24</td>
<td style="background-color: #808080;">AFVCC-CSI</td>
<td></td>
</tr>
</table>
<br>
== '''Using Method Introduction to use the development board''' ==
<br>
=== '''Prepare Follow these steps, you can configure and run your Orange Pi in a very short period of time. Boot your Orange Pi need to complete the necessary accessories''' ===following steps.<br>
<br>
=== '''Step 1)TF card, a high-speed card of class 10 or higher with a minimum capacity of 8GB, it is recommended to use SanDisk TF card, Orange Pi test is to use SanDisk TF card, other brands of TF card may have the problem of system failure<br><div style: Prepare Accessories Needed''' ==="padding-left:200px">[[File:Orange-pi-one-img4.png|250px]]</div>
<br>
2)TF card reader, used You need at least some accessories like the following if it is your first time to read and write TF card<br><div style="padding-left:200px">[[File:use the Orange-pi-3-lts-tfcardPi(we would suggest you using the Expansion board at the same time).png|250px]]</divbr>
<br>
3)Standard {| class="wikitable" style="width:800px;background:#fff;"|-! No. !! Items !! Requirements and Instructions|-| 1|| TF card|| 8GB min.; class 10. Branded TF cards would be reference which are much more reliable.|-| 2|| HDMI to HDMI cable or HDMI to DVI cable|| HDMI to HDMI cable, is used to connect the development board HD TV or HD monitor|-| 3|| AV video cable|| A standard AV video cable can be used to an connect stimulated monitor if a HDMI monitor or TV for display<br>is unavailable.|-| 4|| Keyboard and mouse|| Any keyboard and mouse with USB port is applicable; Keyboard and mouse are high-power, so a USB concentrator is required.<div style="padding|-left:200px">[[File:| 5|| Ethernet cable/USB WiFi(Optional)|| Network is optional, It makes more convenient to mount and upgrade software in your OrangePi PC.|-pi| 6|| DC power adapter|| 5V/2V min. high qualified power adapter, OTG can not used a power supply.|-| 7|| Audio cable (Optional)|| You can select an audio cable with 3-lts-hdmicable.png5mm jack to feel stereo audio.|250px]]</div>}
<br>
4)Power adapter, at least 5V<div style="display:flex; "><div style="text-align:center;">[[File:Orange-pi-pc2-img7.png|200px200px|]]<br>HDMI to HDMI cable</div><div style="text-align:center;margin-left:100px;padding-top:3px;">[[File:Orange-pi-pc2-img8.png|200px200px|]]<br>HDMI to DVI cable</2A highdiv><div style="text-align:center;margin-quality power adapter, note that the OTG interface of the development board cannot be used as a power inputleft:100px;padding-top:1px;">[[File:Orange-pi-pc2-img9.png|200px200px|]]<br>AV video cable</div></div>
<br>
<div style="display:flex;padding-left: 200px150px;"><div style="text-align:center;padding-top:40px;">[[File:Orange-pi-pc2-img10.png|200px200px|]]<br>TF card</div><div style="text-align:center;margin-left:50px;">[[File:Orange-pi-i96r1-img5img-4.png|250px80px|]]<br><div style="width:125px;">DC power adapter</div></div><div style="text-align:center;margin-left:50px;padding-top:55px;">[[File:Orange-pi-r1-img-5.png|120px|]]<br>Expansion Board</div>
</div>
<br>
5=== '''Step 2: Prepare a TF Card or EMMC Image''' ===<br>In order to use Orange Pi normally, you must install the operating system into TF card first.<br><br>'''1)USB interface mouse and keyboardWrite Linux into TF Card Based on Windows Platform'''<br><br>a.Inserting the TF card into the computer, the capacity of the card must be bigger than the operating system, usually requires 8GB or bigger.<br>b.Formatting the TF card.<br><div style="padding-left:20px;">i Download tools for formatting TF card, such as long as TF Formatter, it is a standard USB interface mouse and keyboardcould be downloaded from:<br>https://www.sdcard.org/downloads/formatter_4/eula_windows/<br><br>ii Unzip the downloaded files, the mouse and keyboard can be used to control the Orange Pi development boardrun setup.exe<br>
<br>
6iii In the options settings select the "format" button for quick formatting. "Format size adjustment" select "(ON)IR remote control, mainly used to control Android system"<br>
<br>
<div style="padding-left: 200px180px;">[[File:Orange-pi-pc2-img12.png|400px|]]</div><br><div style="padding-left:180px;">[[File:Orange-pi-pcpc2-plus-img4img13.png|250px400px|]]</div><br>iv Make sure the inserted TF card disk are in accordance with the chosen disk.<br><br>v Click the "Format" button.
</div>
c.Download the operating system image file from the download page, the page address is as following:<br>
http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus-2.html<br>
d.Unzip the downloaded file (in addition to the Android system, this method can be used to burn to write, the Android system need another burn, the following will introduce)<br>
e.Right click to download the file, select "Unzip file" to write image to TF card
<div style="padding-left:20px;">
i Download tools to write image,such as Win32 Diskimager, here is the download page: <br>
http://sourceforge.net/projects/win32diskimager/files/Archive/<br>
<br>
ii Select the image file path that has been unzipped.<br>
<br>
7)100M or Gigabit network cable, used to connect the development board to the Internet<brdiv style="padding-left:180px;">[[File:Orange-pi-pc2-img14.png|400px|]]</div>
<br>
8)GC2035 or OV5640 camera kit, which can be connected to the CSI interface of iii Click "Write" button and wait for the development board image to display video imageswrite. <br>
<br>
<div style=iv After the image is written, click "padding-left:50px;Exit">[[File:Orange-pi-one-img6button.png|250px]][[File:Orange-pi-one-img7.png|250px]]
</div>
<br>
9'''2)Micro USB interface data cable, when using the ADB debugging function of the Android system, you need to connect the development board to the computer through the Micro USB interface data cable<div style="padding-left:200px">[[File:Orange-pi-lite-img8.png|250px]]</div>Write Linux into TF card based on Linux platform?'''
<br>
10)AV video cable, if you want to display video through a.Inserting the CVBS interface instead of TF card into the HDMI interfacecomputer, then you need to connect the development board to capacity of the TV through card must be larger than the AV video cableoperating system image, usually requires 4GB or greater capacity.<br>
<br>
b.Formatting the TF card.<br><br>i Run fdisk –l order to make sure TF disk.<br>ii Run umount /dev/sdxx to uninstall all partitions of TF Card. <br>iii Run sudo fdisk /dev/sdx order. Use o command to delete allpartitions of TF Card, and then us n order to add a new partition, finally usew command to save and exit.<br>iv Run sudo mkfs.vfat /dev/sdx1 command to format the TF card partition set up last step to FAT32 form(according to your TF card disk to replacex). Or you could skip this step since command in Linux will format TF card automatic.<br><br>c.Download the OS image from download page <br>http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus-2.html<br><br>d.Unzip and right click the downloaded file, select " Unzip file"<br><br>e.Write image to TF card<br><br>i Run sudo fdisk –l order to make sure the TF card disk<br>ii make sure the image file hash key is the same as download page mention(optional). It will output sha1sum [path]/[imagename], which should be same as the image paye "SHA-1"<br>iii Run umount /dev/sdxx order to uninstall all partitions in TF Card<br>iv Run sudo dd bs=4M if=[path]/[imagename] of=/dev/sdx to write down image file. Wait for the image to write. If it cannot work at 4M, then replace a 1M which takes more time. You can run sudo pkill –USR1 –n –x dd order to monitoring procedure.<br><br>'''3)Use PhoenixCard tool to write Android image into TF card'''<br>It is impossible for Android image to be written into TF card by usingdd command under Linux or using Win32 Diskimager under Windows. HerePhoenixCard tool is applicable for Android image writing.<br><br>a.Download the Android OS image and PhoenixCard tool. Download PhoenixCard from here:<br>https://drive.google.com/file/d/0B_VynIqhAcB7NTg2UkRDdHRWX2s/edit?usp=sharing<br>Download Android OS image from here: <br>http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus-2.html<br>b.Format the TF card<br><div style= >[[File:Orange-pi-pc2-img15.png|400px|]]</div><br>c.Please make sure the inserted TF card is in accordance with the chosen TF card, click "restore" button for TF card formatting.<br><br><div >[[File:Orange-pi-pc2-img16.png|600px|]]</div><br>d.Click "OK"paddingbutton after successfully formatted the TF card to normal.<br><br>e.Burn the Android OS image into your TF card. Please pay attention to the following with red marks.<br><br><div >[[File:Orange-pi-leftpc2-img17.png|600px|]]</div><br>f.Click "Burn" button for writing to TF card and wait for it finish<br><br><div >[[File: 200pxOrange-pi-pc2-img18.png|600px|]]</div><br>g.Click "Exit"button after burn Android image to TF card successfully.<br><br>'''4)Write Armbian Image into TF Card'''<br><br>a.Insert TF card into computer, please note that the TF card capacity must bigger than the operating system image, usually need to be 8GB or bigger.<br>b.Download the OS image file from the download page: http://www.armbian.com/download/<br>c.Write the image into TF card.<br>i. Download image writing tool such as Rufus, the download page: https://rufus.akeo.ie/<br><br><div >[[File:Orange-pi-pcpc2-plusimg19.png|400px|]]</div><br>ii. Select the image file path that has been unzipped<br><br><div >[[File:Orange-pi-img5pc2-img20.png|250px600px|]]</div><br>iii. Click "start" button and wait for the image to write.<br><br><div >[[File:Orange-pi-pc2-img21.png|600px|]]</div><br>iv. After the image is written, click "close" button<br><br>'''5)Write Android image into EMMC'''<br><br>Steps for writing image into EMMC is almost the same with writing into TF card.<br><br>a.Download corresponding Android image and Phoenix Card writing tool.<br>b.Formatting SD card.<br>c.Make sure the Disk is same as TF card, and start formatting SD card.<br>d.Write Android into TF card, please note the red mark, which is differentfrom writing into TF card.<br>
<br>
11)USB to TTL module and DuPont cable<div >[[File:Orange-pi-plus-2e-img2. When using the serial port debugging function, USB to TTL module and DuPont cable are required to connect the development board and the computerpng|600px|]]<br/div>
<br>
<div style="padding-left:200px;">[[File:Orange-pi-one-img8After written image with Card production, then exit.png|250px]]<br>[[File:Orange-pi-lite-img10.png|250px]]</div>
<br>
12)A personal computer with Ubuntu and Windows operating systems{| class="wikitable"|-| 1|| Ubuntu14e.04 PC|| OptionalPower it on, used to compile Android source code|-| 2|| Ubuntu18you could found that the red LED on board is flashing which means the image is writing.04 PC|| OptionalWhen the red LED off, used to compile Linux source code|-| 3|| Windows PC|| Used to burn Android and Linux images|}image written finished. Take off the TF card, then power the board on, it should run.<br>
<br>
==='''Download the 6)Write Linux image and related information of the development boardinto EMMC'''===<br>In this section would take image: ubuntu_server_zeroplus2_H5_V0_1.img as an example to illustrate how to write Linux image into EMMC. We would recommend you use the server version image since the RAM of zero plus2 is not too big.<br><br>* Method 1:a. $ sudo OrangePi_FormatEMMC.sh Formatting EMMC<br><div >[[File:Orange-pi-zero-plus2-img9.png|600px|]]</div><br>$ sudo OrangePi_Install_OrangePi_2_EMMC.sh Writ image into EMMC<br><br><div >[[File:Orange-pi-zero-plus2-img10.png|600px|]]</div><br>Wait for writing finish and re-boot<br><br>* Method 2:$ sudo OrangePi_Settings<br><br><div >[[File:Orange-pi-zero-plus2-img11.png|600px|]]</div><br>Select the fourth one Storage Setting<br><br><div >[[File:Orange-pi-zero-plus2-img12.png|600px|]]</div><br>Select the first one, Format EMMC as Normal Storage First format EMMC<br>Select fourth one, Install Image into EMMC Install image into EMMC and re-boot<div >[[File:Orange-pi-zero-plus2-img13.png|600px|]]</div>
<br>
1)The download URL of the Chinese version is:<br>
http://www.orangepi.cn/downloadresourcescn/
2=== '''Step 3: Boot your Orange Pi''' ===<br>'''1)The download URL of the English version is:Hardware Connection Sketch Map'''<br><br> http<div >[[File://www.orangepiOrange-pi-zero-plus2-img14.org/downloadresources/ 3)The information mainly containspng|400px|]]<br><div style="paddingwidth:400px;text-leftalign:20pxcenter;">aOrange Pi Zero Plus2 runs on Android 5.Android source code: saved on Baidu Cloud Disk and Google Cloud Disk1 system<br/div>b.Linux source code: saved on github, the link address is<br/div> https://github.com/orangepi-xunlongc. User manuals and schematic diagrams: chip-related data manuals will also be placed here<br>d. Official tools: mainly include the software that needs to be used during the use of the development board<brdiv >e[[File:Orange-pi-zero-plus2-img15. Android image: saved on Baidu Cloud Disk and Google Cloud Diskpng|400px|]]<br>f. Ubuntu image<div style="width:400px;text-align: saved center;">Orange Pi Zero Plus2 runs on Baidu Cloud Disk and Google Cloud Disk<br>g. Debian image: saved on Baidu Cloud Disk and Google Cloud Disksystem<br/div>h. Armbian image, a image developed by the Armbian community. If you encounter any problems during use, please report to the armbian forum first. The maintainer of the Armbian image and other people who use the Armbian image will assist in solving various problems. This is also a fastest way to solve the problem. Orange Pi is not responsible for maintaining this image.
</div>
<br>
<div >[[File:Orange-pi-pczero-plusplus2-img6img16.png|800px400px|]]<br><div style="width:400px;text-align:center;">Orange Pi Zero Plus2 runs on Ubuntu system</div>
</div>
<br>
=== '''Method of flashing Linux image to TF card based on Windows PC''' ===<div >[[File:Orange-pi-zero-plus2-img17.png|400px|]]</div>
<br>
1'''2)First, prepare a TF card with 8GB or larger capacity. The transmission speed Details of the TF card must be above class10. It is recommended to use a TF card of SanDisk and other brandsBooting Steps'''<br>
<br>
2)Then use a.Insert the TF card reader with written image in to insert the TF card into slot.<br>b.You could use HDMI cable to connect your Orange Pi to HDMI TV or monitor.<br>You could also use AV interface and audio interface to connect output video and audio to analog TV or display.<br>c.There is 13pin on board which you could connect to expansion board. For expansion board, 2USB ports, mic and IR receiver are available.<br>d.It is the network module on board, which you can access Orange Pi to the wired network.<br>e.You could connect to a power adapter on mic USB OTG with a power adapter up to or bigger than 5V/2A. Avoid using smaller power GSM mobile phone charger, it is not able to output 2A even if it marked "5V/2A ".<br>Note: Micro-USB(OTG)cannot use as power input which may cause the fail boot of the OrangePi. Only the power interface could input power.<br>The Orange Pi will boot in a few minutes If the above steps are successful. There will be graphical interface in he monitor. It may take a long time to start the windows computerfirst time, please wait patiently. The next time will boot very fast.<br>
<br>
3)Then format the TF card<br>
<div style="padding-left:20px;">
a.You can use the SD Card Formatter software to format the TF card, the download address is<br>
https://www.sdcard.org/downloads/formatter/eula_windows/SDCardFormatterv5_WinEN.zip
b=== '''Step 4: Turn off your Orange Pi Correctly''' ===<br>* You can use the shutdown button on the interface to safety close the Orange Pi.* You can also close the system by entering commands in the shell:<br>'''sudo halt''' or '''sudo shutdown –h'''<br><br>It will be safety to turn off the Orange Pi. If directly use the power button to shut down the system may damage the file system on TF Card.After downloadingthe system is closed, unzip and install directly, and then open the softwarepower can be cut off by more than 5 seconds’ press.<br><br>=== '''Other configuration''' ===<br>'''1)Connect to the wired network'''<br>
<br>
c* Method 1:<br>a.If Enter the computer only has a TF card inserted, the TF card's drive letter will be displayed following in the Select card columncommand line:<br>$ ifconfig<br>To check whether there is (wlan*)<br>b. If the computer has multiple USB storage devices insertedno, you can select load the drive letter corresponding module according to the TF card through the drop-down boxwlan model<br>$ insmod bcmdhd.ko<div style="padding-leftbr>For example:180px"For AP6212 is bcmdhd.ko<br>[[File:Orange-pi-3lts-sdcardformatterc.png|400px]]Enter command ifconfig, you should see wlan0(hypothesis it is wlan0)</divbr>d.Then click FormatConfigure wired network, a warning box will pop up before formattingfirst you need to know ssid and psk(account and password), enter corresponding wlan*, ssid, psk<br>$ sudo nano /etc/network/interfaces (add the following contents) <br>auto wlan0<br>iface wlan0 inet dhcp <br>wpa-ssid xxxx<br>wpa-psk xxxx<br>e.Reboot the computer and formatting the wired network will start after selecting work.<br>$ sudo reboot<br><br>* Method 2:<br>a.Build wifi hotspot configuration file of wpa_supplication.conf for on/etc/network/ directory and add the following: <br>network={<br>ssid="Yes (Y)wifi hot spot name"<br><div stylepsk="padding-left:180pxwifi hot spot password"<br>priority=1<br>[[File}b.Connect wifi, here is the command:Orange<br>ifconfig wlan0 up<br>sudo wpa_supplicant -pii wlan0 -3lts-sdcardformatter1c /etc/network/wpa_supplication.png|400px]]conf & dhcpcd wlan0 &</divbr>ec.After formatting Test the TF cardcondition of wifi connection<br>Use iwconfig command, you will find the message shown in related information of wlan0, use ping command to test.<br><br>'''2)Login via vnc and ssh'''<br><br>If there is no condition for connecting HDMI, you could enter the figure below will pop up, click OKsystem via vnc or ssh remote login.<br>* Login via serial port and install ssh apt-get install ssh* Modify ssh configuration file /etc/ssh/sshd_config<br><div style="padding-left:180px" >[[File:Orange-pi-3ltspc2-sdcardformatter2img28.png|400px|]]</div>
</div>
4)Download the Linux operating system image file compression package you want to burn from the Orange Pi data download page, and then use the decompression software to decompress it. In the decompressed file, the file ending with ".img" is the operating system image file,the size is generally above 1GB.<br>
<br>
5)Use '''Win32Diskimager''' to burn Linux image to TF card<br><div style="padding-left:20px;">a.The download page of Win32Diskimager is<br> http://sourceforge.net/projects/win32diskimager/files/Archive/b.Install directly after downloading* Check the IP with ifconfig, the interface login via ssh of Win32Diskimager is shown below<br>root user<p style="padding-left:20px;">a)First select the path of the image file<br>b)Then confirm that the drive letter of the TF card is the same as that displayed in the '''"Device"''' column<brdiv >c)Finally click '''"Write"''' to start burning</p><div style="padding-left:180px">[[File:Orange-pi-3ltspc2-selectimageimg29.png|400px600px|]]</div>c.After the image writing is completed, click the "Exit" button to exit, and then you can pull out the TF card and insert it into the development board to start
</div>
 
=== '''Method of flashing Linux image to TF card based on Ubuntu PC''' ===
<br>
1'''3)First, prepare a TF card with 8GB HDMI or larger capacity3. The transmission speed of the TF card must be above class105mm Sound Output(3. It is recommended to use a TF card of SanDisk and other brands5mm sound output would require using an expansion board)'''<br>
<br>
2)Then use a .The sound was default to output via HDMI on image, it could check and change via alsamixer.<br>ls /etc/asound.conf<br>card indicates card number, device indicates device number.<br>aplay -l it could check the system to load the sound card reader number and details<br>cat /proc/asound/cards it also could check the sound card and details It could be used after use alsamixer to insert change the TF sound card .<br>alsactl store -f /var/lib/alsa/asound.state used for saving modified parameters<br>b.It needs to modify configuration on file system for output on 3.5mm of/etc/asound.conf, modify card1 into card0, or use amixer to modify. The default one is configured, or you could use player on graphical interface to switch via sound channel selection.<br>c.How to use mic sound recording <br>arecord -d 5 -f cd -t wav 123.wav<br>After recording, use the computerfollowing to play <br>aplay 123.wav<br>
<br>
3)Download balenaEtcher software, the download address is<br> https://www.balena.io/etcher/4)After entering the balenaEtcher download page, please select the Linux version of the software through the drop-down box to download<br>=== '''Universal Software Configuration''' ===
<br>
'''1)Default Account Changing'''<div style="padding-left:200px">[[File:Orange-pi-3lts-selectlinuxversion.png|600px]]</divbr>
<br>
5)After downloading, use '''unzip ''' to decompress. The decompressed '''balenaEtcher-1default log in account is orangepi.5.109-x64.AppImage''' In order to secure, it is recommended to modify the software required default orangepi accounts to your own account, for burning<div style="backgroundexample Zhangsan. Steps are as follows:#f1f1f1;border: 1px solid #000;">test@test:~$ unzip balena-etcher-electron-1.5.109-linux-x64.zip <br>Archive: balena-etcher-electron-1a.5.109-linux-x64.zipUse root account to login Orange Pi(please note that do not login with the account of orangepi<br>inflating: balenaEtcher-1b.5.109$ usermod -x64.AppImagel zhangsan orangepi Change orangepi account into Zhangsan<brdiv style=" "> test@test[[File:~$ ls<br>balenaEtcher-1.5.109Orange-x64.AppImage balena-etcher-electron-1.5.109pi-linuxpc2-x64img30.zippng|400px|]]
</div>
c.$ groupmod -n zhangsan orangepi Change group<brdiv style=" ">6)Download the Linux operating system image file compression package you want to burn from the [[File:Orange Pi data download page, and then use the decompression software to decompress it-pi-pc2-img31.png|400px|]]</div>d. In the decompressed file, the file ending with $ mv /home/ornagepi /home/zhangsan Change directory of original orangepi<div style=".imgpadding-left:80px;" is the operating system image file,the size is generally above 1GB>[[File:Orange-pi-pc2-img32.png|600px|]]<br/div>ae.The decompression command of the compressed package at the end of a.7z is as follows$ usermod -d /home/orangepi orangepi Set this directory to orangepi user's home directory<div style="backgroundpadding-left:#f1f1f1;border: 1px solid #00080px;">test@test[[File:~$ 7z x image_filenameOrange-pi-pc2-img33.7zpng|600px|]]
</div>
bf.The decompression command for the compressed package at the end of tar.gz is $ cat /etc/passwd It should be shown as followsbelow:<div style="background:#f1f1f1;border: 1px solid #000;">test@test[[File:~$ tar Orange-pi-pc2-zxf image_filename.tarimg34.gzpng|800px|]]
</div>
After the modification of the above iterms, it can be used the new account Zhangsan to land.<br>
<br>
7'''2)DoubleU Disk Automatic Mounted Configuration'''<br><br>a.sudo apt-click balenaEtcher-1get install usbmount<br>b.sudo vim /etc/udev/rules.5d/automount.109rules <br>ACTION=="add",KERNEL=="sdb*", RUN+="/usr/bin/pmount --sync--umask 000 %k"<br>ACTION=="remove", KERNEL=="sdb*", RUN+="/usr/bin/pumount %k" ACTION=="add",KERNEL=="sdc*", RUN+="/usr/bin/pmount --sync--x64umask 000 %k"<br>ACTION=="remove", KERNEL=="sdc*", RUN+="/usr/bin/pumount %k"<br><br>c.AppImage on the graphical interface of Ubuntu PC udevadm control –reload-rules <br>It could refer to open balenaEtcherthis:<br>http://unix.stackexchange. The opened interface is shown in the figure belowcom/questions/134797/how-to-automatically-mount-an-usb-device-on-plugin-time-on-an-already-running-sy<br><br>'''3)System Source Configuration'''<br><div style="padding-leftbr>Take Ubuntu as an example:20px;"<br>a.First select the path of Open the image source file<br>b$ sudo vi /etc/apt/sources.Then select the device number of the TF cardlist<brdiv>c[[File:Orange-pi-pc2-img35.Finally click Flash to start burningpng|800px|]]
</div>
b.Edit source file<br>Replace the source file with your favorite source. Take an example of Ubuntu 16.04 on Zhonkeda source:<br>deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe<br>deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe<br>deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe<br>deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe<br>deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe<br>deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main multiverse restricted universe<br>deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main multiverse restricted universe<br>deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-proposed main multiverse restricted universe<br>deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main multiverse restricted universe<br>deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main multiverse restricted universe<br>Note: xenial is the version of the code name in this source, if the other version of Ubuntu needs to replace the corresponding version code which can be found on the internet.<br><br>'''4)Remote desktop installation'''<br>There are a lot of software, such as VNG, XRDP, X2GO, etc. For X2GO, it has more functions, and desktop color restore is very good which does not need too much configuration. And XRDP is much more safety than VNC.<br>a.$sudo apt-get install tightvncserver Install VNC<div style="padding>[[File:Orange-pi-pc2-leftimg36.png|400px|]]</div><br>b.vncpassw Set the password:200px"do not execute this command but executing vncserver directly. It will prompt you to enter the password twice, when prompted whether can be read only to select the N.<div>[[File:Orange-pi-3ltspc2-balenaetcherimg37.png|600px800px|]]</div>8<br>c.Open one or more of desktops by vncserver or vncserver:1(vncserver:2)… you can also transfer more parameters through the full command as below:<br>vncserver :1 -geometry 1024x768 -depth 16 -pixelformat rgb565<br>(Note: If it prompted you that cannot find the file or other error when installing, please run sudo apt-get update to update the software source and try installing again.)<br><br>'''5)NAS and DLAN Configuration'''<br>a.NAS:<br>There are many files could be reference from Internet, for example: http://www.geekfan.net/5003/, it detailed descriptions on the operation and the mounted of U disk is very useful.<br>b.DLNA:<br>Mainly through the minidlna software to achieve the sharing of media resources within the LAN, such as sharing video, music, etc.. The writing speed installation steps are as follows:<br>i. sudo apt-get minidlna<br>ii. Execute the following command to modify the configuration file: <br>sudo nano /etc/minidlna.conf<br>Note: you can also use other text editor to modify. <br>iii. Add the following:<br>media_dir=A,/nas, path: /DLNA/Music<br>media_dir=V,/nas, path: /DLNA/Video <br>media_dir=P,/nas, path: DLNA/Picture <br>db_dir=/nas, path: /DLNA/log <br>db_dir=/nas, path: /DLNA/db<br>ctrl +o and enter, ctrl +x to save and exit.<br>iv. Established above folders respectively, noted that path consistency and remaining time will assigned to read and write permissions. In order for convenient, it could be prompted during Chmod 755, such as sudo Chmod 755 /nas path /DLNA/Music<br>v. Re-start minidlna to take effect the configuration: /etc/init.d/minidlna restart.<br>Transmit the corresponding file on the computer to the corresponding folder through samba.<br>Note: It is recommended to download MoliPlayer on the mobile device. The effect is good and no blue light pressure on both Android and IOS.<br><br>'''6)Thunder remote download'''<br>a.Go to the Thunder routing forum to download the required installation package first. The link for stable version:<br>http://luyou.xunlei.com/thread-12545-1-1.html. <br>Download Xware1.0.31_cubieboard zip file.<div >[[File:Orange-pi-pc2-img38.png|800px|]]</div><br>Note: If you want to try the latest version, you can download the latest test version: http://luyou.xunlei.com/thread-15167-1-1.htm.<br>b.Enter the directory after uploaded the unzip file to OrangePi. It is recommended to rename the file to xunlei<br>c.Installation method of version 1.0.31:<br>i $ cd /xxx/xunlei The xxx is the burning processdirectory of installation xunlei file <br>ii $ chmod 755 portal<br>iii $ ./portal<div style="padding>[[File:Orange-pi-pc2-leftimg39.png|800px|]]</div><br>iv You will get an activation code after booting like the following:200px"<div>[[File:Orange-pi-3ltspc2-balenaetcher1img40.png|600px800px|]]</div>9<br>v Copy this activation code to http://yuancheng.xunlei.com (Which required to log in with account of Thunder)After burning. Then click the tab on the top right corner to add, fill in the activation code to complete the binding according to the following figure.<div>[[File:Orange-pi-pc2-img41.png|800px|]]</div><br>vi Setting start up<br>$ sudo nano /etc/rc.loacl<br>add the following interface contents before exit 0 <br>cd /xx/xunlei<br>./portal &ctrl +o and enter, ctrl +x to save and exit.<br>d.Installation of version 3.0.32.253:<br>i $ cd /xxx/xunlei The xxx is the directory of installation file of xunlei<br>ii $ sudo nano thunder_mounts.cfg Modify the download path<div >[[File:Orange-pi-pc2-img42.png|400px|]]</div><br>iii chmod +x etm_monitor<br>iv Run ./etm_monitor, there will be displayedan activation code page likeversion 1.0.32. And then binding on the Thunder remote page (above steps 4, 5). There might be one or two errors while running, ignore it (selection type of shell and generation of INI file). At this time<br>v Setting start up<br>sudo nano /etc/rc.loacl <br>add the following contents before exit 0 <br>cd /xx/xunlei<br>./etm_monitor &<br>ctrl +o and enter, ctrl +x to save and exit.<br>It could be remote downloading on computer, mobile phone or tablet by login yuancheng.xunlei.com<br><br>'''7)Modify the size of ext4 file system'''<br>After made the written image into SD card for booting, you can unplug enter into rootfs partition’s expansion of file system. It could enhance the performance of SD card to avoid limited storage cause prblem.<br><br>* Method 1<br>Extend rootfs file partition of TF card from on PC:Select the specified disk, right click and select the computer corresponding disk, select "change size" and insert adjust it into your desired size, click "resize", close the dialog box and click "apply all operations", select the development board application to startcomplete the expansion operation<br><br>* Method 2<br>Enter into the system and extend via shell Before partition<div >[[File:Orange-pi-pc2-img43.png|400px|]]</div><br>Eneter into system and expend via resize_rootfs.sh<div style="padding >[[File:Orange-pi-pc2-img44.png|400px|]]</div><br>Enter resize_rootfs.sh on command line, the system will expending automatically,Reboot the system and use df -left:200px"lh to check whether expending is successful<div >[[File:Orange-pi-3ltspc2-balenaetcher2img45.png|600px400px|]]</div><br>a.Expand file system<br>i. Boot to Linux, umount /dev/sdb1 and /dev/sdb2, if it prompts disk busy, then use fuser to clean the using disk(we will recommend using another Linux booting disk to lead the system).<br>ii. Use fdisk /dev/sdb to adjust the partition size, after into it, enter p, and keep in mind about the initial position of needed extending size partition.<br>iii. Enter d to delete the partition need to change the size(my file system is /dev/sdb2, which is the 2 partition ).<br>iv. Enter n to build a new partition, make sure the initial position is the same as you deleted, and enter the number as you desire.<br>v. Enter w to save the partition data.<br>vi. Use the following command to check the file system(make sure it is a right file system)<br>e2fsck -f /dev/sdb2<br>vii. Adjust the partition size <br>resize2fs /dev/sdb2<br>viii. It could mount a disk partition, you could check whether it has changed.<br><br>b.Shrink file system<br>i. Boot to Linux, umount /dev/sdb1 and /dev/sdb2, if it prompts disk busy, then use fuser to clean the using disk(we will recommend using another Linux booting disk to lead the system).<br>ii. Use the following command to check the file system(make sure it is a right file system)<br>e2fsck -f /dev/sdb2<br>iii. Modify the size of file system(Use resize2fs)<br>resize2fs /dev/sdb2 900M<br>The "s"after the number represents specifying the size of file system via the sectors(every sector calculated by 512 bite). You could also specify it into K(KB), M(MB), G(GB), etc.<br>iv. Use fdisk /dev/sdb to adjust the partition size, after into it, enter p, and keep in mind about the initial position of needed extending size partition. You need to first delete the partition then build a new one because the fdisk could not modify the size dynamic(you need to calculate the size, it have to enough to contain the file system adjusted in last step).v. Enter d to delete the partition need to change the size(my file system is /dev/sdb2, which is the 2 partition ).<br>vi. Enter n to build a new partition, make sure the initial position is the same as you deleted, and enter the number as you desire. Besides, if it is bootable partition you want to change, note that need to keep the bootable mark in case cannot boot.<br>The above illustration is using fdisk and resize2fs to modify partition and file system, you could also use gparted. Gparted has graphical interface and it could help you to re-size file system at the same time of re-sizing partition. Goarted is much easier to use and reduce the change to make mistake. For now our offial Lubuntu and Raspbian could not use it.<br><br>'''8)How to use gc2035 on Linux'''<br>a.Use find command to find the location of the following files, and load it according to the specified order<br>insmod videobuf-core.ko <br>insmod videobuf-dma-contig.ko <br>insmod uvcvideo.ko<br>insmod cci.ko <br>insmod vfe_os.ko<br>insmod vfe_subdev.ko <br>insmod gc2035.ko <br>insmod vfe_v4l2.ko<br>There should be generated video0 on /dev/ after loaded. After low-level driver install, then the Andoird could be used directory.<br>b. Use camera in Linux<br>i Load up driver<br>sudo modprobe gc2035 <br>sudo modprobe vfe_v4l2<br>ii. Install motion<br>sudo apt-get install motion<br>iii. Modify configuration <br>sudo nano /etc/motion/motion.conf <br>stream_localhost off<br>iv. Create folder for images saving <br>mkdir ~/motion<br>v. Modify permission <br>chmod 777 motion<br>vi. Continue modifying configuration <br>sudo nano /etc/default/motion <br>start_motion_daemon=yes<br>vii. Boot the server <br>Sudo /etc/init.d/motion start<br>Enter the following in browser: localhost:8081 <br>You could check image output from camera.<br>Besides, you could also refer to this link:<br>http://www.cnx-software.com/2015/09/26/how-to-use-orange-pi-camera-in-linux-with-motion/<br><br>'''9)eth0 and wlan0 static mac address setting'''<br>a.If the system do not use systemd, you could modify rc.local directory and add the following:<br>$ vim /etc/rc.local <br>MAC=00:e0:4c:a1:2b:d4<br>ifconfig wlan0 down<br>ifconfig wlan0 hw ether $MAC <br>ifconfig wlan0 up<br>dhclient &<br>After rebooting, you could use ifconfig to check whether mac address has changed.<br>b.If the system used systemd, you also need to add the following besides the above steps:<br>$ cd /etc/systemd/system/<br>$ vim change_mac_address.service (You could name the server, format just like the following)<br><br>[unit]<br>Description=Change OrangePi Wifi mac address<br><br>[Service] <br>ExecStart=/etc/rc.local RemainAfterExit=yes<br><br>[Install]<br>sWantedBy=multi-user.target<br><br>$ systemctl enable change_mac_address.service<br>Modify mac address of eth0 is same as modifying wlan0’s, just need to replace wlan0 into eth0.<br><br>'''10)Orange Pi Android root'''<br>There is defaulted with root permission on Android pre-installed, but lacking authorization management software. The following is how to add authorization management software.<br><br>You need to have UsbModeSwitch.apk and UPDATE-SuperSU-v2.46.zip, install kingroot and make sure OTG on Orange Pi could connect to PC.<br><br>a.Open adb debug mode<br>Use U disk or card reader to install UsbModeSwitch.apk into Orange Pi OS and open it, tick "enable usb device mode" and use debug cable to connect OTG port and PC (make sure it is micro usb-cable in case other cables could not be recognized). Normally PC would search and install adb driver software automatically. If PC failed to install, you could install PC version’s Peasecod to install the driver software.<br><br>b.After connected Orange PI and PC, open command mode of PC, enter related command of adb(you need to install adb debug command, which Peasecod has adb command ). Here is the command:<br>adb remount <br>adb shell<br>windows(win+r) command line enter into command mode, then enter into kingroot directory and execute the following steps:<br>adb shell<br>root@rabbit-p1:/ # mkdir /tmp <br>root@rabbit-p1:/ # cd /system/bin<br>root@rabbit-p1:/ # mount -o remount, rw /system<br>root@rabbit-p1:/system/bin # ln -s busybox-smp unzip <br>Logout adb shell Mode<br>root@rabbit-p1:/exit (Or Ctrl + C) <br>Unzip UPDATE-SuperSU-v2.46.zip<br>You will obtain META-INF/com/google/android/update-binary and put it into specific catalog.<br>adb push /path/UPDATE-SuperSU-v2.46.zip /data/local/tmp path is file’s path<br>adb push /path/ update-binary /data/local/tmp <br>adb shell<br>root@rabbit-p1:/ #cd /data/local/tmp <br>root@rabbit-p1:/ #sh update-binary 0 1<br>/data/local/tmp/UPDATE-SuperSU-v2.46.zip<br><nowiki>......</nowiki><br><nowiki>......</nowiki><br>After executed scripts, enter reboot command and reboot it, you could use the device authorization management software normally.<br>After rebooted, there might be no super administrator icon, you need to delete the desk configuration file and reboot the board.<br><br>
=== '''Method of flashing Android firmware to TF cardLinux Kernel Source Code Compilation''' ===
<br>
In order to support the rapid development of the project, we are writing this sections for project configuration options to the binary file. When the system is running, it can get the information of the system running by reading the binary file, which can greatly simplify the time of project development.<span style="color:red;font-weight:700;"br>Android image can only be burned This manual describes how to use the binary file to speed up the development of the project.<br>Hardware: Orange Pi development board*1, Card reader*1, TF card using PhoenixCard software under Windows platform*1, but cannot be burned under Linux platformpower supply*1</spandiv >[[File:Orange-pi-zero-plus2-img18.png|800px|]]<br/div>
<br>
1)First prepare a TF card with a capacity of 8GB or more. The transmission speed of Note: In the following sections, * indicates wild-cards, you need to fill in the TF card must be above class 10actual values according to their file storage path. It is recommended to use a TF card from a brand such as SanDisk<br>
<br>
2)Then use a card reader to insert the TF card into the computer<br>=== '''Download Linux Source Code''' ===
<br>
3You could download the source code from the official website(Source code for H5 chip are the same)Download the Android 4: <br>http://www.4 or Android 7orangepi.0 firmware org/html/hardWare/computerAndMicrocontrollers/service-and PhoenixCard programming tool from -support/Orange -Pi's data download page, please make sure that the version of the PhonenixCrad tool is PhoenixCard v4-Zero-Plus-2.1.2html<br>
<br>
4)Use Subsection and compress the decompression software to decompress the downloaded Android firmware compressed package. In the decompressed file, the file ending with "then unzip it after finish downloaded:<div >[[File:Orange-pi-pc2-img49.img" is the Android firmwarepng|600px|]]<br/div>
<br>
5)Use the decompression software to decompress PhoenixCard v4.1.2.rarbuildroot: Project compilation script<br>brandy: gcc-linaro, this software does not need to be installed, just find PhoenixCard in the decompressed folder boot and uboot source code and open itsource cross compiler tool<br><div style="paddinglinux-left3.10:200px"Kernel source code <br>[[Filetools:Orange-pi-3lts-phoenixcardTools of project compilation <br>build.png|600px]]sh: compilation script</divbr>
<br>
6)After opening === '''PhoenixCardCompile Project Source Code'''===<br>You need to compile the entire project while it is your first time to use the source code. You can use the following commands in the /lichee directory to complete the project:<br>* Enter into content of lichee, command<br>$ ll -a<br>Check if there is an executable permission on build.sh, if not, modify the TF card permissions<br>$ chmod 755 build.sh<br>* If there is recognized normally.buildconfig after commanded ll –a, delete it<br>$ rm –rf .buildconfig<div>[[File:Orange-pi-pc2-img50.png|800px|]]</div><br>* Use the following command to compile the drive letter and capacity entire project<br>$ ./build.sh config<div>[[File:Orange-pi-pc2-img51.png|800px|]]</div><br>At this point the system will prompt the choice of the TF card chip, as shown below, for OrangePi, select sun50iw2p1<br>At this point, the system will be prompted to select the platform, as shown below, for OrangePi, select Android<br>At this point, the system will be displayed in prompted the choice of the board, as shown below, for the OrangePi, select dolphin-p1<div >[[File:Orange-pi-pc2-img52.png|400px|]]</div><br>Appear this interface indicates waiting for the middle listcompiler.<span style="colordiv >[[File:red;fontOrange-pi-pc2-weightimg53.png|400px|]]</div><br>Wait fifteen minutes or so, compile complete.<div >[[File:700;"Orange-pi-pc2-img54.png|400px|]]</div><br> Please make sure that === '''Update the displayed drive letter Kernel Image File and Replace Library''' ===<br>* After compilation is finished, the same as following files will be generated in the directory:libs: lichee/out/sun50iw2p1/android/common/lib/modules/3.10.65 <br>Download image from official website:<br>http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus-2.html<br><br>* Write the drive letter image:<br>$ sudo dd bs=4M if=*.img of =/dev/sdb<br><br><div>[[File:Orange-pi-plus-2e-img16.png|800px|]]</div><br>Pull out the TF card you want to burnreader, and then insert it again.</spanbr> If There At this time, the SD card is no displayinserted into PC, view the SD card mount point (if you can try don't know how to unplug get a mount point for the TF SD card, please refer to the diagram below).<div>[[File:Orange-pi-pc2-img57.png|800px|]]</div><br>The first boot partition<div style="padding>[[File:Orange-pi-pc2-left:200px"img58.png|800px|]]</div><br>The second rootfs partition<div>[[File:Orange-pi-3ltspc2-phoenixcard1img59.png|600px800px|]]</div>7)After confirming <br>Copy the kernel image file generated by the compiler to the drive letter, first format partition (boot partition)<br>Copy the TF card, click the recovery card button in PhoenixCard, or use lib library which generated after compilation to the second partition (rootfs partition)<br>'''SD Card FormatterWe would suggest using compilation system on github of official website.''' mentioned above to format <div>[[File:Orange-pi-pc2-img60.png|800px|]]</div><br>build.sh Execute script into the TF cardgraphical interface of compilation <br>extenal Inside are patch and some configuration kernel file <br>output File generated<br>script Script compiled <br>toolchain Cross compiler location <br>uboot uboot source code<br><br>Execute./build.sh enter into graphical interface and select Zero Plus2<div >[[File:Orange-pi-pc2-img61.png|600px|]]</div><br>Enter password of root<div style="padding >[[File:Orange-pi-pc2-leftimg62.png|600px|]]</div><br>Update Kernel directory and module<div >[[File:200px"Orange-pi-pc2-img63.png|600px|]]</div><br>Select corresponding file directory and update uImage and modules<div >[[File:Orange-pi-3ltspc2-phoenixcard2img64.png|600px|]]</div>8)Then start to write the <br> == '''Android firmware to the Kernel Source Code Compilation''' ==<br>Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1<div >[[File:Orange-pi-zero-plus2-img18.png|800px|]]</div><br>Software<br>Linux host computer, which hard disk space at least 50G (to meet a fully compiled need)<br>Linux host computer needs: <br>Version 2.7.3 of Python;<br>Version 3.81-3.82 of GNU Make; <br>JDK 6;<br>Version 1.7 or higher version of Git.<br><div stylebr>=== '''Install JDK''' ==="padding<br>The following will be illustrating jdk1.6 installation, it would be same for jdk1.7 installation.* Download and install JDK, you will obtain jdk-6u31-linux-x64.bin* Modify the permission of jdk-6u31-linux-x64.bin, which has no prior permission* $./jdk-6u31-linux-left:20px;"x64.bin <br>It will generate afolder:<div>[[File:Orange-pi-pc2-img66.First select png|800px|]]</div><br>* Input at terminal<br>Note that JAVA_HOME is the path name of the current directory, you need to fill in according to your own storage directory.<div>[[File:Orange-pi-pc2-img67.png|800px|]]</div><br>$ export JAVA_HOME=*/jdk1.6.0_31<br>$ export PATH=$PATH:/$JAVA_HOME/bin<br>$ export CLASSPATH=.:$JAVA_HOME/lib<br>$ export JRE_HOME=$JAVA_HOME/jre<div>[[File:Orange-pi-pc2-img68.png|800px|]]</div><br>* Command line input Jav and press tab to see whether it can auto completion (Java), which indicates it can successfully installed<br><br>=== Install Platform Supported Software ===<br>$ sudo apt-get install git gnupg flex bison gperf build-essential \ zip curl libc6-dev libncurses5-dev:i386 x11proto-core-dev \ libx11-dev:i386 libreadline6-dev:i386 libgl1-mesa-glx:i386 \ libgl1-mesa-dev g++-multilib mingw32 tofrodos \python-markdown libxml2-utils xsltproc zlib1g-dev:i386<br>$ sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1/usr/lib/i386-linux-gnu/libGL.so<br><br>=== '''Download Android Source Package''' ===<br>http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus-2.html<br><br>Then you will obtain the following directories:<div>[[File:Orange-pi-pc2-img69.png|300px|]]</div><br> === '''firmwareInstall Compiler Tool Chain''' ===<br>The compiler tool chain has been integrated in Android SDK. Tool chain is on: lichee/brandy/gcc-linaro/ of Android SDK(already exist)<br><br><div>[[File:Orange-pi-pc2-img70.png|800px|]]</div><br>=== '''Compile Lichee source Code''' ===<br>There are Android and Lichee after unzipped the package, enter the firmware columndirectory of Lichee:<br>$ cd lichee<br>b$ ./build.sh lunch <br>Select sun50iw2p1<br>Print information of successful compilation<div >[[File:Orange-pi-pc2-img71.png|400px|]]</div><br>=== '''boot cardCompile Command of Android Code''' in ===<br>Input the command:<br>$ cd android<br>$ source ./build/envsetup.sh<div>[[File:Orange-pi-pc2-img72.png|800px|]]</div><br>$ lunch dolphin_fvd_p1-eng # Select the scheme number<div >[[File:Orange-pi-pc2-img73.png|600px|]]</div><br>$ extract-bsp # Copy the kernel and the type drive module<div >[[File:Orange-pi-pc2-img74.png|600px|]]</div><br>$ make The rear values of card to make# is for the simultaneous compilation process, dependent on the host configuration<div >[[File:Orange-pi-pc2-img75.png|600px|]]</div><br>$ pack #Packaged into firmware<div>[[File:Orange-pi-pc2-img76.png|600px|]]</div><br>c$ cd */lichee/tools/pack/<div>[[File:Orange-pi-pc2-img77.Then click the png|600px|]]</div><br>'''burn cardWrite image:''' button <br>Copy the generated image file i to the SD card, switch to start burningthe windows operating system. Programming software download website:<br>http://www.orangepi.online/html/hardWare/computerAndMicrocontrollers/service-and-support/Orange-Pi-Zero-Plus-2.html<br><br>Download the compressed package, unzip and get the folder<div >[[File:Orange-pi-pc2-img81.png|200px|]]</div><br>Enter the folder, open the program to run as Administrator<div style="padding>[[File:Orange-pi-pc2-leftimg79.png|600px|]]</div><br>Write Android image on Windows with this tool:200px"<div>[[File:Orange-pi-3ltspc2-phoenixcard3img80.png|600px800px|]]</div>9<br>Insert the TF card with written image to OrangePi, turn on the computer then you could enter to Android system.<br><br> == '''Use Project Configuration Files''' ==<br>=== '''sys_config.fex Introduction''' ===<br>'''Configure hardware: sys_config.fe'''<br><br>The sys_config.fex is a binary configuration file that used by the SOC kernel driver or LiveSuit for a particular target board, including how to set up a variety of peripherals, ports, and I/O which based on the target version.<br>For OrangePi, the location of the project configuration document is: lichee/tools/pack/chips/sun8iw7p1/configs/dolphin-p1/sys_config.fex<br>Copy the file to the directory of /lichee, use command:<br>$ cd ./lichee<br>$ cp ./tools/pack/chips/sun8iw7p1/configs/dolphin-p1/sys_config.fex ./ <br>You could personalized configuration of sys_config.fex according tosysconfig1.fex_manul_linux_BSP_v0.4.pdf.<br>Direcotory of sysconfig1.fex_manul_linux_BSP_v0.4.pdf is/lichee/buildroot/docs.<br><br>=== '''Examples''' ===<br>'''1) After burningModify the output mode into tv'''<br>* tv-out out, the output type of tv0 is invalid, you need to set the output type of tv1 into pal.Modify defaulted enable display output configuration into tv <br>[tv0]<br>used = 1<br>tv_dac_used = 1<br>dac_src0 = 0<br>dac_type0= 0<br>interface= 1 <br>[tvout_para] <br>tvout_used= 1<br>tvout_channel_num= 1<br><br>[disp] <br>disp_init_enable= 1<br>disp_mode= 1<br>screen0_output_type= 2<br>screen0_output_mode= 11<br>screen1_output_type= 2<br>screen1_output_mode= 11<br>dev0_output_type = 4<br>dev0_output_mode = 4<br>dev0_screen_id = 0<br>dev0_do_hpd = 1<br>dev1_output_type = 2<br>dev1_output_mode = 11<br>Modify sys_confi and replace it when it generated OrangePiH5.dtb. If would be faster if use compilation system on githug. About compilation you could refer to the charter of PhoenixCard is Linux Compilation.<br><br>'''2)Loading tv.ko module automatically after booted'''<br>Enter /lib/ directory, enter command: <br>depmod -a<br>Add one more line on /etc/modules <br>tv<br>It would be tv out after booted<br>* Capacitance touch panel (capacitor tp)<br>{| class="wikitable" style="background:#fff;width:800px;"|-| Configuration Item|| Configuration Meaning|-| ctp_used=xx|| Whether turn on capacitance touch panel, if so set the value as shown 1, and vice verso 0.|-| ctp_name =xx|| Indicates the control scheme used in the figure belowspecified scheme, for now there are: "ft5x_ts" or "Goodix-TS".|-| ctp_twi_id=xx|| Used for selecting i2c adapter, there are 0 and 2. At this time|-| ctp_twi_addr =xx|| Indicates the device address of i2c, click it is related to the specific hardware.|-| ctp_screen_max_x=xx|| Maximum coordinates of the X axis of the touch panel|-| ctp_screen_max_y=xx|| Maximum coordinates of the Y axis o the close button touch panel|-| ctp_revert_x_flag=xx|| Whether needed to exit PhoenixCardflip the X coordinates, if so then set 1, and vice verso 0.|-| ctp_revert_y_flag=xx|| Whether needed to flip the Y coordinates, if so then set 1, and vice verso 0.|-| ctp_int_port=xx|| GPIO configuration of the interrupt signal of capacitive touch panel|-| ctp_wakeup=xx|| GPIO configuration of the wake-up signal of capacitive touch panel|-| ctp_io_port=xx|| Capacitive screen IO signal, currently share with interrupt signal common pin|}Configuration samples:<br><br>ctp_used = 1<br>ctp_name = "ft5x_ts"<br>ctp_twi_id = 2<br>ctp_twi_addr = 0x70 <br>ctp_screen_max_x = 800<br>ctp_screen_max_y = 480<br>ctp_revert_x_flag = 0<br>ctp_revert_y_flag = 0<br>ctp_int_port = port:PH21<6><default><br>ctp_wakeup = port:PB13<1><default><default><1><br>ctp_io_port = port:PH21<0><default><br><br>Note: If you want to support the new capacitive touch IC, you can pull out need to combine the configuration of the BSP A10 layer, which should be based on the original capacitive touch IC code, to make the appropriate changes. Specifically, 1) ctp_twi_id should be consistent with the hardware connection in sys_config; 2) In the drive part of the code: the TF card use of twi from the computer device name + address should be consistent with the ctp_name and ctp_twi_addr in sys_config configuration. At the same time, the other sub configuration in sysconfig should also be properly configured, these configurations should be corresponding processing in the program.<br><br> == '''Orange Pi Driver development''' ==<br> In order to help developers become more familiar with OrangePi, this manual describes how to use simple device driver modules and insert it into applications on the development board to start.<br><br>Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1<div style >[[File:Orange-pi-zero-plus2-img18.png|600px]]</div><br>=== '''Device driver and application programming''' ==="padding<br>'''1)Application Program (app.c)'''<br><br><div>[[File:Orange-pi-i96-left:200px"img50.png|600px]]</div><br>'''2)Driver Program (OrangePi_misc.c)'''<br><br><div>[[File:Orange-pi-3ltsi96-phoenixcard4img51.png|600px]]</div>
<br>
=== ''' Start the <div>[[File:Orange Pi development board''' ===-pi-i96-img52.png|600px]]</div>
<br>
1)Insert the burned TF card into the TF card slot of the Orange Pi development board<br>
2)The development board has an HDMI interface, and the development board can be connected to a TV or other HDMI display through an HDMI cable<br>
3)Connect the USB mouse and keyboard to control the orange pi development board<br>
4)The development board has an Ethernet port, which can be plugged into a network cable for Internet access<br>
5)Connect a power adapter with 5V and at least 2A (3A is also possible)<br>
<div style="padding-left:20px;>
a.Remember not to plug in the 12V power adapter, if the 12V power adapter is plugged in, it will burn out the development board<br>
b.Many unstable phenomena during system power-on and startup are basically caused by power supply problems, so a reliable power adapter is very important
</div>
6)Then turn on the switch of the power adapter, if everything is normal, the HDMI display will be able to see the startup screen of the system at this time<br>
7)If you want to view the output information of the system through the debug serial port, please use the serial cable to connect the development board to the computer. For the connection method of the serial port, please refer to the section on the use of the debug serial port<br>
=== '''How to use the debug serial portCompile device driver''' ===<br>Copy the OrangePi_misc.c to the */lichee/linux-3.4/driver/misc directory:<br><div>[[File:Orange-pi-pc2-img83.png|800px]]</div><br>Enter to */lichee/linux-3.4/drivers/misc/<br><div>[[File:Orange-pi-pc2-img84.png|800px]]</div><br>Modify Makefile on currently file, shown as following:<div>[[File:Orange-pi-i96-img53.png|800px]]</div><br>There is Kconfig on the same sibling folders with Makefile. Each Kconfig respectively describes the the source directory file related kernel configuration menu. In the kernel configuration making menuconfig, it read from the Kconfig config menu and the user configuration saved to the config. In the kernel compile, the main Makefile by calling this.Config could know the user's configuration of the kernel.<br>Kconfig is corresponding to the kernel configuration menu. Add a new driver to the kernel source code, you can modify the Kconfig to increase the configuration menu for your drive, so you can choose whether the menuconfig driver was compiled or not.<div>[[File:Orange-pi-i96-img54.png|800px]]</div><br>Back to the source code directory:<br><div>[[File:Orange-pi-pc2-img85.png|800px]]</div><br>$ ./build.sh<br>After compiled the kernel, there will be an orangepi_misc.ko file generated on the directory of lichee/linux-3.10/output/lib/modules/3.10.65<br><div>[[File:Orange-pi-prime-img16.png|800px]]</div><br>There is a .ko module which generated after compiled of OrangePi_misc.c on */lichee/linux-3.4/output/lib/modules/3.4.39/<div>[[File:Orange-pi-plus-2e-img28.png|800px]]</div><br>Insert U disk (please note the SD card should have been written image) if the SD card system is mounted to the directory / dev / SDB, SD card will have two sub mount points, respectively are / dev / sdb1 and /dev/sdb2. Two partition of SD card will automatically mount to the PC /media/ directory, the first partition is the boot partition and the second partition is the rootfs partition.<div>[[File:Orange-pi-i96-img55.png|800px]]</div><br>Copy the OrangePi_misc.ko file to /media/*/lib/modules/3.4.39.$ cp OrangePi_misc.ko /media/*/lib/modules/3.4.39<br><br>
==== '''Debug serial port connection instructionsCross compiler Application Program''' ====1)First<br>Here will take arm-linux-gnueabihf-gcc as an example. Check whether there is the cross compiler, if not, you need to prepare a USB to TTL modulethen download and install it. This module can be bought in <br>$ arm-linux-gnueabihf-gcc -v<div>[[File:Orange Pi stores-pi-i96-img56. If there are other similar USB to TTL modulespng|800px]]</div><br>While compiling the application, you can also insert will fill that you need the USB end of cross compiler arm-linux-gnueabihf-gcc, download and install it.<div>[[File:Orange-pi-i96-img57.png|800px]]</div><br>Unzip the USB to TTL module into downloaded file and enter the USB port of the computerdirectory<div style="padding>[[File:Orange-pi-i96-left:200px"img58.png|800px]]</div><br>Check the information after entering bin directory<div>[[File:Orange-pi-onei96-img9img59.png|600px800px]]</div>2)The corresponding relationship between <br>pwd hows the debug serial port GND, TXD path and RXD pins of the development board is shown in export it into the figure belowwhole project<div style="padding-left:200px">[[File:Orange-pi-pci96-img4img60.png|600px800px]]</div>3)The GND<br>$ ll /etc/environment shows that the file can only read, TXD and RXD pins of the USB to TTL module need to be connected modify permissions <br>$ chmod 755 /etc/environment<br>Modify permission<div>[[File:Orange-pi-i96-img61.png|800px]]</div><br>Add the path to the debug serial port of the development board through a DuPont cablewhole environment variable<br><div style="padding>[[File:Orange-pi-i96-left:20px"img62.png|800px]]</div><br>Compile the application with cross compiler<br><br>a$ arm-linux-gnueabihf-gcc app. Connect c –o aq<br>There will be an ap application generated in the GND of directory, copy it to the USB to TTL module to development board file system(on the GND rootfs directory of /home/orangepi/)<br>$ cp aq /media/*/home/orangepi/<br><br> === '''Running driver and application''' ===<br>Removed the SD card and inserted it into the development boardand power on.<br>b. Connect the RXD of the USB You need to switch to TTL root users and load module driver module to the TXD of the development boardfirst.<br>c$ insmod /lib/modules/orangepi.ko<div>[[File:Orange-pi-i96-img63.png|800px]]</div><br>$ lsmod To check whether it is loaded<div>[[File:Orange-pi-i96-img64. Connect png|800px]]</div><br>$ ll /dev/orangepimisc( Miscellaneous equipment automatically generated device files, the TXD of specific look at the USB to TTL module to driver code)<div>[[File:Orange-pi-i96-img65.png|800px]]</div><br>Executive application (note the RXD use of the development boardapplication, check the code for specify)<br>$ ./aq /dev/orangepimisc</divbr>
<br>
4)The schematic diagram of connecting the USB to TTL module to the computer and the Orange Pi development board is shown below
<div style="padding-left:200px">[[File:Orange-pi-3lts-ttlmodule2.png|600px]]</div>
=='''Using Debug tools on OrangePi ''' == <br>Hardware: Orange Pi development board*1, Card reader*1, TF card*1, power supply*1<div >[[File:Orange-pi-zero-plus2-img18.png|800px]]</div><br>'''How TTL to use the debugging serial port USB cable'''<div >[[File:Orange-pi-i96-img67.png|800px]]</div><br>=== '''Operations on Ubuntu platformWindows''' ====1)If <br> In order to get more debugging information in the USB to TTL module is connected normallyproject development process of using OrangePi, OrangePi default support for serial information debugging. For developers, you can see simply get the corresponding device node name under /dev of serial port debugging information with the Ubuntu PCmaterials mentioned above. The host computer using different serial debugging tools are similar, remember this node namebasically can reference with the following manual for deployment. There are a lot of debugging tools for Windows platform, it will be the most commonly used when setting tool is putty. This section takes putty as an example to explain the serial port software laterdeployment.<br><br>'''1)Install USB driver on Windows'''<br><br>* Download and unzip the latest version of driver: <br> PL2303_Prolific_DriverInstaller_v130.zip<div style="background>[[File:#f1f1f1;borderOrange-pi-i96-img68.png|800px]]</div><br>* Choose application installation as Administrator<div>[[File:1px solid #000"Orange-pi-i96-img69.png|800px]]</div><br>test@test* Wait for installation completing <div>[[File:~$ Orange-pi-i96-img70.png|800px]]</div><br>'''2)Install putty on Windows'''ls <br><br>* Download putty installation package<div>[[File:Orange-pi-i96-img71.png|800px]]</devdiv><br>* Unzip and install it<div>[[File:Orange-pi-i96-img72.png|800px]]</ttyUSBdiv><br>*Open it after installed, shown as below:<br><div >[[File:Orange-pi-i96-img73.png|600px]]</div><br>'''3)Connect method'''<br>/dev/ttyUSB0<br>Use the TTL to the serial port cable, one end connected to OrangePi, the other end connected to PC<br>'''4)Equipment information acquisition'''<br>* Select control panel on Start menu<div >[[File:Orange-pi-i96-img75.png|400px]]</div>
<br>
2)There are many serial debugging tools that can be used under linux, such as putty, minicom, etc<div >[[File:Orange-pi-i96-img76. The following demonstrates how to use puttypng|600px]]<br/div>
<br>
3)First install putty * Click on the Ubuntu PCdevice manager to check the port number<div style="background >[[File:#f1f1f1;border:1px solid #000"Orange-pi-i96-img77.png|400px]]</div>test@test:~$ '''sudo apt update'''<brdiv >test@test[[File:~$ '''sudo apt Orange-y install putty'''pi-i96-img78.png|400px]]</div>
<br>
4)Then run putty, remember to add sudo permissions<div style="background:#f1f1f1;border:1px solid #000">test@test:~$ '''sudo putty5)Putty configuration'''<div >[[File:Orange-pi-i96-img79.png|400px]]</div>
<br>
5Serial port should set to the corresponding port number (COM5)After executing the putty command, the following interface will pop up<div style="padding-left:200px">[[File:Orange-pi-3lts-putty.png|600px]]speed should set to 115200</divbr>
<br>
'''6)First select the setting interface of the serial port<div style="padding-left:200px">[[File:Orange-pi-3lts-putty1.png|600px]]</div>7)Then set the parameters of the serial portStart debug'''<br><div style="padding-left:20px;">a. Set the Serial line to connect to to /dev/ttyUSB0 (modify to the corresponding node namePower Orange Pi on and boot it, generally /dev/ttyUSB0)<br>b. Set Speed (baud) to 115200 (baud rate of the serial port)<br>c. Set Flow control to None</div><div style="padding-left:200px">[[File:Orange-pi-3lts-putty2.png|600px]]</div>8)After setting the serial port setting interface, return to the Session interface<div style="padding-left:20px;">awill automatic print out debug log. First select the Connection type as Serial<br>b. Then click the Open button to connect to the serial port</div><div style="padding-left:200px ">[[File:Orange-pi-3ltsi96-putty3img80.png|600px]]</div>
<br>
9)After starting the development board, you can see the Log information output by the system from the opened serial port terminal
<div style="padding-left:200px">[[File:Orange-pi-3lts-putty4.png|600px]]</div>
==== '''How to use the debugging serial port Operations on Windows platformLinux''' ====
<br>
1)There are many Minicom and Kermit serial debugging tools that can be used under Windowsfor Linux, such this section will take Kermit as SecureCRT, MobaXterm, etc. The following shows how an example to use MobaXterm. This software is free and can be used without purchasing a serial numberhave an illustrate.<br>
<br>
2'''1)Download MobaXtermInstall Kermit'''<br>* Install the Kermit by execute command: $ sudo apt-get install ckermit<div>[[File:Orange-pi-i96-img81.png|800px]]</div><br>* Configurate Kermit $ sudo vi /etc/kermit/kermrc<div>[[File:Orange-pi-i96-img82.png|800px]]</div><br>* Add lines:
<div style="padding-left:20px;">
a.Download the MobaXterm URL as followsset line /dev/ttyUSB1<br>set speed 115200<br>set carrier-watch off<br>set handshake none<br>set flow-control none<br>robust<br>set file type bin<br>set file name lit<br>set rec pack 1000<br>set send pack 1000<br>set window 5
</div>
https<div >[[File:Orange-pi-i96-img83.png|600px]]</div><br>'''2)Connect method for debug'''<br> Use the TTL to the serial port cable, one end connected to OrangePi, the other end connected to PC<br>'''3)Equipment information acquisition'''<br><br>$ ls /dev/mobaxterm (Input command in the PC terminal to check the device number of TTL to the serial cable)<div style=" ">[[File:Orange-pi-i96-img85.mobatekpng|800px]]</div><br>* It can be seen from the figure that TTL to the serial port cable is identified as ttyUSB0, configure the /ect/kermit/kermitc file, update the serial port information.net<br> $ sudo vi /etc/kermit/kermitc* Set the value of setline into /dev/ttyUSB0<div style="padding ">[[File:Orange-pi-i96-left:20px;"img86.png|800px]]</div><br>b.After entering the MobaXterm download page, click '''GET XOBATERM NOW!4)Start debug'''<br>* Input command in the host computer terminal, enter the Kermit mode: $ sudo kermit –c<div style=" ">[[File:Orange-pi-i96-img87.png|800px]]</div><br>* Power on and boot OrangePi, the serial port will automatic print debug log<div style="padding-left:200px ">[[File:Orange-pi-3ltsi96-mobaxtermimg88.png|600px800px]]</div><br>== '''Download the Orange Pi Zero Plus2 User Manual''' ==
<br>
<div style="padding-left:20px;">c.Then choose to download For more information on using the Home version</div><div style="padding-left:200px">[[File:Orange-pi-3lts-homeversion.png|600px]]</div><div style="padding-left:20px;">d.Then select Pi Zero Plus2, please see the Portable version, after downloading, you don’t need to install it, just open it and you can use it</div><div style="padding-left:200px">[[Filehttp:Orange-pi-3lts-mobaxterm1.png|600px]]</div>3)After downloading, use the decompression software to decompress the downloaded compressed package, you can get the executable software of MobaXterm, and then double-click to open it<div style="padding-left:200px">[[File:Orange-pi-3lts-mobaxterm2.png|600px]]</div>4)After opening the software, the steps to set up the serial port connection are as follows<br><div style="padding-left:20px;">awww. Open the session setting interface<br>borangepi. Select the serial port type<br>c. Select the port number of the serial port (choose the corresponding port number according to the actual situation), if you can't see the port number, please use the <span style="color:#003aff">360 driver master<org/html/hardWare/span> to scan and install the USB to TTL serial chip driver<br>d. Select the baud rate of the serial port to be 115200<br>e. Finally click the '''"OK"''' button to complete the setting<computerAndMicrocontrollers/div><div style="paddingservice-left:200px">[[File:Orangeand-pi-3lts-setupserialport.png|1000px]]<support/div>5)After clicking the '''"OK"''' button, you will enter the following interface, and you can see the output information of the serial port when you start the development board.<div style="paddingOrange-left:200px">[[File:OrangePi-piZero-onePlus-img11.png|1000px]]</div>For more information on using the Orange Pi PC, please see the [http://localhost:8080/index.php?title=%E6%96%87%E4%BB%B6:Orange_Pi_PC_User_Manual2.docx html <span style="color:#ff003ared;">Orange Pi PC Zero Plus2 User Manual</span>]. (Click to download)