LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2008, 12:57 PM   #1
orcaja
Member
 
Registered: Aug 2008
Posts: 94

Rep: Reputation: 1
Thumbs up Driver for DAQ card installation


Hi there!

I'm new with linux and I'd like to install a DAQ card.
I download a driver for a pc30f/g card from eagle technologies. I'm using debian and I installed the source files. The downloaded driver has this directory structure:



'''''''''''''''''''''''edre_linux_1_3_10_build
'''''''''''''''_____________|________________
'''''''''''''''''''''''|''''''''''''''''''|''''''''''''''|''''''''''''|
'''''''''''''''''''etc'''' INSTALL'''README'''usr
''''''''______|______'''''''''''''''''''''________|________
''''''''|'''''''''''''''''''''''''''|'''''''''''''''''''''|'''''''''''''''''''''|''''''''''''''|
edredaq'''''''''''''udev''''''''''''edre''''''''''''share'''''''''''src
''''|'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''|''''''''''''''''''' ''|
rules.d''''''''''''''''''''''''''''''''''''''''''''''''''''''''''hwdata'''''''''linux-2.6.18

I typed more INSTALL and I got:
1) Install /usr/edre & build
2) Install /etc/
3) Install /usr/src/<kernel source>/drivers/edredaq & build
4) Patches /usr/share/hwdata/
5) Reboot

For the step number one... does it means that I have to copy the file
/edre_linux_1_3_10/usr/edre to /usr/ ?
and then type make, make clean, and make install?
Because I'm experiencing a lot of troubles.
Any advice would be very appreciated.

Joc
 
Old 09-05-2008, 11:47 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, it's a puzzle, with a bug, but it will build
on Debian Etch, kernel 2.6.18 , gcc-4.1.2
(The "module files" are for 2.6.18 but may work with
a different kernel and a different gcc.)
Quote:
******** build edre , Eagle DAQ **********
extract : 'cd /home/"user"/tmp'
'tar xvf <path-to-object> edre_linux_1_3_10_build.tar.gz'

'cd edre_linux_1_3_10_build'
'su' and # 'mkdir /usr/edre'
'cp -a usr/edre/include/ /usr/edre'
and ... 'cp -a etc/ /' (if you wish)

'cd usr/edre/api' (as user)
(to get to /home/"user"/tmp/edre_linux_1_3_10_build/usr/edre/api)
'make all' and # 'make install'

User again, goto /home/"user"/tmp/edre_linux_1_3_10_build/usr/edre
and 'make all' and next
'su' ... # 'rm -r /usr/edre
..then 'make install' (You can still keep the stuff in /home to have
the examples, if you wish)

As user,
in /home/"user"/tmp/edre_linux_1_3_10_build/usr/src/linux-2.6.18
'make' .. # 'make install'
Modules are then in /lib/modules/2.6.18-x/kernel/drivers/edredaq
Good Luck !

Last edited by knudfl; 09-05-2008 at 02:32 PM.
 
Old 03-18-2010, 11:02 AM   #3
MicBert
LQ Newbie
 
Registered: Mar 2010
Posts: 4

Rep: Reputation: 0
I am trying to follow the instruction above, on an Ubuntu 9.04, with kernel 2.6.28-18.

Some steps was good, with some correction, I report here:

Quote:
******** build edre , Eagle DAQ **********
extract : 'cd /home/"user"/tmp'
'tar xvf <path-to-object> edre_linux_1_3_10_build.tar.gz'

'cd edre_linux_1_3_10_build'
'su' and # 'mkdir /usr/edre'
'cp -a usr/edre/in******** build edre , Eagle DAQ **********
extract : 'cd /home/"user"/tmp'
'tar xvf <path-to-object> edre_linux_1_3_10_build.tar.gz'

'cd edre_linux_1_3_10_build'
'su' and # 'mkdir /usr/edre'
'cp -a usr/edre/include/ /usr/edre'
and ... 'cp -a etc/ /' (if you wish)

'cd usr/edre/api' (as user)
(to get to /home/"user"/tmp/edre_linux_1_3_10_build/usr/edre/api)
'make all' and # 'make install'

User again, goto /home/"user"/tmp/edre_linux_1_3_10_build/usr/edre
add #include <string.h> to api/edreobject.cpp
add #include <stdlib.h> and <string.h> to api/edredevice.cpp
add #include <string.h> to apps/lsedre.cpp

and 'make all' and next
'su' ... # 'rm -r /usr/edre
..then 'make install' (You can still keep the stuff in /home to have
the examples, if you wish)
The next step gives troubles.
Quote:
As user,
in /home/"user"/tmp/edre_linux_1_3_10_build/usr/src/linux-2.6.18
'make' ..
First of all, in the file pci703/stdinc.h I removed the definition of "true" and "false" (because it is done on a kernel header).

But bigger problem is that one:
Code:
make -C /lib/modules/2.6.28-18-generic/build SUBDIRS=/home/surf/drivers/edre_linux_1_3_10_build/usr/src/linux-2.6.18/pci703 modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.28-18-generic'
  CC [M]  /home/surf/drivers/edre_linux_1_3_10_build/usr/src/linux-2.6.18/pci703/adc.o
In file included from /home/surf/drivers/edre_linux_1_3_10_build/usr/src/linux-2.6.18/pci703/adc.c:27:
/home/surf/drivers/edre_linux_1_3_10_build/usr/src/linux-2.6.18/pci703/stdinc.h:56:49: error: asm/mach-default/irq_vectors_limits.h: No such file or directory
make[2]: *** [/home/surf/drivers/edre_linux_1_3_10_build/usr/src/linux-2.6.18/pci703/adc.o] Error 1
make[1]: *** [_module_/home/surf/drivers/edre_linux_1_3_10_build/usr/src/linux-2.6.18/pci703] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-18-generic'
make: *** [default] Error 2
Practically path "/usr/src/linux-headers-2.6.28-18-generic/asm/mach-default/irq_vectors_limits.h" is missing, and I have no idea on the real position for that header file.

Thanks to everyone which can hal me!

Michele
 
  


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
Etch continue loading old network card driver after new driver installation rtmex Linux - Networking 3 11-27-2007 06:07 AM
Video card driver during installation merlin371 Linux - Hardware 0 04-07-2004 06:10 PM
solaris installation problem --> can't get right graphic card driver feetyouwell Solaris / OpenSolaris 2 01-06-2004 12:17 PM
Driver installation: A-CARD AEC6280 IDE card in Mandrake 9.2 Bob Groves Linux - Hardware 1 12-02-2003 01:29 AM
once again. sound card driver installation problem 286 Linux - Hardware 10 11-22-2003 09:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:33 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