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

U-Boot

Supported, use bananapi_m64 target

Linux Kernel

Done, use sun50i-a64-bananapi-m64 dts

Buildroot

WIP?

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

U-Boot

  • Build Mainline U-boot
 bash> git clone git://git.denx.de/u-boot.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://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-a64-bananapi-m64.dtb

Tiny Rootfs

SD Write

Buildroot BSP