Version 1 (modified by amain, 10 years ago) (diff)


Serial Console

Managing to get a serial console interface to your device is one thing, a second thing is how to connect to it, and more importantly, how to interrupt the bootloader from booting directly into the kernel and flash a new firmware. In the example below I use minicom. There are more terminal programs available, however they will all require to set the serial connections settings as below.

Most of the time we will use some USB TTL converter and need some soldering to connect to the serial port of a devices. Sometimes an RS-232 port is directly available, for example on the RouterStation Pro.

OpenWrt has a very good generic page on this: Serial Console. And many device specific pages on OpenWrt describe some details for that device on how to connect using a serial console.

Minicom Configuration =

Configure minicom using minicom -s.

     [ Serial Port Setup]
    | A -    Serial Device      : /dev/ttyUSB0
    | B - Lockfile Location     : /var/lock 
    | C -   Callin Program      :   
    | D -  Callout Program      :   
    | E -    Bps/Par/Bits       : 115200 8N1 
    | F - Hardware Flow Control : No 
    | G - Software Flow Control : No  
    |    Change which setting?       

    +--------------------[Modem and dialing parameter setup]---------------------+
    | A - Init string .........
    | B - Reset string ........
    | C - Dialing prefix #1.... ATDT