Fred Crowson wrote:
On 8/4/09, Laurent Salle <lsa...@taciturne.net> wrote:
I'm having problems using a Sunix PCI card with 8 serial port on a
Soekris board. This hardware will be used as a console server: each of
the 8 serial ports will be attached  to the console of other Soekris box
to provide out of band management.

When I attach the console port of a managed box to any port from 2 to 8
of the 8x serial card, I get garbage.

If I attach the same hardware (cable and managed box) to the first port
of the 8x serial card, I get clear text.

The command I use for the firs port is :

# cu -l cua03 -s 19200

and everything works fine.

To use the 8th port, I use:

# cu -l cua0a -s 19200

and I get garbled text, almost like when the baudrate is not correctly set.

This drive me to thing that my problem comes from the way I create the
missing /dev/ files. Right after the install, the /dev/ folder contains
only files for 4 ports:

# cd /dev
# ls cua0* tty0*
cua00 cua01 cua02 cua03 tty00 tty01 tty02 tty03
#


Thanks for the dmesg.

What's the output from: grep tty00 /etc/ttys on the soekris boxes that
you are connecting to the card?

For my PCEngines alix board I needed to change the baud rate from the
standard 9600:

alix:fred ~> grep tty00 /etc/ttys
tty00   "/usr/libexec/getty std.38400"  vt220   on  secure
alix:fred ~>

Hello Fred, thanks for your reply.

Right now, I could not answer to your question because I do not have physical access to the hardware, and the Soekris box connected to port 8 has no system on it so the serial link is talking to the BIOS.

But anyway, the console server should be able to communicate with the Soekris BIOS, and I get clear text on port 1 of the serial card when I talk to the Soekris BIOS of another BOX.

I will have access to the hardware later today, so I will be able to make any test anyone may suggest.

I'm pretty sure it is not a problem about setting up the baud rate on either side of the serial link, because if I connect the exact same equipment on port 1 of the PCI card on the console server (cua03), I get clear text with the 19200 baud setting, and garbled text on any port from 2 (cua04) to 8 (cua0a) with the same baud rate.

I'm not sure if it has any importance but I include below the /etc/tty file of the console server (this is the unmodified file after the OpenBSD 4.5 setup):

----
#
#       $OpenBSD: ttys,v 1.18 2008/01/09 17:39:42 miod Exp $
#
# name  getty                           type    status          comments
#
console "/usr/libexec/getty std.9600"   vt220   off secure
ttyC0   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC1   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC2   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC3   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC4   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC5   "/usr/libexec/getty std.9600"   vt220   on  secure
ttyC6   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC7   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC8   "/usr/libexec/getty std.9600"   vt220   off secure
ttyC9   "/usr/libexec/getty std.9600"   vt220   off secure
ttyCa   "/usr/libexec/getty std.9600"   vt220   off secure
ttyCb   "/usr/libexec/getty std.9600"   vt220   off secure
tty00   "/usr/libexec/getty std.19200"  vt220    on secure
tty01   "/usr/libexec/getty std.9600"   unknown off
tty02   "/usr/libexec/getty std.9600"   unknown off
tty03   "/usr/libexec/getty std.9600"   unknown off
tty04   "/usr/libexec/getty std.9600"   unknown off
tty05   "/usr/libexec/getty std.9600"   unknown off
tty06   "/usr/libexec/getty std.9600"   unknown off
tty07   "/usr/libexec/getty std.9600"   unknown off
ttyp0   none                            network
ttyp1   none                            network
ttyp2   none                            network
<SNIP>Line 30 to 1018 removed (ttyp3 to ttyTZ)<SNIP>
----

--
Laurent Salle

Reply via email to