香蕉派BPI-M5教程

BPI-M5 Introduction

Banana Pi BPI-M5 is the next generation single board computer from Banana Pi in 2020. It is powered by Amlogic S905X3 quad-core Cortex-A55 (2.0 XXGHz) processor.Onboard 4GB LPDDR4 memory and 16GB EMMC storage, and supports 4 USB 3.0 interface, a gigabit network port.

Key Features

  • Amlogic S905X3 quad core Cortex-A55 (2.0xxGHz)
  • Mali-G31 GPU
  • 4GB LPDDR4
  • 16GB eMMC flash
  • 4 USB 3.0
  • 1 GbE ethernet
  • HDMI output

Getting Start

Hardware spec

HardWare Specification of Banana pi BPI-M5
CPUAmlogic S905X3 Quad-Core Cortex-A55 (2.0xxGHz)
GPUMali-G31 MP2 GPU with 4 x Execution Engines (650Mhz)
Memory4 GB LPDDR4
StorageMicroSD slot with support for up to 256GB expansion and 16G eMMC flash with support for up to 64GB
Network10/100/1000 Mbit/s Ethernet ,Optional WiFi USB dongle
Video Output(s)1 x HDMI 2.0 (up to 4K@60Hz with HDR, CEC, EDID)
Audio Output(s)3.5mm jack and 1 x HDMI digital output
USB portsUSB 3.0 PORT (x4)
GPIO40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND). GPIO pins can be used for UART, I2C, SPI or PWM
SwitchesReset, Power and U-boot
LEDPower Status and Activity status
Power Source5 volt @3A via Micro USB (TYPE C)
Size & Weight92x60mm, 48g
OSAndroid and Linux

Wifi & BT support via expansion board

SDIO interface Wifi&BT

  • WiFi&BT board, 802.11 a/b/g/n/ac 2T2R WiFi and Bluetooch 5.0 , support BPI-M5 and BPI-F2P

standard USB interface Wifi&BT

  • Banana Pi Wifi&BT 4.2 expansion Board, standard USB interface, so support all open source boards via USB port.IEEE 802.11b/g/n/ac(1T1R) USB WLANAnd BT Module


BPI-M2 Pro VS BPI-M5 VS Odroid C4 VS RPI 4

BPI-M2 Pro VS BPI-M5 VS Odroid C4 VS RPI 4
Banana Pi BPI-M5Odroid C4Raspberry Pi 4
ProcessorAmlogic S905X3 Quad-Core Cortex-A55 ARMv8.2-A 64-bit 1.5GHzAmlogic S905X3 Quad-Core Cortex-A55 ARMv8.2-A 64-bit 1.5GHzBroadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
GPUMali-G31 MP2 GPUMali-G31 MP2 GPUBroadcom VideoCore VI
RAM4GB LPDDR4DDR4 4GiB with 32-bit bus width2GB, 4GB or 8GB LPDDR4-3200 SDRAM
Storagemicro SD card slot & 16GB eMMC flash on boardmicro SD card slot , eMMC connector for optionmicro SD card slot, non EMMC
NetworkGbE ,Optional WiFi USB dongleGbEGbE, 2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE
Video Output1 x HDMI 2.1 (up to 4K@60Hz with HDR, CEC, EDID)1 x HDMI 2.1 (up to 4K@60Hz with HDR, CEC, EDID)2 × micro-HDMI 2.0
Audio Output3.5mm jack and 1 x HDMI digital outputOptional SPDIF optical output3.5 mm analogue audio-video jack
DSIN/AN/A2-lane MIPI DSI display port
CSIN/AN/A2-lane MIPI CSI camera port
USBUSB 3.0 x 4 TYPE CUSB 3.0 x 4, 1 x Micro USB 2.0 port (OTG)2 USB 3.0 ports; 2 USB 2.0 ports;
Power5 volt @3A via Micro USB (TYPE C)1 x DC power jack (Outer diameter : 5.5mm, inner diameter : 2.1mm)5V DC via USB-C connector (minimum 3A*)
IRYesYesN/A
GPIO40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND).40 x GPIO pins40-pin GPIO header, populated
ButtonReset, user and U-bootN/AN/A
LEDPower Status and Activity statusPower Status and Activity statusPower Status and Activity status
Dimensions & weight85mm x 56mm, 48g85mm x 56mm 59g88 mm × 58 mm, 46 g
System SupportLinux & AndroidLinux & AndroidLinux & Android

GPIO PIN define

BPI-M5 40PIN GPIO (CON2)

GPIO Pin NameDefault FunctionFunction2Function3
CON1-P01VCC-3V3
CON1-P02VCC5V
CON1-P03GPIOX_17I2C_M2_SDA
CON1-P04VCC5V
CON1-P05GPIOX_18I2C_M2_SCL
CON1-P06GND
CON1-P07GPIOX_5 SDIO_CMD
CON1-P08GPIOX_12UART_A_TX
CON1-P09GND
CON1-P10GPIOX_13UART_A_RX
CON1-P11GPIOX_3 SDIO_D3
CON1-P12GPIOAO_8TDMB_SCLK
CON1-P13GPIOX_4 SDIO_CLK
CON1-P14GND
CON1-P15GPIOX_7 PWM_F
CON1-P16GPIOX_0 SDIO_D0
CON1-P17VCC-3V3
CON1-P18GPIOX_1 SDIO_D1
CON1-P19GPIOX_8 PCM_DIN
CON1-P20GND
CON1-P21GPIOX_9 PCM_DOUT
CON1-P22GPIOX_2 SDIO_D2
CON1-P23GPIOX_11PCM_CLK
CON1-P24GPIOX_10PCM_SYNC
CON1-P25GND
CON1-P26GPIOX_16PWM_E
CON1-P27GPIOA_14I2C_M3_SDA
CON1-P28GPIOA_15I2C_M3_SCL
CON1-P29GPIOX_14UART_A_CTS
CON1-P30GND
CON1-P31GPIOX_15UART_A_RTS
CON1-P32GPIOX_19PWM_B
CON1-P33GPIOX_6 PWM_A
CON1-P34GND
CON1-P35GPIOAO_7TDMB_FS
CON1-P36GPIOH_5 SPDIF_IN
CON1-P37GPIOAO_7I2S_MCLK
CON1-P38GPIOAO_10TDMB_DINSPDIF_OUT
CON1-P39GND
CON1-P40GPIOAO_4TDMB_DOUT

BPI-M5 Debug UART(CON1)

CON2-P1GND
CON2-P2UART0-RX
CON2-P3UART0-TX

Development

Source code

Android

android 9 source code: https://github.com/BPI-SINOVOIP/BPI-S905X3-Android9

https://wiki.banana-pi.org/index.php?title=Getting_Started_with_BPI-M5/M2Pro&redirect=no#Build_Android_Source_Code

Linux BSP source code

Linux BSP source code: https://github.com/BPI-SINOVOIP/BPI-M5-bsp

https://wiki.banana-pi.org/index.php?title=Getting_Started_with_BPI-M5/M2Pro&redirect=no#Build_Linux_Source_Code

Resources

System image

Android

How to flash Android Image
  • 2021-05-20 release, Android 9.0 with kernel 4.9.113, mbox variant ui image
Download: 2021-05-20-bpi-m5-m2pro-mbox-android9-emmc.zip
MD5: dda75a075a5d7572756f57e4a256dffa
  • 2021-05-20 release, Android 9.0 with kernel 4.9.113, tablet variant ui image
Download: 2021-05-20-bpi-m5-m2pro-tablet-android9-emmc.zip
MD5: 27381d5e307034e5c5456b167f67ef75

Linux

How to flash Linux Image

Rasbian

  • BPI-M5 BPI-M2 Pro new image:Rasbian image, 2022-4-09 update, Rasbian image for linux kernel 4.9 and 5.17. support 32bit and 64 bit,please choose the right image
google driver: https://drive.google.com/drive/folders/1oqamIMl5Kmb3LVYMPFw-1tilvwKQI6n-
discuss on forum : https://forum.banana-pi.org/t/bpi-m5-bpi-m2-pro-new-image-rasbian-image-2022-4-09-update/13246

Ubuntu

  • 2021-06-21 release, Ubuntu Mate Desktop 20.04 with kernel 4.9.241
Download: https://download.banana-pi.dev/d/ca025d76afd448aabc63/files/?p=%2FImages%2FBPI-M5%2Fubuntu%2F2021-06-21-ubuntu-20.04-mate-desktop-bpi-m5-m2pro-aarch64-sd-emmc.img.zip
MD5: cd6bc3cb4fba1b83e2e3f63fd49ba15b
  • 2021-06-21 release, Ubuntu Server 20.04 with kernel 4.9.241
Download: https://download.banana-pi.dev/d/ca025d76afd448aabc63/files/?p=%2FImages%2FBPI-M5%2Fubuntu%2F2021-06-21-ubuntu-20.04-server-bpi-m5-m2pro-aarch64-sd-emmc.img.zip
MD5: 5c896c37eaa590cfbb8a6c7a5ba433a0

Debian

  • 2021-06-21 release, Debian Buster with kernel 4.9.241
Download: https://download.banana-pi.dev/d/ca025d76afd448aabc63/files/?p=%2FImages%2FBPI-M5%2Fdebian%2F2021-06-21-debian-10-buster-bpi-m5-m2pro-aarch64-sd-emmc.img.zip
MD5: 4ea1d71a5ba1a8fa743e4c8abbe7569b

Third part image

EmuELEC

CoreELEC

  • CoreELEC 19.2
    coreelec.org official support Bananapi M5 and M2Pro since 19.2-Matrix_rc1
Download: https://coreelec.org/#download
Install Guide: https://coreelec.org/#install
Source Code: https://github.com/CoreELEC/CoreELEC
how to install: https://wiki.coreelec.org/coreelec:bpim2pro

Armbian

Armbian unstable legacy and current build for Bananapi M5 and M2Pro
Google Drive: https://drive.google.com/drive/folders/1Cx_DA90Tbr8_M_8eQd-NwFUOp3UTwhYt
Baidu Cloud : https://pan.baidu.com/s/15y4LNg4K-w0vrwMTcg5VGQ Pincode: j9aj

Volumio

Download:
Google drive: https://drive.google.com/drive/folders/1B7nsy4Jxt2lBgXoA6XEnaamEQvZyHI8f
Baidu cloud : https://pan.baidu.com/s/1mj9OC8P2VSI5GAMnIKGBqA
 PinCode: mrrb
User Guide: https://cdn.volumio.org/wp-content/uploads/2019/01/Quick-Start-Guide-Volumio.pdf
Source code: https://github.com/Dangku/volumio-build
Platform prebuild package: https://github.com/Dangku/volumio-platform-bananapi
Development guilde: https://volumio.github.io/docs/User_Manual/Quick_Start_Guide.html

Odroid Android image

  • Base on Odroid android source code and build for bananapi m5/m2pro
Download:
Google Drive: https://drive.google.com/drive/folders/1u_CddlHvpAMu2VZJfIfUKTsFFyigCWig
Install Guide: https://forum.odroid.com/viewtopic.php?f=204&t=38579

Ubuntu Core 20

Ubuntu Core 20 demo image for bananapi m5/m2pro.
Download:
Google drive: https://drive.google.com/drive/folders/1TdAQ-HdggKrOPmWi0chpHDJY0SMWlUaC
Baidu cloud :
Install Guide: https://ubuntu.com/core/docs/uc20/install

Archlinux

  • Archlinux xfce and minimal demo image, kernel 4.9, image build refer to archdroid.org
login: alarm/alarm, or root/root
Download:
Google drive:https://drive.google.com/drive/folders/1rSSNgbseY2mwTMIauGR1yrXN8RPKzuk6
Baidu link : https://pan.baidu.com/s/1Ck_H51jPUyAv98o73I8oAw
Pincode: rbv2
discuss on forum : https://forum.banana-pi.org/t/bpi-m5-bpi-m2-pro-new-image-archlinux-2021-9-14/12595

HuaWei OpenEuler

  • OpenEuler demo image, bpi kernel 4.9
Download:
Baidu link :https://pan.baidu.com/share/init?surl=2b7q3y-m3YRyD7GwhKE0QA Pincode:lv50
SIG gitee link : https://gitee.com/openeuler/raspberrypi
Discuss on fourm : http://forum.banana-pi.org/

Manjaro for BPI-M5

Manjaro porting for BPI-M5 from Official Image for Odroid C4, the ported image use kernel 5.10. If anyone is interested on give it a try, the download link is below.