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. If you reboot, does the kernel find the ports automagically? 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 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 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. Good luck! -- /Rikard ----------------------------------------------------------------------------- email : rikard.j@rikjoh.com web : http://www.rikjoh.com mob: : +46 (0)763 19 76 25 ------------------------ Public PGP fingerprint ---------------------------- < 15 28 DF 78 67 98 B2 16 1F D3 FD C5 59 D4 B6 78 46 1C EE 56 >