🛠 Advanced First Boot of Banana Pi BPI-CM5
Objectives
This tutorial aims to master the hardware and software initialization of the Banana Pi BPI-CM5. Unlike standard single-board computers, this Computer Module (CM) requires a carrier board to be operational. The goal is to understand the Board-to-Board architecture, correctly configure power delivery, and validate the OS boot process via diagnostic interfaces.
Required Hardware
- Banana Pi BPI-CM5 module (Amlogic A311D2 SoC).
- Raspberry Pi CM4 compatible carrier board (with Board-to-Board connectors).
- USB-C or DC power supply compliant with specs (5V/3A recommended for PCIe peripheral stability).
- HDMI 2.1 cable for display (the transmitter HDMI port is distinct from receiver ports).
- USB keyboard and mouse (via USB 3.0 or 2.0 port).
- SD card (for booting if eMMC storage is empty or corrupted) or network access for PXE boot.
Steps
- Physical Inspection: Check for damage on the Board-to-Board connectors of both the module and the carrier board. Ensure pins are not bent.
- Module Installation: Align the BPI-CM5 with the carrier board connector. Insert firmly until retention clips click. Incomplete insertion can cause memory (LPDDR4) or PCIe errors.
- Peripheral Connection: Connect the monitor to the HDMI 2.1 *transmitter* port. Note that the three HDMI *receiver* ports are for video capture, not desktop display. Connect the keyboard to the USB 3.0 port for better latency.
- Power On: Plug in the power adapter. Observe status LEDs. The fan (if present) should spin briefly.
- Bootloader Access: If no OS is preinstalled, hold the BOOT button (or short eMMC pins depending on the carrier board) during power-on to force USB Burning Tool mode or SD boot.
- OS Installation: Use Armbian or Ubuntu. Flash the image to an SD card, insert it, and reboot. The A311D2 SoC will automatically detect the boot media.
Verification
Once the system boots, open a terminal. Run lscpu to confirm detection of the 8 cores (4x Cortex-A73 + 4x Cortex-A53). Check memory with free -h (expecting 4GB or 8GB). Test network with ping 8.8.8.8. Check kernel logs with dmesg | grep -i amlogic to confirm proper initialization of the Mali-G52 MP8 GPU.
Going Further
Explore the PCIe 2.0 interface to add an NVMe SSD or 10G network card. Configure MIPI-CSI interfaces for 4K video capture via the 16 MP ISP.