[ltp] using serial ports on ibm thinkpad 600e

Jon A. Solworth linux-thinkpad@www.bm-soft.com
04 Jan 2001 14:04:18 -0600


Raj,
    You have to power on the serial port, which I believe comes by default
powered off.  See Thomas Hood's page for instructions.

Jon

"Raj, Ashok" <ashok.raj@intel.com> writes:

> Hello.
> 
> I have a ibm thinkpad 600e. Its 366PII 128m memory.
> 
> iam trying to use the serial ports and have no success with.
> 
> any ideas pls send me..
> 
> --------------------------------------
> Iam trying to use the thinkpad 600e as a debug station for my kernel
> debugging for source level
> using kgdb. To try out i used the tpctl and saw that the serial port was
> already enabled. 
> 
> then i connected a null modem cable to a windows system and did 
> 
> cat > /dev/ttyS0
> 
> i was not able to see that on the hyperterm on windows. I do the same on
> desktop pcs runing linux
> when i do the same thing, i can see what i type being displayed on the
> hyperterm on windows.
> 
> what other things could be there that the linux is not able to send chars
> out the serial port.
> 
> here is the output
> 
> [root@ldebug /root]# tpctl -rsx
> resource state:                                       current
>    serial port 1:                                     disable 0x0   IRQ0
>    serial port 2:                                     enable  0x3f8 IRQ4
> [root@ldebug /root]#
> 
> [root@ldebug /root]# cat /proc/ioports
> 0000-001f : dma1
> 0020-003f : pic1
> 0040-005f : timer
> 0060-006f : keyboard
> 0070-007f : rtc
> 0080-008f : dma page reg
> 00a0-00bf : pic2
> 00c0-00df : dma2
> 00f0-00ff : fpu
> 0170-0177 : ide1
> 0180-01bf : cb_enabler
> 01f0-01f7 : ide0
> 0376-0376 : ide1
> 03c0-03df : vga+
> 03f6-03f6 : ide0
> 03f8-03ff : serial(auto)
> 8400-8413 : usb-uhci
> fcf0-fcf7 : ide0
> fcf8-fcff : ide1
> c80bf000-c80bffff : Intel Speedo3 Ethernet
> 
> [root@ldebug /root]# setserial -g /dev/ttyS0
> /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
> 
> [root@ldebug /root]# setserial -g /dev/ttyS0
> /dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
> [root@ldebug /root]#
> [root@ldebug /root]# stty -a < /dev/ttyS0
> speed 9600 baud; rows 0; columns 0; line = 0;
> intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
> eol2 = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W;
> lnext = ^V; flush = ^O; min = 1; time = 0;
> -parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
> -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
> -ixoff
> -iuclc -ixany -imaxbel
> opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0
> ff0
> isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
> 
> 
> ----- The Linux ThinkPad mailing list -----
> The linux-thinkpad mailing list home page is at:
> http://www.bm-soft.com/~bm/tp_mailing.html
> 

-- 
_______________________________________________________________________________
Jon A. Solworth                 	internet:  solworth@parsys.eecs.uic.edu
Dept. of EECS (M/C 154)			url: http://www.eecs.uic.edu/~solworth
University of Illinois at Chicago       telephone: (312) 996-0955
851 S. Morgan Rm 1120 SEO    		FAX:       (312) 413-0024
Chicago, IL 60607-7053
----- The Linux ThinkPad mailing list -----
The linux-thinkpad mailing list home page is at:
http://www.bm-soft.com/~bm/tp_mailing.html