background image

Orange Pi Manual

Copy right by Shenzhen Xunlong Software Co., Ltd

www.orangepi.org

www.xunlong.tv

9

1. Step 1: Prepare Accessories Needed

You need at least some accessories like the following if it is your first

time to use the Orange Pi(we would suggest you using the Expansion board

at the same time).

No. Items

Requirements and Instructions

1

TF card

8GB min.; class 10. Branded TF cards would be

reference which are much more reliable.

2

HDMI to HDMI

cable or HDMI to

DVI cable

HDMI to HDMI cable is used to connect HD TV

or HD monitor

3

AV video

cable

A standard AV video cable can be used to

connect stimulated monitor if a HDMI monitor is

unavailable.

4

Keyboard and

mouse

Any keyboard and mouse with USB port is

applicable; Keyboard and mouse are high-power,

so a USB concentrator is required.

5

Ethernet

cable/USB

WiFi(Optional)

Network is optional,

It makes more convenient to

mount and upgrade software in your Orange Pi

PC.

6

DC power adapter 5V/2V min. high qualified power adapter, OTG

can used a power supply.

7

Audio cable

(Optional)

You can select an audio cable with 3.5mm jack

to feel stereo audio.

HDMI to HDMI cable

HDMI to DVI cable

AV video cable

TF card

DC power adapter

Expansion Board

Содержание Orange Pi Zero Plus2

Страница 1: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 1 Orange Pi Zero Plus2 H5 User Manual...

Страница 2: ...on Linux 30 9 eth0 and wlan0 static mac address setting 31 10 Orange Pi Android root 32 III Linux Kernel Source Code Compilation 36 1 Download Linux Source Code 36 2 Compile Project Source Code 37 3 U...

Страница 3: ...You can use it to build A computer A wireless server Games Music and sounds HD video A speaker Android Scratch Pretty much anything else because Orange Pi Zero Plus2 is open source 3 Whom is it for Or...

Страница 4: ...tion up to 1080p 30fps Video Outputs Supports HDMI output with HDCP Supports HDMI CEC Supports HDMI 30 function Power Source USB OTG input can supply power USB 2 0 Ports one USB 2 0 OTG Low level peri...

Страница 5: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 5 Top view Bottom view...

Страница 6: ...are Co Ltd www orangepi org www xunlong tv 6 Interface instructions 5 GPIO Specifications A 26 pin GPIO interface on the Orange Pi Zero Plus2 is the same as Model A and Model B of Raspberry Pi The pic...

Страница 7: ...PL1 CON3 P14 GND CON3 P15 UART2_CTS PA3 CON3 P16 TWI1 SDA PA19 CON3 P17 VCC3V3 EXT CON3 P18 TWI1 SCK PA18 CON3 P19 SPI1_MOSI PA15 CON3 P20 GND CON3 P21 SPI1_MISO PA16 CON3 P22 UART2_RTS PA2 CON3 P23...

Страница 8: ...N1 P09 CSI HSYNC PE2 CON1 P10 VDD1V8 CSI CON1 P11 VCC CSI CON1 P12 CSI D7 PE11 CON1 P13 CSI MCLK PE1 CON1 P14 CSI D6 PE10 CON1 P15 GND CON1 P16 CSI D5 PE9 CON1 P17 CSI PCLK PE0 CON1 P18 CSI D4 PE8 CON...

Страница 9: ...used to connect HD TV or HD monitor 3 AV video cable A standard AV video cable can be used to connect stimulated monitor if a HDMI monitor is unavailable 4 Keyboard and mouse Any keyboard and mouse wi...

Страница 10: ...s Platform a Inserting the TF card into the computer the capacity of the card must be bigger than the operating system usually requires 8GB or bigger b Formatting the TF card i Download tools for form...

Страница 11: ...Unzip the downloaded file in addition to the Android system this method can be used to burn to write the Android system need another burn the following will introduce e Right click to download the fil...

Страница 12: ...kip this step since command in Linux will format TF card automatic c Download the OS image from download page http www orangepi org downloadresources d Unzip and right click the downloaded file select...

Страница 13: ...tool Download PhoenixCard from here https drive google com file d 0B_VynIqhAcB7NTg2UkRDdHRWX2s edit usp sharing Download Android OS image from here http www orangepi org downloadresources b Format th...

Страница 14: ...tton for writing to TF card and wait for it finish g Click Exit button after burn Android image to TF card successfully 4 Write Armbian Image into TF Card a Insert TF card into computer please note th...

Страница 15: ...ong Software Co Ltd www orangepi org www xunlong tv 15 i Download image writing tool such as Rufus the download page https rufus akeo ie ii Select the image file path that has been unzipped iii Click...

Страница 16: ...d Phoenix Card writing tool b Formatting SD card c Make sure the Disk is same as TF card and start formatting SD card d Write Android into TF card please note the red mark which is different from writ...

Страница 17: ..._H5_V0_1 img as an example to illustrate how to write Linux image into EMMC We would recommend you use the server version image since the RAM of zero plus2 is not too big Method 1 a sudo OrangePi_Form...

Страница 18: ...epi org www xunlong tv 18 Select the fourth one Storage Setting Select the first one Format EMMC as Normal Storage First format EMMC Select fourth one Install Image into EMMC Install image into EMMC a...

Страница 19: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 19 Orange Pi Zero Plus2 runs on Android 5 1 system...

Страница 20: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 20 Orange Pi Zero Plus2 runs on Debian system Orange Pi Zero Plus2 runs on Ubuntu system...

Страница 21: ...board For expansion board 2USB ports mic and IR receiver are available d It is the network module on board which you can access Orange Pi to the wired network e You could connect to a power adapter o...

Страница 22: ...em on TF Card After the system is closed the power can be cut off by more than 5 seconds press 5 Other configuration 1 Connect to the wired network Method 1 a Enter the following in the command line i...

Страница 23: ...b Connect wifi here is the command ifconfig wlan0 up sudo wpa_supplicant i wlan0 c etc network wpa_supplication conf dhcpcd wlan0 c Test the condition of wifi connection Use iwconfig command you will...

Страница 24: ...the sound card alsactl store f var lib alsa asound state used for saving modified parameters b It needs to modify configuration on file system for output on 3 5mm of etc asound conf modify card1 into...

Страница 25: ...can be used the new account Zhangsan to land 2 U Disk Automatic Mounted Configuration a sudo apt get install usbmount b sudo vim etc udev rules d automount rules ACTION add KERNEL sdb RUN usr bin pmou...

Страница 26: ...ultiverse restricted universe deb src http mirrors ustc edu cn ubuntu ports xenial backports main multiverse restricted universe deb src http mirrors ustc edu cn ubuntu ports xenial proposed main mult...

Страница 27: ...5003 it detailed descriptions on the operation and the mounted of U disk is very useful b DLNA Mainly through the minidlna software to achieve the sharing of media resources within the LAN such as sha...

Страница 28: ...the required installation package first The link for stable version http luyou xunlei com thread 12545 1 1 html Download Xware1 0 31_cubieboard zip file Note If you want to try the latest version you...

Страница 29: ...the top right corner to add fill in the activation code to complete the binding according to the following figure vi Setting start up sudo nano etc rc loacl add the following contents before exit 0 c...

Страница 30: ...d exit It could be remote downloading on computer mobile phone or tablet by login yuancheng xunlei com 7 Modify the size of ext4 file system After made the written image into SD card for booting enter...

Страница 31: ...tem i Boot to Linux umount dev sdb1 and dev sdb2 if it prompts disk busy then use fuser to clean the using disk we will recommend using another Linux booting disk to lead the system ii Use fdisk dev s...

Страница 32: ...specify it into K KB M MB G GB etc iv Use fdisk dev sdb to adjust the partition size after into it enter p and keep in mind about the initial position of needed extending size partition You need to fi...

Страница 33: ...iver sudo modprobe gc2035 sudo modprobe vfe_v4l2 ii Install motion sudo apt get install motion iii Modify configuration sudo nano etc motion motion conf stream_localhost off iv Create folder for image...

Страница 34: ...llowing unit Description Change OrangePi Wifi mac address Service ExecStart etc rc local RemainAfterExit yes Install sWantedBy multi user target systemctl enable change_mac_address service Modify mac...

Страница 35: ...then enter into kingroot directory and execute the following steps adb shell root rabbit p1 mkdir tmp root rabbit p1 cd system bin root rabbit p1 mount o remount rw system root rabbit p1 system bin ln...

Страница 36: ...ng by reading the binary file which can greatly simplify the time of project development This manual describes how to use the binary file to speed up the development of the project Hardware Orange Pi...

Страница 37: ...rnel source code tools Tools of project compilation build sh compilation script 2 Compile Project Source Code You need to compile the entire project while it is your first time to use the source code...

Страница 38: ...prompt the choice of the chip as shown below for OrangePi select sun50iw2p1 At this point the system will be prompted to select the platform as shown below for OrangePi select Android At this point th...

Страница 39: ...n the directory libs lichee out sun50iw2p1 android common lib modules 3 10 65 Download image from official website http www orangepi org downloadresources Write the image sudo dd bs 4M if img of dev s...

Страница 40: ...library which generated after compilation to the second partition rootfs partition We would suggest using compilation system on github of official website build sh Execute script into the graphical in...

Страница 41: ...anual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 41 Enter password of root Update Kernel directory and module Select corresponding file directory and update uImage...

Страница 42: ...ode Compilation Hardware Orange Pi development board 1 Card reader 1 TF card 1 power supply 1 Software Linux host computer which hard disk space at least 50G to meet a fully compiled need Linux host c...

Страница 43: ...t PATH PATH JAVA_HOME bin export CLASSPATH JAVA_HOME lib export JRE_HOME JAVA_HOME jre Command line input Jav and press tab to see whether it can auto completion Java which indicates it can successful...

Страница 44: ...n Android SDK Tool chain is on lichee brandy gcc linaro of Android SDK already exist 5 Compile Lichee Source Code There are Android and Lichee after unzipped the package enter the directory of Lichee...

Страница 45: ...ww orangepi org www xunlong tv 45 lunch dolphin_fvd_p1 eng Select the scheme number extract bsp Copy the kernel and the drive module make The rear values of is for the simultaneous compilation process...

Страница 46: ...age Copy the generated image file i to the SD card switch to the windows operating system Programming software download website http www orangepi org downloadresources Download the compressed package...

Страница 47: ...ge Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 47 Insert the TF card with written image to OrangePi turn on the computer then you could enter to Android sy...

Страница 48: ...8iw7p1 configs dolphin p1 sys_config fex Copy the file to the directory of lichee use command cd lichee cp tools pack chips sun8iw7p1 configs dolphin p1 sys_config fex You could personalized configura...

Страница 49: ...uld be tv out after booted Capacitance touch panel capacitor tp Configuration Item Configuration Meaning ctp_used xx Whether turn on capacitance touch panel if so set the value as 1 and vice verso 0 c...

Страница 50: ...nt_port port PH21 6 default ctp_wakeup port PB13 1 default default 1 ctp_io_port port PH21 0 default Note If you want to support the new capacitive touch IC you need to combine the configuration of th...

Страница 51: ...opment In order to help developers become more familiar with OrangePi this manual describes how to use simple device driver modules and applications on the development board Hardware Orange Pi develop...

Страница 52: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 52 2 Driver Program OrangePi_misc c...

Страница 53: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 53...

Страница 54: ...by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 54 2 Compile device driver Copy the OrangePi_misc c to the lichee linux 3 4 driver misc directory Enter to lichee linux 3 10 driver...

Страница 55: ...kernel configuration making menuconfig it read from the Kconfig config menu and the user configuration saved to the config In the kernel compile the main Makefile by calling this Config could know th...

Страница 56: ...en written image if the SD card system is mounted to the directory dev SDB SD card will have two sub mount points respectively are dev sdb1 and dev sdb2 Two partition of SD card will automatically mou...

Страница 57: ...tv 57 While compiling the application you will fill that you need the cross compiler arm linux gnueabihf gcc download and install it Unzip the downloaded file and enter the the directory Check the inf...

Страница 58: ...the application with cross compiler arm linux gnueabihf gcc app c o aq There will be an ap application generated in the directory copy it to the development board file system on the rootfs directory...

Страница 59: ...g www xunlong tv 59 lsmod To check whether it is loaded ll dev orangepimisc Miscellaneous equipment automatically generated device files the specific look at the driver code Executive application note...

Страница 60: ...by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 60 VII Using Debug tools on OrangePi Hardware Orange Pi development board 1 Card reader 1 TF card 1 power supply 1 TTL to USB cable...

Страница 61: ...The host computer using different serial debugging tools are similar basically can reference with the following manual for deployment There are a lot of debugging tools for Windows platform the most...

Страница 62: ...epi org www xunlong tv 62 Unzip and install Open program after installed as shown below 3 Connecting method Use the TTL to the serial port cable one end connected to OrangePi the other end connected t...

Страница 63: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 63 Click on the device manager to check the port number...

Страница 64: ...t should set to the corresponding port number COM5 the speed should set to 115200 6 Serial Debug Port Power on and boot OrangePi the serial port will automatic print debug log 2 Operation Steps on Lin...

Страница 65: ...Install the Kermit by execute command sudo apt get install ckermit Configurate Kermit sudo vi etc kermit kermrc Add lines set line dev ttyUSB1 set speed 115200 set carrier watch off set handshake none...

Страница 66: ...gepi org www xunlong tv 66 2 Connecting method Use the TTL to the serial port cable one end connected to OrangePi the other end connected to PC 3 Equipment information acquisitio Input command in the...

Страница 67: ...n from the figure that TTL to the serial port cable is identified as ttyUSB0 configure the ect kermit kermitc file update the serial port information sudo vi etc kermit kermitc Set the value of setlin...

Страница 68: ...Orange Pi Manual Copy right by Shenzhen Xunlong Software Co Ltd www orangepi org www xunlong tv 68 Power on and boot OrangePi the serial port will automatic print debug log...

Отзывы: