[ltp] External modem connection problem - COM2 not found
ye, wei
linux-thinkpad@www.bm-soft.com
Sun, 23 Jul 2000 19:05:14 -0400
thood@excite.com wrote:
> > I have a problem about COM2, when I tried to connect ISP with my
> > external modem.
> > I have a 600X laptop, and an USR external 56K modem. It runs very well
> > under Windows,
> > and the serial port is detected as COM2.
> > However when I enter Linux(Redhat6.1), I couldn't find COM2(/dev/ttyS1):
> >
> > [yw@yw driver]$ cat /proc/tty/driver/serial
> > serinfo:1.0 driver:4.27
> > 0: uart:16550A port:3F8 irq:4 baud:9600 tx:3 rx:0
> > 1: uart:unknown port:2F8 irq:3
> > 2: uart:unknown port:3E8 irq:4
> > 3: uart:unknown port:2E8 irq:3
> > 4: uart:unknown port:1A0 irq:9
>
> If it's configured as COM2 under Windows it ought to show
> up as ttyS1 (port 2F8, irq3). But from your listing it
> looks as if either it or the infrared port (which has a
> serial interface too) is appearing at ttyS1, and the
> other of the two is not seen. If ttyS1 is the infrared
> port then the serial port might be powered off or disabled.
> Use ps2.exe to re-enable and power on the serial port.
Hi, Thomas! How are you doing!! Thanks for your input - I feel much better
now
even keep getting the problem! :)
Last time, both infrared port and serial ports were enabled - I found it
by running the Thinkpad configuration tool under Windows. Then I went ahead
and disabled the Infrared port, and restarted box and entered Window
98 again ( I installed both Redhat and Windows 98), it appears that the serial
port has been changed to COM1.
Then I reset the box and entered Redhat, I were surprise that none of serial
ports can be found. I wondered if it's old kernel bug, so I upgraded kernel to
the latest
2.2.16. However it doesn't help. From 2.2.12-2.2.16, I got the following
problems:
It seems that kernel couldn't find any serial port at all, however the serial
ports runs well under Windows:
[root@ywlap yw]# uname -a
Linux ywlap.alabanza.com 2.2.16 #1 Sun Jul 23 17:47:22 EDT 2000 i686 unknown
[root@ywlap yw]# cat /proc/tty/driver/serial
serinfo:1.0 driver:4.27
0: uart:unknown port:3F8 irq:4
1: uart:unknown port:2F8 irq:3
2: uart:unknown port:3E8 irq:4
3: uart:unknown port:2E8 irq:3
[root@ywlap yw]#
[root@ywlap yw]#
[root@ywlap yw]# cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
0170-0177 : ide1
01f0-01f7 : ide0
0200-027f : cb_enabler
0376-0376 : ide1
03c0-03df : vga+
03f6-03f6 : ide0
fcf0-fcf7 : ide0
fcf8-fcff : ide1
[root@ywlap yw]# cat /proc/interrupts
CPU0
0: 47336 XT-PIC timer
1: 975 XT-PIC keyboard
2: 0 XT-PIC cascade
11: 10895 XT-PIC i82365, eth0
12: 12354 XT-PIC PS/2 Mouse
13: 1 XT-PIC fpu
14: 5897 XT-PIC ide0
15: 1454 XT-PIC ide1
NMI: 0
[root@ywlap yw]#
I ran tpctl tool, it reported that both serial ports were disabled, so I went
ahead and enabled them.
[root@ywlap yw]# tpctl --rs1=enable
tpctl: serial port 1 has been enabled
resource state: current
serial port 1: enable 0x3f8 IRQ4
[root@ywlap yw]# tpctl --rs2=enable
tpctl: serial port 2 has been enabled
resource state: current
serial port 2: enable 0x0 IRQ0
[root@ywlap yw]# tpctl --rsx
resource state: current
serial port 1: enable 0x3f8 IRQ4
serial port 2: enable 0x0 IRQ0
[root@ywlap yw]#
Then ran 'setserial' with 'autoconfig' parameter try to configure it, however
it still doesn't help. The "UART" is reported as "unkown":
[root@ywlap yw]# setserial /dev/ttyS0 autoconfig
[root@ywlap yw]# setserial /dev/ttyS1 autoconfig
[root@ywlap yw]# setserial /dev/ttyS0 -a
/dev/ttyS0, Line 0, UART: unknown, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
[root@ywlap yw]# setserial /dev/ttyS1 -a
/dev/ttyS1, Line 1, UART: unknown, Port: 0x02f8, IRQ: 3
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
[root@ywlap yw]#
[root@ywlap yw]# cat /dev/ttyS0
cat: /dev/ttyS0: Input/output error
[root@ywlap yw]# cat /dev/ttyS1
cat: /dev/ttyS1: Input/output error
[root@ywlap yw]#
I tried to manual setup COM1 and COM2 with 'tpctl' and 'setserial' command,
it still doesn't work.
[root@ywlap yw]# tpctl --rs1=0X3F8 --rs1=COM1 --rs1=IRQ4
tpctl: serial port 1 has been set to COM1
tpctl: serial port 1 interrupt has been set to IRQ4
tpctl: serial port 1 base address has been set to 0x3f8
resource state: current
serial port 1: enable 0x3f8 IRQ4
[root@ywlap yw]# setserial /dev/ttyS0 UART 16550A
[root@ywlap yw]# setserial /dev/ttyS0 -a
/dev/ttyS0, Line 0, UART: 16550A, Port: 0x03f8, IRQ: 4
Baud_base: 115200, close_delay: 50, divisor: 0
closing_wait: 3000, closing_wait2: infinte
Flags: spd_normal skip_test
[root@ywlap yw]# cat /proc/tty/driver/serial
serinfo:1.0 driver:4.27
0: uart:16550A port:3F8 irq:4 tx:0 rx:0 CTS|DSR|CD|RI
1: uart:unknown port:2F8 irq:3
2: uart:unknown port:3E8 irq:4
3: uart:unknown port:2E8 irq:3
[root@ywlap yw]#
I'm frustrated that I keeps getting "cat :/dev/ttyS0: Input:/output error"
when I ran "cat /dev/ttyS0' , I guess the kernel doesn't recognize serial
ports at all.
[root@ywlap yw]# cat /dev/ttyS0
cat: /dev/ttyS0: Input/output error
[root@ywlap yw]#
If I reset the box, it lost all the states I ever set. COM1 and COM2 were
re-disabled.
Any suggestion are very appreciated!!
>
> Thomas
>
> _______________________________________________________
> Say Bye to Slow Internet!
> http://www.home.com/xinbox/signup.html
>
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html
--
Sincerely,
Wei Ye
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html