[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. I already did the setup on the port.
<P>I think there's something more fundamental that's wrong.
<P>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...
<P>Susannah
<P>
<P> <B><I>Tom <tom.hornberger@verizon.net></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>> Please help, if you can.<BR>><BR>> I've got a Thinkpad set up as a dual boot (Windows<BR>> 2000 and RedHat Linux 6.2).<BR>><BR>> In Windows, the COM1 works fine with settings 9600N8.<BR>><BR>> I've been trying for days to get minicom set up to<BR>> work as a terminal on that same serial port. I'm<BR>> stumped.<BR>><BR>> Examples of things i've tried:<BR>><BR>> wyvern / # cat > /dev/ttyS0<BR>> cat: write error: Input/output error<BR>> wyvern / # cat > /dev/ttyS1<BR>> cat: write error: Input/output error<BR>> wyvern / # cat > /dev/ttyS2<BR>> cat: write error: Input/output error<BR>><BR>> wyvern /dev # setserial /dev/ttyS0 autoconfig<BR>> wyvern /dev # setserial -a /dev/ttyS0<BR>> /dev/ttyS0, Line 0, UART: unknown, Port: 0x03f8, IRQ:<BR>> 4<BR>> Baud_base: 115200, close_delay: 50, divisor: 0<BR>> closing_wait: 3000, closing_wait2: infinte<BR>> Flags: spd_normal skip_test<BR>><BR>><BR>> O_wyvern:/proc$ cat /proc/tty/driver/serial<BR>> serinfo:1.0 driver:4.27<BR>> 0: uart:unknown port:3F8 irq:4<BR>> 1: uart:unknown port:2F8 irq:3<BR>> 2: uart:unknown port:3E8 irq:4<BR>> 3: uart:unknown port:2E8 irq:3<BR>> 4: uart:unknown port:1A0 irq:9<BR>> ....<BR>><BR>> wyvern / # ll /dev/ttyS*<BR>> crw-rw-rw- 1 root tty 4, 64 May 5<BR>> 1998 /dev/ttyS0<BR>> crw------- 1 root tty 4, 65 May 5<BR>> 1998 /dev/ttyS1<BR>> crw------- 1 root tty 4, 66 May 5<BR>> 1998 /dev/ttyS2<BR>> crw------- 1 root tty 4, 67 May 5<BR>> 1998 /dev/ttyS3<BR>><BR>> wyvern / # cp junk.txt /dev/ttyS0<BR>> cp junk.txt /dev/ttyS0<BR>> cp: /dev/ttyS0: Input/output error<BR>><BR>> I think the hardware and BIOS setup must all be good<BR>> because it works fine with Windows. There's something<BR>> i'm missing on the Linux side....<BR>><BR>> Thanks,<BR>> Susannah<BR>><BR>><BR>> __________________________________________________<BR>> Do you Yahoo!?<BR>> Yahoo! Mail Plus - Powerful. Affordable. Sign up now.<BR>> 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--