Note: Flashing the CM4-NANO eMMC should only be done with the guidance of a Parallax Control Support Specialist. Contact support if your device requires a fresh operating system installation.
CM4-NANO Flash Setup: Step 1. Unplug the power. Step 2. Using a USB-A to USB-A cable, connect one end to your computer, the other end to the USB 2.0 port on the CM4-Nano (the white usb port) Step 3. Switch the device into boot mode (or short the pins). Step 4. Power on the CM4-Nano. Step 5. Using the CLI on your computer, execute the rpi tool as follows:
Run the rpi boot tool: “./rpiboot” Below shows the result:
Next, start up pi imager, under Operating System, select “raspberry pi os lite (32-bit)”. Under Storage, select the eMMC.
Open the settings wheel to set your configuration as follows: Hostname: cm4-‘macaddress’ Enable SSH: Password Auth Set Username and password: user: pi password: ‘macaddress’ Set appropriate Locale settings Save and Write. Once Pi Imager completes, unplug the power to the CM4-NANO, remove the usb cable and remove the wire used to short the boot pin. Wait 5 seconds and power on the CM4-NANO. The CM4-NANO should now be ready for ssh login. Next, ensure the device has internet access, you can confirm by using: “ping 8.8.8.8”. Once its been confirmed the device has internet access, the Parallax support specialist will confirm your license and supply a link which will be used to automatically install the latest version of the Parallax Control Engine. Instructions To install the RPI Boot Tool on a mac: To install the Raspberry Pi (RPi) boot tool on a Mac, you can use the Terminal and Homebrew package manager to install the rpiboot package. Here are the steps to do this:Open the Terminal application on your Mac. You can find it in the “Utilities” folder within the “Applications” folder.Install Homebrew package manager by running the following command in the Terminal:/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"This will download and install Homebrew on your Mac.Install USB Boot tool for macOS
From a macOS machine, you can also run usbboot, just follow the same steps:
Clone the usbboot repositoryInstall libusb (brew install libusb)Install pkg-config (brew install pkg-config)(Optional) Export the PKG_CONFIG_PATH so that it includes the directory enclosing libusb-1.0.pcBuild using makeRun the binarygit clone --depth=1 https://github.com/raspberrypi/usbboot cd usbboot brew install libusb brew install pkg-config make sudo ./rpibootConnect your Raspberry Pi to your Mac using a USB cable.Power on the Raspberry Pi.In the Terminal, run the following command to start the rpiboot tool:sudo ./rpibootThis will start the boot tool and allow your Mac to access the Raspberry Pi’s file system.You can now access the Raspberry Pi’s file system from your Mac and perform tasks like installing the operating system or transferring files. To exit the rpiboot tool, press Ctrl-C in the Terminal.