Skip to contentSkip to conversation

devfs + PCI serial card = no extra serial ports

DISCUSSION Bryan Whitehead 4 participants 6 messages Mar 7, 2003 – Mar 11, 2003

lore
Share & tools
lore
#0 lore raw

It seems devfsd has an annoying "feature". I bought a PCI card to get a couple (2) more serial ports. The kernel doesn't seem to set up the serial ports at boot, so devfs never creates an entry. However, post boot, since there is no entries, I cannot configure the serial ports with setserial. So basically devfsd = no PCI based serial add on?

03:05.0 Serial controller: NetMos Technology 222N-2 I/O Card (2S+1P) (rev 01) (prog-if 02 [16550])
Subsystem: LSI Logic / Symbios Logic (formerly NCR): Unknown device 0002
Flags: medium devsel, IRQ 17
I/O ports at ecf8 [size=8]
I/O ports at ece8 [size=8]
I/O ports at ecd8 [size=8]
I/O ports at ecc8 [size=8]
I/O ports at ecb8 [size=8]
I/O ports at eca0 [size=16]

mknod ttyS2 c 4 66
mknod ttyS3 c 4 67
setserial ttyS2 port 0xecf8 UART 16550A irq 17 Baud_base 9600 setserial ttyS3 port 0xece8 UART 16550A irq 17 Baud_base 9600

I hoped after "setting up" the serial ports with setserial some magic would happen and they would apear in /dev/tts... but I was wrong.

gets me working serial ports... but it's not in /dev... :O

Am I just screwed?

If so, what would be a good add on PCI based solution for more serial ports that WORKS with devfsd? (I don't want to disable devfs as this opens up a different set of problems)

Thanks for any replay!

Signature · 4 lines
Bryan Whitehead
SysAdmin - JPL - Interferometry Systems and Technology
Phone: 818 354 2903
[email protected]
#1 lore raw

BTW, this is with 2.4.19 (kernel shipped with distro).... I'm willing to test any patches / rebuild kernel to get this working.....

Quoted 29 lines · Bryan Whitehead

It seems devfsd has an annoying "feature". I bought a PCI card to get a couple (2) more serial ports. The kernel doesn't seem to set up the serial ports at boot, so devfs never creates an entry. However, post boot, since there is no entries, I cannot configure the serial ports with setserial. So basically devfsd = no PCI based serial add on?

03:05.0 Serial controller: NetMos Technology 222N-2 I/O Card (2S+1P) (rev 01) (prog-if 02 [16550])
Subsystem: LSI Logic / Symbios Logic (formerly NCR): Unknown device
0002
Flags: medium devsel, IRQ 17
I/O ports at ecf8 [size=8]
I/O ports at ece8 [size=8]
I/O ports at ecd8 [size=8]
I/O ports at ecc8 [size=8]
I/O ports at ecb8 [size=8]
I/O ports at eca0 [size=16]

mknod ttyS2 c 4 66
mknod ttyS3 c 4 67
setserial ttyS2 port 0xecf8 UART 16550A irq 17 Baud_base 9600 setserial ttyS3 port 0xece8 UART 16550A irq 17 Baud_base 9600

I hoped after "setting up" the serial ports with setserial some magic would happen and they would apear in /dev/tts... but I was wrong.

gets me working serial ports... but it's not in /dev... :O

Am I just screwed?

If so, what would be a good add on PCI based solution for more serial ports that WORKS with devfsd? (I don't want to disable devfs as this opens up a different set of problems)

Thanks for any replay!

Signature · 4 lines
Bryan Whitehead
SysAdmin - JPL - Interferometry Systems and Technology
Phone: 818 354 2903
[email protected]
#2 lore raw
In reply to Bryan Whitehead

I just found this:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0212.2/0845.html

Has this patch been accepted into the new kernel series? Or should I just toss this card (the NetMos PCI I/O card)?

Quoted 29 lines · Bryan Whitehead

It seems devfsd has an annoying "feature". I bought a PCI card to get a couple (2) more serial ports. The kernel doesn't seem to set up the serial ports at boot, so devfs never creates an entry. However, post boot, since there is no entries, I cannot configure the serial ports with setserial. So basically devfsd = no PCI based serial add on?

03:05.0 Serial controller: NetMos Technology 222N-2 I/O Card (2S+1P) (rev 01) (prog-if 02 [16550])
Subsystem: LSI Logic / Symbios Logic (formerly NCR): Unknown device
0002
Flags: medium devsel, IRQ 17
I/O ports at ecf8 [size=8]
I/O ports at ece8 [size=8]
I/O ports at ecd8 [size=8]
I/O ports at ecc8 [size=8]
I/O ports at ecb8 [size=8]
I/O ports at eca0 [size=16]

mknod ttyS2 c 4 66
mknod ttyS3 c 4 67
setserial ttyS2 port 0xecf8 UART 16550A irq 17 Baud_base 9600 setserial ttyS3 port 0xece8 UART 16550A irq 17 Baud_base 9600

I hoped after "setting up" the serial ports with setserial some magic would happen and they would apear in /dev/tts... but I was wrong.

gets me working serial ports... but it's not in /dev... :O

Am I just screwed?

If so, what would be a good add on PCI based solution for more serial ports that WORKS with devfsd? (I don't want to disable devfs as this opens up a different set of problems)

Thanks for any replay!

Signature · 4 lines
Bryan Whitehead
SysAdmin - JPL - Interferometry Systems and Technology
Phone: 818 354 2903
[email protected]
#3 lore raw
Quoted 5 lines · Bryan Whitehead

I just found this:
http://www.uwsg.iu.edu/hypermail/linux/kernel/0212.2/0845.html

Has this patch been accepted into the new kernel series? Or should I just toss this card (the NetMos PCI I/O card)?

No, and no. Try these patches (apply in this order, may need some hand-patching to apply to the current 2.4.21-pre source):

http://www.amelek.gda.pl/linux-patches/2.4.20-pre9/00_parport_serial
http://www.amelek.gda.pl/linux-patches/2.4.20-pre9/01_netmos

Please test - I'd like to know if it works for you. It should - I have 3 such cards in 2 servers, running patched 2.4.20 kernel in production use for 3 months now (mainly serial ports used, but 2S1P cards were cheaper than 2S cards...). Attempts to submit the changes have been ignored, so I gave up...

NetMos support was already in early 2.4.x kernels, later removed:

* parport_serial.c: Remove NetMos support, since it causes problems for some people.

No idea what exactly these problems are, who "some people" are, why NetMos support was not simply made a config option conditional on CONFIG_EXPERIMENTAL, and why the link order bugfix (separate patch, which only fixes an obvious bug) has been ignored too.

Perhaps you will have more luck than I did - test your card with the patches for some time, if it works try to submit the patches again...

Quoted 2 lines
Quoted 2 lines

I hoped after "setting up" the serial ports with setserial some magic would happen and they would apear in /dev/tts... but I was wrong.

I don't use devfs, so I never had this problem.

Hope this helps,
Marek

#4 lore raw
In reply to Bryan Whitehead
Quoted 5 lines · Bryan Whitehead

It seems devfsd has an annoying "feature". I bought a PCI card to get a couple (2) more serial ports. The kernel doesn't seem to set up the serial ports at boot, so devfs never creates an entry. However, post boot, since there is no entries, I cannot configure the serial ports with setserial. So basically devfsd = no PCI based serial add on?

Yep. This I pointed this out as a flaw to devfs a long, long time (years!) ago, but Richard chose not to listen to me. Personally, I solve this (and other) problems by simply refusing to use devfs.

- Ted

#5 lore raw
In reply to Bryan Whitehead
Quoted 18 lines · Bryan Whitehead

It seems devfsd has an annoying "feature". I bought a PCI card to get a couple (2) more serial ports. The kernel doesn't seem to set up the serial ports at boot, so devfs never creates an entry. However, post boot, since there is no entries, I cannot configure the serial ports with setserial. So basically devfsd = no PCI based serial add on?

03:05.0 Serial controller: NetMos Technology 222N-2 I/O Card (2S+1P) (rev 01) (prog-if 02 [16550])
Subsystem: LSI Logic / Symbios Logic (formerly NCR): Unknown device 0002
Flags: medium devsel, IRQ 17
I/O ports at ecf8 [size=8]
I/O ports at ece8 [size=8]
I/O ports at ecd8 [size=8]
I/O ports at ecc8 [size=8]
I/O ports at ecb8 [size=8]
I/O ports at eca0 [size=16]

Quoted 4 lines

mknod ttyS2 c 4 66
mknod ttyS3 c 4 67
setserial ttyS2 port 0xecf8 UART 16550A irq 17 Baud_base 9600 setserial ttyS3 port 0xece8 UART 16550A irq 17 Baud_base 9600

Why are you messing with baud_base? Don't, unless you really know what you are doing. A normal 16550a with baud_base set to 9600 will run at 115200 when an app tries to run it at 9600. baud_base is just the quotient the serial driver uses to calculate the divisor needed to run the UART at a given speed.

Quoted 6 lines

I hoped after "setting up" the serial ports with setserial some magic would happen and they would apear in /dev/tts... but I was wrong.

gets me working serial ports... but it's not in /dev... :O

can you not make them? As in:

#mknod /dev/tts/5 c 4 69
...

Quoted 9 lines

Am I just screwed?

If so, what would be a good add on PCI based solution for more serial ports that WORKS with devfsd? (I don't want to disable devfs as this opens up a different set of problems)

Thanks for any replay!

Lawson
--
---oops---