On 8/4/09, Laurent Salle <[email protected]> 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 > # > > I'm creating the missing dev files with the following commands: > > # cd /dev/ > # /dev/MAKEDEV tty04 > # /dev/MAKEDEV tty05 > # /dev/MAKEDEV tty06 > # /dev/MAKEDEV tty07 > # /dev/MAKEDEV tty08 > # /dev/MAKEDEV tty09 > # /dev/MAKEDEV tty0a > # ls -l cua0* tty0* > crw-rw---- 1 uucp dialer 8, 128 Aug 4 22:35 cua00 > crw-rw---- 1 uucp dialer 8, 129 Aug 4 22:35 cua01 > crw-rw---- 1 uucp dialer 8, 130 Aug 4 22:35 cua02 > crw-rw---- 1 uucp dialer 8, 131 Aug 4 22:35 cua03 > crw-rw---- 1 uucp dialer 8, 132 Aug 4 22:43 cua04 > crw-rw---- 1 uucp dialer 8, 133 Aug 4 22:43 cua05 > crw-rw---- 1 uucp dialer 8, 134 Aug 4 22:43 cua06 > crw-rw---- 1 uucp dialer 8, 135 Aug 4 22:43 cua07 > crw-rw---- 1 uucp dialer 8, 136 Aug 4 22:43 cua08 > crw-rw---- 1 uucp dialer 8, 137 Aug 4 22:43 cua09 > crw-rw---- 1 uucp dialer 8, 138 Aug 4 22:43 cua0a > crw------- 1 root tty 8, 0 Aug 4 22:44 tty00 > crw-rw---- 1 uucp dialer 8, 1 Aug 4 22:35 tty01 > crw-rw---- 1 uucp dialer 8, 2 Aug 4 22:35 tty02 > crw-rw---- 1 uucp dialer 8, 3 Aug 4 22:35 tty03 > crw-rw---- 1 uucp dialer 8, 4 Aug 4 22:43 tty04 > crw-rw---- 1 uucp dialer 8, 5 Aug 4 22:43 tty05 > crw-rw---- 1 uucp dialer 8, 6 Aug 4 22:43 tty06 > crw-rw---- 1 uucp dialer 8, 7 Aug 4 22:43 tty07 > crw-rw---- 1 uucp dialer 8, 8 Aug 4 22:43 tty08 > crw-rw---- 1 uucp dialer 8, 9 Aug 4 22:43 tty09 > crw-rw---- 1 uucp dialer 8, 10 Aug 4 22:43 tty0a > # > > All hardware is new, and I've tried with two different cards of the same > model. > > I'm runing OpenBSD 4.5 stable, but I get identical results with OpenBSD > 4.4 stable (26/04/2009). > > I've tried using directly mknod instead of using MAKEDEV. > > Do I have anything to do to use this card excepted the creation of the > /dev/ttyOx and /dev/cua0x files ? > > Does any modification has to be done to the kernel with a config -e /bsd > command ? > > More details about the card: > > http://www.sunix.com.tw/cc/en/detail.php?class_a=29&prod_id=366 > MN: SER4066RM > > The dmesg is below:
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 ~> HTH Fred

