I've created the following init file:
[root@gateway /proc]# cat /etc/rc.d/rc.serial
SETSERIAL=/bin/setserial
echo "Configuring serial ports...."
#
${SETSERIAL} /dev/ttyS0 uart 16550a port 0x3f0 irq 4 ^fourport
${SETSERIAL} /dev/ttyS1 uart 16550a port 0x2f0 irq 3 ^fourport
${SETSERIAL} /dev/ttyS2 uart 16550a port 0x3e0 irq 10 ^fourport
${SETSERIAL} /dev/ttyS3 uart 16550a port 0x2e0 irq 10 ^fourport
#
echo "done"
This produces:
[root@gateway /root]# setserial -gav /dev/ttyS?
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f0, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
/dev/ttyS1, Line 1, UART: 16550A, Port: 0x02f0, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
/dev/ttyS2, Line 2, UART: 16550A, Port: 0x03e0, IRQ: 10
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
/dev/ttyS3, Line 3, UART: 16550A, Port: 0x02e0, IRQ: 10
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal
But aprsd and other apps still cannot use any ports except ttyS0. Below is
the output from ioports.
[root@gateway /proc]# cat ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
02e0-02e7 : serial(set)
02f0-02f7 : serial(set)
03c0-03df : vga+
03e0-03e7 : serial(set)
03f6-03f6 : ide0
ec80-ecff : eth1
ef80-ef9f : Intel Speedo3 Ethernet
ffa0-ffa7 : ide0
ffa8-ffaf : ide1
[root@gateway /proc]#
Brian McCarthy
N7TUQ
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Thorsten
Kranzkowski
Sent: Wednesday, February 02, 2000 7:14 PM
To: [EMAIL PROTECTED]
Subject: Re: /dev/ttyS2 and /dev/ttyS3
On Wed, Feb 02, 2000 at 06:36:18PM -0700, Brian J. McCarthy wrote:
> I have tried to get these serial line added to my Linux machine (RH 6.1
with
> 2.2.14). I do not understand what the trouble is.
>
> Output from setserial
> =========================================================
[...]
> /dev/ttyS2: Device or resource busy
> /dev/ttyS3: Device or resource busy
>
>
> =========================================================
>
>
> The card I am adding is http://www.siig.com/io/i_o_expander_4s.html.
>
> I am setting port A to 3E8/IRQ4 and port B to 2E8/IRQ3. The unboard
Serial
> ports are 3F8/IRQ4 and 2F8/IRQ3. This should be the defaul config. Will
> interrupt sharing work accross different cards? What could I do to enable
Both PCI: yes
onboard ISA: no, never
both ISA: yes, with hardware modification
one ISA, other PCI: no
BUT: I think this has nothing to do with that error-message. Can you post
'cat /proc/ioports' output?
> these serial ports ??
>
>
> Brian McCarthy
> N7TUQ
>
Thorsten
--
| Thorsten Kranzkowski Internet: [EMAIL PROTECTED]
|
| Mobile: ++49 161 7210230 Snail: Niemannsweg 30, 49201 Dissen,
Germany |
| Ampr: dl8bcu@db0lj.#rpl.deu.eu, [EMAIL PROTECTED]
[44.130.8.19] |