CM4Stack Setup and Configuration

Download the official burning tool, Raspberry Pi Imager

Before configuring CM4Stack, you need to download the official burning tool Raspberry Pi Imager。You can download the corresponding system version of Imager on the Raspberry Pi official website and install it according to the type of operating system.

Download the custom image of cm4stack

CM4Stack custom image download When finished, you need to unzip the image file and store it in a local directory.

Burn the CM4stack Raspberry Pi image

Use Raspberry Pi Imager to flash custom images to SD cards and flash to CM4STACK, before starting burning, you need to prepare the following:


  • rpiboot software
  • Formatting software SDFormatter
  • Burning software Win32DiskImager

Software required under Windows

  • Download and Install Official rpiboot or M5 linked rpiboot The program is used to turn a CM4 device into a computer disk. After the installation is complete, there will be an rpiboot.exe file in the installation directory, and the rpiboot installation is complete.

Software required under Linux

  • Operation in Linux requires certain programming knowledge, please use it as appropriate. For Linux systems, source code compilation tools are required rpiboot to compile libusb development libraries.
sudo apt install git libusb-1.0-0-dev pkg-config
git clone --depth=1
cd usbboot
# sudo ./rpiboot

Write to the image file

Start burning

Windows operation

  • Step 1: Press the BOOT button on your device and connect your device to your computer with a USB cable.
  • Step 2: Find the installed rpiboot.exe program on the computer side and double-click to run it. After that, a disk device appears on the computer.
  • Step 3:Open the SDFormatter software, select the drive, click Options Settings, set Logical Sizing to On, click OK, and format it. Unsuccessful, continue with the operation just now, reformat it will do.
  • Step 4: Open the official burning software Raspberry Pi Imager, click Customize System in the system selection, select the image obtained above, and then select the disk to burn. Just wait patiently for the burning to complete.
  • Step 5: Power cycle into the system.

Linux operation

  • Step 1: Press the BOOT button on your device and connect your device to your computer with a USB cable.
  • Step 2: The rpiboot program is executed in rpiboot, after which a disk device appears on the computer.
sudo ./rpiboot
  • Step 3: Burning system. You can use the official burning software Raspberry Pi Imager to burn, the steps are the same as the burning operation under Windows. You can also burn directly using the dd command. The following burning command is for reference only, please replace the disk object and use it.
gunzip 2023-03-08-CM4StackOS-canary-2023-02-21-raspios-bullseye-armhf.gz
# Extract the firmware
sudo dd if=./2023-03-08-CM4StackOS-canary-2023-02-21-raspios-bullseye-armhf of=/dev/sda bs=1M status=progress oflag=dsync
# Firmware flashing
  • Step 4: Power cycle into the system.

Note: At this point, CM4STACK has been burned to complete the image, the above steps can be used if you need to re-flash the machine. The factory has already burned the image, if you don't need it, please skip it.

Introduction to the CM4stack peripheral interface

  1. Capacitive touch 2.0-inch IPS-LCD screen with 320x240 resolution
  2. USB3.2-A口(pcie+ASM3042)
  3. USB-C (2.0) interface, support OTG and host power supply
  4. HDMI interface
  5. Gigabit Ethernet interface (RJ45)
  6. DC-JACK DC power input interface (12V@3A)
  7. HY2.0-4P expansion ports, I2C and UART interfaces, respectively
  8. Built-in 2W speaker
  9. Built-in active cooling fan and aluminum alloy heat dissipation frame

Start CM4STACK and initialize the settings

After starting CM4STACK, the first login to the system needs to be initialized. It can be operated via SSH or HDMI connection. You need to set parameters such as user name, password, network connection, and language. Once initialized, you can start using CM4Stack.

  • Step 1.Connect the power supply
  • Step 2.After CM4Stack starts the operating system, press OK in the warning window
  • Step 3.Press "Next" in the start screen to start the initial setup
  • Step 4.Select your country, language, time zone, press "Next"
  • Step 5.Change your password and press "Next" when you're done

If you need to keep the default password bit raspberry, you can leave it blank and click "Next"

  • Step 6.Set the screen, fill the entire screen, motor "Next"
  • Step 7.Configure WIFI, you can also add it later
  • Step 8.Prompt for software updates, this step is skipped
  • Step 9.Finally, press Done to complete the setup
On This Page