![armsom-sige7-debug.png](/bpi-m5pro/armsom-sige7-debug.png)
Banana Pi BPI-M5 Pro adopts the second-generation 8nm high-performance AIOT platform Rockchip RK3576, with a 6 TOPS computing power NPU and support for up to 32GB of large memory. It supports 8K video encoding and decoding, offers rich interfaces including dual gigabit Ethernet ports, WiFi 6 & BT5, and various video outputs. Compatible with multiple operating systems, it is suitable for ARM-based PCs, edge computing devices, personal mobile internet devices, and other digital multimedia applications.
More Infomation: Banana Pi BPI-M5 Pro |
Banana Pi BPI-M5 Pro mainboard
Power supply: USB Type-C PD
Supports 9V/2A, 12V/2A, 15V/2A
System installation (choose one):
MicroSD card/TF card boot
MicroSD card/TF card, Class 10 or above, at least 8GB SDHC, and a card reader
The following are high-speed TF cards verified and tested by the ArmSoM team:
SanDisk 32GB TF (MicroSD) (recommended for developers)
SanDisk 32GB TF (MicroSD) for dashcams & surveillance cameras (recommended for long-term use)
SanDisk TF 8G Class10 microSD
SanDisk TF 128G Class10 microSD XC TF 128G 48MB/S
Onboard eMMC boot
USB Type-C data cable, to write the image from the type-C port on sige5, you need a Type-C data cable to connect sige5 and PC.
USB keyboard and mouse
HDMI monitor and HDMI cable
BPI-M5 Pro comes with a full-size HDMI port, supporting up to 8K@60 display.
HDMI EDID is used to determine the optimal display resolution. On monitors and TVs that support 1080p (or 4K/8K), this resolution will be chosen. If 1080p is not supported, EDID will find the next available resolution.
Ethernet cable (network cable)
BPI-M5 Pro supports Ethernet networking, with a maximum of 2.5Gb.
The network cable is used to connect sige5 to the local network and the Internet.
Camera module
BPI-M5 Pro supports camera function.
It is recommended to use the imx415 module, which can be purchased from the official store on Taobao.
LCD display
BPI-M5 Pro supports LCD display function.
It is recommended to use the Display 10.1 HD, which can be purchased from the official store on Taobao.
Audio cable
A 0.8mm vertical socket can be used.
USB-A to USB-C data cable
Choosing the Burning Method : Rockchip chip Flash System Image |
If you are using Banana Pi BPI-M5 Pro for the first time, please familiarize yourself with the Peripheral Interfaces for better understanding of the following content.
Connect the USB to TTL serial cable as follows:
BPI-M5 Pro | Connect | Serial Module |
---|---|---|
GND (pin 6) |
←-→ |
GND |
TX (pin 8) |
←-→ |
RX |
RX (pin 10) |
←-→ |
TX |
If you are using a wired Ethernet connection for internet access, please insert the Ethernet cable into the RJ45 port on ArmSoM-sige5. The system desktop will then prompt a wired connection.
Use the command <ifconfig> to check if the Ethernet is working properly. It will display the network card <enP2p33s0> or <enP4p65s0> and the Ethernet IP address. Additionally, use the <ping> tool to check network connectivity.
ifconfig
ping mi.com
If ping fails, try:
$ sudo dhclient enP2p33s0
or
$ sudo dhclient enP4p65s0
# 1. Open the WIFI
armsom@armsom-sige5:/# nmcli r wifi on
# 2. Scan WIFI
armsom@armsom-sige5:/# nmcli dev wifi
# 3. Connect to WIFI network
armsom@armsom-sige5:/# nmcli dev wifi connect "wifi_name" password "wifi_password"
# 1. Activate Bluetooth
armsom@armsom-sige5:/# service bluetooth start
# 2. Enter bluetoothctl
armsom@armsom-sige5:/# bluetoothctl
# 3. Enter the following command to connect
armsom@armsom-sige5:/# power on
armsom@armsom-sige5:/# agent on
armsom@armsom-sige5:/# default-agent
armsom@armsom-sige5:/# scan on
armsom@armsom-sige5:/# pair yourDeviceMAC
The BPI-M5 Pro has an HDMI output port which supports CEC and HDMI 2.1, maximum resolution up to 4Kp120.
The BPI-M5 Pro provides one USB 2.0 and one USB 3.0 port.
After connecting a USB 3.0 camera, you can download cheese and use the camera with the following commands:
armsom@armsom-sige5: sudo apt update
armsom@armsom-sige5: sudo apt install cheese
You can also preview the camera in the terminal:
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! xvimagesink;
Take Photo:
gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=/home/armsom/test.jpg;
Record video:
gst-launch-1.0 v4l2src num-buffers=512 device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw, format=NV12, width=1920, height=1080, framerate=30/1 ! tee name=t ! queue ! mpph264enc ! queue ! h264parse ! mpegtsmux ! filesink location=/home/armsom/test.mp4
View sound cards in the system:
armsom@armsom-sige5:/# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: rockchipdp0 [rockchip,dp0], device 0: rockchip,dp0 spdif-hifi-0 [rockchip,dp0 spdif-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: rockchipes8316 [rockchip-es8316], device 0: fe470000.i2s-ES8316 HiFi es8316.7-0011-0 [fe470000.i2s-ES8316 HiFi es8316.7-0011-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: rockchiphdmi0 [rockchip-hdmi0], device 0: rockchip-hdmi0 i2s-hifi-0 [rockchip-hdmi0 i2s-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
The BPI-M5 Pro features a 5V fan using a 0.8mm connector
armsom@armsom-sige5:/# echo 100 > /sys/devices/platform/pwm-fan/hwmon/hwmon6/pwm1
The BPI-M5 Pro features a full-featured USB Type‐C 3.0 port which supports up to 8K@30fps DP display.
The BPI-M5 Pro provides a 40-pin GPIO header, compatible with most sensors on the market.
The BPI-M5 Pro has two user LEDs - green and red.
User Green LED Constantly indicates running kernel by default.
User Red LED Off by default, can be controlled by user.
Users can control with commands:
armsom@armsom-sige5:/# sudo su
armsom@armsom-sige5:/# echo timer > /sys/class/leds/red/trigger
armsom@armsom-sige5:/# echo activity > /sys/class/leds/red/trigger
The BPI-M5 Pro features an LK8563S RTC chip.
First, insert the RTC battery using the 2-pin header to supply power to the RTC IC.
that we should keep the RTC battery in the RTC connector and confirm the rtc LK8563S device which has been created. |
armsom@armsom-sige5:/# dmesg | grep rtc
[ 6.407133] rtc-hym8563 6-0051: rtc information is valid
[ 6.412731] rtc-hym8563 6-0051: registered as rtc0
[ 6.413779] rtc-hym8563 6-0051: setting system clock to 2022-06-22T01:22:26 UTC (1655860946)
Find rtc0, then use the following commands to set system time and sync to rtc0:
armsom@armsom-sige5:/# hwclock -r
2023-11-03 10:32:40.461910+00:00
armsom@armsom-sige5:/# date
Fri 3rd Nov 10:33:12 UTC 2023
armsom@armsom-sige5:/# hwclock -w
armsom@armsom-sige5:/# hwclock -r
armsom@armsom-sige5:/# poweroff
Turn off the RTC battery for 10+ minutes, insert the battery again and boot Sige5, and check if RTC synced with system clock:
armsom@armsom-sige5:/# hwclock -r
2023-11-03 10:35:40.461910+00:00
armsom@armsom-sige5:/# date
Fri 3rd Nov 10:36:01 UTC 2023
```sh
== M.2 interface
BPI-M5 Pro provides an M.2 connector:
The back of the product features an M.2 M Key connector with a PCIe 2.0 interface supporting 1 channel. The board includes a standard M.2 2280 mounting hole, allowing for the deployment of an M.2 2280 NVMe SSD.
NOTE: This M.2 interface does not support M.2 SATA SSDs.
```sh
armsom@armsom-sige5:/# mkdir temp
armsom@armsom-sige5:/# mount /dev/nvme0n1 temp
Use the IMX415 module for the camera. After connecting and powering on the camera module you can view the boot log:
armsom@armsom-sige5:/# dmesg | grep imx415
[ 2.547754] imx415 3-001a: driver version: 00.01.08
[ 2.547767] imx415 3-001a: Get hdr mode failed! no hdr default
[ 2.547819] imx415 3-001a: Failed to get power-gpios
[ 2.547826] imx415 3-001a: could not get default pinstate
[ 2.547831] imx415 3-001a: could not get sleep pinstate
[ 2.547850] imx415 3-001a: supply dvdd not found, using dummy regulator
[ 2.547918] imx415 3-001a: supply dovdd not found, using dummy regulator
[ 2.547945] imx415 3-001a: supply avdd not found, using dummy regulator
[ 2.613843] imx415 3-001a: Detected imx415 id 0000e0
[ 2.613890] rockchip-csi2-dphy csi2-dphy0: dphy0 matches m00_b_imx415 3-001a:bus type 5
[ 18.386174] imx415 3-001a: set fmt: cur_mode: 3864x2192, hdr: 0
[ 18.389067] imx415 3-001a: set exposure(shr0) 2047 = cur_vts(2250) - val(203)
Use v4l2-ctl for image capture:
/ MIPI-CSI1
armsom@armsom-sige5:/# v4l2-ctl -d /dev/video31 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=60 --stream-to=/tmp/cif73.out --stream-count=3 --stream-poll
// MIPI-CSI2
armsom@armsom-sige5:/# v4l2-ctl -d /dev/video22 --set-fmt-video=width=3840,height=2160,pixelformat=NV12 --stream-mmap=3 --stream-skip=60 --stream-to=/tmp/cif73.out --stream-count=3 --stream-poll
Record video directly with gst-launch-1.0:
// MIPI-CSI1
armsom@armsom-sige5:/# gst-launch-1.0 v4l2src device=/dev/video31 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink
// MIPI-CSI2
armsom@armsom-sige5:/# gst-launch-1.0 v4l2src device=/dev/video22 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink
BPI-M5 Pro supports a maximum resolution of 4K@120Hz.