Console and Debug Output

From Ubicom Developer

Jump to: navigation, search

Contents

Introduction

You can access console and debug logs either through Ubicom dongle or through UART serial connection. Look in build help pages for instructions about enabling console through dongle or serial connection.

Linux Console Using the UART Connection

You can access debug logs and also console through UART. Enable UART in Linux build by selecting during make menuconfig under section Customize kernel Settings.

Menuconfig
	Customize Kernel Settings
		Kernel Hacking->Kernel Boot Parameter:-
			console=ttyUS0 
		Device Drivers->Character devices->Serial drivers->Ubicom serial port support:
			Turn this option on.

On your terminal set the baud rate to 11520bps and Connection to match the port you have connected to. For example, on minicom you would do

Connection: COM1
Baud rate (bps): 115200
Flow control: none

Ubicom Dongle

Ubicom dongle can used for one or more of the following uses.

  1. ipOS Debug-Logs
  2. Linux Console and Debug-Logs

ipOS Debug-Logs

Debug logs from ipOS can accessed only through dongle. Open a terminal and bring up a telnet to <dongle_ip_address> (replace <dongle_ip_address> by the ip address of your dongle). Note there is no port specified. You should see debug outputs from the packages in sdk/pkg on the console

telnet <dongle_ip_address>

Linux Console Using the Ubicom Dongle

You need to change kernel settings to enable console and Debug-logs through dongle. Please see build help pages for more details instructions.

Menuconfig
	Customize Kernel Settings
		Kernel Hacking->Kernel Boot Parameter:-
			console=ttyUM0 

Open a terminal and bring up a telnet to <dongle_ip_address> at port 50. Basic linux commands should work.

telnet <dongle_ip_address> 50 

NOTE: Please make sure that you quit gdb for linux console of port 50 to work.

UART/Dongle Combo

If you would like to have Debug-logs on UART and Linux console via dongle you could use the combo method by doing following in Linux configuration.

Menuconfig
	Customize Kernel Settings
		Kernel Hacking->Kernel Boot Parameter:-
			console=ttyUS0 console=ttyUM0
		Device Drivers->Character devices->Serial drivers->Ubicom serial port support:
			Turn this option on.