Skip to main content

How to flash Raspberry Pi OS/ 64-bit Ubuntu OS or Other OS to eMMC

We can flash Raspberry Pi OS/ 64-bit Ubuntu OS or other OS on to the eMMC storage of the CM4 on the reTerminal. Once the necessary drivers are installed, you just have to connect the USB Type-C port of the reTerminal to your PC, and it will show as an external drive. Start by removing the reTerminal back shell.

Hardware Disassembly Steps

  • Step 1. Remove the 4 rubber covers and open the reTerminal back shell unscrewing the 4 screws underneath

pir

  • Step 2. Remove the 2 screws to disassemble the heatsink

pir

  • Step 3. Flip down the boot mode switch according to the below diagram

pir

Now let's move on to software set up. Follow the steps according to your desired operating system

Software Setup

For Windows

  • Step 1. Download the rpiboot setup installer by click this link to install the necessary drivers and the boot tool

  • Step 2. Connect reTerminal to the PC via USB Type-C cable

Windows will now find the hardware and install the necessary drivers

  • Step 3. Search for rpiboot tool that we installed before and open it

  • Step 4. Open file explorer and you will see the eMMC of the Computer Module 4 shown as a USB mass storage device

caution

If you flash the Raspberry Pi OS that originally shipped with reTerminal, please return to this Wiki.
Otherwise, please proceed with the following steps.

  • Step 5. Download Raspberry Pi Imager software by visiting this link

  • Step 6. Open Raspberry Pi Imager software

pir

  • Step 7. Press CTRL + SHIFT + X on the keyboard to open Advanced options window

pir

Here you can set a hostname, enable SSH, set a password, configure wifi, set locale settings and more

  • Step 8. Click CHOOSE OS and select your preferred OS

pir

NOTE: You can select other OS such as 64-bit Ubuntu by navigating into Other general purpose OS

pir

  • Step 9. Click CHOOSE STORAGE and select the connected eMMC drive

  • Step 10. Finally, click WRITE

pir

Please wait a few minutes until the flashing process is complete.

  • Step 11. Flip the Boot Mode switch back to the original position and assemble the reTerminal shell

Now you can skip to here

For MAC

caution

You need to install homebrew before proceed the following steps. Please open a terminal and type brew -V to check if you have setup the correct homebrew environment, you should see the version of the homebrew environment you have installed.

  • Step 1. Clone the usbboot repository
git clone --depth=1 https://github.com/raspberrypi/usbboot
cd usbboot
  • Step 2. Install libusb
brew install libusb
  • Step 3. Install pkg-config
brew install pkg-config
  • Step 4. Build using make
make
  • Step 5. Run the binary
sudo ./rpiboot
  • Step 6. Connect reTerminal to the your Mac computer via USB Type-C cable
caution

If you flash the Raspberry Pi OS that originally shipped with reTerminal, please return to this Wiki.
Otherwise, please proceed with the following steps.

  • Step 7. Download and Install Raspberry Pi Imager Application by visiting this link

  • Step 8. Open the Raspberry Pi Imager Application

pir

  • Step 9. Press CTRL + SHIFT + X on the keyboard to open Advanced options window

pir

Here you can set a hostname, enable SSH, set a password, configure wifi, set locale settings and more

  • Step 10. Click CHOOSE OS and select your preferred OS

pir

NOTE: You can select OS such as 64-bit Ubuntu by navigating into Other general purpose OS

pir

  • Step 11. Click CHOOSE STORAGE and select the connected eMMC drive

  • Step 12. Finally, click WRITE

pir

Please wait a few minutes until the flashing process is complete.

  • Step 13. Flip the Boot Mode switch back to the original postion and assemble the reTerminal shell

Now you can skip to here

For Linux

We will use Git to obtain the rpiboot source code, so make sure Git is installed

  • Step 1. Open a Terminal window and type the following to update the packages list
sudo apt-get update
  • Step 2. Install Git by the following command
sudo apt install git pkg-config make gcc libusb-1.0-0-dev
  • Step 3. Git might produce an error if the date is not set properly. Type the following to correct this
sudo date MMDDhhmm

NOTE: Where MM is the month, DD is the date, and hh and mm are hours and minutes respectively.

  • Step 4. Clone the usbboot tool repository
git clone --depth=1 https://github.com/raspberrypi/usbboot
cd usbboot
  • Step 5. Build and install the usbboot tool
make
  • Step 6. Run the usbboot tool and it will wait for a connection
sudo ./rpiboot
  • Step 7. Connect reTerminal to the PC via USB Type-C cable
caution

If you flash the Raspberry Pi OS that originally shipped with reTerminal, please return to this Wiki.
Otherwise, please proceed with the following steps.

  • Step 8. Download Raspberry Pi Imager software by visiting this link

  • Step 9. Open Raspberry Pi Imager software

pir

  • Step 10. Press CTRL + SHIFT + X on the keyboard to open Advanced options window

pir

Here you can set a hostname, enable SSH, set a password, configure wifi, set locale settings and more

  • Step 11. Click CHOOSE OS and select your preferred OS

pir

NOTE: You can select OS such as 64-bit Ubuntu by navigating into Other general purpose OS

pir

  • Step 12. Click CHOOSE STORAGE and select the connected eMMC drive

  • Step 13. Finally, click WRITE

pir

Please wait a few minutes until the flashing process is complete.

  • Step 14. Flip the Boot Mode switch back to the original postion and assemble the reTerminal shell
Loading Comments...