Flashing CM4 eMMC on BTT Klipper Pad 7

I needed to flash the operating system onto a Raspberry Pi CM4 with eMMC storage to use it in the BTT Klipper Pad 7. This process is more complex than using an SD card. This guide assumes you're using macOS. Here are the steps I followed:

  1. Set the toggle and DIP switches as shown below. Connect the Klipper Pad to your computer using the USB-C connection.
USB-Choose toggle is set to the right, DIP switches 3 and 4 are set to the right, CS-Choose is set to the right.
  1. Install homebrew if needed, skip if already installed. Visit https://brew.sh and run the install one-liner.
  2. Open up Terminal.app (or equivalent)
  3. Run these commands
brew install pkgconfig libusb
cd ~/ && git clone --depth=1 https://github.com/raspberrypi/usbboot
cd usbboot
make
sudo ./rpiboot

and you should see something like this as the output:

successful output from rpiboot

macOS will show a popup about not recognizing a disk. This is good, just hit ignore.

I'll be using the Raspberry Pi Imager software for flashing. It's easy to use and makes customizing your installation simple. When selecting storage, you should see the eMMC as a flashing target.

That's it.

Note: I did have some trouble with the eMMC not being seen when using a USB hub, so I connected directly to my laptop instead.