Table of Contents

Advertisement

range Pi 用户手册
深圳市迅龙软件有限公司版权所有
Orange Pi PC Plus
User Manual

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the PC Plus and is the answer not in the manual?

Questions and answers

Summary of Contents for Orange Pi PC Plus

  • Page 1 Pi 用户手册 深圳市迅龙软件有限公司版权所有 Orange Pi PC Plus User Manual...
  • Page 2: Table Of Contents

    深圳市迅龙软件有限公司版权所有 Content 1. Basic features of Orange Pi PC Plus................5 1.1. What’s Orange Pi PC Plus?....................5 1.2. What can I do with Orange Pi PC Plus?................5 1.3. Who is for?..........................5 1.4. Hardware Specification......................6 1.5. Top and bottom views......................7 1.6.
  • Page 3 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.3. Linux3.4 kernel image driver adaptation situation.............. 35 3.4. Login account and password....................35 3.5. On-board LED light display control instructions..............36 3.6. Description of automatic login for desktop version system..........37 3.7. The first time the Linux5.4 system starts to automatically expand rootfs......38 3.8.
  • Page 4 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.21. CSI camera test........................66 3.21.1. CSI camera interface specifications..............66 3.21.2. Linux3.4 system gc2035 camera test..............67 3.21.3. Linux3.4 system ov5640 camera test..............70 3.21.4. Linux5.4 system ov5640 camera test..............72 3.22. 40 Pin interface pin description..................75 3.23. Install wiringOP......................... 76 3.24.
  • Page 5 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4.5.2. How to enable the USB debugging option in Android7.0........110 4.5.3. Use data cable to connect adb for debugging............111 4.5.4. Use network connection adb debugging.............. 112 4.6. How to use USB camera....................113 4.7. How to use CSI camera......................114 4.7.1.
  • Page 6: Basic Features Of Orange Pi Pc Plus

    1. Basic features of Orange Pi PC Plus 1.1. What’s Orange Pi PC Plus? Orange Pi is an open source single-board card computer, a new generation of arm development board, it can run Android 4.4, Android 7.0, Ubuntu and Debian and other operating systems.
  • Page 7: Hardware Specification

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 1.4. Hardware Specification Hardware feature introduction Allwinner H3 ARM Cortex-A7 Quad Core Mali400MP2 GPU @600MHz Supports OpenGL ES 2.0 1GB DDR3 ( Memory (SDRAM) shared with GPU ) /8GB eMMC Flash Onboard Storage TF card (Max. 32GB) card slot , WIFI Onboard network Onboard Network...
  • Page 8: Top And Bottom Views

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 1.5. Top and bottom views Top View: Bottom View: www.orangepi.cn www.xunlong.tv...
  • Page 9: Interface Details

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 1.6. Interface Details www.orangepi.cn www.xunlong.tv...
  • Page 10: Introduction To The Use Of The Development Board

    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...
  • Page 11 深圳市迅龙软件有限公司版权所有 5) USB interface mouse and keyboard, as long as it is a standard USB interface mouse and keyboard, the mouse and keyboard can be used to control the Orange Pi development board 6) IR remote control, mainly used to control Android system...
  • Page 12 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 9) 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 10) AV video cable, if you want to display video through the CVBS interface instead of the HDMI interface, then you need to connect the development board to the TV through the AV video cable 11) USB to TTL module and DuPont cable.
  • Page 13: Download The Image And Related Information Of The Development Board

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 12) A personal computer with Ubuntu and Windows operating systems Ubuntu14.04 PC Optional, used to compile Android source code Ubuntu18.04 PC Optional, used to compile Linux source code Windows PC Used to burn Android and Linux images 2.2.
  • Page 14: Use The Android Image Pre-Installed In Emmc To Test The Functions Of The Development

    2.3. Use the Android image pre-installed in eMMC to test the functions of the development board Orange Pi PC Plus has 8GB of eMMC onboard. Before leaving the factory, the factory will pre-install Android image to eMMC for testing. After getting the development board, you can use the pre-installed Android image in eMMC to test the functions of the development board and confirm the development.
  • Page 15 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 If the computer only has a TF card inserted, the TF card's drive letter will be displayed in the Select card column. If the computer has multiple USB storage devices inserted, you can select the drive letter corresponding to the TF card through the drop-down box d.
  • Page 16: Method Of Flashing Linux Image To Tf Card Based On Ubuntu Pc

    Pi 用户手册 深圳市迅龙软件有限公司版权所有 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...
  • Page 17 6) 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.
  • Page 18 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 7) Double-click balenaEtcher-1.5.109-x64.AppImage on the graphical interface of Ubuntu PC to open balenaEtcher. The opened interface is shown in the figure below a. First select the path of the image file b. Then select the device number of the TF card c.
  • Page 19: Method Of Flashing Linux Image To Emmc

    2) Then use a card reader to insert the TF card into the computer 3) Download Android 4.4 or Android 7.0 firmware and PhoenixCard burning tool from Orange Pi's data download page, please make sure that the phonenixCrad tool version is PhoenixCard v4.1.2 4)Use the decompression software to decompress the compressed package of the downloaded Android firmware.
  • Page 20 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) Use decompression software to decompress PhoenixCard v4.1.2.rar, this software does not need to be installed, you can find PhoenixCard in the decompressed folder and open it 6) After opening PhoenixCard, if the TF card is recognized normally, the drive letter and capacity of the TF card will be displayed in the middle list.
  • Page 21 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 8) Then start to write the Android firmware to the TF card a. First select the path of Android firmware in the firmware column b. Select the startup card in the card type c. Then click the burn card button to start burning 9) After burning, the PhoenixCard will be displayed as shown in the figure below.
  • Page 22: Method Of Flashing Android Firmware To Emmc

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2.8. Method of flashing Android firmware to eMMC Android image can only be burned into EMMC using PhoenixCard software under Windows platform, but cannot be burned under Linux platform 1) First of all, please note that burning the Android firmware to the eMMC of the development board needs to be completed with the help of a TF card, which is mainly divided into the following two steps First use PhoenixCard to burn the Android firmware to the TF card as a mass...
  • Page 23 Pi 用户手册 深圳市迅龙软件有限公司版权所有 from Orange Pi's data download page. Please make sure that the version of PhonenixCrad tool is PhoenixCard v4.1.2 5) Use the decompression software to decompress the compressed package of the downloaded Android firmware. In the decompressed file, the file ending with ".img" is the Android firmware 6) Use decompression software to decompress PhoenixCard v4.1.2.rar, this software...
  • Page 24 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 9)Then start to write the Android firmware to the TF card a. First select the path of Android firmware in the firmware column b. Select the mass production card in the type of production card c. Then click the burn card button to start burning www.orangepi.cn www.xunlong.tv...
  • Page 25 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 10)After burning, the PhoenixCard will be displayed as shown in the figure below. At this time, click the close button to exit PhoenixCard www.orangepi.cn www.xunlong.tv...
  • Page 26 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 11)Then insert the TF card into the development board, and the Android firmware in the TF card will be automatically burned to the eMMC of the development board after the development board is powered on. If the development board is connected to an HDMI display, the progress bar of burning Android firmware to eMMC will be displayed on the HDMI display.
  • Page 27: Start The Orange Pi Development Board

    2.9. Start the Orange Pi development board 1) Insert the TF card with the burned image into the TF card slot of the Orange Pi development board. If there is a system in the eMMC, you can directly start the system in the eMMC without inserting the TF card.
  • Page 28 Connect the TXD of the USB to TTL module to the RXD of the development board 4) The schematic diagram of connecting the USB to TTL module to the computer and the Orange Pi development board is shown below www.orangepi.cn www.xunlong.tv...
  • Page 29: How To Use The Debug Serial Port On The Ubuntu Platform

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2.10.2. How to use the debug serial port on the Ubuntu platform 1) If the USB to TTL module is connected normally, you can see the corresponding device node name under /dev of Ubuntu PC, remember this node name, you will use it when setting up the serial port software later test@test:~$ ls /dev/ttyUSB* /dev/ttyUSB0...
  • Page 30 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 7) Then set the parameters of the serial port Set Serial line to connect to to /dev/ttyUSB0 (modify to the corresponding node name, generally /dev/ttyUSB0) b. Set Speed(baud) to 115200 Set Flow control to None www.orangepi.cn www.xunlong.tv...
  • Page 31: How To Use The Debug Serial Port On Windows Platform

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 8) After setting the serial port setting interface, return to the Session interface First select the Connection type as Serial b. Then click the Open button to connect to the serial port 9) After starting the development board, you can see the Log information output by the system from the opened serial terminal 2.10.3.
  • Page 32 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 SecureCRT, MobaXterm, etc. The following demonstrates how to use MobaXterm. This software is free and can be used without purchasing a serial number. 2) Download MobaXterm Download MobaXterm URL as follows https://mobaxterm.mobatek.net/ b. After entering the MobaXterm download page, click GET XOBATERM NOW! Then choose to download the Home version d.
  • Page 33 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 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 4) After opening the software, the steps to set the serial port connection are as follows a.
  • Page 34 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) After clicking OK, you will enter the following interface, and you can see the output information of the serial port when you start the development board. www.orangepi.cn www.xunlong.tv...
  • Page 35: Linux System Instructions

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3. Linux system instructions 3.1. Supported Linux distribution types and kernel versions Release version Kernel version Server version desktop version Ubuntu 20.04 linux5.4 Support Support Ubuntu 18.04 linux5.4 Support Support Debian 10 linux5.4 Support Support Ubuntu 16.04 linux3.4 Support Support...
  • Page 36: Linux3.4 Kernel Image Driver Adaptation Situation

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 OV5640 camera GC2035 camera TV-OUT 3.3. Linux3.4 kernel image driver adaptation situation Function Status HDMI video HDMI Audio USB2.0 x 3 TF card boot EMMC boot Network card IR receiver WIFI Headphone Audio USB camera 40pin GPIO UART Temperature Sensor Hardware watchdog...
  • Page 37: On-Board Led Light Display Control Instructions

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.5. On-board LED light display control instructions 1) There are two LED lights on the development board, one green light and one red light. The default display of the LED lights when the system starts is as follows Green Light Red Light u-boot startup phase...
  • Page 38: Description Of Automatic Login For Desktop Version System

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:/sys/class/leds/red_led# echo none > trigger 3.6. Description of automatic login for desktop version system 1) The linux5.4 desktop version system will automatically log in to the desktop after it is started by default, without entering a password 2) Modify configuration /etc/lightdm/lightdm.conf.d/22-orangepi-autologin.conf to prohibit the desktop version...
  • Page 39: The First Time The Linux5.4 System Starts To Automatically Expand Rootfs

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.7. The first time the Linux5.4 system starts to automatically expand rootfs 1) When the linux5.4 system is started for the first time through the TF card, the orangepi-resize-filesystem script will called through orangepi-resize-filesystem.service systemd service to automatically expand the rootfs 2) After logging in to the system, you can use the df -h command to check the size of rootfs.
  • Page 40 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 following method to prohibit First burn the linux image to the TF card b. Then insert the TF card into the Ubuntu PC (Windows does not work), the Ubuntu PC will usually automatically mount the TF card partition. If the automatic mounting is normal, use the ls command to see the following output, the TF card partition name and the following command The names shown are not necessarily the same, please modify according to the actual situation...
  • Page 41: Linux3.4 System Automatic Expansion Rootfs Instructions

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 tmpfs 997M 4.0K 997M 1% /tmp /dev/zram0 49M 1.5M 4% /var/log tmpfs 200M 0 200M 0% /run/user/0 3.8. Linux3.4 system automatic expansion rootfs instructions 1) When the linux3.4 system is started for the first time through the TF card, the orangepi-resize-filesystem script will...
  • Page 42 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 tmpfs 101M 2.1M 3% /run /dev/mmcblk0p1 2.0G 1.6G 335M 84% / tmpfs 501M 140K 501M 1% /dev/shm 3) After restarting, log in to the system through ssh or serial port to see The warning that needs to restart to complete the expansion has disappeared b.
  • Page 43 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 Ubuntu PC will usually automatically mount the TF card partition. If the automatic mounting is normal, use the ls command to see the following output, the TF card partition name and the following command The names shown are not necessarily the same, please modify according to the actual situation test@test:~$ ls /media/test/49cc0cc0-8cb2-435d-bd35-4bbc6b7cd975/ dev home lost+found mnt proc run...
  • Page 44: How To Modify The Linux Log Level (Loglevel)

    Starting kernel ... Uncompressing Linux... done, booting the kernel. Orange Pi 2.1.0 Bionic ttyS0 orangepi login: 2) When there is a problem with the linux system startup, you can use the following method to modify the value of loglevel, so as to print more log information to the serial port to display, which is convenient for debugging.
  • Page 45: Ethernet Port Test

    深圳市迅龙软件有限公司版权所有 [ OK ] Started Update UTMP about System Runlevel Changes. [ OK ] Started Authorization Manager. Orange Pi 2.1.0 Bionic ttyS0 orangepi login: 3.10. Ethernet port test 1) First, insert the network cable into the Ethernet interface of the development board,...
  • Page 46: Ssh Remote Login To The Development Board

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 --- www.orangepi.org ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4005ms rtt min/avg/max/mdev = 39.323/39.617/39.922/0.274 ms 3.11. SSH remote login to the development board Linux systems have SSH remote login enabled by default, and allow root users to log in to the system.
  • Page 47: Ssh Remote Login Development Board Under Windows

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 Connection reset by 192.168.1.149 port 22 lost connection You can enter the following command on the development board and try to connect root@orangepi:~# rm /etc/ssh/ssh_host_* root@orangepi:~# dpkg-reconfigure openssh-server 3.11.2. SSH remote login development board under Windows 1) First get the IP address of the development board 2) In windows, you can use MobaXterm to remotely log in to the development board, first create a new ssh session...
  • Page 48: Hdmi Display Test

    Pi 用户手册 深圳市迅龙软件有限公司版权所有 4) The display after successfully logging in to the system is as shown in the figure below 3.12. HDMI display test 1) Use HDMI to HDMI cable to connect Orange Pi development board and HDMI display www.orangepi.cn www.xunlong.tv...
  • Page 49: Wifi Connection Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) If the HDMI display has image output after starting the linux system, it means that the HDMI interface is in normal use 3) In the absence of network and serial port, you can use HDMI display, and then connect the mouse and keyboard to control the development board 3.13.
  • Page 50 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) Then use the nmcli command to connect to the scanned WIFI hotspot, where: wifi_name : Need to change to the name of the WIFI hotspot you want to connect to b. wifi_passwd:You need to change to the password of the WIFI hotspot you want to connect to root@orangepi:~# nmcli dev wifi connect wifi_name...
  • Page 51: The Server Version Image Is Connected To Wifi Graphically

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=1 ttl=52 time=43.5 ms 64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=2 ttl=52 time=41.3 ms 64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=3 ttl=52 time=44.9 ms 64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=4 ttl=52 time=45.6 ms 64 bytes from 182.92.236.130 (182.92.236.130): icmp_seq=5 ttl=52 time=48.8 ms --- www.orangepi.org ping statistics --- 5 packets transmitted, 5 received, 0% packet loss, time 4006ms...
  • Page 52 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) Then you can see all the searched WIFI hotspots 6) Select the WIFI hotspot you want to connect to, then use the Tab key to position the cursor on Activate and press Enter www.orangepi.cn www.xunlong.tv...
  • Page 53 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 7) WIFI Then a dialog box for entering the password will pop up, enter the corresponding password in Password and press Enter to start connecting to WIFI 8) After the WIFI connection is successful, a "*" will be displayed in front of the connected WIFI name 9) The wifi IP address can be viewed through the ifconfig command root@orangepi:~# ifconfig wlan0...
  • Page 54: Test Method Of Desktop Version Image

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 RX errors 0 dropped 61 overruns 0 frame 0 TX packets 27 bytes 14783 (14.7 KB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 10) Use the ping command to test the connectivity of the wifi network root@orangepi:~# ping www.orangepi.org -I wlan0 PING www.orangepi.org (182.92.236.130) from 192.168.1.49 wlan0: 56(84) bytes of data.
  • Page 55 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3) WIFI Then enter the password of the WIFI hotspot, and then click Connect to start connecting to the WIFI 4) After connecting to the WIFI, you can open the browser to check whether you can surf the Internet.
  • Page 56: Usb Interface Test

    Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) After opening the browser, if you can see the page of Orange Pi website, or you can open other web pages, it means that the WIFI connection is normal 3.14. USB interface test 3.14.1. Connect mouse or keyboard test...
  • Page 57: Connect Usb Storage Device Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 (the mouse can only be used in the desktop version image) 3.14.2. Connect USB storage device test 1) Format the U disk first, and then put some files in the U disk 2) Then insert the U disk into the USB interface of the development board 3) Execute the following command, if you can see the output of sdX, it means that the U disk has been recognized successfully root@orangepi:~# cat /proc/partitions | grep "sd*"...
  • Page 58 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) First insert the USB network card into the USB interface of the development board, and then insert the network cable into the USB network card to ensure that the network cable can normally access the Internet. If you can see the following log information through the dmesg command, it means that the USB network card is recognized normally root@orangepi:~# dmesg | tail [ 121.985016] usb 3-1: USB disconnect, device number 2...
  • Page 59: Usb Camera Test

    = 6.260/6.770/7.275/0.373 ms 3.16. USB camera test 1) First insert the USB camera into the USB port of the Orange Pi development board 2) Use lsmod to check whether the system has automatically loaded the uvcvideo kernel module...
  • Page 60: Audio Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4) Install fswebcam root@orangepi:~# apt update root@orangepi:~# apt-get install fswebcam 5) After installing fswebcam, you can use the following command to take pictures a. The -d option is used to specify the device node of the USB camera b.
  • Page 61 Pi 用户手册 深圳市迅龙软件有限公司版权所有 command is the IP address of the Orange Pi development board and needs to be replaced test@test:~/AudioTest$ scp audio.wav root@192.168.1.47:/root 3) Then use alsamixer to open the audio adjustment interface (press Esc to exit alsamixer) root@orangepi:~# alsamixer The linux5.4 system needs to use the arrow keys to adjust the Line Out and DAC...
  • Page 62: Mic Recording Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4) Then use the aplay command to play the audio headset to hear the sound root@orangepi:~# aplay -D hw:0,0 audio.wav 3.17.2. Mic recording test 1) The linux5.4 system needs to use alsamixer to open the audio adjustment interface, then press the F4 key to enter the recording channel setting, then use the arrow keys to move to the Mic1 option, and then press the space bar to open the recording channel.
  • Page 63: Linux5.4 Ir Receiving Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:~# aplay -l **** List of PLAYBACK Hardware Devices **** card 0: Codec [H3 Audio Codec], device 0: CDC PCM Codec-0 [CDC PCM Codec-0] Subdevices: 1/1 Subdevice #0: subdevice #0 card 1: allwinnerhdmi [allwinner-hdmi], device 0: 1c22800.i2s-i2s-hifi i2s-hifi-0 [1c22800.i2s-i2s-hifi i2s-hifi-0] Subdevices: 1/1 Subdevice #0: subdevice #0...
  • Page 64: Linux3.4 Ir Receiving Test

    4) Enter the ir-keytable -c -p NEC -t command in the terminal, and then use the IR remote control to press the button against the IR receiver of the Orange Pi development board, and you can see the received key code in the terminal...
  • Page 65 5) Enter the ir-keytable -t command in the terminal, and then use the IR remote control to press the button against the IR receiving head of the Orange Pi development board to see the received key code in the terminal root@orangepi:/# ir-keytable -t www.orangepi.cn...
  • Page 66: Hardware Watchdog Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 Testing events. Please, press CTRL-C to abort. 1602840581.225093: event type EV_MSC(0x04): scancode = 0x45c 1602840581.225105: event type EV_SYN(0x00). 1602840581.663187: event type EV_MSC(0x04): scancode = 0x45c 1602840581.663197: event type EV_SYN(0x00). 3.20. Hardware watchdog test 1) Download the code of wiringOP root@orangepi:~# apt update root@orangepi:~# apt install git root@orangepi:~# git clone https://github.com/orangepi-xunlong/wiringOP...
  • Page 67: Csi Camera Test

    3.21. CSI camera test 3.21.1. CSI camera interface specifications 1) The CSI interface of Orange Pi PC Plus supports two cameras, gc2035 and ov5640. The support for cameras in different Linux systems is explained as follows GC2035 OV5640 linux3.4...
  • Page 68: Linux3.4 System Gc2035 Camera Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 CON1-P06 CSI-RESET PE15 CON1-P07 CSI-VSYNC CON1-P08 CSI-STBY-EN PE15 CON1-P09 CSI-HSYNC CON1-P10 VDD1V8-CSI PG11 CON1-P11 AFCC_EN PG13 CON1-P12 CSI-D7 PE11 CON1-P13 CSI-MCLK CON1-P14 CSI-D6 PE10 CON1-P15 CON1-P16 CSI-D5 CON1-P17 CSI-PCLK CON1-P18 CSI-D4 CON1-P19 CSI-D0 CON1-P20 CSI-D3 CON1-P21 CSI-D1 CON1-P22 CSI-D2...
  • Page 69 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3) Then insert the ribbon cable into another card slot of the adapter board 4) Then insert the other end of the cable into the CIS camera interface of the development board. Start the linux system after connecting the camera (don’t plug in the camera after power-on) 5) Then use the setsystem gc2035 command to initialize the configuration of gc2035...
  • Page 70 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:~# lsmod Module Size Used by vfe_v4l2 1018545 0 videobuf_dma_contig 3513 1 vfe_v4l2 videobuf_core 14871 2 vfe_v4l2,videobuf_dma_contig gc2035 19692 0 vfe_subdev 4531 2 vfe_v4l2,gc2035 22869 2 vfe_v4l2,gc2035 vfe_os 4269 3 cci,vfe_v4l2,vfe_subdev 7) Then use v4l2-ctl (note that l in v4l2 is a lowercase letter l, not a number 1) command to view the device node of the CSI camera.
  • Page 71: Linux3.4 System Ov5640 Camera Test

    Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:~# 12) Before using motion, please make sure that the Orange Pi development board can be connected to the network normally, and then obtain the IP address of the development board through the ifconfig command 13) Then enter [development board IP address: 8081] in the Firefox browser to see the image output by gc2035 3.21.3.
  • Page 72 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 Set the csi camera used by the orangepipcplus as: ov5640 setsystem ov5640 The main things that the command does are: Configure the kernel modules that need to be loaded for ov5640 root@orangepi:~# cat /etc/modules-load.d/modules.conf ov5640 vfe_v4l2 b.
  • Page 73: Linux5.4 System Ov5640 Camera Test

    [ ok ] Restarting motion (via systemctl): motion.service. root@orangepi:~# 9) Before using motion, please make sure that the Orange Pi development board can connect to the network normally, and then obtain the IP address of the development board through the ifconfig command...
  • Page 74 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) First connect the Ov5640 camera adapter board to the CIS camera interface of the development board through a cable, and then start the linux system after connecting the camera (don’t plug in the camera after powering 3) After entering the system, check the loading status of the ov5640 kernel module root@orangepi:~# lsmod | grep "ov5640"...
  • Page 75 [ ok ] Restarting motion (via systemctl): motion.service. root@orangepi:~# 9) Before using motion, please make sure that the Orange Pi development board can connect to the network normally, and then obtain the IP address of the development board through the ifconfig command...
  • Page 76: Pin Interface Pin Description

    深圳市迅龙软件有限公司版权所有 3.22. 40 Pin interface pin description 1) Please refer to the figure below for the sequence of the 40 pin pins of the Orange Pi PC Plus development board 2) The functions of the 40 pin pins of the Orange Pi PC Plus development board are...
  • Page 77: Install Wiringop

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 PA12 SDA.0 PA11 SCL.0 TXD.3 PA13 RXD.3 PA14 RXD.2 PD14 PD14 TXD.2 CTS.2 3.3v MOSI.0 MISO.0 RTS.2 SCLK.0 CE.0 PA21 PA21 PA19 SDA.1 SCL.1 PA18 RTS.1 PA10 PA10 CTS.1 PA20 PA20 TXD.1 RXD.1 3.23. Install wiringOP 1) Download the code of wiringOP root@orangepi:~# apt update root@orangepi:~# apt install git...
  • Page 78: 40Pin's Gpio, I2C, Uart, Spi Test

    Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.24. 40Pin's GPIO, I2C, UART, SPI test Wiring OP has been adapted to the Orange Pi development board, using wiringOP can test the functions of GPIO, I2C, UART and SPI Before starting the test, please make sure that...
  • Page 79 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) First set the GPIO port to output mode, the third parameter needs to be the serial number of the wPi corresponding to the input pin root@orangepi:~# gpio mode Use gpio readall to see that the Mode of pin 7 is displayed as OUT 3) Then set the GPIO port to output low level.
  • Page 80: Spi Interface Test

    The linux5.4 system The opening method of spi is as follows: According to the 40pin schematic diagram, the available spi for Orange Pi Pc Plus is spi0 b. Then set overlays=spi-spidev in /boot/orangepiEnv.txt, set...
  • Page 81 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:~# ls /dev/spi* /dev/spidev0.0 2) Then compile the spidev_test test program The compilation command for linux5.4 system is root@orangepi:~/wiringOP/examples# make spidev_test [CC] spidev_test.c [link] b. The compilation command for linux3.4 system is root@orangepi:~/wiringOP/examples# make spidev_test_linux3_4 [CC] spidev_test.c [link] 3) Do not short-circuit the mosi and miso pins of spi first, and the output result of running spidev_test is as follows, you can see that the data sent and received are...
  • Page 82: I2C Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 4) Then use the Dupont wire to short-circuit the two pins of spi's mosi (corresponding to pin 19) and miso (corresponding to pin 21).
  • Page 83 The linux5.4 system The opening method of i2c is as follows According to the 40pin schematic diagram, the i2c available for Orange Pi Pc Plus are i2c0 and i2c1 b. Then set overlays=i2c0 i2c1 in /boot/orangepiEnv.txt to open the configuration...
  • Page 84: Uart Test

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 a) I2c0 in 40pin corresponds to /dev/i2c-0 b) I2c1 in 40pin corresponds to /dev/i2c-1 2) Then start testing i2c, first install i2c-tools root@orangepi:~# apt update root@orangepi:~# apt install i2c-tools 3) Then connect an i2c device to the 40pin i2c0 or i2c1 i2c0 i2c1 Sda Pin...
  • Page 85 Pi 用户手册 深圳市迅龙软件有限公司版权所有 opening method of uart is as follows: According to the 40pin schematic diagram, the uart available for Orange Pi Pc Plus are uart1, uart2 and uart3 b. Then set overlays=uart1 uart2 uart3 in /boot/orangepiEnv.txt to open the...
  • Page 86 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) Then start to test the uart interface, first use the Dupont line to short-circuit the rx and tx of the uart interface to be tested uart1 uart2 uart3 Tx Pin Corresponding to pin 38 Corresponding to pin 13 Corresponding to pin 8 Rx Pin Corresponding to pin 40 Corresponding to pin 11...
  • Page 87: How To Use 0.96 Inch Oled Module With I2C Interface

    8: -> 3.25. How to use 0.96 inch OLED module with I2C interface 1) The 0.96 inch OLED module of Orange Pi is shown in the figure below, and its 7-bit i2c slave address is 0x3c 2) First connect the 0.96 inch OLED module to the 40pin interface of the Orange Pi development board through the DuPont cable.
  • Page 88 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3) After connecting the OLED module to the development board, first use the i2c-tools tool to check whether the address of the OLED module can be scanned root@orangepi:~# apt update root@orangepi:~# apt install i2c-tools root@orangepi:~# i2cdetect -y 0 4) Then you can use the oled_demo in wiringOP to test the OLED module, the test steps are as follows root@orangepi:~# git clone https://github.com/orangepi-xunlong/wiringOP...
  • Page 89: How To Use Spi Lcd Display

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) After running oled_demo, you can see the following output on the OLED screen 3.26. How to use SPI LCD display Note: This method is only applicable to linux3.4 kernel systems, and linux5.4 kernel systems cannot be used 3.26.1.
  • Page 90 82.365862] graphics fb8: fb_ili9341 frame buffer, 320x240, 150 KiB video memory, 64 KiB buffer memory, fps=20, spi0.0 at 65 MHz 5) Then use the following command to display the Orange Pi logo picture on the LCD display root@orangepi:~# apt update root@orangepi:~# apt -y install fbi root@orangepi:~# fbi -vt 1 -noverbose -d /dev/fb8 /boot/boot.bmp...
  • Page 91 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 6) You can also map the output of tty1 to the fb device of the LCD display-fb8. After the mapping is completed, HDMI will no longer have image output. root@orangepi:~# con2fbmap 1 8 If you want to switch back to HDMI display, please use the following command root@orangepi:~# con2fbmap 1 0 Below is the output of running the htop command 7) Because the default terminal font is too large, the screen cannot display too much...
  • Page 92 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:~# apt-get install kbd root@orangepi:~# dpkg-reconfigure console-setup b. Terminal coding selection UTF-8 Then choose Guess optimal character set d. Then choose Terminus Finally select the font size as 6x12 After setting, you can see that the font on the LCD display becomes smaller www.orangepi.cn www.xunlong.tv...
  • Page 93: Inch Rpi Spi Lcd Display

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 8) Method for setting system startup to automatically load fbtft_device module Create a new /etc/modules-load.d/fbtft.con configuration file, the content of the file is as follows root@orangepi:~# cat /etc/modules-load.d/fbtft.conf fbtft_device b. Create a new /etc/modprobe.d/fbtft.conf configuration file, the content of the file is as follows root@orangepi:~# cat /etc/modprobe.d/fbtft.conf options fbtft_device custom name=fb_ili9341 busnum=0 cs=0...
  • Page 94 99.796157] graphics fb8: fb_ili9341 frame buffer, 320x240, 150 KiB video memory, 64 KiB buffer memory, fps=20, spi0.0 at 65 MHz 5) Then use the following command to display the Orange Pi logo picture on the LCD screen root@orangepi:~# apt update root@orangepi:~# apt -y install fbi root@orangepi:~# fbi -vt 1 -noverbose -d /dev/fb8 /boot/boot.bmp...
  • Page 95 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 6) You can also map the output of tty1 to the fb device of the LCD screen-fb8. After the mapping is completed, HDMI will no longer have image output. root@orangepi:~# con2fbmap 1 8 If you want to switch back to HDMI display, please use the following command root@orangepi:~# con2fbmap 1 0 Below is the output of running the htop command www.orangepi.cn...
  • Page 96 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 7) Because the default terminal font is too large, the screen cannot display too much content, you can use the following method to reduce the terminal font Run first dpkg-reconfigure console-setup root@orangepi:~# apt-get update root@orangepi:~# apt-get install kbd root@orangepi:~# dpkg-reconfigure console-setup b.
  • Page 97: Inch Spi Lcd Display

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 After setting, you can see that the font on the LCD screen becomes smaller 8) Method for setting system startup to automatically load fbtft_device module Create a new /etc/modules-load.d/fbtft.con configuration file, the content of the file is as follows root@orangepi:~# cat /etc/modules-load.d/fbtft.conf fbtft_device b.
  • Page 98 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) The wiring method of the LCD display and the development board is as follows TFT SPI module pins The corresponding pins of GPIO -- GPIO num development board 40pin 1 Pin 6 Pin 24 Pin RESET 12 Pin PD14 -- 110...
  • Page 99 Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) Then use the following command to display the Orange Pi logo picture on the LCD display root@orangepi:~# apt update root@orangepi:~# apt -y install fbi root@orangepi:~# fbi -vt 1 -noverbose -d /dev/fb8 /boot/boot.bmp 6) You can also map the output of tty1 to the fb device of the LCD display-fb8. After the mapping is completed, the LCD screen will display the output of the terminal, and HDMI will no longer have image output.
  • Page 100 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 If you want to switch back to HDMI display, please use the following command root@orangepi:~# con2fbmap 1 0 7) Set the method to automatically load the fbtft_device module at system startup Create a new /etc/modules-load.d/fbtft.con configuration file, the content of the file is as follows root@orangepi:~# cat /etc/modules-load.d/fbtft.conf fbtft_device...
  • Page 101 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 extraargs=fbcon=map:8 //Server version system needs to add configuration extraargs=cma=96M fbcon=map:8 //Configurations that need to be added to the desktop version 9) If you need to display the desktop version of the system to the LCD screen, first modify the following configuration file, change fb0 to fb8, and you can see the desktop displayed on the LCD screen after restarting root@orangepipcplus:~# cat /etc/X11/xorg.conf.d/50-fbturbo.conf...
  • Page 102: Linux3.4 Desktop Version System Gpu Driver Test Method

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.27. linux3.4 desktop version system GPU driver test method 1) First install glmark2-es2 root@orangepi:~# apt update root@orangepi:~# apt install glmark2-es2 2) Then enter the desktop of the linux system through the HDMI display, do not use ssh to log in remotely or serial port to log in to the linux system 3) Run glmark2-es2 root@orangepi:~# glmark2-es2...
  • Page 103: How To Burn Linux Image To Emmc

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3.28. How to burn linux image to eMMC 1) Burning the linux image to eMMC requires the help of a TF card. First, burn the linux image to the TF card, and then start the development board to enter the linux system 2) Then run the nand-sata-install script root@orangepi:~# nand-sata-install 3) Then choose 2 Boot from eMMC - sysytem on eMMC...
  • Page 104 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 to continue 5) Then you will be prompted to select the type of file system, supporting five file systems ext2/3/4, f2fs and btrfs 6) Then it will start to format eMMC 7) After formatting eMMC, it will start to burn linux image to eMMC www.orangepi.cn www.xunlong.tv...
  • Page 105: View The Chipid Of The H3 Chip

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 8) After burning, the following options will be prompted, you can select <Power off> to shut down directly 9) Then pull out the TF card and power on again, the linux system in eMMC will be started 3.29.
  • Page 106 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@orangepi:~# ln -sv /boot/bin/orangepipcplus-tvout.bin /boot/script.bin '/boot/script.bin' -> '/boot/bin/orangepipcplus-tvout.bin' 2) Then need restart system configuration orangepipcplus-tvout.bin to take effect 3) Then use the AV cable to connect the development board to the TV, the steps are as follows First, you need to prepare an AV cable, as shown in the figure below b.
  • Page 107: Boot And Shutdown Method

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4) Then the signal source at one end of the TV needs to select the video input. Different TV setting methods may be different. Please refer to the corresponding instruction manual. If the connection settings are correct, you can see the output of the linux system TV-OUT on the TV.
  • Page 108: Android System Instructions

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3) After shutting down, you need to unplug and plug the power again to boot up 4) The command to restart the linux system is root@orangepi:~# reboot 4. Android system instructions 4.1. Supported Android version Android version Kernel version Android 4.4 linux3.4...
  • Page 109: Android 4.4 Function Adaptation Situation

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4.2. Android 4.4 function adaptation situation Function Status HDMI video HDMI audio USB2.0 x 3 TF card boot Network card Infrared WIFI WIFI hotsport Headphone audio TV-OUT MIC recording USB camera OV5640 camera GC2035 camera button LED lights Temperature Sensor ADB debugging...
  • Page 110: Onboard Led Light Display Description

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 WIFI WIFI hotsport Headphone audio TV-OUT MIC recording USB camera OV5640 camera GC2035 camera Button LED lights Temperature Sensor ADB debugging Mali GPU Video codec 4.4. Onboard LED light display description 1) LED light display Green light Red light u-boot startup phase Kernel boot to enter the...
  • Page 111: How To Enable The Usb Debugging Option In Android7.0

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) Then find the developer option and make sure that USB debugging is turned on How to enable the USB debugging option in Android7.0 4.5.2. 1) Choose settings www.orangepi.cn www.xunlong.tv...
  • Page 112: Use Data Cable To Connect Adb For Debugging

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) Then open the developer options 3) Then make sure that USB debugging is turned on Use data cable to connect adb for debugging 4.5.3. 1) First make sure that the USB debugging option has been turned on 2) Prepare a USB-to-Micro USB cable, insert the USB interface into the USB interface of the computer, and insert one end of the Micro USB interface into the USB OTG interface of the development board...
  • Page 113: Use Network Connection Adb Debugging

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3) Install adb tool on Ubuntu PC test@test:~$ sudo apt update test@test:~$ sudo apt install adb 4) Then check if the adb device can be recognized test@test:~$ adb devices List of devices attached 20080411 device 5) Then you can log in to the android system through the adb shell on the Ubuntu PC test@test:~$ adb shell root@dolphin-fvd-p1:/ # Use network connection adb debugging...
  • Page 114: How To Use Usb Camera

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 root@dolphin-fvd-p1:/ # start adbd 4) Install adb tool on Ubuntu PC test@test:~$ sudo apt update test@test:~$ sudo apt install adb 5) Then connect to the network adb on the Ubuntu PC test@test:~$ adb connect 192.168.1.xxx (The IP address needs to be modified to the IP address of the development board) connected to 192.168.1.149:5555 test@test:~$ adb devices...
  • Page 115: How To Use Csi Camera

    5) Then open the USB camera APP and you can see the video output of the USB camera 4.7. How to use CSI camera CSI camera interface specifications 4.7.1. 1) The CSI interface of Orange Pi PC Plus supports two cameras, gc2035 and ov5640. The support for cameras in different systems is explained as follows GC2035 OV5640 Android 4.4...
  • Page 116: How To Use Gc2035 Camera In Android4.4 System

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 How to use gc2035 camera in Android4.4 system 4.7.2. 1) The Gc2035 camera kit includes a gc2035 camera, an adapter board and a cable 2) First insert the gc2035 camera into the adapter board 3) Then insert the ribbon cable into another card slot of the adapter board www.orangepi.cn www.xunlong.tv...
  • Page 117 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4) Then insert the other end of the cable into the CIS camera interface of the (do not insert development board. Start the Android system after connecting the camera the camera after power-on) 5) Android 4.4 system test gc2035 camera requires the following Android image 6) After the Android system is started, open the camera APP and you can see the output of the gc2035 camera.
  • Page 118: How To Use The Ov5640 Camera In Android4.4 System

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 How to use the ov5640 camera in Android4.4 system 4.7.3. 1) First connect the Ov5640 camera adapter board to the CIS camera interface of the development board through a cable, and then start the Android system after connecting the camera (don’t plug in the camera after powering on) 2) Android 4.4 system test ov5640 camera requires the following Android image...
  • Page 119: Linux Sdk Instructions

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5. Linux SDK instructions Linux SDK The compilation of the Linux SDK is performed on a PC or virtual machine (VirtualBox or VMware) with Ubuntu 18.04 installed. Please do not use other versions of the Ubuntu system or compile the Linux SDK on WSL 5.1.
  • Page 120: Download The Cross-Compilation Toolchain

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 scripts, and the source code of some programs, etc. LICENSE: GPL 2 license file d. README.md: d.orangepi-build documentation scripts: General script for compiling linux image test@test:~/orangepi-build$ ls build.sh external LICENSE README.md scripts Download the cross-compilation toolchain 5.1.2.
  • Page 121: Description Of The Complete Directory Structure Of Orangepi-Build

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 gcc-linaro-4.9.4-2017.01-x86_64_arm-linux-gnueabi gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf gcc-linaro-7.4.1-2019.02-x86_64_aarch64-linux-gnu gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabi gcc-linaro-aarch64-none-elf-4.8-2013.11_linux gcc-linaro-arm-linux-gnueabihf-4.8-2014.04_linux gcc-linaro-arm-none-eabi-4.8-2014.04_linux 4) The cross-compilation tool chain used to compile the H3 linux kernel source code is linux3.4 gcc-linaro-5.5.0-2017.10-x86_64_arm-linux-gnueabihf b. linux5.4 gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf 5) The cross-compilation tool chain used to compile the H3 u-boot source code is u-boot 2018.05 gcc-arm-9.2-2019.12-x86_64-arm-none-linux-gnueabihf b.
  • Page 122 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) When orangepi-build runs for the first time, it will download the cross-compilation tool chain, u-boot and linux kernel source code. After successfully compiling a linux image, the files and folders that can be seen in orangepi-build are: build.sh: Compile the startup script b.
  • Page 123: Download From Google Cloud

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 test@test:~/orangepi-build$ ls build.sh external kernel LICENSE output README.md scripts toolchains u-boot userpatches Download from Google Cloud 5.1.4. Link: http://www.orangepi.org/downloadresources/PCPlus/2019-11-12/pcplus_57fbd8b253d28f d1c1026579e5068.html 5.2. Compile u-boot 1) Run the build.sh script, remember to add sudo permissions test@test:~/orangepi-build$ sudo ./build.sh 2) Select U-boot package, then press Enter 3) Then select the model of the development board 4) Then select the branch...
  • Page 124 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) Then it will start to compile u-boot, some of the information prompted during compilation are explained as follows u-boot source version [ o.k. ] Compiling u-boot [ v2020.04 ] b. The version of the cross-compilation toolchain [ o.k.
  • Page 125 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 linux-u-boot-current-orangepipcplus_2.1.0_armhf.deb . test@test:~/orangepi_build/output/debs/u-boot$ ls linux-u-boot-current-orangepipcplus_2.1.0_armhf.deb b. The decompressed file is as follows test@test:~/orangepi_build/output/debs/u-boot$ tree usr usr/ └── lib ├── linux-u-boot-current-orangepipcplus_2.1.0_armhf │ └── u-boot-sunxi-with-spl.bin //u-boot binary file └── u-boot ├── LICENSE ├── orangepi_pc_plus_defconfig //Compile the configuration file used by u-boot source code └──...
  • Page 126 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 b. Then log in to the development board and uninstall the installed deb package of u-boot root@orangepi:~# apt remove -y linux-u-boot-orangepipcplus-current Install the new u-boot deb package just uploaded root@orangepi:~# dpkg -i linux-u-boot-current-orangepipcplus_2.1.0_armhf.deb d. Then run the nand-sata-install script root@orangepi:~# nand-sata-install Then choose 5 Install/Update the bootloader on SD/eMMC After pressing the enter key, a Warring will pop up first...
  • Page 127: Compile The Linux Kernel

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 h. Then you can restart to test that the u-boot modification is effective 5.3. Compile the linux kernel 1) Run the build.sh script, remember to add sudo permissions test@test:~/orangepi-build$ sudo ./build.sh 2) Select Kernel package, and then press Enter 3) Then select the model of the development board 4) Then select the branch current will compile linux5.4...
  • Page 128 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 5) Then the kernel configuration interface opened through make menuconfig will pop up. At this time, you can directly modify the kernel configuration. If you don’t need to modify the kernel configuration, just exit directly. After exiting, the kernel source code will be compiled.
  • Page 129 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 6) When compiling the kernel source code, the following information will be prompted (take the current branch as an example) The version of the kernel source code [ o.k. ] Compiling legacy kernel [ 5.4.65 ] b.
  • Page 130 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 [ o.k. ] File name [ linux-image-current-sunxi_2.1.0_armhf.deb ] m. Compile time [ o.k. ] Runtime [ 4 min ] n. At the end, it will display the compiling command to recompile the kernel selected last time. Use the following command without selecting through the graphical interface, you can directly start compiling the kernel source code [ o.k.
  • Page 131 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 test@test:~/orangepi_build/output/debs/test$ tree -L 2 ├── boot │ ├── config-5.4.65-sunxi //Configuration file used to compile the kernel source code │ ├── System.map-5.4.65-sunxi │ └── vmlinuz-5.4.65-sunxi //Compile the generated kernel image file ├── etc │ └── kernel ├── lib │...
  • Page 132 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 ├── linux-dtb-current-sunxi_2.1.0_armhf.deb └── usr └── share 4 directories, 1 file 13) When the orangepi-bulid compilation system compiles the linux kernel source code, it first synchronizes the linux kernel source code with the linux kernel source code of the github server, so if you want to modify the linux kernel source code, you need to turn off the source code update function first (you need to compile the linux kernel once.
  • Page 133: Compile Rootfs

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 15) The method of installing the kernel header file into the linux system is as follows Upload the deb package of the compiled linux header file to the linux system of the development board test@test:~/orangepi-build$ cd output/debs test@test:~/orangepi-build/output/debs$ scp \ linux-headers-current-sunxi_2.1.0_armhf.deb root@192.168.1.207:/root b.
  • Page 134 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 4) Then select the type of rootfs buster Debian 10 bionic Ubuntu 18.04 focal Ubuntu 20.04 xenial Ubuntu16.04 Linux distributions supported by linux5.4 are as follows b. The Linux distributions supported by linxu3.4 are as follows 5) Then select the type of image Image with console interface represents the image of the server version, which is relatively small...
  • Page 135 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 7) After selecting the type of image, rootfs will be compiled, and the following information will be prompted during compilation Type of rootfs [ o.k. ] local not found [ Creating new rootfs cache for bionic ] b.
  • Page 136: Compile Linux Image

    10) Since it takes a long time to compile rootfs, if you don’t want to compile rootfs from scratch, or if there is a problem with compiling rootfs, you can directly download the rootfs compressed package cached by Orange Pi. The download link of rootfs compressed package Baidu cloud disk is shown below, download A good rootfs...
  • Page 137 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 test@test:~/orangepi-build$ sudo ./build.sh 2) Select Full OS image for flashing, and then press Enter 3) Then select the model of the development board 4) Then select the branch Current will compile u-boot v2020.04、linux5.4 b. legacy will compile u-boot v2018.05、linux3.4 5) Then select the type of rootfs buster Debian 10...
  • Page 138 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 b. The Linux distributions supported by linxu3.4 are as follows 6) Then select the type of image Image with console interface represents the image of the server version, which is relatively small b. Image with desktop environment indicates that the image of desktop version and the volume is relatively large 7) If it is to compile the image of the server version, you can also choose to compile the Standard version or the Minimal version.
  • Page 139 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 of images, such as pre-installing additional software packages and modifying configuration files Then make an image file and format the partition, the default type is ext4 k. Then copy the configured rootfs to the image partition Then update the initramfs m.
  • Page 140: Android Sdk Instructions

    SDK released by the chip manufacturer. If you want to use the Android images compiled by these SDKs on the Orange Pi development board, you need to target different boards. Adaptation can ensure the normal use of all functions 6.1.
  • Page 141 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) After entering the data page, find the data download link corresponding to the development board, and select the Android source code option 3) Then select Google Cloud 4) Then download the source code of H3-Android4.4 5) H3 android 4.4 source code contains the following 2 files OrangepiH3.tar:android source code b.
  • Page 142: Build Android Compilation Environment

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 correct, if not, please download the source code again test@test:~$ md5sum -c OrangepiH3.tar.md5sum OrangepiH3.tar: 确定 7) Then decompress the source code of android sdk, after decompressing the sdk, two folders of android and lichee will be generated android: Store android-related code b.
  • Page 143: Compile Android Image

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 test@test:~$ sudo cp jdk-6u31-linux-x64.bin /usr/lib/jvm/ test@test:~$ cd /usr/lib/jvm/ test@test:~ /usr/lib/jvm$ sudo chmod a+x ./jdk-6u31-linux-x64.bin test@test:~ /usr/lib/jvm$ sudo ./jdk-6u31-linux-x64.bin test@test:~ /usr/lib/jvm$ ls jdk1.6.0_31 jdk-6u31-linux-x64.bin 3) Export java environment variables test@test:~$ export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_31 test@test:~$ export JRE_HOME=/usr/lib/jvm/jdk1.6.0_31/jre test@test:~$ export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH test@test:~$ export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$JAVA_HOME:$PATH 4) Install platform support software test@test:~$ sudo apt-get update...
  • Page 144 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 Welcome to mkscript setup progress All available chips: 0. sun8iw6p1 1. sun8iw7p1 2. sun8iw8p1 3. sun9iw1p1 Choice: All available platforms: 0. android 1. dragonboard 2. linux Choice: All available business: 0. dolphin 1. secure 2. karaok Choice: 2) After compiling, the following information will be output sun8iw7p1 compile Kernel successful...
  • Page 145: Android 7.0 Sdk Instructions

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 6.1.3.2. Compile android source code 1) The command to compile android is as follows test@test:~$ cd android test@test:~/OrangePiH3/android$ source build/envsetup.sh test@test:~/OrangePiH3/android$ lunch dolphin_fvd_p2-eng test@test:~/OrangePiH3/android$ extract-bsp test@test:~/OrangePiH3/android$ make -j8 && pack 2) The final output log of the packaged and generated android image is as follows test@test:~/OrangePiH3/android$ pack ..
  • Page 146 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 3) Then select Google Cloud 4) Then download the source code of H3-Android7.0 5) H3's android 7.0 source code includes file descriptions as follows H3-sdk7.0-2017-11-03.tar.gza* : Sub-volume compressed package of android sdk source code d. md5sum.txt:H3-sdk7.0-2017-11-03.tar.gza* of H3-sdk7.0-2017-11-03.tar.gza* 6) After downloading the android source code, first check whether the MD5 checksum is correct, if not, please download the source code again test@test:~$ cd H3-Android7.0...
  • Page 147: Build Android Compilation Environment

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 test@test:~/H3-Android7.0$ md5sum -c md5sum.txt H3-sdk7.0-2017-11-03.tar.gzaa: 确定 H3-sdk7.0-2017-11-03.tar.gzab: 确定 H3-sdk7.0-2017-11-03.tar.gzac: 确定 H3-sdk7.0-2017-11-03.tar.gzad: 确定 H3-sdk7.0-2017-11-03.tar.gzae: 确定 H3-sdk7.0-2017-11-03.tar.gzaf: 确定 H3-sdk7.0-2017-11-03.tar.gzag: 确定 H3-sdk7.0-2017-11-03.tar.gzah: 确定 H3-sdk7.0-2017-11-03.tar.gzai: 确定 H3-sdk7.0-2017-11-03.tar.gzaj: 确定 H3-sdk7.0-2017-11-03.tar.gzak: 确定 H3-sdk7.0-2017-11-03.tar.gzal: 确定 H3-sdk7.0-2017-11-03.tar.gzam: 确定 H3-sdk7.0-2017-11-03.tar.gzan: 确定 7) Then add multiple compressed packages and merge them into one compressed file test@test:~/H3-Android7.0$ cat H3-sdk7.0-2017-11-03.tar.gza* >...
  • Page 148: Compile Android Image

    range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2) Configure java environment variables First determine the installation path of java, generally test@test:~$ ls /usr/lib/jvm/java-8-openjdk-amd64 ASSEMBLY_EXCEPTION bin docs include jre lib man src.zip THIRD_PARTY_README Then use the following command to export java environment variables test@test:~$ export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64 test@test:~$ export PATH=$JAVA_HOME/bin:$PATH test@test:~$ export CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/lib/tools.jar...
  • Page 149 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 2. sun50iw6p1 3. sun8iw11p1 4. sun8iw12p1 5. sun8iw6p1 6. sun8iw7p1 7. sun8iw8p1 8. sun9iw1p1 Choice: All available platforms: 0. android 1. dragonboard 2. linux 3. camdroid Choice: All available business: 0. dolphin 1. secure 2. karaok Choice: 2) After compiling, the following information will be output sun8iw7p1 compile Kernel successful...
  • Page 150 range Pi 用户手册 深圳市迅龙软件有限公司版权所有 6.2.3.2. Compile android source code 1) The command to compile android is as follows test@test:~/H3-Android7.0 /OrangePiH3$ cd android test@test:~/H3-Android7.0 /OrangePiH3/android$ source build/envsetup.sh test@test:~/H3-Android7.0 /OrangePiH3/android$ lunch dolphin_fvd_p1-eng test@test:~/H3-Android7.0 /OrangePiH3/android$ extract-bsp test@test:~/H3-Android7.0 /OrangePiH3/android$ make -j8 && pack 2) The final output log of the packaged and generated android image is as follows ----------image is at---------- lichee/tools/pack/sun8iw7p1_android_dolphin-p1_uart0.img pack finish...

Table of Contents

Save PDF