Xunlong Orange Pi 2

From linux-sunxi.org
Jump to: navigation, search
Xunlong Orange Pi 2
Xunlong OrangePi2.jpg
Manufacturer OrangePi
Dimensions 93mm x 60mm
Release Date March 2015
Website Orange Pi 2 Product Page
Specifications
SoC H3 @ 1.3 GHz
DRAM 1GiB DDR3 @ 600MHz
NAND no nand available
Power DC 5V @ 2A (via DC input)
Features
Video HDMI output with HDCP, HDMI CEC, HDMI 30 function, Integrated CVBS, simultaneous output of HDMI and CVBS
Audio 3.5 mm Jack and HDMI
Network 10/100Mbps Ethernet(RJ45), wifi(Realtek RTL8189ETV, IEEE 802.11 b/g/n)
Storage TF card(Max 64GB)/MMC card slot
USB 4 USB2.0 Host, 1 USB2.0 OTG
Other IRDA

Orange Pi 2 is H3 based development board produced by Xunlong.

Contents

Identification

The PCB has the following silkscreened on it:

Orange Pi 2


Sunxi support

Current status

The H3 and Orange Pi 2 support is progressing nicely. It is possible to find a usable mainline 4.x kernel (plus some patches) and a legacy 3.4 kernel in various work-in-progress git branches. See the Manual build section for more details.


Manual build

You can build things for yourself by following our Manual build howto and by choosing from the configurations available below.

U-Boot

Mainline U-Boot

Use the orangepi_2 (supported since v2016.05) build target.

The H3 boards can boot from SD, NAND or NOR flash (if available), and via FEL using the OTG USB port. In U-Boot, loading the kernel is also supported from USB or ethernet (netboot). HDMI support in U-Boot is still WIP.

Linux Kernel

Sunxi/Legacy Kernel

The 3.4 kernel from the official Allwinner's git repository does not support H3 yet. But it is possible to use one of the kernel forks, based on the lichee H3 SDK tarball:

Configure this kernel using sun8i_h3_defconfig, the rest is explained in the kernel compilation guide.

Use the .fex file for generating script.bin. The .fex file can be found here for now orangepi2.fex. This was extracted from the android sdcard image.

When booting the legacy 3.4 kernel with the mainline U-Boot, add the following line to boot.cmd:

  setenv machid 1029
  setenv bootm_boot_mode sec

Some other legacy kernel repositories:

Mainline kernel

Pretty decent support for H3 is available in kernel 4.8. The next kernel 4.9 will add support for I2C and PWM. EMAC support is still missing in mainline kernels although the ethernet port is already accessible with recent U-Boot versions.

The development process, links to patches and links to kernel fork repositories are listed on the Linux mainlining effort page. Patches can also be found from the arm-linux mailing list.

Repositories with H3 patches:

Use the sun8i-h3-orangepi-2.dtb device-tree binary.

Tips, Tricks, Caveats

FEL mode

The button marked SW3, located between the HDMI and TTL UART, triggers FEL mode when pressed during boot.

To verify you have successfully entered FEL mode, check the output of fel version. For the Orange Pi 2, it should look like:

AWUSBFEX soc=00001680(unknown) 00000001 ver=0001 44 08 scratchpad=00007e00 00000000 00000000

LEDs

For those with a transparent case (or no case at all) the Orange Pi 2's LED activity is good. The red power LED (D7) can be turned off.

Expansion Ports

The Orange Pi 2 exposes a 2.54mm pitch connector.

Extension Header
1x40 Header
1 3.3V 2 VCC-5V
3 PA12 (TWI0-SDA/DI_RX/EINT12) 4 VCC-5V
5 PA11 (TWI0-SCK/DI_TX/EINT11) 6 GND
7 PA6 (SIM_PWREN/PWM1/PA_EINT6) 8 PA13 (SPI1_CS/UART3_TX/PA_EINT13)
9 GND 10 PA14 (SPI1_CLK/UART3_RX/PA_EINT14)
11 PA1 (UART2_RX/JTAG_CK0/PA_EINT1) 12 PD14(RGMII_NULL/MII_TXERR/RMII_NULL)
13 PA0 (UART2_TX/JTAG_MS0/PA_EINT0) 14 GND
15 PA3 (UART2_CTS/JTAG_DI0/PA_EINT3) 16 PC4 (NAND_CE0)
17 3.3V 18 PC7 (NAND_RB1)
19 PC0 (NAND_WE/SPI0_MOSI) 20 GND
21 PC1 (NAND_ALE/SPI0_MISO) 22 PA2 (UART2_RTS/JTAG_DO0/PA_EINT2)
23 PC2 (NAND_CLE/SPI0_CLK) 24 PC3 (NAND_CE1/SPI0_CS)
25 GND 26 PA21 (PCM0_DIN/SIM_VPPPP/PA_EINT21)
27 PA19 (PCM0_CLK/TWI1_SDA/PA_EINT19) 28 PA18 (PCM0_SYNC/TWI1_SCK/PA_EINT18)
29 PA7 (SIM_CLK/PA_EINT7) 30 GND
31 PA8 (SIM_DATA/PA_EINT8) 32 PG8 (UART1_RTS/PG_EINT8)
33 PA9 (SIM_RST/PA_EINT9) 34 GND
35 PA10 (SIM_DET/PA_EINT10) 36 PG9 (UART1_CTS/PG_EINT9)
37 PA20 (PCM0_DOUT/SIM_VPPEN/PA_EINT20) 38 PG6 (UART1_TX/PG_EINT6)
39 GND 40 PG7 (UART1_RX/PG_EINT7)

Adding a serial port

UART pads

Locating the UART

The UART pins are located on J3 between DC input and Uboot Button(SW3) of the board. They are marked as TX, RX and GND on the PCB. Just attach some leads according to our UART Howto.

Pictures

Variants

  • The original Orange Pi was released in November 2014. The orange pi features a standard TF card slot and a 26 pin GPIO connector (similar to the Raspberry Pi A/B).
  • The Orange Pi Mini was released in November 2014, too. It has two TF card slots and only has 2 USB Host.
  • The Orange Pi Plus was presented in February 2015. It's a new board, and it uses the AllWinner H3 SoC. It Has a 8GB EMMC Flash, Onboard Network(10/100/1000M Ethernet RJ45), Onboard WIFI(Realtek RTL8189ETV, IEEE 802.11 b/g/n), Video Outputs(Supports HDMI CEC, Supports HDMI 3D function, Integrated CVBS, Supports simultaneous output of HDMI and CVBS) and a 40 pin GPIO header (that mimics the Raspberry Pi A+/B+ models).
  • Now Orange Pi 2 and Orange Pi Mini 2 are released in March 2015. They are both based on a quad-core H3 CPU, and offer TF card slot, onboard Network(10/100M Ethernet RJ45), 40 pin GPIO and 4 USB type A connectors. They are difference in onboard wifi. Orange Pi 2 has wifi module, while Orange Pi Mini 2 does not have. However, the two kinds of devices do not have SATA any more.

Also known as

See also

There are several websites about Orange Pi 2 and claiming to support it. It has to be clarified, what is "official" and who is behind this sites.

Currently only an android image for an sdcard is provided via OrangePi's Website.

Personal tools
Namespaces

Variants
Actions
Navigation
Tools