You can flash compute modules using the Turing Pi board. Please follow the steps below to do this:
You can flash the compute module using the top/main node on the board. Switch the jumper into the flash mode before flashing and plug your computer into the micro USB flashing port.
To turn the Raspberry Pi device into a USB Mass Storage Device, you need the
usbboot tool developed by the Raspberry Pi foundation.
Before you use usbboot tool, you need to install a
libusb dependency. The easiest way to install it is by using Homebrew:
brew install libusb
Now you can install
usbboot by cloning it's repository and running
# Clone the `usbboot` repository.git clone --depth=1 https://github.com/raspberrypi/usbbootcd usbbootmake
If you get a deprecation warning, please ignore it.
Run rpiboot with sudo:
Connect the Turing Pi to your computer via a micro USB flashing port, and power on the board. You should see the following:
sudo ./rpibootPassword:Waiting for BCM2835/6/7/2711...Sending bootcode.binSuccessful read 4 bytesWaiting for BCM2835/6/7/2711...Second stage boot serverFile read: start.elfSecond stage boot server done
Once that's complete, you may see a message stating "The disk you inserted was not readable by this computer.". Simply click "Ignore".
Find out the identifier of the Compute Module:
diskutil list (should be an 'external, physical' ~8/16/32 GB device, like
Unmount the disk:
diskutil unmountDisk /dev/disk2 (substitute your disk identifier here!)
Write the OS image to the card:
pv ~/Downloads/hypriotos-rpi-v1.12.3.img | sudo dd bs=1m of=/dev/rdisk2
This command uses
brew install pv) which makes it easy to monitor the progress. You can use
After unmounting the volume:
Unplug the power and micro USB connection
Switched the jumper back to 'boot' mode
Power the Turing Pi board