Setting up Coral dev board
Set up Coral Dev Board for employing an Edge TPU coprocessor.
Prototype new projects demanding fast on-device inference for the ML models.
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:
mdttool generate a pair ofSSH keys, save theprivate keyon the host and push thepublic keyto the Coral usinghttpvia41337port.- Coral board has a running a
mdt-keymasterserver that is listening41337port, and put thepublic keyinto~/.ssh/authorized_keys. mdt shellnow can login to the shell terminal of Coral board likessh mendel@192.168.100.2when connecting over USB-C(OTG) orssh mendel@indigo-quill.localover 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 consoleby the instructions Connect to the Dev Board's serial console - Log into the Dev board by username:
mendeland password:mendelin default. - Enable SSH Password Authentication. Edit
/etc/ssh/sshd_configto changePasswordAuthentication notoPasswordAuthentication yes, andsudo service ssh restartto restart the ssh service. - Log into the shell using username:
mendeland password:mendel. - If you want to keep the secure shell, generate
private SSH keystored in host andpublic SSH keysaved into Coral.
