background image

Orange Pi User Manual

Shenzhen Xunlong Software Co., Ltd.

www.orangepi.org

I

www.xunlong.tv

Orange Pi RK3399

User Manual

Содержание RK3399

Страница 1: ...Orange Pi User Manual Shenzhen Xunlong Software Co Ltd www orangepi org I www xunlong tv Orange Pi RK3399 User Manual...

Страница 2: ...w orangepi org II www xunlong tv History Ver Data Author Brief Publish Memo 1 1 2017 07 14 Younix Create Document 2018 1 31 1 2 2018 02 01 Younix Update Compilation of Android SDK in chapter 3 2018 3...

Страница 3: ...package 9 2 Construct Compilation Environment 9 3 Compilation of SDK Source Code 10 4 Generated Firmware 11 IV Android Firmware Flashing 12 1 Flashing image on Windows 13 2 Flashing image on Linux 15...

Страница 4: ...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 RK3399 is open source 3 Whom is it for Orange Pi RK33...

Страница 5: ...etail color optimization PMU RK808 PMU BQ25700 Charger IC CW2015 Fuel Gas Memory 2GB DDR3 Storage 16GB High Speed eMMC MicroSD TF Card Slot miniPCIe for LTE mSATA mSATA interface Wireless Integrated W...

Страница 6: ...PCIe 1 x Mini PCIe Compatible USB used for LTE or TF Card Compatible mSATA used for expand SATA harddisk or SSD SIM 1 x SIM slot use as LTE module for miniPCIe extension USB 4 x USB2 0 HOST 1 x USB3 0...

Страница 7: ...er Manual Shenzhen Xunlong Software Co Ltd www orangepi org 4 www xunlong tv OS Software OS Android 6 0 Debian 9 Programming support C C Kotlin Java Shell Pyhon Interface definition Size 129 mm 99 mm...

Страница 8: ...xunlong tv 5 GPIO Specifications The following is GPIO Pin of Orange Pi RK3399 PIN1 3V3 1 Power 3 3V PIN2 5V 1 Power 5V PIN3 SDA GPIO1_B3 I2C4_SDA Default used as I2C PIN4 5V 2 Power 5V PIN5 SCL GPIO1...

Страница 9: ...A2 PIN17 3V3 2 Power 3 3V PIN18 GPIO24 GPIO2_A3 PIN19 MOSI GPIO1_A7 SPI1_RXD PIN20 GND6 Ground PIN21 MISO GPIO1_B0 SPI1_TXD PIN22 GPIO25 GPIO2_C3 UART0_RTS PIN23 SCLK GPIO1_B1 SPI1_CLK PIN24 CS0 GPIO1...

Страница 10: ...IN33 GPIO13 GPIO2_A6 Default used as HDMIIN_PWREN PIN34 GND8 Ground PIN35 GPIO19 GPIO2_A7 I2C7_SDA PIN36 GPIO16 GPIO2_B1 SPI2_RXD I2C6_SDA Default used as HDMIIN_PWREN18 PIN37 GPIO26 GPIO2_B0 I2C7_SCL...

Страница 11: ...tails https source android com source building 2 Software Requirement Orange Pi RK3399 SDK Orange Pi RK3399 Firmware Android image flash tool 3 Power Supply Requirement There are three methods for pow...

Страница 12: ...tion Environment It could also refer to Google file http source android com source initializing html Install JDK Compilation of Android6 0 is based on JAVA7 it needs to first install OpenJDK before co...

Страница 13: ...ngcrush schedtool libxml2 libxml2 utils xsltproc lzop libc6 dev schedtool g multilib lib32z1 dev lib32ncurses5 dev lib32readline gplv2 dev gcc multilib libswitch perl The relevant software package for...

Страница 14: ...9 orangepi img j4 Android Compilation source build envsetup sh lunch rk3399_mid userdebug make j4 4 Generated Firmware mkimages sh After execute mkimages sh it will generate a full firmware package on...

Страница 15: ...images generated uboot img recovery img trust img kernel img resource img system img usually used for debug One image generated into update img with packing tool from several partition image files us...

Страница 16: ...AndroidTool you could use it for multi partition image flashing or one image file update img Before image writing we need to first install RK USB driver on Windows 1 Install RK USB Driver Download pat...

Страница 17: ...ebug pin Insert DC power supply Since OrangePi RK3399 supports powered by TypeC power voltage on USB of PC is enough for flashing image However it may not enough to support Orange Pi booting In that c...

Страница 18: ...Upgrade Firmware select path of update img After it recognized LOADER device click Upgrade and it will begin to upgrade The right side would show the status of flashing 2 Flashing image on Linux 1 Fla...

Страница 19: ...ly to make sure the Orange Pi could boot successfully after flashed image There would be log information if you connect debug pin Run upgrade_tool on terminal of Linux sudo upgrade_tool List of rockus...

Страница 20: ...p b k s r m image parameter file The first parameter is used to specify the partition name that needs to be flashed The second parameter is used to specify the path of the flashed image For example t...

Страница 21: ...sh you could also try the following Compile part of the firmware of kernel it will generated kernel img and resource img make j2 rk3399 orangepi img enter into Loader mode with adb command adb shell r...

Страница 22: ...19 www xunlong tv 4 Wait a moment then release the metal tweezers 5 Use a micro USB Type C cable to connect device and host PC 6 Device should enter MASKROM mode It would show the following with Andr...

Страница 23: ...orangepi org 20 www xunlong tv It would show the following if use upgrade_tool on Linux It would be re flash the image with uf command Principle It would clean data on flash if short connect pin and...

Страница 24: ...Google file http source android com source initializing html 3 Install Software Package For Ubuntu16 04 sudo apt get update sudo apt get install git core gitk git gui gcc arm linux gnueabihf u boot t...

Страница 25: ...ootfs what have already compiled just like the following which could be used directory Ubuntu16 04 Desktop version ubuntu desktop img Ubuntu16 04 Server version ubuntu server img Ubuntu16 04 LXDE vers...

Страница 26: ...the unity full firmware system img on the directory of out 5 Flash Linux Firmware Flash the full Linux firmware into eMMC 1 Short circuit connecting with Clk and GND of EMMC connect DC power supply e...

Страница 27: ...resents path of image You could also flash different partitions separately for example Separate flashing boot build flash_tool sh c rk3399 p boot i out boot img Separate flashing uboot build flash_too...

Страница 28: ...s Source Code Package Take example for Ubuntu16 04 We could get SDK from Ubuntu cdimage http cdimage ubuntu com ubuntu base releases 16 04 release Dowload ubuntu base 16 04 1 base arm64 tar gz and unz...

Страница 29: ...sswd root exit Rootfs exit 4 Make Rootfs Image Generate spare image file dd if dev zero of ubuntu desktop img bs 1M count 2048 Format image file into ext4 format sudo mkfs ext4 ubuntu desktop img Load...

Отзывы: