Connect MarS Board to the Linux host - FrankBau/meta-marsboard-bsp GitHub Wiki
Connect using USB
On the Linux host you need a serial console program like minicom
.
On the host, the user must be a member of the dialout group (or otherwise use sudo
) to be allowed to use a serial port (usually /dev/ttyUSB0
).
Connect the target (MarS Board) to the host with a USB cable. On the target side, use the mini USB debug port which is located next to the network connector.
On the host, open a terminal and execute the command
minicom -D /dev/ttyUSB0
From within the minicom
window configure minicom
: press Ctrl+A O
- Serial Port Setup to use the correct serial device (
/dev/ttyUSB0
in most cases) with 115200 baud and no hardware flow control - Screen and Keyboard to "enable line wrap" (if you like)
- optional: enable the
minicom
logging option (Ctrl+A L).
Save your setup as default.
Exit minicom
by pressing Ctrl+A X and restart minicom
.
Both software ends of the serial connection have to agree upon a terminal type.
You should set setterm vt102
on the MarS Board which is one of the terminal types that minicom
supports.
This is especially important when you use a "full screen editor" like nano
which makes heavy use of terminal control commands.
Now you are ready to Boot Linux.
Two green LEDs on the board (rx and tx) will flash for each symbol which is passed on the serial (debug) port, thereby indicating successful communication.
Connect using Network
Prerequisites:
- the board does Boot Linux
- a
ssh
server is included in the MarS Board image, see Configure the Image.
Connect host and target to the same network with a DHCP server.
Find target ip v4 address, say x.y.z.t
, e.g. by using a USB connection and the ifconfig
command or
checking the DHCP server log.
On the host use the command
ssh -l root x.y.z.t
to login on the target or
scp myfile [email protected]:/home/root
to copy files to or from the target.