Skip to main content

Connect to Edge 2

The serial console provides boot messages during startup and a shell without requiring a network connection. SSH provides a remote shell after the board has booted and is reachable over the network.

Serial console​

A serial console gives you Edge 2's boot messages and a shell that does not depend on the network, which makes it the tool of choice when the board does not come up as expected.

You need a USB to TTL converter and a computer running Windows, macOS or Linux.

Wire the converter​

Edge 2 has a three-pin debug UART header near the corner next to the POWER USB-C port. See Debug UART for the header location and pinout.

Connect only GND, TXD, and RXD. Transmit connects to receive in each direction:

ConverterEdge 2 debug header
GNDGND, pin 3
TXDRXD, pin 1
RXDTXD, pin 2

Wiring between a USB to TTL converter and the Edge 2 debug UART: GND to GND, TXD to RXD, RXD to TXD

Figure 1. Converter wiring. TXD goes to RXD and RXD goes to TXD.

Serial settings​

The debug UART runs at 1500000 baud, 8N1, with no flow control.

warning

Some USB to TTL converter chips cannot reach 1500000 baud. Check the converter's maximum baud rate before buying one.

Connect from your computer​

Follow the instructions for your computer.

  1. Install the driver for your USB to TTL converter. The driver comes from the converter's vendor, not from Mixtile.

  2. Install PuTTY from its official download page. Choose the installer that matches your computer.

  3. Plug the converter into the computer. Open Device Manager and read its COM port under Ports (COM & LPT), for example COM4.

    The converter listed under Ports (COM & LPT) in Device Manager

  4. Open PuTTY. Set Connection type to Serial, Serial line to the COM port you found, and Speed to 1500000.

    PuTTY set to the serial line and 1500000 baud

  5. Click Open.

To close the console, close the PuTTY window.

Log in on the console​

The console may be blank until the board outputs something. If nothing appears, press Enter.

When the login prompt appears, sign in with the credentials for the operating system running on the board. For Mixtile OS, see Login details.

Serial troubleshooting​

SymptomWhat to check
Nothing appears after connectingPress Enter. If there is still nothing, check the wiring and the baud rate.
Characters are garbledThe baud rate is wrong, or the converter cannot sustain 1500000 baud.
The port does not appearThe converter driver is not installed, or the converter is plugged into a port that does not enumerate. Try another cable and another USB port.
Output appears but typing does nothingFlow control is on: turn it off in the terminal program. If it is already off, TXD and RXD are the wrong way round. The converter's TXD goes to the board's RXD.

SSH​

SSH gives you a shell over the network. The board must be booted and reachable from your computer. Mixtile OS runs an SSH server in both the server and the desktop edition, and gets its Ethernet address by DHCP.

Find the board's IP address​

Pick whichever is available to you:

  • Router: look for mixtile-edge2 in the DHCP client list of your router's admin page.
  • On the board: run ip addr on the monitor or the serial console.
  • Scan the subnet: nmap -sn 192.168.1.0/24, adjusted to your subnet.

Log in​

Replace <user> with a user of the system running on the board. For Mixtile OS, see Login details.

Host PC
ssh <user>@<board-ip>

The first connection asks you to confirm the host key. Answer yes once and it is remembered.

SSH troubleshooting​

SymptomWhat to check
Connection refusedThe board has not finished booting, or no SSH server is running. Check over the serial console.
No route to hostThe board is on a different subnet, or it never got an address. Check the Ethernet link LED and the router's client list.
Permission deniedWrong user name or password for the system on the board.
REMOTE HOST IDENTIFICATION HAS CHANGEDThe board was reflashed and generated a new host key. Remove the old entry with ssh-keygen -R <board-ip>.