Banana Pi BPI-M64

From wiki.openedev
Jump to: navigation, search

This tutorial will show the details of Bananapi M64 board mainline support and other needed details

Board Info

Mainline Support


Supported, use bananapi_m64 target

Linux Kernel

Done, use sun50i-a64-bananapi-m64 dts



Manual Build

AARCH64 Firmware (ATF)

  • Build ATF
 bash> cd /to/path
 bash> git clone
 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://
 bash> cd u-boot
 bash> make bananapi_m64_defconfig
 Once build done, find sunxi-spl.bin and u-boot.itb

Linux Kernel

  • Build Mainline Linux from -next
 bash> git clone 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-a64-bananapi-m64.dtb

Tiny Rootfs

SD Write

Buildroot BSP