ifconfig
ping mi.com
The Banana Pi BPI-M7 user manual helps users understand the basic usage and preparation work needed for BPI-M7
Its model and hardware version can be found printed on the board when you got BPI-M7.
This article gives an overview of the product information to you in as much detail as possible.
More Infomation: Banana Pi BPI-M7 |
BPI-M7 main board
Power supply: USB Type-C PD
Support 9V/2A, 12V/2A, 15V/2A
System installation (choose one)
MicroSD /TF card boot
MicroSD card/TF, Class 10 or above, at least 8GB SDHC and a card reader
High speed TF cards tested by the ArmSoM team:
SanDisk 32GB TF (MicroSD) (developer recommended)
SanDisk 32GB TF (MicroSD) Dashcam & Security Camera Storage Card (recommended for long-term operation)
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 image from Type-C port on BPI-M7 to eMMC. You need to connect BPI-M7 to a PC using the Type-C cable.
USB keyboard and mouse
HDMI display and HDMI cable
BPI-M7 features a full-sized HDMI port, and supports up to 8K@60 display
HDMI EDID is used to determine optimum display resolution. 1080p (or 4K/8K) will be selected on displays and TVs that support it. If 1080p is not supported, EDID will find the next available resolution.
Ethernet cable
BPI-M7 supports 2.5Gb Ethernet
The network cable is used to connect BPI-M7 to a local network and the Internet
Camera module
BPI-M7 supports camera function
We recommend using the imx415 module, available through the Banana Pi Taobao store or AliExpress
LCD display
BPI-M7 supports LCD display
We recommend the Display 10.1 HD, available through the Banana Pi Taobao store or AliExpress
Audio cable
Available for 0.8mm vertical socket
USB-A to USB-C data cable
Choosing the Burning Method : Rockchip chip Flash System Image |
If this is your first time using the Banana Pi BPI-M7, please familiarize yourself with the Peripheral Interfaces to better understand the content below.
If using wired Ethernet, insert the network cable into the RJ45 port on the BPI-M7 and the wired connection will pop up on the desktop.
Use the ifconfig command to check if Ethernet is working normally - it will display the NIC enP2p33s0 or enP4p65s0 and Ethernet IP address. Also use the ping tool to test network connectivity.
ifconfig
ping mi.com
If unable to ping,please try:
$ sudo dhclient enP2p33s0
or
$ sudo dhclient enP4p65s0
BPI-M7 has an HDMI output port which supports CEC and HDMI 2.1, maximum resolution up to 8Kp60.
The BPI-M7 provides one USB 2.0 and one USB 3.0 port.
USB3.0 Camera: After connecting a USB 3.0 camera, you can download cheese and use the camera with the following commands:
armsom@armsom-sige7: sudo apt update
armsom@armsom-sige7: 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-sige7:/# 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-M7 features a 5V fan using a 0.8mm connector
armsom@armsom-sige7:/# echo 100 > /sys/devices/platform/pwm-fan/hwmon/hwmon8/pwm1
The BPI-M7 features a full-featured USB Type‐C 3.1 port which supports up to 4Kp60 DP display.
The BPI-M7 provides a 40-pin GPIO header, compatible with most sensors on the market.
The BPI-M7 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-sige7:/# sudo su
armsom@armsom-sige7:/# echo timer > /sys/class/leds/red/trigger
armsom@armsom-sige7:/# echo activity > /sys/class/leds/red/trigger
The BPI-M7 features an hym8563 RTC chip.
First, insert the RTC battery using the 2-pin header to supply power to the RTC IC.
Note that we should keep the RTC battery in the RTC connector and confirm the rtc hym8563 device which has been created.
armsom@armsom-sige7:/# 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-sige7:/# hwclock -r
2023-11-03 10:32:40.461910+00:00
armsom@armsom-sige7:/# date
Fri 3rd Nov 10:33:12 UTC 2023
armsom@armsom-sige7:/# hwclock -w
armsom@armsom-sige7:/# hwclock -r
armsom@armsom-sige7:/# poweroff
Turn off the RTC battery for 10+ minutes, insert the battery again and boot Sige7, and check if RTC synced with system clock:
armsom@armsom-sige7:/# hwclock -r
2023-11-03 10:35:40.461910+00:00
armsom@armsom-sige7:/# date
Fri 3rd Nov 10:36:01 UTC 2023
The BPI-M7 provides an M.2 connector:
There is an M.2 M Key connector on the back with a 4-lane PCIe 3.0 interface. The board has a standard M.2 2280 mounting hole to deploy M.2 2280 NVMe SSDs.
Note: This M.2 interface does NOT support M.2 SATA SSDs. |
armsom@armsom-sige7:/# mkdir temp
armsom@armsom-sige7:/# mount /dev/nvme0n1 temp
MIPI-CSI
Use the IMX415 module for the camera. After connecting and powering on the camera module you can view the boot log:
armsom@armsom-sige7:/# 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-sige7:/# 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-sige7:/# 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-sige7:/# 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-sige7:/# gst-launch-1.0 v4l2src device=/dev/video22 ! video/x-raw,format=NV12,width=3840,height=2160, framerate=30/1 ! xvimagesink
The BPI-M7 supports up to 4K@60Hz resolution over MIPI DSI
How to use RKLLM : Banana Pi BPI-M7 RKLLM Development |