Computer Boards- PCI CIO 48 hardware driver help?

More
02 Mar 2011 00:51 #7524 by sduqu2011
We are trying to compile the driver CIO-DIO96 and in the process of compiling we get this

emc@CNC-Lathe:~/CIO-DIO96$ make
make -C /usr/src/linux-headers-2.6.32-122-rtai M=`pwd`
make[1]: Entering directory `/usr/src/linux-headers-2.6.32-122-rtai'
CC [M] /home/emc/CIO-DIO96/ciodio96.o
/home/emc/CIO-DIO96/ciodio96.c: In function ‘cleanup_module’:
/home/emc/CIO-DIO96/ciodio96.c:583: error: void value not ignored as it ought to be
make[2]: *** [/home/emc/CIO-DIO96/ciodio96.o] Error 1
make[1]: *** [_module_/home/emc/CIO-DIO96] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.32-122-rtai'
make: *** [all] Error 2


we are unsure where to go from here....

I am not a C or linux guru... i need guidance.....

Thank you
Spencer

Please Log in or Create an account to join the conversation.

More
02 Mar 2011 10:52 #7530 by andypugh
What is this driver? Where did you get the code from?

My guess is that this is a third-party add-in to EMC2?

Please Log in or Create an account to join the conversation.

More
02 Mar 2011 21:23 #7548 by sduqu2011
The driver is for a PCI card that we are using to run one of our CNC machines the driver came from a website that was for ubuntu. Its a third party but no one has made a driver for that pci board so we had to find our own software

Please Log in or Create an account to join the conversation.

More
02 Mar 2011 22:08 #7549 by andypugh
Do you have a link to the documentation for the driver?
EMC2 really needs realtime drivers, compatible with HAL. It is possible that what you have is compatible, but it is also possible that it is intended for a diffeent sort of use.

Please Log in or Create an account to join the conversation.

More
07 Mar 2011 23:38 #7620 by sduqu2011
here is where we got our information and the software

opencircuitdesign.com/~tim/programs/

CIO-DIO96.3.1.tgz (v3.1) is a Linux driver program for various ComputerBoards digital I/O cards, namely the CIO-DIO96 board, but also including all of the ISA-based 82C55-based digital I/O cards (CIO-DIO48, CIO-DIO24, NICB-DIO96 clone of the National Instruments ``DIO-96'', PCI-DIO48 and family, and the compact PCI boards as well). Use of this card and driver along with custom C software is how I test all my electronic designs.

Updates:

1. September 5, 2001
2. April 10, 2001 (fixes for PCI-DIO48H compatibility)
3. July 19, 2002 (fixes for Linux kernel version 2.4 compatibility)
4. September 4, 2002 (some Makefile fixes for "make install")
5. February 26, 2003 (correct support for the PCI-DIO24H card)
6. April 28, 2004 (support for ICS Advent cards: PCI-DIO24DB, PCI-DIO24HD, and the /CT variants. Thanks to Corinne Boyer at the Gemini Observatory in Hawaii)
7. June 16, 2005 (support for Linux kernel versions 2.6---see below for earlier kernel versions)
8. August 24, 2006 (bug fix; thanks to Dierdre Horan for the bug report)

Please Log in or Create an account to join the conversation.

More
08 Mar 2011 07:01 #7624 by cmorley
Even if you get that driver to compile, it won't help you connect to EMC's HAL frame work.
The driver would need to be patched with HAL code.
There is a driver for a 8255 based card (the same chip as in your card) called AX5214H.
It might be easier to have a programmer to convert it or at least base a patch from it.

Please Log in or Create an account to join the conversation.

More
08 Mar 2011 12:25 #7631 by andypugh
As others have said, it is unlikely that the driver you have will work with the Realtime libraries used by EMC2.

One solution might be to adapt an existing EMC2 driver to work with your card. I think that the OptoAC5 driver might make a good basis:
git.linuxcnc.org/gitweb?p=emc2.git;a=blo...bf95e1c27457;hb=HEAD
You (or a tame coder) might well be able to glean the required parameters from the ubuntu driver you have to modify the existing EMC2 driver.

There has been talk of writing an EMC2 interface for the COMEDI drivers, but I am not aware of any progress.

Please Log in or Create an account to join the conversation.

More
11 Mar 2011 16:43 #7729 by markd
OK so we need to have a driver with links to HAL.

The board uses 2 8255 chips and is a pci version of AX5214.

Has anyone updated the AX5214h driver for use in its PCI version?

Are there any sample configurations using the AX5214H driver?

Please Log in or Create an account to join the conversation.

More
11 Mar 2011 18:18 #7731 by andypugh
There is a hal driver called pci_8255. I wonder if that works? I can't find any documentation but it seems to need to be given an IO address and a direction.
lspci should tell you the IO address. If, for example you find that the addresses are 0x10AA and 0x10BB then it is pretty easy to check, open a terminal window and type

halrun
loadrt pci_8255 io=0x10AA,0x10BB dir=0,1
show pin
(You will see a list of all the pins)
setp pci8255.0.0.a0 1
(this should set pin a0 of the first board to 1, unless 0 for the dir means out, in which case try pci8255.1.0.a1)

Let me know if that is any help.

Ideally the driver would use pci_search_device to find the card, but you can't have everything.

Please Log in or Create an account to join the conversation.

More
11 Mar 2011 18:27 #7732 by andypugh
Hmm, emergent.unpy.net/01165433819
That driver did not work well for the original board. You might have more luck.

Please Log in or Create an account to join the conversation.

Moderators: PCWjmelson
Time to create page: 0.090 seconds
Powered by Kunena Forum