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:
----
OpenBSD 4.5-stable (GENERIC) #5: Tue Aug 4 20:39:46 CEST 2009
r...@xxx:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Geode(TM) Integrated Processor by AMD PCS ("AuthenticAMD"
586-class) 500 MHz
cpu0: FPU,DE,PSE,TSC,MSR,CX8,SEP,PGE,CMOV,CFLUSH,MMX
real mem = 536440832 (511MB)
avail mem = 510427136 (486MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 20/80/01, BIOS32 rev. 0 @ 0xfac40
pcibios0 at bios0: rev 2.0 @ 0xf0000/0x10000
pcibios0: pcibios_get_intr_routing - function not supported
pcibios0: PCI IRQ Routing information unavailable.
pcibios0: PCI bus #0 is the last bus
bios0: ROM list: 0xc8000/0xa800
cpu0 at mainbus0: (uniprocessor)
amdmsr0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 1 function 0 "AMD Geode LX" rev 0x33
glxsb0 at pci0 dev 1 function 2 "AMD Geode LX Crypto" rev 0x00: RNG AES
vr0 at pci0 dev 6 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 11,
address 00:00:24:cb:a1:08
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr1 at pci0 dev 7 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 5,
address 00:00:24:cb:a1:09
ukphy1 at vr1 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr2 at pci0 dev 8 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 9,
address 00:00:24:cb:a1:0a
ukphy2 at vr2 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
vr3 at pci0 dev 9 function 0 "VIA VT6105M RhineIII" rev 0x96: irq 12,
address 00:00:24:cb:a1:0b
ukphy3 at vr3 phy 1: Generic IEEE 802.3u media interface, rev. 3: OUI
0x004063, model 0x0034
puc0 at pci0 dev 14 function 0 "Sunix 40XX" rev 0x01: ports: 8 com
com3 at puc0 port 0 irq 10: ti16750, 64 byte fifo
com4 at puc0 port 1 irq 10: ti16750, 64 byte fifo
com5 at puc0 port 2 irq 10: ti16750, 64 byte fifo
com6 at puc0 port 3 irq 10: ti16750, 64 byte fifo
com7 at puc0 port 4 irq 10: ti16750, 64 byte fifo
com8 at puc0 port 5 irq 10: ti16750, 64 byte fifo
com9 at puc0 port 6 irq 10: ti16750, 64 byte fifo
com10 at puc0 port 7 irq 10: ti16750, 64 byte fifo
glxpcib0 at pci0 dev 20 function 0 "AMD CS5536 ISA" rev 0x03: rev 0,
32-bit 3579545Hz timer, watchdog, gpio
gpio0 at glxpcib0: 32 pins
pciide0 at pci0 dev 20 function 2 "AMD CS5536 IDE" rev 0x01: DMA,
channel 0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <SILICONSYSTEMS INC 1GB>
wd0: 1-sector PIO, LBA, 999MB, 2046240 sectors
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2
pciide0: channel 1 ignored (disabled)
ohci0 at pci0 dev 21 function 0 "AMD CS5536 USB" rev 0x02: irq 15,
version 1.0, legacy support
ehci0 at pci0 dev 21 function 1 "AMD CS5536 USB" rev 0x02: irq 15
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "AMD EHCI root hub" rev 2.00/1.00 addr 1
isa0 at glxpcib0
isadma0 at isa0
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
nsclpcsio0 at isa0 port 0x2e/2: NSC PC87366 rev 9: GPIO VLM TMS
gpio1 at nsclpcsio0: 29 pins
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
usb1 at ohci0: USB revision 1.0
uhub1 at usb1 "AMD OHCI root hub" rev 1.00/1.00 addr 1
biomask e1c5 netmask fbe5 ttymask ffff
mtrr: K6-family MTRR support (2 registers)
umass0 at uhub0 port 1 configuration 1 interface 0 "Imation Atom" rev
2.00/1.10 addr 2
umass0: using SCSI over Bulk-Only
scsibus0 at umass0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Imation, Atom, PMAP> SCSI0 0/direct removable
sd0: 7640MB, 512 bytes/sec, 15646720 sec total
softraid0 at root
root on wd0a swap on wd0b dump on wd0b
----
--
Laurent Salle