Driver Development Kit (DDK)

cancel
Showing results for 
Search instead for 
Did you mean: 

Pci e 6251 RPL Programming with DDK

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 

0 Kudos
Message 1 of 11
(9,787 Views)

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-

 

 

Tom W
National Instruments
0 Kudos
Message 2 of 11
(9,758 Views)

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 

0 Kudos
Message 3 of 11
(9,742 Views)

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-

Tom W
National Instruments
0 Kudos
Message 4 of 11
(9,738 Views)

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 

 

 

0 Kudos
Message 5 of 11
(9,726 Views)

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?

Tom W
National Instruments
0 Kudos
Message 6 of 11
(9,712 Views)