Orange Pi Zero2 Скачать руководство пользователя страница 1

Orange Pi Zero 2

User Manual

Содержание Zero2

Страница 1: ...Orange Pi Zero 2 User Manual...

Страница 2: ...al port on the Windows platform 22 3 Linux OS instructions 25 3 1 Supported Linux distribution types and kernel versions 25 3 2 linux4 9 kernel driver adaptation status 25 3 3 Linux OS default login a...

Страница 3: ...yS5 60 3 25 SPI Nor Flash test 61 4 Linux SDK instructions 63 4 1 Get the source code of Linux SDK 63 4 2 Download the compilation toolchain 64 4 3 Compile u boot 65 4 4 Compile the Linux kernel 69 4...

Страница 4: ...winner H616 system on chip and has 512MB 1GB DDR3 memory 1 2 The uses of Orange Pi Zero 2 We can use it to build A computer A wireless server Games Music and Sounds HD video A Speaker Pretty much anyt...

Страница 5: ...0fps TV CVBS output Support PAL NTSC Via 13pin interface board Audio output Micro HDMI 3 5mm audio port Via 13pin interface board Power Source Type C interface 5V 2A input USB 2 0 Ports 3 USB 2 0 HOST...

Страница 6: ...5 1 5 Top and bottom views of Orange Pi Zero 2 Top view Bottom view...

Страница 7: ...6 1 6 Orange Pi Zero 2 interface details...

Страница 8: ...a minimum capacity of 8GB it is recommended to use SanDisk s MicroSD card Orange Pi uses SanDisk s MicroSD card with all the tests Other brands of TF cards may cause the OS to fail to start 2 TF card...

Страница 9: ...hat are not on the development board The expansion board includes functions 1 MIC Not Support 2 Analog audio and video output interface Can be used to connect headphones to play music or connect to th...

Страница 10: ...rol mainly used to control the Android OS 8 100M or 1000M network cable used to connect the development board to the Internet 9 AV cable if you want to display video through the CVBS interface instead...

Страница 11: ...nd Linux images 2 2 Download the image and relevant documents 1 The download URL of the Chinese version is http www orangepi cn downloadresourcescn 2 The download URL of the English version is http ww...

Страница 12: ...nDisk 2 Then use a card reader to insert the MicroSD card into the computer 3 Then format the MicroSD card a You can use the SD Card Formatter software to format the MicroSD card the download URL is h...

Страница 13: ...ding with img is the operating OS image file with a normal size Are above 1GB 5 Use Win32Diskimager to burn Linux image to MicroSD card a The download page of Win32Diskimager is http sourceforge net p...

Страница 14: ...card with 8GB or larger capacity The transmission speed of the MicroSD card must be above class10 It is recommended to use a brand MicroSD card such as SanDisk 2 Then use a card reader to insert the...

Страница 15: ...test ls Orangepizero2_2 0 8_ubuntu_bionic_server_linux4 9 170 Orangepizero2_2 0 8_ubuntu_bionic_server_linux4 9 170 7z Orangepizero2_2 0 8_ubuntu_bionic_server_linux4 9 170 img sha Checksum file Oran...

Страница 16: ...burning the following interface will be displayed then you can unplug the MicroSD card from the computer and insert it into the development board to start 2 5 Method of flashing Android firmware to Mi...

Страница 17: ...OS compressed package In the decompressed file the file ending with img is the Android image file 5 Use decompression software to decompress PhonenixCard v4 2 3 zip this software does not need to be i...

Страница 18: ...card 8 Then start to write the Android OS to MicroSD card a First select the path of the Android image in the Image column b Select Start up in Type of Making Card c Then click the Burn button to sta...

Страница 19: ...HDMI display through a Micro HDMI to HDMI cable 3 Connect the USB mouse and keyboard to control the Orange Pi development board 4 The development board has an Ethernet port which can be plugged into t...

Страница 20: ...lar USB to TTL modules you can also insert the USB end of the USB to TTL module into the USB port of the computer 2 The corresponding relationship between the debug serial port GND TX and RX pins of t...

Страница 21: ...ing up the serial port software later test test ls dev ttyUSB dev ttyUSB0 2 Many serial debugging tools that can be used under Linux such as putty minicom etc The following shows how to use putty 3 Fi...

Страница 22: ...dev ttyUSB0 modify to the corresponding node name generally dev ttyUSB0 b Set Speed baud to 115200 baud rate of the serial port c Set Flow control to None 8 After setting the serial port setting inter...

Страница 23: ...latform 1 Many serial debugging tools that can be used under Windows such as SecureCRT MobaXterm etc The following shows how to use MobaXterm This software has a free version and can be used without p...

Страница 24: ...table version After downloading you don t need to install it you can open it directly 3 After downloading use the decompression software to decompress the downloaded compressed package you can get the...

Страница 25: ...ccording to the actual situation if you cannot see the port number please use the 360 driver master to scan and install the driver for the USB to TTL serial chip d Select the baud rate of the serial p...

Страница 26: ...ux 4 9 version of the kernel and the driver adaptation is shown in the table below Function Status HDMI video OK HDMI Audio OK USB2 0 x 3 OK TF card boot OK Network card OK IR receiver OK WIFI OK BT O...

Страница 27: ...g in to the desktop The modification command is as follows or you can open the configuration file to modify directly root orangepis sed i s autologin user orangepi autologin user orangepi etc lightdm...

Страница 28: ...it is consistent with the actual capacity of the TF card it means that the automatic expansion is running correctly root orangepi df h Filesystem Size Used Avail Use Mounted on udev 430M 0 430M 0 dev...

Страница 29: ...elopment board and ensure that the network is unblocked 2 After the OS starts it will automatically assign an IP address to the Ethernet card through DHCP 3 The command to view the IP address is as fo...

Страница 30: ...connected and then use the ifconfig command or check the router to obtain the IP address of the development board 3 9 1 SSH remote login development board under Ubuntu 1 Get the IP address of the dev...

Страница 31: ...remotely log in to the development board under windows first create a new ssh session a Open Session b Then select SSH in Session Setting c Then enter the IP address of the development board in Remote...

Страница 32: ...ge output after starting the Linux OS it means that the HDMI interface is working normally 3 11 HDMI resolution setting 1 There is a disp_mode variable in the boot orangepiEnv txt of the Linux OS whic...

Страница 33: ...to modify the width and height of Framebuffer 1 There are two variables fb0_width and fb0_height in the boot orangepiEnv txt of the Linux OS which can be used to set the width and height of the Frameb...

Страница 34: ...33 b HDMI resolution is 1080p60 fb0_width and fb0_height are 1280x720 display c HDMI resolution is 1080p60 fb0_width and fb0_height are 720x576...

Страница 35: ...in to the Linux OS first there are three ways a If the development board is connected to the network cable you can log in to the Linux OS remotely via SSH b If the debug serial port is connected you c...

Страница 36: ...Linux OS through the HDMI display terminal 2 Then enter nmtui in the command line to open the wifi connection interface root orangepi nmtui 3 Enter nmtui to open the interface as shown below 4 Select...

Страница 37: ...on the cursor on Activate and press Enter 7 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...

Страница 38: ...i org I wlan0 PING www orangepi org 182 92 236 130 from 192 168 1 49 wlan0 56 84 bytes of data 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 1...

Страница 39: ...all scanned WIFI hotspots and then select the WIFI hotspot you want to connect to 3 Then enter the password of the WIFI hotspot and then click Connect to start connecting to WIFI 4 After connecting to...

Страница 40: ...5 After opening the browser if you can see the page of the OrangePi website or you can open other web pages the WIFI connection is normal 3 14 How to use Bluetooth 3 14 1 Test method of desktop versi...

Страница 41: ...isibility Setting to Always visible in the Bluetooth adapter setting interface and then click close to close 4 Then open the configuration interface of the Bluetooth device 5 Click Search to start sca...

Страница 42: ...emonstration of pairing with an Android phone 7 When pairing with a mobile phone a pairing confirmation box will pop up in the upper right corner of the desktop select Confirm to confirm At this time...

Страница 43: ...e hciconfig command to check whether there is a Bluetooth device node If it exists the Bluetooth initialization is normal root orangepi hciconfig a hci0 Type Primary Bus UART BD Address 10 11 12 13 14...

Страница 44: ...er 10 11 12 13 14 15 Discovering yes NEW Device 76 60 79 29 B9 31 76 60 79 29 B9 31 NEW Device 9C 2E A1 42 71 11 Xiaomi mobile phone NEW Device DC 72 9B 4C F4 CF orangepi bluetooth scan off After scan...

Страница 45: ...USB interface test 3 15 1 Connect mouse or keyboard test 1 Insert the keyboard of the USB interface into the USB interface of the Orange Pi development board 2 Connect the Orange Pi development board...

Страница 46: ...od Module Size Used by uvcvideo 106496 0 videobuf2_vmalloc 16384 1 uvcvideo videobuf2_memops 16384 1 videobuf2_vmalloc videobuf2_v4l2 32768 1 uvcvideo videobuf2_core 53248 2 uvcvideo videobuf2_v4l2 3...

Страница 47: ...root orangepi apt update root orangepi apt install motion b Modify the configuration of etc default motion change start_motion_daemon no to start_motion_daemon yes root orangepi sed i s start_motion_d...

Страница 48: ...escription 1 Please refer to the figure below for the sequence of the orange Pi Zero 2 development board 13 pin adapter board interface pins 2 The schematic diagram of the 13pin interface of the Orang...

Страница 49: ...erface cannot be used f Also note that the MIC on the 13pin adapter board cannot be used on Orange Pi Zero2 b When the 13pin is not connected to the adapter board the 10 11 and 12 pins can be used as...

Страница 50: ...evelopment board or copy it with a USB flash drive test test AudioTest scp audio wav root 192 168 1 xx root Modify the IP address and path according to the actual situation 4 Then use the aplay comman...

Страница 51: ...situation 3 HDMI audio playback does not require other settings just use the aplay command to play directly root orangepi aplay D hw 1 0 audio wav 3 19 IR receiving test 1 First you need to insert the...

Страница 52: ...esting events Please press CTRL C to abort 1598339152 260376 event type EV_MSC 0x04 scancode 0xfb0413 1598339152 260376 event type EV_SYN 0x00 1598339152 914715 event type EV_MSC 0x04 scancode 0xfb041...

Страница 53: ...0 success 0 put_usr return if 0 success 0 keep alive keep alive keep alive 3 21 Temperature sensor 1 H616 has a total of 4 temperature sensors the command to check the temperature is as follows a sen...

Страница 54: ...5 nstall the latest version of docker ce Iroot orangepi apt update root orangepi apt install docker ce 6 Verify the status of docker root orangepi systemctl status docker docker service Docker Applic...

Страница 55: ...of the Orange Pi Zero 2 development board is shown in the table below GPIO No GPIO Function Pin Pin Function GPIO GPIO No 3 3V 1 2 5V 229 PH5 TWI3 SDA 3 4 5V 228 PH4 TWI3 SCK 5 6 GND 73 PC9 PC9 7 8 U...

Страница 56: ...ld 4 The output of the test gpio readall command is as follows a There is a one to one correspondence between pins 1 to 26 and 26 Pins on the development board b Pin 27 corresponds to pin 10 of 13pins...

Страница 57: ...is set successfully root orangepi wiringOP gpio write 2 0 Use gpio readall to see that the value V of pin 7 has become 0 4 Then set the GPIO port to output high level After setting you can use a mult...

Страница 58: ...1 first and the output result of running spidev_test is as follows you can see that the data of TX and RX are inconsistent root orangepi wiringOP examples spidev_test v D dev spidev1 1 spi mode 0x0 bi...

Страница 59: ...rting the linux OS first confirm that there is an i2c3 device node under dev root orangepi ls dev i2c dev i2c 3 dev i2c 5 3 Then start to test i2c first install i2c tools root orangepi apt update root...

Страница 60: ...gepi ls dev ttyS dev ttyS0 dev ttyS1 dev ttyS5 3 Then start to test the UART5 interface first use the Dupont line to short circuit the rx and tx of the UART5 interface to be tested UART5 tx Pin Corres...

Страница 61: ...wiringOP examples serialTest Out 0 0 Out 1 1 Out 2 2 Out 3 3 Out 4 4 Out 5 5 Out 6 6 Out 7 7 Out 8 8 C 3 24 Method of redirecting kernel console output to serial port ttyS5 The kernel console outputs...

Страница 62: ...GND of the 26pins of the development board b Connect the RX of the USB to TTL module to the TX of the development board UART5 c Connect the TX of the USB to TTL module to the RX of the development bo...

Страница 63: ...orangepi wiringOP examples make w25q64_test CC w25q64_test c link 6 Test SPI Nor Flash if you can see data output not all 0 or ff it means that SPI Nor Flash reads and writes normally root orangepi wi...

Страница 64: ...code of orangepi build the code of orangepi build is modified based on the armbian build OS a Currently the Orange Pi Zero 2 development board only supports the legacy branch b The kernel version is...

Страница 65: ...also stored in external c external Stores the source code of the Linux kernel the folder named orange pi 4 9 sun50iw9 stores the kernel source code of Orange Pi Zero 2 sun50iw9 is the code name of th...

Страница 66: ...lf 4 8 2013 11_linux gcc linaro 4 9 4 2017 01 x86_64_arm linux gnueabi gcc linaro arm linux gnueabihf 4 8 2014 04_linux gcc linaro 7 4 1 2019 02 x86_64_aarch64 linux gnu gcc linaro arm none eabi 4 8 2...

Страница 67: ...lained as follows a u boot source version o k Compiling u boot v2018 05 b The version of the cross compilation toolchain o k Compiler version arm linux gnueabi gcc 7 4 1 c Compile the generated u boot...

Страница 68: ...ot tree usr usr lib linux u boot legacy orangepizero2_2 0 8_arm64 boot0_sdcard fex boot_package fex u boot LICENSE orangepi_zero2_defconfig orangepizero2 u boot dts platform_install sh 3 directories 6...

Страница 69: ...pi apt purge y linux u boot orangepizero2 legacy c Install the new u boot deb package just uploaded root orangepi dpkg i linux u boot legacy orangepizero2_2 0 8_arm64 deb d Then run the nand sata inst...

Страница 70: ...epi build sudo build sh 2 Select Kernel package then press Enter 3 Then select the model of the development board 4 Then the kernel configuration interface opened through make menuconfig will pop up A...

Страница 71: ...patches config default conf configuration file to disable this feature permanently c If the following error is prompted when compiling the kernel this is because the terminal interface of the Ubuntu P...

Страница 72: ...electing through the graphical interface you can directly start compiling the kernel source code o k Repeat Build Options sudo build sh BOARD orangepizero2 BRANCH legacy BUILD_OPT kernel KERNEL_CONFIG...

Страница 73: ...lete the compilation once This function can only be turned off after the linux kernel source code otherwise it will be prompted that the source code of the linux kernel cannot be found otherwise the c...

Страница 74: ...test orangepi build sudo build sh 2 Select Rootfs and all deb packages then press Enter 3 Then select the model of the development board 4 Then select the type of rootfs a buster means Debian 10 b bio...

Страница 75: ...llowing command without selecting through the graphical interface you can directly start compiling rootfs o k Repeat Build Options sudo build sh BOARD orangepizero2 BRANCH legacy BUILD_OPT rootfs RELE...

Страница 76: ...the rootfs again will skip the compilation process and will not restart the compilation When compiling the image it will also go to external cache rootfs to check whether it is already Rootfs with ca...

Страница 77: ...b Download the source code of u boot and linux kernel c Compile u boot generate u boot deb package d Compile linux source code and generate linux related deb package e Make deb package of linux firmwa...

Страница 78: ...without selecting through the graphical interface you can directly start to compile the image o k Repeat Build Options sudo build sh BOARD orangepizero2 BRANCH legacy BUILD_OPT image RELEASE bionic BU...

Страница 79: ...LED light display description Green light Red light U boot startup phase OFF ON Kernel boot to enter system ON OFF GPIO PC13 PC12 5 4 How to use ADB 5 4 1 Open USB debugging option 1 Select Settings 2...

Страница 80: ...erted into the USB interface of the computer and the other end of the Type C interface is inserted into the power interface of the development board In this case the USB interface of the computer supp...

Страница 81: ...the USB debugging option is turned on 3 Make sure that the service adb tcp port of the Android OS is set to port number 5555 cupid p2 getprop grep adb tcp service adb tcp port 5555 5 If service adb tc...

Страница 82: ...8672 1 uvcvideo videobuf2_vmalloc 16384 1 uvcvideo videobuf2_memops 16384 1 videobuf2_vmalloc videobuf2_core 49152 2 uvcvideo videobuf2_v4l2 mali_kbase 532480 7 2 If the USB camera is recognized norma...

Страница 83: ...u can use the following method to test 1 Download rootcheck apk from the official tool on the Orange Pi Zero 2 data download page 2 Then make sure that the adb connection between the Ubuntu PC and the...

Страница 84: ...tool for the first time is as shown in the figure below 6 Then you can click Check now to start the inspection of the ROOT status of the Android OS The display after the inspection is as follows you c...

Страница 85: ...ode of android SDK 1 The android source code of H616 contains the following 4 files a android tar gzxx android source code b android tar gz md5sum MD5 checksum file of android tar gzxx c longan tar gz...

Страница 86: ...e JAVA environment variables a 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...

Страница 87: ...environment test test cd longan test test longan build sh config Welcome to mkscript setup progress All available platform 0 android 1 linux Choice android 0 All available ic 0 h313 1 h616 2 h700 Cho...

Страница 88: ...est cd android test test android source build envsetup sh test test android lunch cupid_p2 eng test test android extract bsp test test android make j8 2 After compiling the following information will...

Отзывы: