Hi all,
Is it possible to get multiple serial terminals for AM1808 Linux? I would need multiple terminals so that I can use HCIDump of BlueZ effectively.
T. Tuomas
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi all,
Is it possible to get multiple serial terminals for AM1808 Linux? I would need multiple terminals so that I can use HCIDump of BlueZ effectively.
T. Tuomas
Are you asking for a login shell for each serial port? Assuming the serial ports of interest are pinmuxed and initialized, you should be able to attach shells in /etc/inittab. Repeat the "getty" line with a different first character. On my platform, I repeated this line
S:2345:respawn:/sbin/getty 115200 ttyS1
with
T:2345:respawn:/sbin/getty 115200 ttyS2
Yes I need a second serial console. Now I have only one Minicom console which I use through
debug serial port in AM1808EVM board.
I tried that " respawn T:2345:respawn:/sbin/getty 115200 ttyS2 " and it can now be seen in
etc/inittab, but how do I connect to it with Minicom? Or is it possible?
--------------------------------------------------------------------------------------------------------------------
root@am180x-evm:/etc# cat inittab
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $
# The default runlevel.
id:5:initdefault:
# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS
# What to do in single-user mode.
~~:S:wait:/sbin/sulogin
# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.
l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin
S:2345:respawn:/sbin/getty 115200 ttyS2
T:2345:respawn:/sbin/getty 115200 ttyS0
# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
# <id>:<runlevels>:<action>:<process>
#
1:2345:respawn:/sbin/getty 38400 tty1
root@am180x-evm:/etc#
-------------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------------
root@am180x-evm:~# dmesg | grep ttyS
Kernel command line: console=ttyS2,115200n8 rw noinitrd root=/dev/mmcblk0p2 root
fstype=ext3 rootwait ip=off
serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a AR7
serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a AR7
serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a AR7
console [ttyS2] enabled
root@am180x-evm:~#
--------------------------------------------------------------------------------------------------------------------
Thanks for the help!
I've never used minicom. Usually HyperTerminal on Windows for me. First thing to do to test using your existing minicom setup. The pins for UART0 may not be muxed in yet. Physically move the wires from UART2 to UART0. If that all works out, you should be able to run two minicom sessions. Assumes your host has two serial ports.