- From: Everett X. Wang <everteq_at_sbcglobal.net>
- Date: Wed, 14 Jul 2004 22:12:18 -0700
Hi Everyone, We still have problem getting our comedi driver to work with LXRT to work. Here is what we did: 1) Developed a new comedi driver for Sensoray 526 board, which has quadratures, AD, DA, timer. Compiled and installed. 2) Wrote a small program in comedilib/demo that use the driver. The Quadrature, AD and timer functions are tested to be working. The little test program loads the new s526 module, configs it and reads channels. The problem happend when I trying to integrated it to my program, which is running under RTAI/LXRT. The compile went well (with -lkcomedilxrt option), thanks to some of the suggestions from Klass and Emmanual. But when I trying to run it, I got all zeros from quadratures and AD. The message in /var/log/message stated "BAD: null rt_fun_ext[9]", "the last message repeat 1504 times". Any idea what we should look? Thanks in advance. Everett -----Original Message----- From: comedi-admin_at_comedi.org [mailto:comedi-admin_at_comedi.org]On Behalf Of Klaas Gadeyne Sent: Tuesday, July 13, 2004 11:50 PM To: comedi_at_comedi.org Subject: Re: compile and link comedi question > Thanks for the help from Emmanuel and Klaas, I made some progress on > this linking thing. I still have one problem: the linking can find other > comedi functions except "comedi_do_insnlist". I did a nm on > libkcomedilxrt.a. Sure enough that the function is not in it. The > libkcomedilxrt.a came with rtai 3.1 test2. Any idea how to solve this? I > guess I can call comedi_do_insn a few times to replace the insnlist. :-D Indeed, it seems like the do_insn_list instruction is not yet in kcomedilib (there will probably be a good reason for that :) [kgadeyne_at_f012 /lib/modules/2.4.25-adeos/comedi]$ $ nm --defined-only kcomedilib.o | grep insn 00000202 R __kstrtab_comedi_do_insn 000000c8 R __ksymtab_comedi_do_insn 000007b0 T comedi_do_insn And have a look here <http://cvs.gna.org/viewcvs/rtai/vesuvio/rtai-addons/comedi/rtai_comedi.h?re v=1.2&content-type=text/vnd.viewcvs-markup> klaas _______________________________________________ comedi mailing list comedi_at_comedi.org https://cvs.comedi.org/cgi-bin/mailman/listinfo/comedi
Received on 2004-07-15Z04:12:18