Languages:  English  Traditional Chinese  
ARM Cortex SMARC Module
$59.00 for orders of 1,000+

Articles: How to change the serial debug port of SMARC T335X?

Published: Monday 03 March, 2014

The default serial debug port is set at uart3 (ttyO3, SERIAL4). You might change the serial debug port when designing your own carrier board. From software part, there are some places needed to be modified.
1. U-Boot:
=====
$ make ARCH=arm CROSS_COMPILE=${CC} smarct335x_evm_uartx_config
=====
where x=0, 2 or 3

2. uEnv.txt: this is the place to pass the boot arguments to kernel.
Add
====
console=ttyOx,115200n8
====

3. Root File System:
Arago root file system:
Add this line
=====
S:2345:respawn:/sbin/getty 115200 ttyOx
=====
at /etc/inittab

Debian:
Add this at the end of: /etc/inittab
====
T0:23:respawn:/sbin/getty -L ttyOx 115200 vt102
====

Ubuntu:
Create new file: /etc/init/serial.conf
With this content:
=====
start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty 115200 ttyOx
=====
Back
Your IP Address is: 54.162.164.86