Xunlong Orange Pi Zero Plus 2

From linux-sunxi.org
Jump to: navigation, search
Xunlong Orange Pi Zero Plus 2
OPi Zero Plus 2 Top.jpg
Manufacturer OrangePi
Dimensions 46mm x 48mm
Release Date March 2017
Website Orange Pi Zero Plus 2 Product Page
SoC H3
Power DC 5V via µUSB or pin headers
Video HDMI, CVBS on pin headers
Audio microphone, stereo line-out on pin headers
Network AP6212 Wi-Fi sdio-id:02D0:A9A6
Storage µSD, 8GB eMMC on board
USB 1 USB 2.0 OTG, 2 x USB 2.0 on pin headers
Other CIR on pin headers

This page needs to be properly filled according to the New Device Howto and the New Device Page guide.

Orange Pi Zero Plus 2 and Orange Pi Zero Plus 2 H5 are development boards produced by Xunlong. Orange Pi Zero Plus 2 is based on H3 SoC while the H5 version uses H5.



The PCB has the following silkscreened on it:

Orange Pi Zero Plus 2 V1.0

Sunxi support

Current status

The H3 and Orange Pi Zero Plus 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.


Mainline U-Boot

Use the orangepi_zero_plus2 (H5 version, supported since v2017.07) 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. Partially supported but an Armbian legacy image with nearly full hardware support already exists.

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

The H3 SoC has support in the mainline kernels. For cpufreq, thermal, ethernet, and HDMI, a) third party patches or b) a pre-patched distro (e.g. Armbian) is needed. The ethernet support was planned for kernel 4.13 but it was eventually reverted due to DT stability issues (will be fixed later), although the ethernet port is already accessible with U-Boot.

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:

  • Ondřej Jirman's branch for H3 based orange Pi (kernel 4.13) (work-in-progress DVFS)
    • CPU frequency and voltage scaling (cpufreq)
    • Thermal regulation (if CPU heats above certain temperature, it will try to cool itself down by reducing CPU frequency)
    • Working HDMI driver (v6 patches from moinejf ported to sunxi-ng clk driver)

Use the sun50i-h5-orangepi-zero-plus2.dtb (H5 version) device-tree binary.

Expansion Port

The Orange Pi Zero Plus 2 has a 26-pin, 0.1" unpopulated connector with several low-speed interfaces. It's marketed as Raspberry Pi-compatible. Please refer to the Orange Pi Zero wiki page for now, as the Orange Pi Zero Plus 2 details are still TODO.

The Orange Pi Zero Plus 2 has another 13-pin, 0.1" header with several low-speed interfaces.

TODO: This table was taken from the Orange Pi Zero's wiki page. It's probably the same for the Zero Plus 2. Use at your own risk.

1x13 Header
1 5V
11 MIC1P
12 MIC1N

Tips, Tricks, Caveats

Powering the board

Unlike most other Orange Pi boards, the Orange Pi Zero Plus 2 can be powered through the Micro USB jack (being a normal USB OTG port otherwise) or via one of the Expansion Port pin headers (using 5V/GND pins).

There is no power on/off switch or reboot switch on the board.

FEL Mode


Onboard eMMC

An 8GB onboard eMMC is present and supported by the Armbian image.

Benchmark: iozone -e -I -a -s 100M -r 4k -r 16k -r 512k -r 1024k -r 16384k -i 0 -i 1 -i 2

                                                             random    random
             kB  reclen    write  rewrite    read    reread    read     write
         102400       4     5350     5923    12191    12233     9453     5861
         102400      16    17258    19735    28225    27445    24999    18945
         102400     512    36332    34508    59980    60008    59936    33483
         102400    1024    34079    35472    61459    61508    61546    33952
         102400   16384    36899    36954    67638    67631    67605    36413

Locating the UART

Orange Pi Zero Plus 2 UART pinout

The UART pins are located next to unpopulated 26-pin header on the board. They are marked as TX, RX and GND on the PCB with barely visible letters. Just attach some leads according to our UART Howto.


The board has two LEDs next to DRAM:

  • A green LED, connected to PL10.
  • A red LED, connected to PA17.


vip_dev0_power_en = PA08

USB header

PC case USB port

To make a trivial adapter you can use "pc case usb port" but you will need to rearrange the pins:

1 - 5V - red 2 - GND - black 3 - dm - white 4 - dp - green





Also known as

See also

Manufacturer images


Personal tools