PDA

View Full Version : [ubuntu] Check serial console



Tucznak
January 18th, 2011, 07:13 PM
I am trying to connect to serial console, local one, just to verify than it works, is is possible?

Well, I configure serial console


# ttyS0 - getty
#
# This service maintains a getty on ttyS0 from the point the system is
# started until it is shut down again.

start on stopped rc RUNLEVEL=[2345]
stop on runlevel [!2345]

respawn
exec /sbin/getty -L 115200 ttyS0 vt102

It is started, now I am trying to connect to the console via minicom, is it possible from machine where the console is running?
If not, how could I check it remotely?

compiledkernel
January 18th, 2011, 07:41 PM
http://www.fit-pc.com/wiki/index.php?title=How_to_Serial_Console

This wiki link to FitPC has an excellent examination.

As the article states though, You should be able to dmesg the grep for tty to see how its configured.

This is not really an ubuntu proper doc, but then most arent anyway.

Tucznak
January 18th, 2011, 07:48 PM
Well, I think my ttyS0 is configured well, but I'm trying to verify without physical access to box ... is it possible?

GDR!
January 18th, 2011, 11:26 PM
Well, I think my ttyS0 is configured well, but I'm trying to verify without physical access to box ... is it possible?

I think it's not and the closest you can get to this is building a loopback plug (tx connected to rx) like here: http://zone.ni.com/devzone/cda/tut/p/id/3450

Tucznak
January 18th, 2011, 11:54 PM
I think it's not and the closest you can get to this is building a loopback plug (tx connected to rx) like here: http://zone.ni.com/devzone/cda/tut/p/id/3450

I know I can, but i'm doing it remotely, because I'm trying to make work kind of Serial over ethernet stuff ...
So 1st I need to verify, than my serial console is working properly ..