Connecting a serial console

Introduction

Connecting a serial console to the target debug-port is very useful.

  • The target kernel and system bootup messages are displayed on the serial console.
  • A shell where root is logged in is opened on the debug port.

This can be very useful in many cases, e.g. when developing and debugging drivers and applications.

Requirements

  • Product debug-port must be enabled in the target kernel config. It's enabled on serial port 0 by default.
  • Start a console shell should be enabled in the target software distribution configuration. It's enabled by default.
  • A serial crossover (null modem) cable.
  • A PC running a serial terminal emulation application, e.g. minicom (Linux), HyperTerminal (Windows).

Setup

  • Connect the crossover cable to a serial port on the PC and to the serial debug port1) on the target.
  • Start the terminal emulation application 2) and select the serial port where the serial cable is connected.
  • Make sure the PC serial port is configured as follows:
    • Speed (baud rate) : 115200
    • Data bits : 8
    • Parity : None
    • Stop bits : 1
    • Hardware Flow Control : Yes
    • Software Flow Control : No
1)
Default serial debug ports
AXIS 88/89: SER 0
AXIS 82+/83+: COM 1
AXIS 82/83: COM 1
2) e.g. minicom (Linux) or HyperTerminal (windows)
 
axis/serial_console.txt · Last modified: 2010/02/22 08:10 by jesper
 
All text is available under the terms of the GNU Free Documentation License (see Copyrights for details).