What is the proper way to install the linux drivers for an acromag PMC DX2003? I am trying to build the Device Driver Module
Here is what I have done, as per the instructions:
1: Copied the pmcdx501 folder to /home/pmc/ (even though /home/ is supposed to be for USERS, any explaination for this reasoning?)
2: Modiefied pmcdx501.h so that the selected device is the dx2003
3: mknod apmcdx2003_0 c 46 0
4: Edit the makefile. Which makefile do I edit? I have edited the one in devdx501 so that TARGET := apmcdx2003. When I am in the pmcdx501 directory and perform a make, it makes but the resulting a.out file report:
Unable to Open instance of device apmcdx2003_. EXIT PROGRAM
If I make in the pmcdx501/devdx501 directory, the makefile won't even make, reporting:
make: Entering directory `/lib/modules/2.6.26-2-amd64/build'
make: *** No rule to make target `modules'. Stop.
make: Leaving directory `/lib/modules/2.6.26-2-amd64/build'
5: The next step of the instructions involve becoming root and doing an insmod on a .ko file. I don't see any way this file could be generated and it doesn't already exist. Where does this .ko file come from?