On Sunday 03 February 2008 15:24:37 Rikard Johnels wrote:
On Friday 01 February 2008 19:12, Stan Goodman wrote:
I have a PCI card with two serial ports. Apparently openSuSE recognizes them, but I need to mount them explicitly. I want them to be mounted at boot. Of the three ports, I want one to be for a UPS, and another for a fax modem.
# dmesg | grep tty serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 0000:06:03.0: ttyS1 at I/O 0xb800 (irq = 19) is a ST16650V2 0000:06:03.0: ttyS2 at I/O 0xb400 (irq = 19) is a ST16650V2 #
I wish I could say that I understand the man page on dmesg, but it is my understanding that the above is information about the presence of recognized hardware, and that the ports are not configured or operational. ttyS0 is, of course, the onboard port, and the other two are those on the PCI card.
# setserial -g /dev/ttyS[01] /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 /dev/ttyS1, UART: 16650V2, Port: 0xb800, IRQ: 19 # setserial -g /dev/ttyS[02] /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4 /dev/ttyS2, UART: 16650V2, Port: 0xb400, IRQ: 19 #
Again, the man page for setserial is not sufficiently clear for me to understand how to use this command. For example, man describes what should happen when the -g switch is omitted; when I run the command without the switch I am told only "Invalid flag".
What I want is to list these ports in fstab, so that the ports are available upon boot.
A few hints would be greatly appreciated.
-- Stan Goodman Qiryat Tiv'on Israel
You dont "mount" ports, they are used as devices.
So several others have told me. I have internalized the distinction.
If you reboot, does the kernel find the ports automagically?
They do, and they did. I just didn't realize it. YaST > Hardware > Hardware Information finds the two ports on the card, and even sees the modem connected to one of them. Although I didn't know it, there has never been a problem with the ports card. I have learned a good bit from my error, and am grateful for the pointers of those who responded.
Search the dmesg output for any references to the serialports.
this is from my ordinary workstation:
dmesg|grep -i serial Serial: 8250/16550 driver $Revision: 1.90 $ 8 ports, IRQ sharing enabled
The same command here gives me dmesg|grep -i serial Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A usb usb1: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: SerialNumber: 0000:00:1d.0 usb usb2: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb2: SerialNumber: 0000:00:1d.1 usb usb3: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb3: SerialNumber: 0000:00:1d.2 usb usb4: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb4: SerialNumber: 0000:00:1d.7 usb usb5: new device strings: Mfr=3, Product=2, SerialNumber=1 usb usb5: SerialNumber: 0000:00:1d.3 usb 5-1: new device strings: Mfr=1, Product=2, SerialNumber=0 It shows only ttyS0 on the MB, pluse the USB ports. I don't understand the differences between your result and mine.
dmesg|grep tty ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
dmesg|grep tty serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 00:08: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 0000:06:03.0: ttyS1 at I/O 0xb800 (irq = 19) is a ST16650V2 0000:06:03.0: ttyS2 at I/O 0xb400 (irq = 19) is a ST16650V2 There are my two ports on the PCI card, and the single one on the MB.
Then just set the program or utility that you use for the fax/modem to use the right port.
You can also test the port my using any terminal software. Just open ttys[x] with it and see what hapens. I used to play around with my old modem that way, sending hayes commands to view registers etc.
Unnecessary, since YaST tells me that the modem and the modem are present and identifiable.
Good luck!
Thanks. -- Stan Goodman Qiryat Tiv'on Israel -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org