Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]how to set PCMCIA SERIAL card?
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
liubenyuan
n00b
n00b


Joined: 06 Aug 2007
Posts: 26

PostPosted: Thu Mar 06, 2008 9:54 am    Post subject: [solved]how to set PCMCIA SERIAL card? Reply with quote

hi all:
i am now facing a very daunting task to set up my pcmcia serial card, here is the hardware information:

lspci -v
03:00.0 Serial controller: Oxford Semiconductor Ltd OXCB950 Cardbus 16950 UART (prog-if 06 [16950])
Subsystem: Oxford Semiconductor Ltd Unknown device 0001
Flags: medium devsel, IRQ 20
I/O ports at 1010 [size=8]
Memory at 58000000 (32-bit, non-prefetchable) [size=4K]
I/O ports at 1000 [size=16]
Memory at 58001000 (32-bit, non-prefetchable) [size=4K]
Memory at 58002000 (32-bit, non-prefetchable) [size=4K]
Capabilities: [40] Power Management version 1

lsusb
Bus 003 Device 002: ID 046d:c315 Logitech, Inc.
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 09da:000a A4 Tech Co., Ltd
Bus 001 Device 005: ID 03fd:0008 Xilinx, Inc.
Bus 001 Device 001: ID 0000:0000

then, accroding to an tutorial, i write these script:

#!/bin/bash
setserial /dev/ttyS0 port 1000 UART 16950 irq 20 Baud_base 11200
setserial /dev/ttyS1 port 1010 UART 16950 irq 20 Baud_base 11200

run as root, verify using
setserial /dev/ttyS0 -a
/dev/ttyS0, Line 0, UART: 16950/954, Port: 0x03e8, IRQ: 20
Baud_base: 11200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test
setserial /dev/ttyS1 -a
/dev/ttyS1, Line 1, UART: 16950/954, Port: 0x03f2, IRQ: 20
Baud_base: 11200, close_delay: 50, divisor: 0
closing_wait: 3000
Flags: spd_normal skip_test

then come to using minicom, but did not return any sign of activity.and there are also to
leds on the pcmcia card , red=power on, green=data connection.however the green led never lid under linux,
but work fine under windows xp.

please help me!
thank U all in advance!


Last edited by liubenyuan on Thu Mar 06, 2008 7:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 21680
Location: 56N 3W

PostPosted: Thu Mar 06, 2008 2:39 pm    Post subject: Reply with quote

liubenyuan,

Do you have any other serial ports besides the ones on your PCMCIA card ?
If so, your PCMCIA card will not be ttyS0 and ttyS1.

What device is connected to your serial port when you test?

Does your kernel have serial support?

Can you connect pins 2 and 3 together in the same serial port in the 9 pin Dee connector?
Thats Tx data and Rx data.
If you use minicom to set up the serial port with no handshake at all, then everything you type into minicom should appear on the screen.
It will appear twice if local echo is on in minicom, once from minicom and again via the serial port., so it llookkss lliikkee tthhiss.

The problem with serial comms is that there are so many things to get right all at them same time or it fails.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
liubenyuan
n00b
n00b


Joined: 06 Aug 2007
Posts: 26

PostPosted: Thu Mar 06, 2008 7:25 pm    Post subject: Reply with quote

i googled last night and found there is a fix which required modifing the kernel
an then the device could be seen in the dmesg | grep tty:
postgres@voc ~ $ dmesg | grep tty
console [tty0] enabled
ttyS0: detected caps 00000700 should be 00000100
0000:03:00.0: ttyS0 at I/O 0x1010 (irq = 20) is a 16C950/954
setserial sets custom speed on ttyS0. This is deprecated.

here is the url:
http://osdir.com/ml/linux.serial/2006-05/msg00042.html

and there are also some tweak that seem important to let the PCMCIA serial card work:

The "divisor" doesn't do anything in this mode.

What happens if you:

1. setserial /dev/ttyS4 spd_cust divisor 104
2. set the baud rate to 38400 baud

and then, it works!
thanks all the same!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum