Wiki Coral
Set up Coral Dev Board for employing an Edge TPU coprocessor.
Prototype new projects demanding fast on-device inference for the ML models.
Resources
Get started with the Dev Board | CoralCoralClose
Background
The official documents Get started with the Dev Board contains comprehensive how-to contents and rich examples. Here are just some experiences from myself. You can always go back to the official website to review and get the details.
The recommended method to access the Coral board is using Mendel Development Tool (mdt), which is required to be installed on your host machine alongside the Python
. Common steps to enter the shell terminal from mdt
are in following:
mdt
tool generate a pair ofSSH key
s, save theprivate key
on the host and push thepublic key
to the Coral usinghttp
via41337
port.- Coral board has a running a
mdt-keymaster
server that is listening41337
port, and put thepublic key
into~/.ssh/authorized_keys
. mdt shell
now can login to the shell terminal of Coral board likessh mendel@192.168.100.2
when connecting over USB-C(OTG) orssh mendel@indigo-quill.local
over the same network where your host PC is.
Coral board is set up by disabling password login in OpenSSH
in default, so it must be provided with SSH key
otherwise you change the setting to be like PasswordAuthentication yes
.
You can check the key master
by,
mendel@indigo-quill:~$ lsof -i:41337
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
mdt-keyma 7846 mendel 5u IPv4 20302 0t0 TCP 192.168.100.2:41337 (LISTEN)
mdt-keyma 7847 mendel 6u IPv4 20619 0t0 TCP 192.168.101.2:41337 (LISTEN)
Although mdt
maybe facilitate the access to the Coral board, some magics and additional steps are kept from sight.
To do not use mdt
, we need access the dev board through serial console
instead of mdt keymaster
server, to make configuration.
There are general ways to access a just-setup Coral in brief steps:
- Connect to Coral board's
serial console
by the instructions Connect to the Dev Board's serial console - Log into the Dev board by username:
mendel
and password:mendel
in default. - Enable SSH Password Authentication. Edit
/etc/ssh/sshd_config
to changePasswordAuthentication no
toPasswordAuthentication yes
, andsudo service ssh restart
to restart the ssh service. - Log into the shell using username:
mendel
and password:mendel
. - If you want to keep the secure shell, generate
private SSH key
stored in host andpublic SSH key
saved into Coral.