08-19-2008 03:59 AM
Hi.
I want to use PCIe 6251 M series daq board in real time in linux.
For that i have started with ni ddk.
But when i try to compile the downloaded nimhddk_linuxdevmem with provided makefile it
sayes
make: Nothing to be done for `all'.
For this i tried to setup source dir in vpath in makefile. bur problem did not get solved.
Please give me solu if any one had tried it.
Thanks
sgm
08-20-2008 04:26 PM
Hi sgm-
In order to build the MHDDK as shipped , you need to have the proper OSInterface, device examples, and (optionally) dma alongside each other in your working directory. To build, you need to invoke 'make' from the device examples directory (for example, nimseries). If you want to move the files around from this recommended directory structure, be sure to update the path location for the osinterface and dma components in the Makefile from the device examples directory.
Hopefully this helps-
08-22-2008 06:14 AM
Hi Tom,
Thanks for yr reply.
It helped me.
Now i can compile and execute dio with given example with nimhddk_linuxdevmem shipped.
But I am uanble to use it with kernel module shipped which is nimhddk_linux26.
If i run any example lsdaq or serialnumber it says nirlp.ko kernal module not insrted.
Even in nimhddk_linux26 i do following
./configure
make
./install.sh
but it is not able to compile. gives so many error.
Please help.
As i would need to write driver in linux as kernel module.
If this works then my work will be reduced a lot
Thanks,
sgm
08-22-2008 09:52 AM
Hi sgm-
What kind of errors are you seeing? Which kernel version are you using? Can you post the output if you just run 'make clean && make' from the nirlpk directory?
Thanks-
08-25-2008 12:19 AM
Hi Tom,
I have tried make clean and make from nirlpk directory.Output of this i have attched in output.txt file.
I am using suse 10.3 open
Kernel version is 2.6.22.5-31.
regards,
sgm
08-25-2008 01:07 PM
Hi sgm-
Do you have your kernel source installed and configured properly? Did you try the suggestion from those errors to 'make oldconfig && make prepare' on the kernel source directory? Also, the driver must be build as su. Are you doing all these steps?