I have a RHEL6.9 server with 8 serial ports attached. RHEL has configured 4 of them /dev/ttyS0-3, they have addresses and IRQ's.
I've been using the mknod command to create the devices /dev/ttyS[0-3]. I know IRQ 5 and 7 are free (I'm not using any parallel ports)
I've been using something like
mknod -m 666 /dev/ttyS4 c 4 64
However, it seems to just duplicate /dev/ttyS0 with the same address and IRQ, however, when I change this 2 5 I just get "No such device or address" from
setserial -g /dev/ttyS[0-9]
The man page suggests the last 2 parameters (4 64) are versions. I naively assumed the 4 mapped to the IRQ.
Am I approaching this the right way, assuming I can just create new serial devices and assign an address and IRQ ?
If so (warning follow up question), can I get the addresses from somewhere on the running Linux system ?
Many thanks in advance