BPI-M4-Zero教程

Introduction

Banana Pi BPI-M4 Zero is the successor model of M2 Zero. It has a huge improvement in performance. The SOC is upgraded to H618 and the CPU frequency is increased by 25%. The memory is upgraded to DDR4, the capacity is quadrupled, and 8G eMMC is added. It supports 5G WiFi, and the USB interface has also been upgraded to type-C.

It has same form factor and 40-pin connector as the Raspberry Pi Zero W, and it can fit most of the RPI Zero W cases and accessories.

Key Features

  • Allwinner H618, Quad-core ARM Cortex™-A53 processor
  • ARM Mali G31 GPU
  • 2.4G/5G WIFI & Bluetooth 4.2
  • 2G LPDDR4 RAM
  • 8G eMMC flash memory
  • 1x USB2.0 Type-C OTG, 5V power supply
  • 1x USB2.0 Type-C
  • 1x miniHDMI 2.0a
  • 1x 24-pin FPC connector
    • 1x USB2.0
    • 1x 100Mbps Ethernet

Getting Start

Hardware

Hardware interface


Hardware spec

Hardware Specification of Banana pi BPI-M4 Zero
CPUAllwinner H618, Quad-core ARM Cortex™-A53 processor, 64-bit, up to 1.5GHz
GPUARM Mali G31 GPU
Memory2 GB LPDDR4
Storage8G eMMC flash
SD cardMicroSD card slot, SDIO3.0
Wireless2.4G/5G WiFi and Bluetooth 4.2
HDMI1x miniHDMI 2.0a (up to 4K@60Hz with HDR10, CEC, DDC, SCDC), HDMI digital Audio output
USB1x USB2.0 Type-C HOST, 1x USB2.0 Type-C OTG
40-pin header28 pins GPIO and Power (+5V, +3.3V and GND)
UART, SPI, TWI/I²C, PWM, PCM/I²S
24-pin FPC0.5mm pitch FPC connector, 1x USB2.0, 1x IR, 1x 100Mbps Ethernet
9 pins GPIO, UART,TWI/I²C, PWM, PCM/I²S
ButtonsReset, FEL
LEDPower Status and Activity status
Power5V@3A via USB Type-C
Size65mm × 30mm
Weight

PIN define

BPI-M4 Zero 40-pin header

40-pin header define and GPIO Alternative Functions Assignments
Pin NumPin NameALT0ALT1ALT2ALT3
13.3V
25V
3PG16UART2_RXTWI4_SDA
45V
5PG15UART2_TXTWI4_SCK
6GND
7PG19PWM1
8PG6UART1_TX
9GND
10PG7UART1_RX
11PH2UART5_TXPWM2
12PG11H_I2S2_BCLK
13PH3UART5_RXPWM1
14GND
15PG2
16PG8UART1_RTS
173.3V
18PG9UART1_CTS
19PH7UART2_RTSH_I2S3_LRCKSPI1_MOSI
20GND
21PH8UART2_CTSH_I2S3_DOUT0SPI1_MISOH_I2S3_DIN1
22PG1
23PH6UART2_RXH_I2S3_BCLKSPI1_CLK
24PH5UART2_TXH_I2S3_MCLKSPI1_CS0
25GND
26PH9H_I2S3_DIN0SPI1_CS1H_I2S3_DOUT1
27PG18UART2_CTSTWI3_SDA
28PG17UART2_RTSTWI3_SCK
29PG3
30GND
31PG4
32PG0
33PG5
34GND
35PG12H_I2S2_LRCK
36PH4
37PG10H_I2S2_MCLK
38PG14H_I2S2_DIN0H_I2S2_DOUT1
39GND
40PG13H_I2S2_DOUT0H_I2S2_DIN1

24-pin FPC

24-pin FPC define and GPIO Alternative Functions Assignments
Pin NumPin NameALT0ALT1
1GND
2EPHY_RXN
3EPHY_RXP
4EPHY_TXN
5EPHY_TXP
6GND
7PI9UART3_TXTWI2_SCK
8PI10UART3_RXTWI2_SDA
9PI12UART3_CTSPWM2
10PI11UART3_RTSPWM1
113V3
123V3
13PI4H_I2S0_DIN0H_I2S0_DOUT1
14PI3H_I2S0_DOUT0H_I2S0_DIN1
15PI2H_I2S0_LRCK
16PI1H_I2S0_BCLK
17PI0H_I2S0_MCLK
18GND
19PH10IR_RX
205V
215V
22USB2_DP
23USB2_DM
24GND

BPI-M4 Zero Debug UART

1GND
2UART0_RX
3UART0_TX

Development

Source code

Resources

  • BPI-M4 Zero Allwinner H618 SBC burn Ubuntu desktop image
  • BPI-M4 Zero DXF file
  • BPI-M4 Zero SBC bench test:
  • Allwinner H618 Datasheet
Baidu Cloud: https://pan.baidu.com/s/10Rk4xLMOhIkk-gIoQx9DQw?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1N6oWF9PHTcxXC1JY4x3Malr3twFv2wWZ/view?usp=sharing

System image

Linux

Ubuntu

  • 2023-12-12 Bpi-m4zero_1.0.0_ubuntu_jammy_minimal_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1GCfkl6nNP3aBZytS8G909g?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1qNRjN5O5oOoYPXy0efrTPVZkE8KjbH5K/view?usp=sharing
  • 2023-12-12 Bpi-m4zero_1.0.0_ubuntu_jammy_desktop_xfce_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1DsKB_bOdcKrHSI5pmZV6bg?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1yRkGWEd2uLsXu1WPgBG-FUhDICgte_90/view?usp=sharing

Easy to buy

  • Aliexpress shop
SINOVOIP Aliexpress shop: https://www.aliexpress.us/item/1005006325178305.html
Bipai Aliexpress shop: https://www.aliexpress.us/item/1005006325280213.html
Taobao Shop: https://item.taobao.com/item.htm?spm=a21dvs.23580594.0.0.4fee3d0dOP5VBH&ft=t&id=754939469582
OEM&ODM, please contact: judyhuang@banana-pi.com