LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-20-2014, 06:08 PM   #1
sunbelt57
LQ Newbie
 
Registered: Aug 2013
Location: Wyoming
Posts: 19

Rep: Reputation: Disabled
Looking for driver for Startech serial adapter card


This is a longshot but, WTH: I'm looking for a solution to use my Startech 2 Port PCI RS232 Serial Adapter Card w/16950 UART - Dual Voltage in Ubuntu 14.04. I looked on their website and they have instructions for the 4-port cards but not the 2 port.

==========================================================================================
= =
= SUNIX Multi-I/O Board Driver Installation Guide =
= =
= For Kernel 2.4 & 2.6 & 3.x =
= Copyright 2006 - 2013 SUNIX Co., Ltd. all right reserved =
= Version: 2.0.3.0 =
= Date: 2013/09/15 =
==========================================================================================

Item

A. Release note

B. Introduction

C. Installation

C.1 Driver install
C.2 Device node creation

D. Loading driver automatic after system bootup

D.1
RedHat 8
Fedora Core 1
Fedora Core 8
Fedora Core 10
Fedora Core 11
Mandriva 2008

D.2
Suse 9.3
SuSE 11.2 Milestone 4

D.3
Ubutu 8.04 Destop
Ubutun 11.10
debian 6.0.3

D.4
Turbo Liunx 10
Red Hat Enterprise Liunx 4.0

D.5
Others

E. Utility

E.1 snxdump
E.2 snxterm

==========================================================================================

A. Release note

2006/07/10 - Ver:1.0.2.0
1) Add snxterm program into driver package
2) Fix read fcr register in driver and backup a fcr register value in struct
3) Test RedHat Enterprise Linux AS 4.0 and ES 4.0

2006/10/02 - Ver:1.0.3.0
1) Add GNU information in driver
2) Test SlackWare 10.2 (kernel 2.6.13)
3) Support 4027D, 4037D and 4056D

2006/10/12 - Ver:1.0.4.0
1) Fix system hanged. Modem interrupt can't be cleared by reading iir and msr
register for SUN1699 chip

2006/12/01 - Ver:1.0.5.0
1) Fix system hanged. Data coming but device node didn't opened, when open, system
maybe crash
2) Add version information in /var/log/messages
3) Test TurboLinux 10

2007/03/31 - Ver:1.0.6.0
1) Fix data receiving function
2) Modify ioctl function for dump port informations

2007/08/08 - Ver:1.0.7.0
1) Support kernel up to 2.6.22
2) Add driver version information in snxdump
3) snxterm upgrade to V1.0.1.0, make snxterm simply

2007/09/14 - Ver:1.0.8.0
1) Support kernel 2.6 and 2.4 both
2) snxterm upgrade to V1.0.2.0

2008/05/12 - Ver:1.0.9.0
1) Fix setserial command fail
2) Support sunix series multi I/O board

2008/09/05 - Ver:1.1.0.0
1) snxdump upgrade to V1.0.2.0

2009/03/24 - Ver:1.1.1.0
1) Support kernel up to 2.6.27

2009/04/03 - Ver:1.2.0.0
1) Support both golden and matrix series
2) Support kernel up to 2.6.28 and 2.4.37
3) snxdump upgrade to V1.2.0.0
4) snxmknod upgrade to V1.2.0.0

2009/04/06 - Ver:1.2.1.0
1) snxdump upgrade to V1.2.1.0
2) snxterm upgrade to V1.0.3.0

2009/08/30 - Ver:1.3.0.0
1) Support golden / matrix / sun1999 series
2) Support kernel up to 2.6.30 and 2.4.37
3) Delete #include<form.h> in /snxterm/snxterm.c

2009/12/01 - Ver:1.3.1.0
1) Support kernel up to 2.6.31

2010/12/15 - Ver:1.3.2.0
1) Support Cash Drawer / 3-in-1 / DIO series
2) snxmknod upgrade to V1.3.1.0
3) snxdump upgrade to Version: 1.2.2.0
4) Support kernel up to 2.6.36

2011/07/29 - Ver:1.3.3.0
1) Support kernel up to 2.6.38
2) Upgrade SNX_UART_GET_TYPE function
3) Upgrade SNX_UART_SET_TYPE function
4) Support SNX_UART_GET_ACS function
4) Support SNX_UART_SET_ACS function

2011/12/28 - Ver:2.0.0.0
1) Support kernel up to 2.6.39
2) Support kernel up to 3.1.0

2012/03/28 - Ver:2.0.1.0
1) Fix statserial command errors. statserial command does not display CTS & DSR status.

2012/08/17 - Ver:2.0.1.1
1) Add requirement package information in README file

2013/01/25 - Ver:2.0.2.0
1) Support kernel up to 3.6.10

2013/09/15 - Ver:2.0.3.0
1) Support kernel up to 3.11.x
2) snxdump upgrade to V1.2.3.0


------------------------------------------------------------------------------------------

B. Introduction

Maximum 4 boards can be installed in combination(up to 32 serial port and 2 parallel port),
support sunix multi i/o boards as list below.

(S - serial port, P - parallel port)

Golden series

1S -
4027T
4027A
4027AL
4027D
4027DL
4027P

2S -
4037T
4037A
4037AL
4037D
4037U
4037P
4037PL

4S -
4056A
4056A3
4056A4
4056AL
4056D
4056J
4056U
4056UE
4056P
4056PL
4056PM
4055WN

4056DW
4056AM
4056LM
4056LL
4056JM
4056LV
4000A
4000AL
4000P
4000PL

8S -
4066R
4066U
4066UE

4066WM
4066RM
4066JM
8000A
8000AL

2S1P -
4079AT


2S2P -
4089AM


4S2P -
4096A


Matrix series

2S -
P1002
P2002

4S -
P1004
P2004
P3004

8S -
P1008
P2008
P3008

16S -
P1016


SUN1999 series

1S -
5027A
5027AL
5027H
5027HL
5027P
5027PL
5027PH
5027PHL

2S -
5037A
5037H
5037AL
5037HL
5037P
5037PH
5037PL
5037PHL

4S -
5056A
5056AL
5056H
5056HL
5056P
5056PL
5056PH
5056PHL
5056U
5056UL
5056UH
5056UHL

8S -
5066A
5066H
5066AL
5066HL
5066U
5066UL
5066UH
5066UHL

16S -
5016H

1P -
5008A

1S1P -
5069A
5069H
5069P
5069PH

2S1P -
5079A
5079H
5079AL

4S1P -
5099A
5099H

2S -
IPC-P2102
IPC-P2102SI

4S -
IPC-P2104
IPC-P2104SI
IPC-P3104

8S -
IPC-P2108
IPC-P2108SI
IPC-P3108

16S -
IPC-P2116

Cash Drawer -

CDK1037A
CDK1037P
CDK1037H
CDK1037L

CDK1056A
CDK1056P
CDK1056H
CDK1056L

DIO -
DIO0802
DIO1604
DIO3204

------------------------------------------------------------------------------------------

C. Installation

NOTE : Support kernel 2.4/2.6/3.x on x86 machine only.
Before driver installation. Make sure system with c compiler/kernel development/ncurses package.

C.1 Driver install
Please create a directory under root directory, e.g /temp, do commands:

# cd /
# mkdir temp

After get driver file "snx_Vx.x.x.x.tar.gz". Copy file to /temp
directory, then extract and install, do commands:

# cp snx_Vx.x.x.x.tar.gz /temp
# cd /temp
# tar xvf snx_Vx.x.x.x.tar.gz
# cd /temp/snx
# make clean ; make install

*************************************************************
* If system is Suse 9.0 and errors occur when *
* "make clean ; make install", do commands: *
* *
* # cd /usr/src/linux/ *
* # make cloneconfig *
* # make dep *
* *
* then do "make clean ; make install" again in /temp/snx *
*************************************************************

Load driver module, do command:

# modprobe snx
or
# insmod /temp/snx/driver/snx.ko (snx.o for kernel 2.4)


Check driver module, do command:
# lsmod | grep snx


Unload driver, do command:
# rmmod snx


C.2 Device node creation
Each serial port has one device node which is named "ttySNX?",
maximum up to 32 serial ports.

Each parallel port has two device node which is name "lp?" and
"parport?". This step will backup lp2~lp3 and parport2~parport3
to lp?.bak and parport?.bak in /dev for your system first. Then,
create lp2~lp3 and parport2~parport3 in /dev for sunix driver,
maximum up tp 2 parallel ports.

This setp will be done when do "make clean ; make install", if
device nodes aren't in /dev, do commands:

# cd /temp/snx/snxmknod
# ./snxmknod

This will create device nodes in /dev.

If there are more than two boards installed, serial port device
nameing convention please refer to E1.

------------------------------------------------------------------------------------------

D. Loading driver automatic after system bootup


D.1
After finish item C. Edit /etc/rc.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add "modprobe snx" in last line.


D.2
After finish item C.
Edit /etc/rc.d/boot.local for loading driver automatic after system bootup.
Use vi or other editor to open boot.local, and add "modprobe snx" in last line.
Edit /etc/rc.d/halt.lAfter finish item D. Edit /etc/rc.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add "modprobe snx" in last line.ocal for unloading driver when system halt.
Use vi or other editor to open halt.local, and add "rmmod snx" in last line.


D.3
After finish item C. Edit /etc/init.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add words as below in last line.

mv /dev/lp2 /dev/lp2.bak
mv /dev/lp3 /dev/lp3.bak
mknod /dev/lp2 c 246 2
mknod /dev/lp3 c 246 3
chmod a+w /dev/lp2
chmod a+w /dev/lp3

mv /dev/parport2 /dev/parport2.bak
mv /dev/parport3 /dev/parport3.bak
mknod /dev/parport2 c 247 2
mknod /dev/parport3 c 247 3
chmod a+w /dev/parport2
chmod a+w /dev/parport3

modprobe snx


D.4
After finish item C. Edit /etc/rc.d/rc.local for loading driver
automatic after system bootup. Use vi or other editor to open rc.local,
and add words as below in last line.


mv /dev/lp2 /dev/lp2.bak
mv /dev/lp3 /dev/lp3.bak
mknod /dev/lp2 c 246 2
mknod /dev/lp3 c 246 3

mv /dev/parport2 /dev/parport2.bak
mv /dev/parport3 /dev/parport3.bak
mknod /dev/parport2 c 247 2
mknod /dev/parport3 c 247 3

modprobe snx


D.5
In general, other distributions will loading driver automatic after system bootup.
If it doesn't, please refer to item D.1 or D.2. or D.3 or D.4


------------------------------------------------------------------------------------------

E. Utility

E1. snxdump - dump port informations, do command:

# snxdump

the informations should be like this

================ Found 2 SUNIX port , list informations ====================
SUNIX driver ver -- 2.0.3.0

ttySNX0 --
SUNIX 5037 Series (bus:2 device: 1) , base address = a000, irq = 21

ttySNX1 --
SUNIX 5037 Series (bus:2 device: 1) , base address = a008, irq = 21


=============================================================================


In this case,

Driver version is 2.0.3.0

ttySNX0 is the 1st serial port on sunix 5037 series board,
base address is 0xa000 and irq is 21.

ttySNX1 is the 2nd serial port on sunix 5037 series board,
base address is 0xa008 and irq is 21.

bus:2 means the bus number of board is 2.

device:1 means the device number of board is 1.


If no information print on screen. Make sure the device node
exist in /dev and driver module loaded.


E2. snxterm - dumb terminal for test tty device node data transmitting and receiving
, do command:

# snxterm

------------------------------------------------------------------------------------------

\00
 
Old 11-20-2014, 11:21 PM   #2
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
No special or external driver should be required.

Install the board, power up and check the output of
Quote:
dmesg | grep tty
Should look like something like :

Quote:
[ 0.000000] console [tty0] enabled
[ 1.230087] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.600793] 00:0a: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[ 1.639864] 0000:00:16.3: ttyS4 at I/O 0xf0a0 (irq = 19) is a 16550A

What is it you want to do with this board ?
 
Old 11-21-2014, 09:23 AM   #3
sunbelt57
LQ Newbie
 
Registered: Aug 2013
Location: Wyoming
Posts: 19

Original Poster
Rep: Reputation: Disabled
I've got a programmable SBC I want to talk to using a terminal program.
 
Old 11-21-2014, 10:18 AM   #4
ceyx
Member
 
Registered: May 2009
Location: Fort Langley BC
Distribution: Kubuntu,Free BSD,OSX,Windows
Posts: 342

Rep: Reputation: 59
Very cool - exciting times ahead for you !

'Minicom' works very well for serial comms.

Let us know how you are doing
 
Old 11-21-2014, 06:19 PM   #5
sunbelt57
LQ Newbie
 
Registered: Aug 2013
Location: Wyoming
Posts: 19

Original Poster
Rep: Reputation: Disabled
I installed the card and did a dmseg and got /dev/ttyS4 and /dev/ttyS5
so I went:
sudo minicom -b115200 -D/dev/ttyS4 (null modem'd into another Linux box with the serial port setup as a serial terminal)

and it worked - I got a login prompt.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Startech USB-to-Serial 4 Port adapter on RH9 mscollins1 Linux - Hardware 6 08-26-2005 11:25 PM
Device driver for a USB to RS-232 Serial DB9 Adapter for red Hat 8 or 9 sp022 Linux - Hardware 1 04-18-2005 09:39 AM
Startech Firewire card? escargot22026 Linux - Hardware 1 08-29-2004 09:47 PM
Startech PCI2IDE100 card Serena Linux - Hardware 0 08-09-2003 12:08 AM
Startech serial card pk21 Linux - Hardware 1 01-10-2003 06:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration