Skip to content

Raspberry Pi Compute Modules

poochiethecat edited this page Nov 16, 2016 · 4 revisions

Identifier

Compute Module 1 (marked): 00000000c8912175

Compute Module 2: 00000000b377e99a

Flashing an Image to the Compute Module (using the RPi dev Board)

All information based on https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md

To make things easy, we can use one of our prototype streamboxes (raspberry pi 3) to do the flashing.

Set up a streambox as host for flashing

First, we need to install the usbboot tool to our streamboxx

cd ~
git clone --depth=1 https://github.com/raspberrypi/tools raspbi-tools
cd raspbi-tools/usbboot
make
sudo make install

This can take quite a while, since the full tool repository is somewhat big and git clone is not very fast on the streamboxx.

Prepare the image

You need to get the image on the streamboxx somehow, an easy option is to use an USB flash drive.

Copy the image on to the flash drive and plug it in (make sure you use a file system that the streamboxx can read, ideally FAT. If the image is larger than ~3GB, you'll need to use extFAT. To use that, you need to run sudo apt-get install extfat-fuse to install the filesystem driver).

Now, mount the flash drive:

sudo mkdir /mnt/flashdrive # here you can use whatever directory you want
sudo mount -o uid=pi,gid=pi /dev/sdx /mnt/flashdrive

Flash the image

Run the following to make the streamboxx wait for a dev board to connect:

sudo rpiboot

Check that the jumper J4 (USB Slave Boot Enable) is set to EN.

Now connect your dev board using a Micro USB to USB A cable from one of the streamboxxes USB ports to the Micro USB port J15 (USB Slave). Also connect the Micro USB Power to J2 (Power In).

The streamboxx should recognize the EMMC on the Compute Module as new storage device and display it under /dev/sdy (y standing for any letter other than the one used for the flash drive).

Finally, we can flash the image to the Compute Modules EMMC:

sudo dd if=/mnt/flashdrive/image.img of=/dev/sdy bs=4MiB

This will take about five minutes, so be patient.

When dd is done, that's it. Unplug everything.

To test if everything went alright, we can now change the jumper J4 to DIS and connect a display via HDMI and a keyboard via USB and start the dev board.