• sales

    +86-0755-88291180

Banana Pi BPI-M2 Berry User Guide

Introduction

Banana Pi BPI-M2 Berry is a quad-core mini single board computer built with Allwinner V40 SoC. It features 1GB of RAM . It also has onboard WiFi and BT. On the ports side, the BPI-M2 Ultra has 4 USB A 2.0 ports, 1 USB OTG port, 1 HDMI port, 1 audio jack, and last but not least, a SATA port..

Also being a member of the Banana Pi family, the M2 Berry is a direct upgrade from the Banana Pi M1/M1+ that support SATA from the SoC. The SATA performance on the V40 is fitting for media related projects such as storage servers. Backed by our community, starting a project and building servers is fun and rewarding. We welcome all companies, DIYers, and tech loving people within our community! Together, we can make a difference, we can discover our passions, inspire others, and build a practical project.

all size is same as raspberry pi 3,so you can use raspberry pi 3 case for BPI-M2 Berry.

Key Features

  • Allwinner R40/V40 Quad Core ARM Cortex A7 CPU
  • 1GB DDR3 SDRAM.
  • WiFi (AP6212) & Bluetooth onboard.
  • SATA Interface.
  • 4*USB 2.0
  • MIPI DSI ingerface
  • CSI camera interface

Getting Start

Hardware

Hardware interface


Hardware spec

HardWare Specification of Banana pi BPI-M2 Berry
SocAllwinner R40/V40
CPUquad-core cortex -A7,the most power efficient CPU core ARM's ever development
GPUdual-core MALI-400 MP2 and runs at 500MHz, capable of 1.1 Gpixel/s throughput. Graphics capabilities are slightly higher than the original Xbox’s level of performance. The GPU provides OpenGL ES 2.0, hardware-accelerated OpenVG, 1080p45 H.264 high-profile encode and decode.
SDRAM1GB DDR3 with 733MHz\(shared with GPU\)
SATAsuppoort SATA interface
GPIO40 Pins Header, 28×GPIO, some of which can be used for specific functions including UART, I2C, SPI, PWM, I2S.
On board Network10/100/1000Mbps Ethernet \(Realtek RTL8211E/D\)
Wifi ModuleWiFi 802.11 b/g/n \(AP 6212 module on board\)
BluetoothBT4.0
On board StorageMicroSD \(TF\) card,No eMMC onboard
Display4-lane MIPI DSI display,or RGB panel or LVDS panel,TV-out on HDMI V1.4
VideoMulti-format FHD video decoding, including Mpeg1/2, Mpeg4, H.263, H.264, etc H.264 decode up to 1080P60,support video encodeing:High-deinition\(HD\)H.264 video encoder is up to 1080P@45fps
Audio outputsHDMI, analog audio \(via 3.5 mm TRRS jack\), I2S audio \(also potentially for audio input\)
CameraA CSI input connector Camera:Supports 8-bit YUV422 CMOS sensor interface,Supports CCIR656 protocol for NTSC and PAL,Supports 5M pixel camera sensor ,Supports video capture solution up to 1080p@30fps
Audio inputOn board microphone
USB4 USB 2.0 host, 1 USB 2.0 OTG
ButtonsReset button, Power button, U-boot button
LedsPower status Led and RJ45 Led
IRNo onboard IR receiver
DC Power5V/2A with micro USB port
batteryNo 3.7V lithium battery power support
Sizes85mmX56mm,same size as raspberry pi 3
Weight40g

GPIO PIN define

Banana Pi BPI-M2 Berry has a 40-pin GPIO header that matches that of the Model Raspberry Pi 3. Following is the Banana Pi GPIO Pinout:

40 PIN GPIO of Banana pi BPI-M2 Ultra
GPIO Pin NameDefault FunctionFunction2:GPIOFunction3
CON1-P01VCC-3V3
CON1-P02DCIN
CON1-P03TWI2-SDAPB21PWM5
CON1-P04DCIN
CON1-P05TWI2-SCKPB20PWM4
CON1-P06GND
CON1-P07PB3PB3PWM1
CON1-P08UART2-TXPI18SPI1\_MOSI
CON1-P09GND
CON1-P10UART2-RXPI19SPI1\_MISO
CON1-P11UART7-TXPI20
CON1-P12UART2-CTSPI17SPI1\_CLK
CON1-P13UART7-RXPI21PWM3
CON1-P14GND
CON1-P15PH25PH25CSI1-FIELD
CON1-P16UART2-RTSPI16SPI1\_CS0
CON1-P17VCC-3V3
CON1-P18PH26PH26CSI1-HSYNC
CON1-P19SPI0\_MOSIPC0
CON1-P20GND
CON1-P21SPI0\_MISOPC1
CON1-P22PH27PH27CSI1-VSYNC
CON1-P23SPI0\_CLKPC2
CON1-P24SPI0\_CSPC23
CON1-P25GND
CON1-P26PH24PH24CSI1-PCLK
CON1-P27TWI3-SDAPI1
CON1-P28TWI3-SCKPI0
CON1-P29PH0PH0CSI1-D0
CON1-P30GND
CON1-P31PH1PH1CSI1-D1
CON1-P32PD20PD20CSI1-MCLK
CON1-P33PH2PH2CSI1-D2
CON1-P34GND
CON1-P35PH3PH3CSI1-D3
CON1-P36UART5-RXPH7CSI1-D7
CON1-P37UART4-TXPH4CSI1-D4
CON1-P38UART5-TXPH6CSI1-D6
ON1-P39GND
CON1-P40UART4-RXPH5CSI1-D5

CSI Camera Connector specification:

The CSI Camera Connector is a 24-pin FPC connector which can connect external camera module with proper signal pin mappings. The pin definitions of the CSI interface are shown as below. This is marked on the Banana Pi board as “Camera”.

CSi Camera connector GPIO of Banana pi BPI-M2 Ultra
CSI Pin NameDefault FunctionFunction2:GPIO
CN5-P01NC
CN5-P02GND
CN5-P03CSI0-SDAPI3
CN5-P04CSI0-AVDD
CN5-P05CSI0-SCKPI2
CN5-P06CSI0-ResetPI7
CN5-P07CSI0-VSYNCPE3
CN5-P08CSI0-PWDNPI6
CN5-P09CSI0-HSYNCPE2
CN5-P10CSI0-DVDD
CN5-P11CSI0-DOVDD
CN5-P12CSI0-D7PE11
CN5-P13CSI0-MCLKPE1
CN5-P14CSI0-D6PE10
CN5-P15GND
CN5-P16CSI0-D5PE9
CN5-P17CSI0-PCLKPE0
CN5-P18CSI0-D4PE8
CN5-P19CSI0-D0PE4
CN5-P20CSI0-D3PE7
CN5-P21CSI0-D1PE5
CN5-P22CSI0-D2PE6
CN5-P23GND
CN5-P24CSI0-AFVCC

Display specification

MIPI DSI \(Display Serial Interface\)

The display Connector is a 40-pin FPC connector which can connect external LCD panel \(MIPI DSI\) and touch screen \(I2C\) module as well. The pin definitions of this connector are shown as below. This is marked on the Banana Pi board as “DSI”.

40 PIN GPIO of Banana pi BPI-M2 Ultra
DSI Pin NameDefault FunctionFunction2:GPIO
CN6-P01VCC-3V3
CN6-P02IPSOUT
CN6-P03VCC-3V3
CN6-P04IPSOUT
CN6-P05GND
CN6-P06IPSOUT
CN6-P07GND
CN6-P08IPSOUT
CN6-P09NC
CN6-P10GND
CN6-P11NC
CN6-P12DSI-D0N
CN6-P13NC
CN6-P14DSI-D0P
CN6-P15NC
CN6-P16GND
CN6-P17TWI0-SDAPB19
CN6-P18DSI-D1N
CN6-P19TWI0-SCKPB18
CN6-P20DSI-D1P
CN6-P21CTP-INTPI10
CN6-P22GND
CN6-P23CTP-RSTPI11
CN6-P24DSI-CKN
CN6-P25GND
CN6-P26DSI-CKP
CN6-P27LCD-BL-ENPH16
CN6-P28GND
CN6-P29LCD-RSTPH17
CN6-P30DSI-D2N
CN6-P31LCD-PWR-ENPH18
CN6-P32DSI-D2P
CN6-P33GND
CN6-P34GND
CN6-P35LCD-PWMPB2
CN6-P36DSI-D3N
CN6-P37GND
CN6-P38DSI-D3P
CN6-P39NC
CN6-P40GND

UART specification:

The header CON4 is the UART interface. For developers of Banana Pi, this is an easy way to get the UART console output to check the system status and log message.

CON4 Uart GPIO of Banana pi BPI-M2 Ultra
CON2 Pin NameDefault FunctionGPIO
CON2 P03UART0-TXD
CON2 P02UART0-RXD
CON2 P01GND

Software

TinaLinux

Allwinner Tina-IoT os for BPI-M2 Ultra/BPI-M2 Berry

Development

Basic Development

Resources

Allwinner V40 datasheet
Allwinner R40 datasheet
Allwinner R40 User Manual v1.0
axp221s PMU datasheet

Image Release

Android 6.0

  • 2017-08-25 update
  • HDMI-Version
Google Drive : https://drive.google.com/open?id=0B_YnvHgh2rwjMlVUN2ZGcHIwdUE
Baidu Cloud : MD5: c65fa4c20b8a6d2d05bfd32b090c3570
  • LCD5-Version
Google Drive : https://drive.google.com/open?id=0B_YnvHgh2rwjWGRVay1va1oyWDg
Baidu Cloud : MD5:f664e5fe0af20ebfc06ddc50bac1845b
  • LCD7-Version
google Drive : https://drive.google.com/open?id=0B_YnvHgh2rwjSHduUmRhSXR2Wlk
baidu Cloud : MD5: 6cda3453d9524643c8f92fcdc8deb32f

Ubuntu

  • 2022-04-16 Banana Pi new image: Ubuntu 16.04 with Allwinner BSP, use MPV play 1080P video,Allwinner BSP kernel 3.4 , BPI-M2 Ultra/Berry use kernel 3.10
google driver: https://drive.google.com/drive/folders/1DEO7JdMfDhHynC83K7JMxgnNxf1gV82S
discuss on forum: https://forum.banana-pi.org/t/banana-pi-new-image-ubuntu-16-04-with-allwinner-bsp-use-mpv-play-1080p-video/13272
  • 2020-04-19 update, kernel 3.10.108
Ubuntu 16.04 mate desktop Download
Ubuntu 16.04 server Download
  • 2019-05-13 update banana pi M2U board which is based on A40I, R40, V40, and it is based on Ubuntu 16.04 & Raspbian 9 & Debian 9 Operation system with kernel 3.10.108
BPI-M2U Ubuntu 16.04 Features Map: https://www.spotpear.com/index.php/index/study/detail/id/683.html
Desktop images:
Google Drive : https://drive.google.com/open?id=1TpRMMcm50kQTXOOLXp65npTWovd7jCYc
Baidu Drive : https://pan.baidu.com/share/init?surl=-8nAN7RXVqVbJg3CUQnRzQ (PinCode:fnpt)
MD5 : cde8fd1165b54c633bcc5288e8447c2b
Server images:
Google Drive : https://drive.google.com/open?id=1vcuIpQ7O2SFB3cZ4UemOqR2hQkxHy3RF
Baidu Drive : https://pan.baidu.com/s/18Cp7zeuHxa82z5OU_tV_oQ(PinCode:qat4)
MD5 : 07981887a7a21f5cda72ab8a1e37a834
Forum pthread : http://forum.banana-pi.org/t/bpi-m2u-berry-new-image-release-ubuntu-16-04-raspbian-9-4-debian-9-4-2019-05-13/9225


  • 2018-01-04 update BPI-M2 Ultra/Berry Ubuntu 16.04 image
Google Drive : https://drive.google.com/file/d/1G4Ggkne63ofD51Yt2c-x5-qy9h7BgY4_/view?usp=sharing
baidu cloud : https://pan.baidu.com/s/1cFHYGY1
MD5: a61e6f66a5ea2288fff0c3acff12d633
  • 2017-11-13 update
Google Drive : https://drive.google.com/file/d/19PI9yuL9iFa4bU6dh7ym3tcCHhjAh-cM/view?usp=sharing
baidu cloud : https://pan.baidu.com/s/1nvccOlz
MD5: 4655b896a3c4e1958a15bb8ca45ac4fe
forum pthread : https://forum.banana-pi.org/t/bpi-m2-ultra-bpi-m2-berry-new-image-2017-11-13-ubuntu-16-04-mate-desktop-beta2-bpi-m2u-sd-emmc-img/4182

Debian

  • 2020-04-19 update, kernel 3.10.108
Debian 9 stretch mate desktop Download
Debian 9 stretch lite Download
  • 2019-05-13 update banana pi M2U board which is based on A40I, R40, V40, and it is based on Ubuntu 16.04 & Raspbian 9 & Debian 9 Operation system with kernel 3.10.108
BPI-M2U Debian 9 Features Map: https://www.spotpear.com/index.php/index/study/detail/id/683.html
Desktop images :
Google Drive :
Baidu Drive : https://pan.baidu.com/s/1ZqDZT4dOQNyvsu0nT4oMTg
 (PinCode:kshd)
MD5 : 7e5d848f804bc5ffb8854a93d7488694
Server images:
Google Drive : https://drive.google.com/open?id=1aoB8mGwSveNztB-EO_fBKLOr-GdzcMNV
Baidu Drive : https://pan.baidu.com/s/1V0djGvUR7QJFMeAgZV86zg
 (PinCode:e0t6)
MD5 : b7314d444dc13a40e1dd7b1602436f40
Forum pthread : http://forum.banana-pi.org/t/bpi-m2u-berry-new-image-release-ubuntu-16-04-raspbian-9-4-debian-9-4-2019-05-13/9225
  • 2017-11-13 update debian-9-stretch-mate-desktop
Google Drive : https://drive.google.com/file/d/0B_YnvHgh2rwjeTh4TmlnMGl5X3M/view?usp=sharing
baidu cloud : https://pan.baidu.com/s/1c1LvS1y
MD5: 0a1fad281c24902148b16276a79bac12
  • 2017-11-13 update debian-9-stretch-lite
Google Drive: https://drive.google.com/file/d/0B_YnvHgh2rwjOWg1OW9heWZsYm8/view?usp=sharing
baidu cloud: https://pan.baidu.com/s/1c3zxCy
 13
MD5: cff677aa94ca5345fc6e26379cfe4e95

Rasbian

  • 2020-04-19 update, kernel 3.10.108
Raspbian stretch Download
  • 2019-05-13 update banana pi M2U board which is based on A40I, R40, V40, and it is based on Ubuntu 16.04 & Raspbian 9 & Debian 9 Operation system with kernel 3.10.108
BPI-M2U Raspbian 9 Features Map: https://www.spotpear.com/index.php/index/study/detail/id/683.html
Desktop image :
Google Drive : https://drive.google.com/open?id=16bDXcoKycZSGQgzh-L3bQYBpEs8HtRZF
Baidu Drive : https://pan.baidu.com/s/115a-o-qKxI3YDkEAdmGevQ
 (PinCode:6hxx)
MD5 : f7ee24ff15654724e2c7ec3bf72c8506
Forum pthread : https://forum.banana-pi.org/t/bpi-m2u-berry-new-image-release-ubuntu-16-04-raspbian-9-4-debian-9-4-2019-05-13/9225
  • 2018-05-24 update Raspbian jessie 8.0 V1.1
Google Drive : https://drive.google.com/file/d/0B_YnvHgh2rwjRGlUMUdqZk5ETDg/view?usp=sharing
baidu cloud : https://pan.baidu.com/s/1UnMPtGBNp3-8KHDZPhVOUg
forum pthread : https://forum.banana-pi.org/t/banana-pi-bpi-m2u-berry-new-image-release-raspbian-jessie-8-0-2018-5-24/5812
  • 2017-05-25 update raspbian jessie
Google Drive : https://drive.google.com/file/d/0B_YnvHgh2rwjRGlUMUdqZk5ETDg/view?usp=sharing
baidu cloud : https://pan.baidu.com/s/1civq4e
MD5: 60e19ea9138d6841fa6852ece4727b0a
forum pthread : https://forum.banana-pi.org/t/banana-pi-bpi-m2-ultra-bpi-m2-berry-new-image-2017-05-25-raspbian-jessie-preview3-bpi-m2u-sd-emmc-img/3306

Armbian

  • Armbain have support BPI-M2 Ultra/BPI-M2 Berry,Armbian Bionic btea and Armbian Stretch beta version
image download : https://www.armbian.com/bananapi-m2u/
Boot logs : http://ix.io/1kVQ
Forum pthread : https://forum.banana-pi.org/t/bpi-m2-ultra-bpi-m2-berry-new-image-armbian-bionic-and-stretch/6573

Tina IoT Linux

  • BPI-M2 Ultra / BPI-M2 Berry support Allwinner TinaLinux .
more please see : Tina Linux


RPiTC v3 1.12

  • 2017-11-28 updtae
  • RPiTC v3 1.12 for Banana Pi (BPI-M2U/BPI-M2B/BPI-M2P/BPI-M3/BPI-M64/BPI-R2): Download link

Others