Difference between revisions of "Banana Pi BPI-M4 Berry"

From Banana Pi Wiki
Jump to: navigation, search
(Created page with "zh:香蕉派_BPI-M4_Berry =BPI-M5 Introduction= thumb|[[Banana Pi BPI-M2 Berry A40i-H design]] File:BPI-M2_Pro_2.jpg|thumb|[[Banana...")
 
(Android)
 
(75 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
[[zh:香蕉派_BPI-M4_Berry]]
 
[[zh:香蕉派_BPI-M4_Berry]]
=BPI-M5 Introduction=
+
[[File:Banana_Pi_BPI-M4_Berry_1.jpg|thumb|[[Banana Pi BPI-M4 Berry]] H618 design]]
 +
 
 
[[File:Banana_pi_BPI-M2_Berry_5.JPG|thumb|[[Banana Pi BPI-M2 Berry]] A40i-H design]]
 
[[File:Banana_pi_BPI-M2_Berry_5.JPG|thumb|[[Banana Pi BPI-M2 Berry]] A40i-H design]]
 
[[File:BPI-M2_Pro_2.jpg|thumb|[[Banana Pi BPI-M2 Pro]] S905x3 design]]
 
[[File:BPI-M2_Pro_2.jpg|thumb|[[Banana Pi BPI-M2 Pro]] S905x3 design]]
Line 7: Line 8:
  
 
=Introduction=
 
=Introduction=
The BPI-M4 Berry development board stands as a powerful Single Board Computer (SBC), harnessing the capabilities of the Allwinner H618 System-on-Chip (SoC) to provide developers with impressive performance and a wealth of features. Similar to the Raspberry Pi 4b, the BPI-M4 Berry boasts comparable CPU prowess, LPDDR4 memory support, integrated WiFi and Bluetooth functionalities, and a familiar 40-pin header layout, alongside 4 USB interfaces and a GbE RJ45 port.
 
 
It not only features a standard SD card slot for operating systems but also integrates a high-performance 8GB eMMC flash memory. This enhancement brings forth significantly accelerated system read and write speeds, expediting development and debugging processes, thereby furnishing a more stable and efficient foundation for project endeavors.
 
 
One of the flagship traits of the BPI-M4 Berry development board is its exceptional imaging and decoding capabilities. Equipped with a full-size HDMI 2.0a interface, it supports 4K resolution output at refresh rates of up to 60Hz. This empowers users with remarkable decoding capabilities, accommodating various video formats, including but not limited to, H.265 4K@60fps, 6K@30fps, VP9 4K@30fps, AVS2 4K@60fps, and H.264 4K@30fps. Furthermore, the BPI-M4 Berry also boasts H.264 4K@25fps encoding performance, rendering it an ideal choice for applications encompassing streaming, entertainment, and visual processing.
 
  
The BPI-M4 Berry's design flexibility makes it well-suited for diverse application scenarios within the hardware realm. Its Raspberry Pi-compatible 40-pin header facilitates seamless interfacing with a variety of sensors, expansion boards, and devices. Moreover, the availability of 4 USB interfaces facilitates connection to external peripherals, further extending its utility. The GbE RJ45 interface offers expedient high-speed network connectivity, 2.4G/5G WiFi and Bluetooth meet the communication needs of most mainstream wireless devices, positioning the BPI-M4 Berry as an optimal selection for networking applications and Internet of Things (IoT) projects.
+
BPI-M4 Berry development board stands as a powerful Single Board Computer (SBC), harnessing the capabilities of the Allwinner H618 System-on-Chip (SoC) to provide developers with impressive performance and a wealth of features. Similar to the Raspberry Pi 4b, the BPI-M4 Berry boasts comparable CPU prowess, 2G LPDDR4 memory and 8G eMMC, integrated WiFi and Bluetooth functionalities, and a familiar 40-pin header layout, alongside 4 USB interfaces and a GbE RJ45 port.  
  
The BPI-M4 Berry development board, characterized by its robust performance, versatile features, and remarkable image processing capabilities, stands as an exemplary SBC development platform for professionals within the embedded and computing industries. Equipped with 8GB eMMC flash storage, high-performance decoding and encoding capabilities, and an array of interface options, it caters to a wide spectrum of application domains, including media processing, IoT, and entertainment. Whether catering to novices or seasoned developers, the BPI-M4 Berry development board offers an ideal toolset for realizing creative visions and project objectives.
+
Characterized by its robust performance, versatile features, and remarkable image processing capabilities, stands as an exemplary SBC development platform for professionals within the embedded and computing industries. Equipped with 8GB eMMC flash storage, high-performance decoding and encoding capabilities, and an array of interface options, it caters to a wide spectrum of application domains, including media processing, IoT, and entertainment. Whether catering to novices or seasoned developers, the BPI-M4 Berry development board offers an ideal toolset for realizing creative visions and project objectives.
  
[[File:Banana_Pi_BPI-M5.jpg]]
+
[[File:Banana_Pi_M4-Berry_banner_3.jpg]]
  
 
=Key Features=
 
=Key Features=
* Amlogic S905X3 64-bit Quad core Cortex-A55 (2.0xxGHz)
+
* Allwinner H618, Quad-core ARM Cortex™-A53 processor
* Mali-G31 GPU  
+
* ARM Mali G31 GPU
* 4GB LPDDR4
+
* WIFI & Bluetooth
* 16GB eMMC flash
+
* 2G LPDDR4 RAM
* 4 USB 3.0  
+
* 8G eMMC flash memory
* 1 GbE ethernet
+
* 1x USB2.0 Type-C OTG, 5V power supply
* HDMI output
+
* 4x USB2.0 Type-A
 +
* 1x HDMI 2.0a
 +
* 1x 3.5mm Audio & TVE jack socket
 +
* 1x GbE Ethernet port
  
==Getting Start==
+
=Getting Start=
*[[Getting Started with M5/M2Pro]]
+
*[[Getting Started with BPI-M4 Berry]]
  
 
=Hardware=
 
=Hardware=
 
==Hardware interface==
 
==Hardware interface==
[[File:Banana_Pi_BPI-M5_interface1.jpg]]
+
[[File:BPI-M4 Berry interface.jpg]]
  
 
==Hardware spec==
 
==Hardware spec==
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
| style="background: PaleTurquoise; color: black" colspan="4"| '''HardWare Specification of Banana pi BPI-M5'''
+
| style="background: PaleTurquoise; color: black" colspan="2"| '''Hardware Specification of Banana pi BPI-M4 Berry'''
 +
|-
 +
| CPU || Allwinner H618, Quad-core ARM Cortex™-A53 processor, 64-bit, up to 1.5GHz
 
|-
 
|-
|CPU|| Amlogic S905X3 64-bit Quad-Core Cortex-A55 (2.0xxGHz)
+
| GPU ||ARM Mali G31 GPU
 
|-
 
|-
| GPU||Mali-G31 MP2 GPU with 4 x Execution Engines (650Mhz)
+
| Memory || 2 GB LPDDR4
 
|-
 
|-
| Memory|| 4 GB LPDDR4
+
| Storage || 8G eMMC flash
 
|-
 
|-
| Storage|| MicroSD slot with support for up to 256GB expansion and 16G eMMC flash with support for up to 64GB
+
| SD card || MicroSD card slot
 
|-
 
|-
| Network|| 10/100/1000 Mbit/s Ethernet ,Optional WiFi USB dongle
+
| Wireless || 2.4G/5G WiFi and Bluetooth 4.2
 
|-
 
|-
|Video Output(s)|| 1 x HDMI 2.1 (up to 4K@60Hz with HDR, CEC, EDID)
+
| Ethernet || 1x GbE Ethernet port(supports PoE with add-on PoE HAT)
 
|-
 
|-
| Audio Output(s)|| 3.5mm jack and 1 x HDMI digital output
+
| HDMI || 1x full-size HDMI 2.0a (up to 4K@60Hz with HDR10, CEC, DDC, SCDC), HDMI digital Audio output
 
|-
 
|-
| USB ports|| USB 3.0 PORT (x4)
+
| Audio || 1x 3.5mm Audio & TVE jack socket
 
|-
 
|-
|GPIO|| 40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND). GPIO pins can be used for UART, I2C, SPI or PWM
+
| IR || 1x CIR
 
|-
 
|-
|Switches|| Reset, Power and U-boot
+
| USB || 4x USB2.0 Type-A HOST, 1x USB2.0 Type-C OTG
 
|-
 
|-
| LED|| Power Status and Activity status
+
| rowspan="2" | 40-pin header
 +
| 28 pins GPIO and Power (+5V, +3.3V and GND)
 
|-
 
|-
| Power Source|| 5 volt @3A via Micro USB (TYPE C)
+
| UART, SPI, TWI/I²C, PWM, PCM/I²S
 
|-
 
|-
|Size & Weight|| 85x56 mm, 48g
+
|Buttons|| Reset, FEL and User
 
|-
 
|-
|OS|| Android and Linux
+
| LED || Power Status and Activity status
 +
|-
 +
| Power || 5V@3A via USB Type-C
 +
|-
 +
|Size || 85x56 mm
 +
|-
 +
|Weight || 60g
 
|}
 
|}
  
==BPI-M2 Pro VS BPI-M5 VS Odroid C4 VS RPI 4 ==
+
==BPI-M4 Berry VS Raspberry Pi 4b ==
 
 
 
{| class="wikitable"
 
{| class="wikitable"
 +
! module !! Raspberry Pi 4B !! Banana Pi BPI-M4 Berry
 
|-
 
|-
| style="background: PaleTurquoise; color: black" colspan="4"| '''BPI-M2 Pro VS BPI-M5 VS Odroid C4 VS RPI 4'''
+
| CPU || 1.5GHz Quad-Core BroadcomBCM2711(Cortex A72) || H618,64 Bit Cortex™-A53 Quad-Core
 
|-
 
|-
|||[[Banana Pi BPI-M2 Pro]]||[[Banana Pi BPI-M5]]|| Odroid C4|| Raspberry Pi 4||
+
| GPU || 500 MHz VideoCore Vl || ARM Mali G31 GPU
 
|-
 
|-
|Processor||Amlogic S905X3 Quad-Core Cortex-A55 ARMv8.2-A 64-bit 1.5GHz ||Amlogic S905X3 Quad-Core Cortex-A55 ARMv8.2-A 64-bit 1.5GHz || Amlogic S905X3 Quad-Core Cortex-A55 ARMv8.2-A 64-bit 1.5GHz || Broadcom BCM2711, Quad core Cortex-A72 (ARM v8) 64-bit SoC @ 1.5GHz
+
| Memory || 1-4GB DDR4 || 2GB LPDDR4(up to 4G)
 
|-
 
|-
|GPU ||Mali-G31 MP2 GPU ||Mali-G31 MP2 GPU || Mali-G31 MP2 GPU || Broadcom VideoCore VI
+
| Onboard Storage || MicroSD (TF) card || MicroSD (TF) card / MMC card slot ,eMMC 8GB
 
|-
 
|-
|RAM ||2GB LPDDR4 ||4GB LPDDR4 ||DDR4 4GiB with 32-bit bus width ||2GB, 4GB or 8GB LPDDR4-3200 SDRAM
+
| Network || 10/100/1000 Ethernet || 10/100/1000 Ethernet
 
|-
 
|-
|Storage || micro SD card slot & 16GB eMMC flash on board|| micro SD card slot & 16GB eMMC flash on board ||micro SD card slot , eMMC connector for option ||micro SD card slot, non EMMC
+
| Onboard WIFI &BT || IEEE 802.11a/b/g/n/ac & BT5.0 || IEEE 802.11a/b/g/n/ac & BT4.2
 
|-
 
|-
|Network ||1 GbE ,WiFi&BT5.0 onbard|| GbE ,Optional WiFi USB dongle || GbE ||GbE, 2.4 GHz and 5.0 GHz IEEE 802.11ac wireless, Bluetooth 5.0, BLE
+
| Display || HDMI || HDMI
 
|-
 
|-
|Video Output || 1 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) || 1 x HDMI 2.1 (up to 4K@60Hz with HDR, CEC, EDID) || 2 × micro-HDMI 2.0
+
| Camera || CSI || N/A
 
|-
 
|-
|Audio Output || 1 x HDMI digital output ||3.5mm jack and 1 x HDMI digital output || Optional SPDIF optical output || 3.5 mm analogue audio-video jack
+
| Video Outputs || 2*Micro-HDMI || HDMI 2.0a 4K@60fps
 
|-
 
|-
|DSI ||N/A ||N/A ||N/A || 2-lane MIPI DSI display port
+
| Audio Output || 3.5 mm Jack and HDM || 3.5 mm Jack and HDMI
 
|-
 
|-
|CSI ||N/A ||N/A ||N/A ||2-lane MIPI CSI camera port
+
| Audio In || N/A || N/A
 
|-
 
|-
|USB ||USB 3.0 x 2 1 Micro USB 2.0||USB 3.0 x 4 TYPE C ||USB 3.0 x 4, 1 x Micro USB 2.0 port (OTG) || 2 USB 3.0 ports; 2 USB 2.0 ports;
+
| GPIO || 40-PIN: PWM,GPIO,UART,I²C bus,I²S bus,SPI bus,+3.3v,+5v,ground. CAN bus || 40-PIN: PWM,GPIO,UART,I²C bus,I²S bus,SPI bus,+3.3v,+5v,ground. CAN bus
 
|-
 
|-
|Power ||5 volt @3A via DC power ||5 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*)
+
| Remote || N/A || IR reciever
 
|-
 
|-
|IR ||Yes||Yes ||Yes ||N/A
+
| USB Ports || 2*USB3.0+2USB2.0 || 2 * USB 2.0 1* USB Otg
 
|-
 
|-
|GPIO ||40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND).||40 Pin Header : GPIO (x28) and Power (+5V, +3.3V and GND). || 40 x GPIO pins ||40-pin GPIO header, populated
+
| Buttons || N/A || Reset button, User button, Uboot button
 
|-
 
|-
|Button ||Reset, user and U-boot ||Reset, user and U-boot || N/A || N/A ||
+
| LED || Power led Status led || Power led  Status led  Wifi led
 
|-
 
|-
|LED || Power Status and Activity status|| Power Status and Activity status || Power Status and Activity status || Power Status and Activity status
+
| Power || DC 5V/3A || DC 5V/2A
 
|-
 
|-
|Dimensions & weight||65mm x 65mm,58g ||85mm x 56mm, 48g ||85mm x 56mm 59g ||88 mm × 58 mm, 46 g
+
| Board Size || 88mmx58mm || 88mmx58mm
|-
 
|System Support|| Linux & Android || Linux & Android ||Linux & Android ||Linux & Android
 
 
|}
 
|}
  
==GPIO PIN define ==
+
==PIN define ==
  
===BPI-M5 40PIN GPIO (CON2)===
+
===BPI-M4 Berry 40-pin header===
{| class="wikitable"
+
{| class="wikitable" style="text-align:center;"
|-
+
|-
|GPIO Pin Name ||Default Function ||Function2|| Function3
+
| style="background: PaleTurquoise; color: black" colspan="6"| '''40-pin header define and GPIO Alternative Functions Assignments'''
 +
|-
 +
! Pin Num
 +
! Pin Name
 +
! ALT0
 +
! ALT1
 +
! ALT2
 +
! ALT3
 
|-
 
|-
|CON1-P01 ||VCC-3V3|| ||
+
| 1
 +
| 3.3V
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P02|| VCC5V || ||
+
| 2
 +
| 5V
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P03|| GPIOX_17 ||I2C_M2_SDA||
+
| 3
 +
| PG16
 +
| UART2_RX
 +
|  
 +
|  
 +
| TWI4_SDA
 
|-
 
|-
|CON1-P04|| VCC5V ||||
+
| 4
 +
| 5V
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P05|| GPIOX_18|| I2C_M2_SCL ||
+
| 5
 +
| PG15
 +
| UART2_TX
 +
|  
 +
|  
 +
| TWI4_SCK
 
|-
 
|-
|CON1-P06|| GND ||||
+
| 6
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P07|| GPIOX_5 SDIO_CMD||||
+
| 7
 +
| PG19
 +
|  
 +
|  
 +
| PWM1
 +
|  
 
|-
 
|-
|CON1-P08|| GPIOX_12|| UART_A_TX ||
+
| 8
 +
| PG6
 +
| UART1_TX
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P09|| GND ||||
+
| 9
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P10|| GPIOX_13 ||UART_A_RX ||
+
| 10
 +
| PG7
 +
| UART1_RX
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P11|| GPIOX_3 SDIO_D3 ||||
+
| 11
 +
| PH2
 +
| UART5_TX
 +
|  
 +
| PWM2
 +
|  
 
|-
 
|-
|CON1-P12|| GPIOAO_8|| TDMB_SCLK ||
+
| 12
 +
| PG11
 +
| H_I2S2_BCLK
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P13|| GPIOX_4 SDIO_CLK||||
+
| 13
 +
| PH3
 +
| UART5_RX
 +
|  
 +
| PWM1
 +
|  
 
|-
 
|-
|CON1-P14|| GND ||||
+
| 14
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P15|| GPIOX_7 PWM_F ||||
+
| 15
 +
| PG2
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P16|| GPIOX_0 SDIO_D0 ||||
+
| 16
 +
| PG8
 +
| UART1_RTS
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P17|| VCC-3V3 ||||
+
| 17
 +
| 3.3V
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P18|| GPIOX_1 SDIO_D1 ||||
+
| 18
 +
| PG9
 +
| UART1_CTS
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P19|| GPIOX_8 PCM_DIN ||||
+
| 19
 +
| PH7
 +
| UART2_RTS
 +
| H_I2S3_LRCK
 +
| SPI1_MOSI
 +
|  
 
|-
 
|-
|CON1-P20|| GND ||||
+
| 20
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P21|| GPIOX_9 PCM_DOUT||||
+
| 21
 +
| PH8
 +
| UART2_CTS
 +
| H_I2S3_DOUT0
 +
| SPI1_MISO
 +
| H_I2S3_DIN1
 
|-
 
|-
|CON1-P22|| GPIOX_2 SDIO_D2 ||||
+
| 22
 +
| PG1
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P23|| GPIOX_11|| PCM_CLK ||
+
| 23
 +
| PH6
 +
| UART2_RX
 +
| H_I2S3_BCLK
 +
| SPI1_CLK
 +
|  
 
|-
 
|-
|CON1-P24|| GPIOX_10 ||PCM_SYNC ||
+
| 24
 +
| PH5
 +
| UART2_TX
 +
| H_I2S3_MCLK
 +
| SPI1_CS0
 +
|  
 
|-
 
|-
|CON1-P25|| GND ||||
+
| 25
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P26|| GPIOX_16 ||PWM_E ||
+
| 26
 +
| PH9
 +
|  
 +
| H_I2S3_DIN0
 +
| SPI1_CS1
 +
| H_I2S3_DOUT1
 
|-
 
|-
|CON1-P27|| GPIOA_14|| I2C_M3_SDA ||
+
| 27
 +
| PG18
 +
| UART2_CTS
 +
|  
 +
|  
 +
| TWI3_SDA
 
|-
 
|-
|CON1-P28|| GPIOA_15|| I2C_M3_SCL||
+
| 28
 +
| PG17
 +
| UART2_RTS
 +
|  
 +
|  
 +
| TWI3_SCK
 
|-
 
|-
|CON1-P29|| GPIOX_14|| UART_A_CTS ||
+
| 29
 +
| PG3
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P30|| GND ||||
+
| 30
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P31|| GPIOX_15 ||UART_A_RTS ||
+
| 31
 +
| PG4
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P32|| GPIOX_19|| PWM_B ||
+
| 32
 +
| PG0
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P33|| GPIOX_6 PWM_A ||||
+
| 33
 +
| PG5
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P34|| GND ||||
+
| 34
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P35|| GPIOAO_7|| TDMB_FS ||
+
| 35
 +
| PG12
 +
| H_I2S2_LRCK
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P36|| GPIOH_5 SPDIF_IN||||
+
| 36
 +
| PH4
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P37|| GPIOAO_9|| I2S_MCLK||
+
| 37
 +
| PG10
 +
| H_I2S2_MCLK
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P38|| GPIOAO_10|| TDMB_DIN|| SPDIF_OUT
+
| 38
 +
| PG14
 +
| H_I2S2_DIN0
 +
| H_I2S2_DOUT1
 +
|  
 +
|  
 
|-
 
|-
|CON1-P39|| GND ||||
+
| 39
 +
| GND
 +
|  
 +
|  
 +
|  
 +
|  
 
|-
 
|-
|CON1-P40|| GPIOAO_4|| TDMB_DOUT||
+
| 40
 +
| PG13
 +
| H_I2S2_DOUT0
 +
| H_I2S2_DIN1
 +
|  
 +
| style="text-align:left;" |  
 
|}
 
|}
  
===BPI-M5 Debug UART(CON1) ===
+
===BPI-M4 Berry Debug UART===
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
|CON2-P1|| GND
+
| 1 || GND
 
|-
 
|-
|CON2-P2|| UART0-RX
+
| 2 || UART0_RX
 
|-
 
|-
|CON2-P3|| UART0-TX
+
| 3 || UART0_TX
 
|-
 
|-
 
|}
 
|}
Line 214: Line 427:
 
==Source code==
 
==Source code==
  
 +
*u-boot for H618 : https://github.com/BPI-SINOVOIP/pi-u-boot/tree/v2021.07-sunxi
 +
*kernel for H618 : https://github.com/BPI-SINOVOIP/pi-linux/tree/pi-6.1-sunxi
 +
*BPI-H618-Android12-Code
 +
:Baidu Cloud: https://pan.baidu.com/s/1yMlLXauxZywujH8WkYqEcQ?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/drive/folders/1qQxQik4GJjOF1aEOs9a1YVFxJBPlyFnc?usp=sharing
  
 
== Resources==
 
== Resources==
 +
*BPI-M4 Berry Allwinner H618 SBC burn Ubuntu desktop image:https://www.youtube.com/watch?v=GAZsUDYL0DE
 +
*BPI-M4 Berry Schematic diagram
 +
:Baidu Cloud: https://pan.baidu.com/s/1Sa3bNWOHeIcvS5pgXwGaSA?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/1m0dgZJ3MPeyxtzc1DfNf0htbDLg_3edI/view?usp=sharing
  
 +
*BPI-M4 Berry DXF file
 +
:Baidu Cloud: https://pan.baidu.com/s/1qS-_3d3IpoMBWJe8aI8JFA?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/13wsY0cMZGfz5MdTqlo19DtmlZfdOGLI4/view?usp=sharing
 +
 +
*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=
 
=System image=
  
 +
==Android==
 +
*BPI-M4Berry-Android_20240429
 +
:Baidu cloud: https://pan.baidu.com/s/1SFwaz199hXgBsCcI0D1hlg?pwd=8888 (pincode:8888)
 +
:Google drive: https://drive.google.com/drive/folders/1kPdWuO5VBhvr-XIohHAqTDrk6mk8W1Z-?usp=sharing
 +
 +
*2024-01-14-bananapi-m4berry-android12-box.img
 +
:Baidu Cloud: https://pan.baidu.com/s/1TxHK3re-n83OqxyRN063_g?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/drive/folders/1HbhgXqBajDsA8esbMLRzHbddpAFOV-lS?usp=sharing
 +
 +
*2024-01-14-bananapi-m4berry-android12.img
 +
:Baidu Cloud: https://pan.baidu.com/s/1htyoCTGtCGgKfGUwL3OuHQ?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/drive/folders/1CQh4ZHjA1Na7jvAk2y1AEP8r8p0HIwx1?usp=sharing
 +
 +
==Linux==
 +
===Debian===
 +
*20240327_Bpi-m4berry_1.0.2_debian11_bullseye_desktop_xfce_linux6.1.31
 +
:Baidu Cloud: https://pan.baidu.com/s/1DFuklrdgB1FfK0feh2Iskw?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/1fwksjD8w17oZRsxIqjAXHUMviL9DkFNP/view?usp=sharing
 +
 +
*20240327_Bpi-m4berry_1.0.2_debian11_bullseye_minimal_linux6.1.31
 +
:Baidu Cloud: https://pan.baidu.com/s/1fMurMeF5NoEnnThORMX4Hw?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/1KofzlzsEjG2IwwoYRs6DN9bbkCNXW2OQ/view?usp=sharing
 +
 +
*20240327_Bpi-m4berry_1.0.2_debian12_bookworm_desktop_xfce_linux6.1.31
 +
:Baidu Cloud: https://pan.baidu.com/s/1bZPgpFcurgYOjTIw1OExhQ?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/1e27dd0WLRbZhiUfXnxlAW22FRuhJS8cm/view?usp=sharing
 +
 +
*20240327_Bpi-m4berry_1.0.2_debian12_bookworm_minimal_linux6.1.31
 +
:Baidu Cloud: https://pan.baidu.com/s/1cR0s1kODTi3jOxylb2aDQQ?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/1kp-HkS6R3twpPtfyiMhIVyb_oSIkNmxK/view?usp=sharing
 +
 +
===Ubuntu===
 +
*20240327_Bpi-m4berry_1.0.2_ubuntu22.04_jammy_desktop_xfce_linux6.1.31
 +
:Baidu Cloud: https://pan.baidu.com/s/17FQ0ypGUIGRsGwFlFpCvbg?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/15IpXunBV0hqCG39_Op2dqybEa6IajjBn/view?usp=sharing
 +
 +
*20240327_Bpi-m4berry_1.0.2_ubuntu22.04_jammy_minimal_linux6.1.31
 +
:Baidu Cloud: https://pan.baidu.com/s/1xQn02wms3YP159N6keejoQ?pwd=8888 (pincode:8888)
 +
:Google Drive: https://drive.google.com/file/d/1iwMHm0oaat-3Jme82qQFHhk_DZzh7By2/view?usp=sharing
  
 
=Easy to buy=
 
=Easy to buy=
 +
*Aliexpress shop:
 +
:SINOVOIP Aliexpress shop: https://www.aliexpress.us/item/1005006212355480.html?spm
 +
:Bipai Aliexpress shop: https://www.aliexpress.us/item/1005006212128000.html?gatewayAdapt=glo2usa
 +
:Taobao Shop: https://item.taobao.com/item.htm?spm=a1z10.5-c-s.w4002-25059194413.11.489155c8Addsck&id=747425760994
 +
:OEM&ODM, please contact: [email protected]

Latest revision as of 20:21, 5 May 2024

Banana Pi BPI-M2 Pro S905x3 design
Banana Pi BPI-M2S Amlogic A311D/S922 chip
Banana Pi BPI-M5 with S905x3 design

Introduction

BPI-M4 Berry development board stands as a powerful Single Board Computer (SBC), harnessing the capabilities of the Allwinner H618 System-on-Chip (SoC) to provide developers with impressive performance and a wealth of features. Similar to the Raspberry Pi 4b, the BPI-M4 Berry boasts comparable CPU prowess, 2G LPDDR4 memory and 8G eMMC, integrated WiFi and Bluetooth functionalities, and a familiar 40-pin header layout, alongside 4 USB interfaces and a GbE RJ45 port.

Characterized by its robust performance, versatile features, and remarkable image processing capabilities, stands as an exemplary SBC development platform for professionals within the embedded and computing industries. Equipped with 8GB eMMC flash storage, high-performance decoding and encoding capabilities, and an array of interface options, it caters to a wide spectrum of application domains, including media processing, IoT, and entertainment. Whether catering to novices or seasoned developers, the BPI-M4 Berry development board offers an ideal toolset for realizing creative visions and project objectives.

Banana Pi M4-Berry banner 3.jpg

Key Features

  • Allwinner H618, Quad-core ARM Cortex™-A53 processor
  • ARM Mali G31 GPU
  • WIFI & Bluetooth
  • 2G LPDDR4 RAM
  • 8G eMMC flash memory
  • 1x USB2.0 Type-C OTG, 5V power supply
  • 4x USB2.0 Type-A
  • 1x HDMI 2.0a
  • 1x 3.5mm Audio & TVE jack socket
  • 1x GbE Ethernet port

Getting Start

Hardware

Hardware interface

BPI-M4 Berry interface.jpg

Hardware spec

Hardware Specification of Banana pi BPI-M4 Berry
CPU Allwinner H618, Quad-core ARM Cortex™-A53 processor, 64-bit, up to 1.5GHz
GPU ARM Mali G31 GPU
Memory 2 GB LPDDR4
Storage 8G eMMC flash
SD card MicroSD card slot
Wireless 2.4G/5G WiFi and Bluetooth 4.2
Ethernet 1x GbE Ethernet port(supports PoE with add-on PoE HAT)
HDMI 1x full-size HDMI 2.0a (up to 4K@60Hz with HDR10, CEC, DDC, SCDC), HDMI digital Audio output
Audio 1x 3.5mm Audio & TVE jack socket
IR 1x CIR
USB 4x USB2.0 Type-A HOST, 1x USB2.0 Type-C OTG
40-pin header 28 pins GPIO and Power (+5V, +3.3V and GND)
UART, SPI, TWI/I²C, PWM, PCM/I²S
Buttons Reset, FEL and User
LED Power Status and Activity status
Power 5V@3A via USB Type-C
Size 85x56 mm
Weight 60g

BPI-M4 Berry VS Raspberry Pi 4b

module Raspberry Pi 4B Banana Pi BPI-M4 Berry
CPU 1.5GHz Quad-Core BroadcomBCM2711(Cortex A72) H618,64 Bit Cortex™-A53 Quad-Core
GPU 500 MHz VideoCore Vl ARM Mali G31 GPU
Memory 1-4GB DDR4 2GB LPDDR4(up to 4G)
Onboard Storage MicroSD (TF) card MicroSD (TF) card / MMC card slot ,eMMC 8GB
Network 10/100/1000 Ethernet 10/100/1000 Ethernet
Onboard WIFI &BT IEEE 802.11a/b/g/n/ac & BT5.0 IEEE 802.11a/b/g/n/ac & BT4.2
Display HDMI HDMI
Camera CSI N/A
Video Outputs 2*Micro-HDMI HDMI 2.0a 4K@60fps
Audio Output 3.5 mm Jack and HDM 3.5 mm Jack and HDMI
Audio In N/A N/A
GPIO 40-PIN: PWM,GPIO,UART,I²C bus,I²S bus,SPI bus,+3.3v,+5v,ground. CAN bus 40-PIN: PWM,GPIO,UART,I²C bus,I²S bus,SPI bus,+3.3v,+5v,ground. CAN bus
Remote N/A IR reciever
USB Ports 2*USB3.0+2USB2.0 2 * USB 2.0 1* USB Otg
Buttons N/A Reset button, User button, Uboot button
LED Power led Status led Power led Status led Wifi led
Power DC 5V/3A DC 5V/2A
Board Size 88mmx58mm 88mmx58mm

PIN define

BPI-M4 Berry 40-pin header

40-pin header define and GPIO Alternative Functions Assignments
Pin Num Pin Name ALT0 ALT1 ALT2 ALT3
1 3.3V
2 5V
3 PG16 UART2_RX TWI4_SDA
4 5V
5 PG15 UART2_TX TWI4_SCK
6 GND
7 PG19 PWM1
8 PG6 UART1_TX
9 GND
10 PG7 UART1_RX
11 PH2 UART5_TX PWM2
12 PG11 H_I2S2_BCLK
13 PH3 UART5_RX PWM1
14 GND
15 PG2
16 PG8 UART1_RTS
17 3.3V
18 PG9 UART1_CTS
19 PH7 UART2_RTS H_I2S3_LRCK SPI1_MOSI
20 GND
21 PH8 UART2_CTS H_I2S3_DOUT0 SPI1_MISO H_I2S3_DIN1
22 PG1
23 PH6 UART2_RX H_I2S3_BCLK SPI1_CLK
24 PH5 UART2_TX H_I2S3_MCLK SPI1_CS0
25 GND
26 PH9 H_I2S3_DIN0 SPI1_CS1 H_I2S3_DOUT1
27 PG18 UART2_CTS TWI3_SDA
28 PG17 UART2_RTS TWI3_SCK
29 PG3
30 GND
31 PG4
32 PG0
33 PG5
34 GND
35 PG12 H_I2S2_LRCK
36 PH4
37 PG10 H_I2S2_MCLK
38 PG14 H_I2S2_DIN0 H_I2S2_DOUT1
39 GND
40 PG13 H_I2S2_DOUT0 H_I2S2_DIN1

BPI-M4 Berry Debug UART

1 GND
2 UART0_RX
3 UART0_TX

Development

Source code

Baidu Cloud: https://pan.baidu.com/s/1yMlLXauxZywujH8WkYqEcQ?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/drive/folders/1qQxQik4GJjOF1aEOs9a1YVFxJBPlyFnc?usp=sharing

Resources

Baidu Cloud: https://pan.baidu.com/s/1Sa3bNWOHeIcvS5pgXwGaSA?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1m0dgZJ3MPeyxtzc1DfNf0htbDLg_3edI/view?usp=sharing
  • BPI-M4 Berry DXF file
Baidu Cloud: https://pan.baidu.com/s/1qS-_3d3IpoMBWJe8aI8JFA?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/13wsY0cMZGfz5MdTqlo19DtmlZfdOGLI4/view?usp=sharing
  • 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

Android

  • BPI-M4Berry-Android_20240429
Baidu cloud: https://pan.baidu.com/s/1SFwaz199hXgBsCcI0D1hlg?pwd=8888 (pincode:8888)
Google drive: https://drive.google.com/drive/folders/1kPdWuO5VBhvr-XIohHAqTDrk6mk8W1Z-?usp=sharing
  • 2024-01-14-bananapi-m4berry-android12-box.img
Baidu Cloud: https://pan.baidu.com/s/1TxHK3re-n83OqxyRN063_g?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/drive/folders/1HbhgXqBajDsA8esbMLRzHbddpAFOV-lS?usp=sharing
  • 2024-01-14-bananapi-m4berry-android12.img
Baidu Cloud: https://pan.baidu.com/s/1htyoCTGtCGgKfGUwL3OuHQ?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/drive/folders/1CQh4ZHjA1Na7jvAk2y1AEP8r8p0HIwx1?usp=sharing

Linux

Debian

  • 20240327_Bpi-m4berry_1.0.2_debian11_bullseye_desktop_xfce_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1DFuklrdgB1FfK0feh2Iskw?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1fwksjD8w17oZRsxIqjAXHUMviL9DkFNP/view?usp=sharing
  • 20240327_Bpi-m4berry_1.0.2_debian11_bullseye_minimal_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1fMurMeF5NoEnnThORMX4Hw?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1KofzlzsEjG2IwwoYRs6DN9bbkCNXW2OQ/view?usp=sharing
  • 20240327_Bpi-m4berry_1.0.2_debian12_bookworm_desktop_xfce_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1bZPgpFcurgYOjTIw1OExhQ?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1e27dd0WLRbZhiUfXnxlAW22FRuhJS8cm/view?usp=sharing
  • 20240327_Bpi-m4berry_1.0.2_debian12_bookworm_minimal_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1cR0s1kODTi3jOxylb2aDQQ?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1kp-HkS6R3twpPtfyiMhIVyb_oSIkNmxK/view?usp=sharing

Ubuntu

  • 20240327_Bpi-m4berry_1.0.2_ubuntu22.04_jammy_desktop_xfce_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/17FQ0ypGUIGRsGwFlFpCvbg?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/15IpXunBV0hqCG39_Op2dqybEa6IajjBn/view?usp=sharing
  • 20240327_Bpi-m4berry_1.0.2_ubuntu22.04_jammy_minimal_linux6.1.31
Baidu Cloud: https://pan.baidu.com/s/1xQn02wms3YP159N6keejoQ?pwd=8888 (pincode:8888)
Google Drive: https://drive.google.com/file/d/1iwMHm0oaat-3Jme82qQFHhk_DZzh7By2/view?usp=sharing

Easy to buy

  • Aliexpress shop:
SINOVOIP Aliexpress shop: https://www.aliexpress.us/item/1005006212355480.html?spm
Bipai Aliexpress shop: https://www.aliexpress.us/item/1005006212128000.html?gatewayAdapt=glo2usa
Taobao Shop: https://item.taobao.com/item.htm?spm=a1z10.5-c-s.w4002-25059194413.11.489155c8Addsck&id=747425760994
OEM&ODM, please contact: [email protected]