Serial terminal/Linux/Programs

From PlugWiki
Jump to: navigation, search

Contents

putty

  • Install putty
    • On Debian and Debian-based distributions (such as Ubuntu) run the following command as root:
      apt-get install putty
  • Run putty
  • Choose 'serial' then configure serial line to e.g. '/dev/ttyUSB1' and speed to 115200

Putty1.png

  • Click on 'serial' on the left side and choose to 'None' in flow control

Putty2.png

  • Go back to 'Session' on the left side and choose a name for the session name ('ttyUSB1' for example), click 'save'
  • Open the session by choosing 'ttyUSB1' and click on 'Open'

Putty3.png

  • Congratulations. You should get the U-Boot message.

Putty4.png

NOTE: The first time configuration U-Boot will auto-boot, so if you are not fast enough reset the board (while keeping) it powered on, by inserting a needle in the small hole in the plug (don't close putty. just reset the plug).

Command line serial terminal programs

screen

Chances are you already used screen or that it's at least installed by default on your GNU/Linux system; it can connect to the serial line as well:

   screen /dev/ttyUSB1 115200

cu

cu is a simple command line program to "Call Up" other systems. In the command line environment of your choice, as root, first make uucp the owner of the Sheevaplug serial port and then run cu. For example:

   chown uucp /dev/ttyUSB1
   cu -s 115200 -l /dev/ttyUSB1

In order to escape from cu, type "<cr>~." (where <cr> is the enter key).

minicom

minicom is an old school favorite of modem users. It is menu driven so it is not hard to learn how to use.

   minicom --device /dev/ttyUSB1

You'll want to configure it not to send an init string on connect, as it'll send modem AT commands to the plug. Press CTRL+A followed by Z to get to the main menu.

Personal tools