[ltp] serial port won't work as terminal to connect to other devices

S Y Medley linux-thinkpad@linux-thinkpad.org
Tue, 10 Dec 2002 13:22:37 -0800 (PST)


--0-1623585033-1039555357=:89176
Content-Type: text/plain; charset=us-ascii


That's not it, i'm afraid.  I already did the setup on the port. 
I think there's something more fundamental that's wrong.
If i do a cat>/dev/ttyS0 or a cat /dev/ttyS0, i get an I/O error.  Seems like the Linux kernel is not aware that there's a port?  Or it's turned off?  It seems to have the right IRQ (4) and the right port number (0x03f8), but it's still not working...
Susannah
 
 Tom <tom.hornberger@verizon.net> wrote:Just run minicom. CTRL-A Z will bring up the setup menu. Select "O" 
(cOnfigure) and set your serial port up. It should work.

HTH,
Tom

On Monday 09 December 2002 22:24, S Y Medley wrote:
> Please help, if you can.
>
> I've got a Thinkpad set up as a dual boot (Windows
> 2000 and RedHat Linux 6.2).
>
> In Windows, the COM1 works fine with settings 9600N8.
>
> I've been trying for days to get minicom set up to
> work as a terminal on that same serial port. I'm
> stumped.
>
> Examples of things i've tried:
>
> wyvern / # cat > /dev/ttyS0
> cat: write error: Input/output error
> wyvern / # cat > /dev/ttyS1
> cat: write error: Input/output error
> wyvern / # cat > /dev/ttyS2
> cat: write error: Input/output error
>
> wyvern /dev # setserial /dev/ttyS0 autoconfig
> wyvern /dev # setserial -a /dev/ttyS0
> /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
>
>
> O_wyvern:/proc$ 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
> 4: uart:unknown port:1A0 irq:9
> ....
>
> wyvern / # ll /dev/ttyS*
> crw-rw-rw- 1 root tty 4, 64 May 5
> 1998 /dev/ttyS0
> crw------- 1 root tty 4, 65 May 5
> 1998 /dev/ttyS1
> crw------- 1 root tty 4, 66 May 5
> 1998 /dev/ttyS2
> crw------- 1 root tty 4, 67 May 5
> 1998 /dev/ttyS3
>
> wyvern / # cp junk.txt /dev/ttyS0
> cp junk.txt /dev/ttyS0
> cp: /dev/ttyS0: Input/output error
>
> I think the hardware and BIOS setup must all be good
> because it works fine with Windows. There's something
> i'm missing on the Linux side....
>
> Thanks,
> Susannah
>
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> http://mailplus.yahoo.com

--
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad


---------------------------------
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now
--0-1623585033-1039555357=:89176
Content-Type: text/html; charset=us-ascii

<P>That's not it, i'm afraid.&nbsp; I already did the setup on the port.&nbsp;
<P>I think there's something more fundamental that's wrong.
<P>If i do a cat&gt;/dev/ttyS0 or a cat /dev/ttyS0, i get an I/O error.&nbsp; Seems like the Linux kernel is not aware that there's a port?&nbsp; Or it's turned off?&nbsp; It seems to have the right IRQ (4) and the right port number (0x03f8), but it's still not working...
<P>Susannah
<P>&nbsp;
<P>&nbsp;<B><I>Tom &lt;tom.hornberger@verizon.net&gt;</I></B> wrote:
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Just run minicom. CTRL-A Z will bring up the setup menu. Select "O" <BR>(cOnfigure) and set your serial port up. It should work.<BR><BR>HTH,<BR>Tom<BR><BR>On Monday 09 December 2002 22:24, S Y Medley wrote:<BR>&gt; Please help, if you can.<BR>&gt;<BR>&gt; I've got a Thinkpad set up as a dual boot (Windows<BR>&gt; 2000 and RedHat Linux 6.2).<BR>&gt;<BR>&gt; In Windows, the COM1 works fine with settings 9600N8.<BR>&gt;<BR>&gt; I've been trying for days to get minicom set up to<BR>&gt; work as a terminal on that same serial port. I'm<BR>&gt; stumped.<BR>&gt;<BR>&gt; Examples of things i've tried:<BR>&gt;<BR>&gt; wyvern / # cat &gt; /dev/ttyS0<BR>&gt; cat: write error: Input/output error<BR>&gt; wyvern / # cat &gt; /dev/ttyS1<BR>&gt; cat: write error: Input/output error<BR>&gt; wyvern / # cat &gt; /dev/ttyS2<BR>&gt; cat: write error: Input/output error<BR>&gt;<BR>&gt; wyvern /dev # setserial /dev/ttyS0 autoconfig<BR>&gt; wyvern /dev # setserial -a /dev/ttyS0<BR>&gt; /dev/ttyS0, Line 0, UART: unknown, Port: 0x03f8, IRQ:<BR>&gt; 4<BR>&gt; Baud_base: 115200, close_delay: 50, divisor: 0<BR>&gt; closing_wait: 3000, closing_wait2: infinte<BR>&gt; Flags: spd_normal skip_test<BR>&gt;<BR>&gt;<BR>&gt; O_wyvern:/proc$ cat /proc/tty/driver/serial<BR>&gt; serinfo:1.0 driver:4.27<BR>&gt; 0: uart:unknown port:3F8 irq:4<BR>&gt; 1: uart:unknown port:2F8 irq:3<BR>&gt; 2: uart:unknown port:3E8 irq:4<BR>&gt; 3: uart:unknown port:2E8 irq:3<BR>&gt; 4: uart:unknown port:1A0 irq:9<BR>&gt; ....<BR>&gt;<BR>&gt; wyvern / # ll /dev/ttyS*<BR>&gt; crw-rw-rw- 1 root tty 4, 64 May 5<BR>&gt; 1998 /dev/ttyS0<BR>&gt; crw------- 1 root tty 4, 65 May 5<BR>&gt; 1998 /dev/ttyS1<BR>&gt; crw------- 1 root tty 4, 66 May 5<BR>&gt; 1998 /dev/ttyS2<BR>&gt; crw------- 1 root tty 4, 67 May 5<BR>&gt; 1998 /dev/ttyS3<BR>&gt;<BR>&gt; wyvern / # cp junk.txt /dev/ttyS0<BR>&gt; cp junk.txt /dev/ttyS0<BR>&gt; cp: /dev/ttyS0: Input/output error<BR>&gt;<BR>&gt; I think the hardware and BIOS setup must all be good<BR>&gt; because it works fine with Windows. There's something<BR>&gt; i'm missing on the Linux side....<BR>&gt;<BR>&gt; Thanks,<BR>&gt; Susannah<BR>&gt;<BR>&gt;<BR>&gt; __________________________________________________<BR>&gt; Do you Yahoo!?<BR>&gt; Yahoo! Mail Plus - Powerful. Affordable. Sign up now.<BR>&gt; http://mailplus.yahoo.com<BR><BR>--<BR>The linux-thinkpad mailing list home page is at:<BR>http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</BLOCKQUOTE><p><br><hr size=1>Do you Yahoo!?<br>
<a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Yahoo! Mail Plus</a> - Powerful. Affordable. <a href="http://rd.yahoo.com/mail/mailsig/*http://mailplus.yahoo.com">Sign up now</a>
--0-1623585033-1039555357=:89176--