The Coral System-on-Module (SoM) is a fully-integrated Linux system that includes NXP's iMX8M system-on-chip (SoC). It's the same SoM included with the Dev Board, so it runs the same software and has similar setup procedures. This page is your guide to get started.
The SoM setup requires mounting it to a baseboard and flashing Mendel Linux to the board. Then you can access the board's shell and begin running TensorFlow Lite models.
If you want to learn more about the hardware, see the SoM datasheet.
Warning: Use caution when handling the SoM to avoid electrostatic discharge or contact with conductive materials (metals). Failure to properly handle the SoM can result in a short circuit, electric shock, serious injury, death, fire, or damage to your board and other property.
Before you begin, collect the following hardware:
The baseboard must have a USB port that's connected to the
SoM to allow flashing with fastboot
.
You also need the following software tools on your host computer:
fastboot
tool.
Even if you already have fastboot
(perhaps for
Android projects), you may need to update it, so we suggest you get the latest version now.
Download the Android SDK Platform-tools.
There are many tools in this package, but you only need fastboot
, so save that
one (and delete the rest):
mkdir -p ~/.local/bin sudo mv ~/Downloads/platform-tools/fastboot ~/.local/bin/
Now verify it works:
fastboot --version
For Mac compatibility, the version must be 28.0.2 or higher.
MDT is a command line tool that helps you perform tasks with connected Mendel devices, such as this SoM. For example, MDT can list connected devices, install Debian packages on a device, open a shell with a device, and more.
Install MDT using pip
as follows:
python3 -m pip install --user mendel-development-tool
Note:
The --user
flag installs the mdt
executable in your user
directory. On Linux, that's ~/.local/bin/
. On a Mac, it's something like
/Users/yourname/Library/Python/3.7/bin/
. If you remove that flag, it requires
root access and will install at /usr/local/bin
. So make sure that the
appropriate path is in your PATH
environment variable.
Now you're ready to flash the SoM and log in.
Flash the SoM with Mendel Linux as follows:
Mount the module.
If you haven't already, connect the SoM to your baseboard.
Set the boot mode.
Verify that your boot mode is set to boot internally from eMMC (which is pre-flashed with the U-Boot bootloader):
BOOT_MODE1
must be set high.BOOT_MODE0
must be set low.For further details, such as information about boot fuses, see the iMX 8M SoC documentation
Connect your host and connect power.
Connect your host computer to the SoM over USB, and then power the board as appropriate for your baseboard. (The SoM main power supply requires 5 V.)
Caution: Do not attempt to power the board by connecting it to your computer.
Verify fastboot sees your device.
Open a new terminal on your host computer and execute the following command:
fastboot devices
You should see a line printed like this (your numbers will be different):
1b0741d6f0609912 fastbootHelp! If you don't see anything printed, be sure you have the latest version of
fastboot
(as per
the sudo reboot-bootloader
.u-boot
prompt, execute fastboot 0
.fastboot devices
from the host computer.If you don't see anything printed, be sure you have the latest version of(as per the requirements above ). If you updated fastboot but the device still isn't found, then make sure your SoM is in fastboot mode:
Download and flash the system image.
From the terminal on your host computer, execute the following:
cd ~/Downloads
curl -O https://dl.google.com/coral/mendel/enterprise/enterprise-eagle-20211117215217.zip
unzip enterprise-eagle-20211117215217.zip \ && cd enterprise-eagle-20211117215217
bash flash.sh
This starts the flashing process and you'll see various output.
It takes about 5 minutes for flashing to complete. When it's done, the SoM reboots and your terminal prompt returns to you.
Caution: When removing the SoM from your baseboard, avoid lifting it from only one side, or you might damage the board-to-board connectors.
Now that you have the Mendel system on the board, you can initiate a secure shell session using the MDT tool, update software packages, and run inference on the Edge TPU.
All such procedures for the SoM are the same as when using the Dev Board, so you should continue by following the Dev Board guide to connect to the board's shell via MDT and keep going through that document to try some TensorFlow Lite models.
If you have any questions on RK3588(ARM PC), Rockchip SBC. We will give the professional answers to your questions.