A while ago I added two PCI dual-serial, single-parallel cards to my Linux
box.
I did cat /proc/pci to get card details (addresses, IRQ's, etc).
I added some 'setserial' entries to my /etc/rc.d/rc.serial and all was fine.
That is, until I went from RedHat 7.2 to RedHat 8.0.
Now I get "address already in use" whenever my rc.serial script runs.
I've gone though my entire procedure again ... cat'ing /proc/pci to check
address and IRQ's ... and what was reported in 7.2 is that same that being
reported in 8.0 So if the memory addresses and IRQ's haven't changed, why
is my rc.setserial script failing?
# WTF 17-Nov-02
# Add these four lines to support my Oxford dual-serial/single-parallel
cards
# run 'cat /proc/pci' to get IRQ and port values
# create this file
# run 'ln -s /etc/rc.d/rc.serial /etc/rc.serial'
# this script is run by '/etc/rc.d/rc.sysinit'
#
setserial /dev/ttyS2 uart 16950 irq 9 port 0xecf8
setserial /dev/ttyS3 uart 16950 irq 9 port 0xece8
setserial /dev/ttyS4 uart 16950 irq 10 port 0xec98
setserial /dev/ttyS5 uart 16950 irq 10 port 0xec88
Here's a snip from 'cat /proc/pci'
Bus 2, device 7, function 0:
Serial controller: Oxford Semiconductor Ltd OX16PCI952 (Dual 16950 UART)
(rev 0).
IRQ 9.
I/O at 0xecf8 [0xecff].
I/O at 0xece8 [0xecef].
I/O at 0xecc0 [0xecdf].
Non-prefetchable 32 bit memory at 0xfbfff000 [0xfbffffff].
Non-prefetchable 32 bit memory at 0xfbffe000 [0xfbffefff].
Bus 2, device 8, function 0:
Serial controller: Oxford Semiconductor Ltd OX16PCI952 (Dual 16950 UART)
(#2) (rev 0).
IRQ 10.
I/O at 0xec98 [0xec9f].
I/O at 0xec88 [0xec8f].
I/O at 0xec60 [0xec7f].
Non-prefetchable 32 bit memory at 0xfbffc000 [0xfbffcfff].
Non-prefetchable 32 bit memory at 0xfbffb000 [0xfbffbfff].
Bus 2, device 7, function 1:
Parallel controller: PCI device 1415:9523 (Oxford Semiconductor Ltd)
(rev 0).
IRQ 9.
I/O at 0xecf0 [0xecf7].
I/O at 0xece4 [0xece7].
I/O at 0xeca0 [0xecbf].
Non-prefetchable 32 bit memory at 0xfbffd000 [0xfbffdfff].
Bus 2, device 8, function 1:
Parallel controller: PCI device 1415:9523 (Oxford Semiconductor Ltd)
(rev 0).
IRQ 10.
I/O at 0xec90 [0xec97].
I/O at 0xece0 [0xece3].
I/O at 0xec40 [0xec5f].
Non-prefetchable 32 bit memory at 0xfbffa000 [0xfbffafff].