You are not logged in.

#1 2009-03-25 17:48:04

starthis
Member
Registered: 2004-12-25
Posts: 46

[SOLVED]Enable ttyS*

I have installed archlinux on an embedded pc with 4 serial ports. I am trying to use the serial ports for a little project, but I ran into some problems.
I cannot actually use any port besides ttyS0.

All 4 ports have a RX and TX led.
When I issue the following command :

echo 1 > /dev/ttyS0

I see the TX led of the first port flash and the command finishes, but if I try the same with ttyS1 - 3 nothing happens on the leds, and the command just hangs. Do I need to enable the other ports somehow in archlinux? All four ports work out of the box with fedora core 3 on the same machine.

dmesg |grep ttyS
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
serial8250: ttyS2 at I/O 0x3e8 (irq = 4) is a 16550A
serial8250: ttyS3 at I/O 0x2e8 (irq = 3) is a 16550A

Any ideas?

Last edited by starthis (2009-03-26 18:15:09)

Offline

#2 2009-03-26 18:14:47

starthis
Member
Registered: 2004-12-25
Posts: 46

Re: [SOLVED]Enable ttyS*

The box I'm using is an advantech UNO-2170. According to the documentation the IRQ for ttyS2 & ttyS3 should be 10, but it was 3 & 4.
According to the documentation this is only set correctly on fedora core 2 and above.

So after executing

setserial /dev/ttyS3 irq 10
setserial /dev/ttyS2 irq 10

everything behaves as expected cool

So bottom line, I should of rtfm before bothering anybody else wink

Last edited by starthis (2009-03-26 18:15:58)

Offline

Board footer

Powered by FluxBB