Xunlong OrangePi Prime

From wiki.openedev
Jump to: navigation, search

This tutorial will show the details of Xunlong OrangePi Prime board mainline support and other needed details

Board Info

Mainline Support


Supported, use orangepi_prime target

Linux Kernel

Done, use sun50i-h5-orangepi-prime dts



Manual Build

AARCH64 Firmware (ATF)

  • Build ATF
 bash> cd /to/path
 bash> git clone https://github.com/apritzel/arm-trusted-firmware.git
 bash> git checkout -b allwinner origin/allwinner
 bash> make PLAT=sun50iw1p1 bl31

 Once build done, find bl31.bin under release
  • Export the ATF bin
 bash> export BL31=/to/path/arm-trusted-firmware/build/sun50iw1p1/release/bl31.bin


  • Build Mainline U-boot
 bash> git clone git://git.denx.de/u-boot.git
 bash> cd u-boot
 bash> make orangepi_prime_defconfig
 Once build done, find sunxi-spl.bin and u-boot.itb

Linux Kernel

  • Build Mainline Linux from -next
 bash> git clone git://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
 bash> cd linux-next
 bash> ARCH=arm64 make defconfig
 bash> ARCH=arm64 make Image 
  • Build DTB
 bash> ARCH=arm make dtbs
 Once build done, arch/arm/boot/Image and arch/arm64/boot/dts/allwinner/sun50i-h5-orangepi-prime.dtb

Tiny Rootfs

SD Write

Buildroot BSP