This guide explains how to flash a Home Assistant image to CM4Stack and set it up as a smart home control center.
| Image Version | Download Link |
|---|---|
| 2024-03-06-CM4StackOS-haos_rpi4-64-12.1 | Download |
Download and install Raspberry Pi Imager.
Download and install rpiboot.
rpiboot_setup.exe poses a security risk. Verify that the download comes from the official Raspberry Pi GitHub repository before continuing with the installation.BOOT button on the side of CM4Stack. Then connect the device to your computer with a USB cable and power it on.
rpiboot.exe. After the computer detects the CM4Stack eMMC, a new disk device will appear. If the device is not detected, check the USB cable and repeat the power-on procedure in the previous step.
NEXT to start flashing.
rpiboot:sudo apt install git pkg-config make gcc libusb-1.0-0-dev
git clone --depth=1 https://github.com/raspberrypi/usbboot
cd usbboot
make BOOT button on the side of CM4Stack. Then connect the device to your computer with a USB cable, power it on, and run rpiboot:sudo ./rpiboot dd to write the extracted .img file. Confirm the target disk path before running the command. The following command is for reference only:sudo dd if=./2024-03-06-CM4StackOS-haos_rpi4-64-12.1.img of=/dev/sda bs=1M status=progress oflag=dsync Connect CM4Stack to a power supply and Ethernet. After startup, the device screen displays its current IP address. Devices on the same local network can access Home Assistant at IP:8123.
During the first startup, Home Assistant OS must download resource files over the network. This may take several tens of minutes. If initialization does not complete after an extended period, try using a network configured with a proxy.
http://xxx.xxx.xxx.xxx:8123/