Banana Pi BPI-M1

From wiki.openedev
Jump to: navigation, search

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

Board Info

Mainline Support

U-Boot

Supported, use Bananapi target

Linux Kernel

Supported, use sun7i-a20-bananapi dts

Buildroot

WIP?

Manual Build

  • Export arm cross-tool

U-Boot

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

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=arm make imx_v6_v7_defconfig
 bash> ARCH=arm make zImage 
  • Build DTB
 bash> ARCH=arm make dtbs
 Once build done, arch/arm/boot/zImage and arch/arm/boot/dts/sun7i-a20-bananapi.dtb

Tiny Rootfs

SD Write

Buildroot BSP