'''Orange Pi Zero 3'''
'''User Manual'''
[[File:media/image2.png|575x396px]]
'''Catalog'''
[[\l|1. Basic features of Orange Pi Zero 3 [1](#basic-features-of-orange-pi-zero-3)]]
[[\l|1.1. What is Orange Pi Zero 3 [1](#what-is-orange-pi-zero-3)]]
[[\l|1.2. Purpose of Orange Pi Zero 3 [1](#purpose-of-orange-pi-zero-3)]]
[[\l|1.3. Who is Orange Pi Zero 3 designed for? [1](#who-is-orange-pi-zero-3-designed-for)]]
[[\l|1.4. Hardware Features of Orange Pi Zero 3 [2](#hardware-features-of-orange-pi-zero-3)]]
[[\l|1.5. Top view and bottom view of Orange Pi Zero 3 [3](#top-view-and-bottom-view-of-orange-pi-zero-3)]]
[[\l|1.6. Interface details of Orange Pi Zero 3 [4](#interface-details-of-orange-pi-zero-3)]]
[[\l|2. Introduction to the use of the development board [6](#introduction-to-the-use-of-the-development-board)]]
[[\l|2.1. Prepare the required accessories [6](#prepare-the-required-accessories)]]
[[\l|2.2. Download the image of the development board and related materials [12](#download-the-image-of-the-development-board-and-related-materials)]]
[[\l|2.3. Method of burning Linux image to TF card based on Windows PC [12](#method-of-burning-linux-image-to-tf-card-based-on-windows-pc)]]
[[\l|2.3.1. How to use balenaEtcher to burn Linux image [13](#how-to-use-balenaetcher-to-burn-linux-image)]]
[[\l|2.3.2. How to use Win32Diskimager to burn Linux image [17](#how-to-use-win32diskimager-to-burn-linux-image)]]
[[\l|2.4. Method of burning Linux image to TF card based on Ubuntu PC [19](#method-of-burning-linux-image-to-tf-card-based-on-ubuntu-pc)]]
[[\l|2.5. How to burn Android image to TF card [23](#how-to-burn-android-image-to-tf-card)]]
[[\l|2.6. Instructions for using the micro linux system in the onboard SPI Flash [30](#instructions-for-using-the-micro-linux-system-in-the-onboard-spi-flash)]]
[[\l|2.7. Start the Orange Pi development board [31](#start-the-orange-pi-development-board)]]
[[\l|2.8. How to use the debugging serial port [32](#how-to-use-the-debugging-serial-port)]]
[[\l|2.8.1. Connection instruction of debugging serial port [32](#connection-instruction-of-debugging-serial-port)]]
[[\l|2.8.2. How to use the debugging serial port on the Ubuntu platform [33](#how-to-use-the-debugging-serial-port-on-the-ubuntu-platform)]]
[[\l|2.8.3. How to use the debugging serial port on Windows platform [36](#how-to-use-the-debugging-serial-port-on-windows-platform)]]
[[\l|2.9. Instructions for using the 5v pin in the 26pin or 13pin interface of the development board to supply power [39](#instructions-for-using-the-5v-pin-in-the-26pin-or-13pin-interface-of-the-development-board-to-supply-power)]]
[[\l|2.10. The method of using the 13pin interface of the development board to expand the USB interface [41](#the-method-of-using-the-13pin-interface-of-the-development-board-to-expand-the-usb-interface)]]
[[\l|3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system [43](#instructions-for-use-of-debianubuntu-server-and-xfce-desktop-system)]]
[[\l|3.1. Supported linux image types and kernel versions [43](#supported-linux-image-types-and-kernel-versions)]]
[[\l|3.2. Linux kernel driver adaptation [44](#linux-kernel-driver-adaptation)]]
[[\l|3.3. The format of linux commands in this manual [45](#the-format-of-linux-commands-in-this-manual)]]
[[\l|3.4. Linux system login instructions [47](#linux-system-login-instructions)]]
[[\l|3.4.1. Linux system default login account and password [47](#linux-system-default-login-account-and-password)]]
[[\l|3.4.2. How to set automatic terminal login in linux system [47](#how-to-set-automatic-terminal-login-in-linux-system)]]
[[\l|3.4.3. Instructions for automatic login of linux desktop version system [48](#instructions-for-automatic-login-of-linux-desktop-version-system)]]
[[\l|3.4.4. The setting method of root user automatic login in Linux desktop version system [49](#the-setting-method-of-root-user-automatic-login-in-linux-desktop-version-system)]]
[[\l|3.4.5. The method of disabling the desktop in the Linux desktop version system [50](#the-method-of-disabling-the-desktop-in-the-linux-desktop-version-system)]]
[[\l|3.5. Onboard LED Light Test Instructions [50](#onboard-led-light-test-instructions)]]
[[\l|3.6. Instructions for operating the rootfs partition capacity of the linux system in the TF card [53](#instructions-for-operating-the-rootfs-partition-capacity-of-the-linux-system-in-the-tf-card)]]
[[\l|3.6.1. The first startup will automatically expand the capacity of the rootfs partition in the TF card [53](#the-first-startup-will-automatically-expand-the-capacity-of-the-rootfs-partition-in-the-tf-card)]]
[[\l|3.6.2. The method of prohibiting automatic expansion of the capacity of the rootfs partition in the TF card [55](#the-method-of-prohibiting-automatic-expansion-of-the-capacity-of-the-rootfs-partition-in-the-tf-card)]]
[[\l|3.6.3. The method of manually expanding the capacity of the rootfs partition in the TF card [56](#the-method-of-manually-expanding-the-capacity-of-the-rootfs-partition-in-the-tf-card)]]
[[\l|3.6.4. How to reduce the capacity of the rootfs partition in the TF card [62](#how-to-reduce-the-capacity-of-the-rootfs-partition-in-the-tf-card)]]
[[\l|3.7. Network connection test [66](#network-connection-test)]]
[[\l|3.7.1. Ethernet port test [66](#ethernet-port-test)]]
[[\l|3.7.2. WIFI connection test [68](#wifi-connection-test)]]
[[\l|3.7.3. The method of creating WIFI hotspot through create_ap [76](#the-method-of-creating-wifi-hotspot-through-create_ap)]]
[[\l|3.7.4. How to set static IP address [83](#how-to-set-static-ip-address)]]
[[\l|3.7.5. The method of setting the Linux system to automatically connect to the network for the first time [91](#the-method-of-setting-the-linux-system-to-automatically-connect-to-the-network-for-the-first-time)]]
[[\l|3.8. SSH remote login development board [96](#ssh-remote-login-development-board)]]
[[\l|3.8.1. SSH remote login development board under Ubuntu [96](#ssh-remote-login-development-board-under-ubuntu)]]
[[\l|3.8.2. SSH remote login development board under Windows [97](#ssh-remote-login-development-board-under-windows)]]
[[\l|3.9. HDMI test [99](#hdmi-test)]]
[[\l|3.9.1. HDMI display test [99](#hdmi-display-test)]]
[[\l|3.9.2. HDMI to VGA display test [100](#hdmi-to-vga-display-test)]]
[[\l|3.9.3. How to set HDMI resolution in Linux5.4 system [101](#how-to-set-hdmi-resolution-in-linux5.4-system)]]
[[\l|3.9.4. How to Modify the Framebuffer Width and Height of Linux5.4 System [102](#how-to-modify-the-framebuffer-width-and-height-of-linux5.4-system)]]
[[\l|3.9.5. Framebuffer Cursor Setting [103](#framebuffer-cursor-setting)]]
[[\l|3.10. How to use Bluetooth [104](#how-to-use-bluetooth)]]
[[\l|3.10.1. Test method of desktop image [104](#test-method-of-desktop-image-1)]]
[[\l|3.10.2. How to use the server image [107](#how-to-use-the-server-image)]]
[[\l|3.11. USB interface test [110](#usb-interface-test)]]
[[\l|3.11.1. Connect USB mouse or keyboard to test [110](#connect-usb-mouse-or-keyboard-to-test)]]
[[\l|3.11.2. Connect USB storage device test [110](#connect-usb-storage-device-test)]]
[[\l|3.11.3. USB Ethernet card test [111](#usb-ethernet-card-test)]]
[[\l|3.11.4. USB camera test [112](#usb-camera-test)]]
[[\l|3.12. Audio Test [115](#audio-test)]]
[[\l|3.12.1. How to play audio using the command line [115](#how-to-play-audio-using-the-command-line)]]
[[\l|3.12.2. Testing audio methods on desktop systems [116](#testing-audio-methods-on-desktop-systems)]]
[[\l|3.13. Infrared receiving test [118](#infrared-receiving-test)]]
[[\l|3.14. Temperature sensor [120](#temperature-sensor)]]
[[\l|3.15. 13 Pin Description of the Pin Expansion Board Interface [122](#pin-description-of-the-pin-expansion-board-interface)]]
[[\l|3.16. 26 Pin Interface Pin Description [123](#pin-interface-pin-description)]]
[[\l|3.17. How to install wiringOP [124](#how-to-install-wiringop)]]
[[\l|3.18. 26pin interface GPIO, I2C, UART, SPI and PWM test [126](#pin-interface-gpio-i2c-uart-spi-and-pwm-test)]]
[[\l|3.18.1. 26pin GPIO port test [126](#pin-gpio-port-test)]]
[[\l|3.18.2. 26 How to set the pull-down resistance of pin GPIO port [128](#how-to-set-the-pull-down-resistance-of-pin-gpio-port)]]
[[\l|3.18.3. 26pin SPI test [129](#pin-spi-test)]]
[[\l|3.18.4. 26pin I2C test [131](#_Toc31340)]]
[[\l|3.18.5. 26pin UART test [134](#pin-uart-test)]]
[[\l|3.18.6. PWM test method [136](#pwm-test-method)]]
[[\l|3.19. How to install and use wiringOP-Python [140](#how-to-install-and-use-wiringop-python)]]
[[\l|3.19.1. How to install wiringOP-Python [140](#how-to-install-wiringop-python)]]
[[\l|3.19.2. 26pin GPIO port test [142](#pin-gpio-port-test-1)]]
[[\l|3.19.3. 26pin SPI test [145](#pin-spi-test-1)]]
[[\l|3.19.4. 26pin I2C test [148](#pin-i2c-test-1)]]
[[\l|3.19.5. 26pin UART test [151](#pin-uart-test-1)]]
[[\l|3.20. Hardware Watchdog Test [153](#hardware-watchdog-test)]]
[[\l|3.21. Check the chipid of the H618 chip [154](#check-the-chipid-of-the-h618-chip)]]
[[\l|3.22. Python related instructions [154](#python-related-instructions)]]
[[\l|3.22.1. Python source code compilation and installation method [154](#python-source-code-compilation-and-installation-method)]]
[[\l|3.22.2. Python to replace the pip source method [155](#python-to-replace-the-pip-source-method)]]
[[\l|3.23. The Method Of Installing The Docker [156](#the-method-of-installing-the-docker)]]
[[\l|3.24. How to install Home Assistant [157](#how-to-install-home-assistant)]]
[[\l|3.24.1. Install via docker [157](#install-via-docker)]]
[[\l|3.24.2. Install via python [161](#install-via-python)]]
[[\l|3.25. OpenCV installation method [163](#opencv-installation-method)]]
[[\l|3.25.1. Use apt to install OpenCV [163](#use-apt-to-install-opencv)]]
[[\l|3.26. The installation method of the aapanel Linux panel [164](#the-installation-method-of-the-aapanel-linux-panel)]]
[[\l|3.27. face_recognition The installation and testing method of the face recognition library [167](#face_recognition-the-installation-and-testing-method-of-the-face-recognition-library)]]
[[\l|3.27.1. The method of using script to automatically install face_recognition [168](#the-method-of-using-script-to-automatically-install-face_recognition)]]
[[\l|3.27.2. Manually install face_recognition [168](#manually-install-face_recognition)]]
[[\l|3.27.3. The test method of face_recognition [170](#the-test-method-of-face_recognition)]]
[[\l|3.28. Setting Chinese environment and installing Chinese input method [181](#setting-chinese-environment-and-installing-chinese-input-method)]]
[[\l|3.28.1. How to install Debian system [181](#how-to-install-debian-system)]]
[[\l|3.28.2. How to install Ubuntu 20.04 system [187](#how-to-install-ubuntu-20.04-system)]]
[[\l|3.28.3. How to install Ubuntu 22.04 system [192](#how-to-install-ubuntu-22.04-system)]]
[[\l|3.29. How to Remotely Log In to the Desktop of Linux System [197](#how-to-remotely-log-in-to-the-desktop-of-linux-system)]]
[[\l|3.29.1. Remote login using NoMachine [197](#remote-login-using-nomachine)]]
[[\l|3.29.2. Log in remotely using VNC [201](#log-in-remotely-using-vnc)]]
[[\l|3.30. How to install QT [204](#how-to-install-qt)]]
[[\l|3.31. How to install ROS [212](#how-to-install-ros)]]
[[\l|3.31.1. How to install ROS 1 Noetic on Ubuntu 20.04 [212](#how-to-install-ros-1-noetic-on-ubuntu-20.04)]]
[[\l|3.31.2. How to install ROS 2 Galactic on Ubuntu 20.04 [216](#how-to-install-ros-2-galactic-on-ubuntu-20.04)]]
[[\l|3.31.3. How to install ROS 2 Humble on Ubuntu 22.04 [219](#how-to-install-ros-2-humble-on-ubuntu-22.04)]]
[[\l|3.32. How to install the kernel header file [221](#how-to-install-the-kernel-header-file)]]
[[\l|3.33. Some programming language tests supported by Linux system [223](#some-programming-language-tests-supported-by-linux-system)]]
[[\l|3.33.1. Debian Bullseye System [223](#debian-bullseye-system)]]
[[\l|3.33.2. Debian Bookworm System [224](#debian-bookworm-system)]]
[[\l|3.33.3. Ubuntu Focal System [226](#ubuntu-focal-system)]]
[[\l|3.33.4. Ubuntu Jammy System [228](#ubuntu-jammy-system)]]
[[\l|3.34. The method of uploading files to the Linux system of the development board [230](#the-method-of-uploading-files-to-the-linux-system-of-the-development-board)]]
[[\l|3.34.1. How to upload files to the development board Linux system in Ubuntu PC [230](#how-to-upload-files-to-the-development-board-linux-system-in-ubuntu-pc)]]
[[\l|3.34.2. How to upload files to the development board Linux system in Windows PC [234](#how-to-upload-files-to-the-development-board-linux-system-in-windows-pc)]]
[[\l|3.35. Instructions for using the switch logo [239](#instructions-for-using-the-switch-logo)]]
[[\l|3.36. How to shut down and restart the development board [239](#how-to-shut-down-and-restart-the-development-board)]]
[[\l|4. Linux SDK——orangepi-build instruction [240](#linux-sdkorangepi-build-instruction)]]
[[\l|4.1. Compilation system requirements [240](#compilation-system-requirements)]]
[[\l|4.2. Get the source code of linux sdk [242](#get-the-source-code-of-linux-sdk)]]
[[\l|4.2.1. Download orangepi-build from github [242](#download-orangepi-build-from-github)]]
[[\l|4.2.2. Download the cross-compilation toolchain [244](#download-the-cross-compilation-toolchain)]]
[[\l|4.2.3. orangepi-build complete directory structure description [246](#orangepi-build-complete-directory-structure-description)]]
[[\l|4.3. Compile u-boot [247](#compile-u-boot)]]
[[\l|4.4. Compile the linux kernel [250](#compile-the-linux-kernel)]]
[[\l|4.5. Compile rootfs [254](#compile-rootfs)]]
[[\l|4.6. Compile linux image [257](#compile-linux-image)]]
[[\l|5. Android 12 TV system instructions [261](#android-12-tv-system-instructions)]]
[[\l|5.1. Supported Android versions [261](#supported-android-versions)]]
[[\l|5.2. Android 12 TV function adaptation [261](#android-12-tv-function-adaptation)]]
[[\l|5.3. Onboard LED light display instructions [261](#onboard-led-light-display-instructions)]]
[[\l|5.4. Android method to return to the previous interface [262](#android-method-to-return-to-the-previous-interface)]]
[[\l|5.5. How to use ADB [262](#how-to-use-adb)]]
[[\l|5.5.1. Use network connection adb debugging [262](#use-network-connection-adb-debugging)]]
[[\l|5.5.2. Use the data cable to connect to adb debugging [263](#use-the-data-cable-to-connect-to-adb-debugging)]]
[[\l|5.6. View the method of setting HDMI display resolution [264](#view-the-method-of-setting-hdmi-display-resolution)]]
[[\l|5.7. HDMI to VGA display test [266](#hdmi-to-vga-display-test-1)]]
[[\l|5.8. WI-FI connection method [267](#wi-fi-connection-method)]]
[[\l|5.9. How to use WI-FI hotspot [269](#how-to-use-wi-fi-hotspot)]]
[[\l|5.10. How to check the IP address of the Ethernet port [271](#how-to-check-the-ip-address-of-the-ethernet-port)]]
[[\l|5.11. Bluetooth connection method [272](#bluetooth-connection-method)]]
[[\l|5.12. How to use the USB camera [275](#how-to-use-the-usb-camera)]]
[[\l|5.13. Android system ROOT instructions [276](#android-system-root-instructions)]]
[[\l|5.14. The method of using MiracastReceiver to cast the mobile phone screen to the development board [278](#the-method-of-using-miracastreceiver-to-cast-the-mobile-phone-screen-to-the-development-board)]]
[[\l|5.15. 26pin interface GPIO, UART, SPI test [281](#pin-interface-gpio-uart-spi-test)]]
[[\l|5.15.1. 26pin GPIO port test method [281](#pin-gpio-port-test-method)]]
[[\l|5.15.2. 26pin UART test method [284](#pin-uart-test-method)]]
[[\l|5.15.3. 26pin SPI test method [286](#pin-spi-test-method)]]
[[\l|5.15.4. 26pin I2C test method [289](#pin-i2c-test-method)]]
[[\l|6. Appendix [293](#appendix)]]
[[\l|6.1. User Manual Update History [293](#user-manual-update-history)]]
[[\l|6.2. Image update history [293](#image-update-history)]]
<span id="basic-features-of-orange-pi-zero-3"></span>
= Basic features of Orange Pi Zero 3 =