Hey, After thinking about what I was doing :) I moved on an only compiled the drivers I needed (ni_pcimio.ko and ni_mite.ko) and loaded them successfully... first ni_mite.ko and then ni_pcimio.ko
r...@xenomai:/usr/src/comedi-rtdm-dev/comedi_drivers/ni_drivers# lsmod | grep ni ni_pcimio 34280 0 ni_mite 6664 1 ni_pcimio xeno_comedi 36084 1 ni_pcimio >From what I understand, I now need to use comedi_config to create the device file which is not necessarily in /dev/comedi0 but (maybe) somehow remapped into... xenomai:/proc/xenomai/rtdm> ls comedi0 comedi1 comedi2 comedi3 comedi4 comedi5 comedi6 comedi7 comedi8 comedi9 fildes named_devices open_fildes protocol_devices However, I get r...@xenomai:/usr/xenomai/sbin# ./comedi_config -v comedi0 ni_pcimio comedi_config: comedi_snd_attach failed ret=-5 dmesg shows then... [56710.390012] no device found [56710.390014] Available NI device IDs: 0x717f [56710.390017] Comedi: comedi_assign_driver: call(drv->attach) failed (ret=-5) The test modules (comedi_fake and comedi_loop) which are provided by xenomai did work, but I couldn't make sense out of it. What am I missing, what should I try out ?? THANKS a lot, peter ---------- Forwarded message ---------- From: Peter Pastor <[email protected]> Date: Thu, Oct 15, 2009 at 6:13 PM Subject: national instruments card and comedi-rtdm-dev To: [email protected] Hey, I am trying to get a national instrument data acquisition pci card working under linux 2.6.30.5 xenomai 2.5-rc3 using comedi. I successfully installed the regular comedi drivers and I got data from the card, however, I also got mode switches. Therefore, I moved to the latest xenomai release which includes the comedi interface. The installation worked out and I got a xeno_comedi.ko module that I can load and a /usr/xenomai/lib/libcomedi.so.0. However, my program returns with... xenomai:~/xenomai_test> ./rt_comedi_test ./rt_comedi_test: /usr/xenomai/lib/libcomedi.so.0: no version information available (required by ./rt_comedi_test) Xenomai: incompatible ABI revision level (needed=1, current=2). I figured, that I need a national instrument driver (ni_pcimio) to get the /dev/comedi0 up and running since there is no kernel module associated with the NI card... xenomai:~/xenomai_test> lspci -v ... 06:00.0 Class ff00: National Instruments Device 717f Flags: bus master, medium devsel, latency 64, IRQ 11 Memory at f7dfe000 (32-bit, non-prefetchable) [size=4K] Memory at f7dff000 (32-bit, non-prefetchable) [size=4K] ... I "svn co http://svn.gna.org/svn/xenomai/branches/comedi-rtdm-dev" since it seems to contain the NI drivers... however, I got a compiler error that I think relates to the fact that the system I am using has 4GB of ram (highmem). I am using revision: 4727. r...@xenomai:/usr/src/comedi-rtdm-dev# make make all-recursive make[1]: Entering directory `/usr/src/comedi-rtdm-dev' Making all in comedi_kcore make[2]: Entering directory `/usr/src/comedi-rtdm-dev/comedi_kcore' make[3]: Entering directory `/usr/src/comedi-rtdm-dev' make[3]: Leaving directory `/usr/src/comedi-rtdm-dev' make[3]: Entering directory `/usr/src/linux-2.6.30.5' CC [M] /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_os_facilities.o CC [M] /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_command.o CC [M] /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_instruction.o CC [M] /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_driver.o CC [M] /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_subdevice.o CC [M] /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_buffer.o /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_buffer.c: In function ‘comedi_free_buffer’: /usr/src/comedi-rtdm-dev/comedi_kcore/comedi_buffer.c:52: error: implicit declaration of function ‘__va_to_kva’ make[4]: *** [/usr/src/comedi-rtdm-dev/comedi_kcore/comedi_buffer.o] Error 1 make[3]: *** [_module_/usr/src/comedi-rtdm-dev/comedi_kcore] Error 2 make[3]: Leaving directory `/usr/src/linux-2.6.30.5' make[2]: *** [comedi.ko] Error 2 make[2]: Leaving directory `/usr/src/comedi-rtdm-dev/comedi_kcore' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/comedi-rtdm-dev' make: *** [all] Error 2 I would be really happy if someone could give me some hints/advice on how to get things working. What do I need to do ?? Thanks a lot, peter
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
