Ong Wee Liat | 1 Aug 2004 10:53
Picon

LXRT with Comedi

Hi All,

   I have coded a little program to output a periodic digital pulses to run in LXRT.  As LXRT has
rt_make_soft_real_time() and rt_make_hard_real_time(), i have tried to compare the "reliability" by
checking the frequency of the digital pulses through an oscilloscope.

   However to my surprise, under the soft realtime option, the output on my oscilloscope is stable up to 10kHz,
whereas under the hard realtime option, the output starts to produce "unstable" waveform at a low
freqency of 500Hz!!!

   I suspect that my code has not fully utilised the hard realtime option but i do not know what is wrong. Can
anyone help me to take a look?  I am using rtai-24.1.11, linux-2.4.20-rthal5g, comedi-0.7.65 and
comedilib-0.7.21.  I am using a NI DAQ6024E card.  I loaded rt_lxrt_old.o, rtai.o and rt_sched_up.o for
the lxrt.

   Thanks and my code is attached below.

wee

***************************************

#include <sched.h>
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <signal.h>

#include <errno.h>
#include <sys/mman.h> // for mlockall function
#include <rtai_lxrt_user.h> 
(Continue reading)

Sim Wai Yong | 2 Aug 2004 04:48
Picon

Problem when "make" comedilib-0.7.21

Hi,

 

I have try to run  “make” to compile the comedilib-0.7.21.

 

But I encounter some errors… following are the error message?

 

>>>>more jade error <<<<

Jade:/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc/html/./../driverwriting.sgml:262:0: start tag was here

Jade:/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc/html/./../driverwriting.sgml:332:9:E: end tag for “SECTION” which is not finished

Jade:/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc/html/./../driverwriting.sgml:834:9:E end tag for “PARA” omitted, but OMITTAG NO was specified

Jade:/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc/html/./../driverwriting.sgml:783:0: start tag was here

Make [4]: *** [all_html] Error 8

Make [4]: Leaving directory ‘/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc/html’

Make [3]: *** [all-recursive] Error 1

Make [3]: Leaving directory ‘/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc’

Make [2]: *** [all] Error 2

Make [2]: Leaving directory ‘/waiyong/Daq_Linux_Driver/comedilib-0.7.21/doc’

Make [1]: *** [all-recursive] Error 1

Make [1]: Leaving directory ‘/waiyong/Daq_Linux_Driver/comedilib-0.7.21’

Makw:: *** [all] Error 2

 

Has anyone got any idea how to get rid of these?

 

regards,

Waiyong

 

Sim Wai Yong | 2 Aug 2004 10:32
Picon

Problem when running "comedi_config"

Hi,

 

I have problem running the “comedi_config”.

 

After running “modprobe ni_labpc_cs” successfully, I tried “comedi_config –v /dev/comedi0 lab-pc-1200 0x200,4”, but I got the error message:

Configuring driver=lab-pc-1200 512,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

Configure failed: Invalid argument

Check kernel log for information

Possible reasons for failure:

 

After “dmesg” is got the mnessage:

Comedi0: ni_labpc: lab-pc-1200, io 0x200, irq 4

Unable to allocate irq 4

Comedi0: ni_labpc: detach

 

Anyone can help me here?

 

regards,

Waiyong

 

mp | 2 Aug 2004 18:58
Picon

comedi_data_read with python

Hi all,

I have a problem with comedi_data_read(...) function using python.
I've done this simple example, taken from demo dir of the comedilib
tarball, but it doesn't work:

###############################################

import comedi as c
import time

subdev = 0
chan = 0 
range = 0 
aref = 0 

cf = c.comedi_open('/dev/comedi0')
maxdata = c.comedi_get_maxdata(cf, subdev, chan)
cr = c.comedi_get_range(cf, subdev, chan, range)
data = 100

print "Writing data"
if c.comedi_data_write(cf, subdev, chan, range, aref, data) == -1:
  print "Error writing device"

print "Reading data"
if c.comedi_data_read(cf, subdev, chan, range, aref, data) == -1:
  print "Error reading device"

volts = c.comedi_to_phys(data, cr, maxdata)
print '%d %g\n'%(data, volts)

###############################################################

this is the error from python interpreter:

  Traceback (most recent call last):
    File "tut2.py", line 34, in ?
        if c.comedi_data_read(cf, subdev, chan, range, aref, data) == -1:
        TypeError: Type error. Expected _p_lsampl_t

in C library lsampl_t is an un unsigned int, it seems that python
doesn't like my "data" variable ?

Would you please help me?

Thank you very much

Marco Pagnanini

--

-- 
Marco Pagnanini
http://www.marcopagnanini.it && http://www.cmlug.org
info<AT>marcopagnanini.it && tmp<AT>cmlug.org 
Piero Codas | 2 Aug 2004 13:40
Favicon

Re: Problem when running "comedi_config"

lab pc's aren't in irq 11 or in irq 3???
 
have you check that?
 
piero
 
 

_______________________________________________________________________ Advertencia: Este mensaje contiene la opinion personal del remitente y la Universidad Catolica Nuestra Senora de la Asuncion no asume responsabilidad alguna con relacion al contenido del presente mensaje. Cualquier consulta realizar por favor a sysadmin <at> uca.edu.py . Protected by LED
Frank Mori Hess | 3 Aug 2004 02:13
Picon

Re: Problem when running "comedi_config"


On Monday 02 August 2004 04:32 am, Sim Wai Yong wrote:
> After running "modprobe ni_labpc_cs" successfully, I tried
> "comedi_config -v /dev/comedi0 lab-pc-1200 0x200,4", but I got the error
> message:
>
> Configuring driver=lab-pc-1200
> 512,4,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
>
> Configure failed: Invalid argument
>
> Check kernel log for information
>
> Possible reasons for failure:
>
>
>
> After "dmesg" is got the mnessage:
>
> Comedi0: ni_labpc: lab-pc-1200, io 0x200, irq 4
>
> Unable to allocate irq 4
>
> Comedi0: ni_labpc: detach

Probably something else has allocated irq 4.  It's an isa board, and it 
can't share interrupts.  Would you send me the output of pnpdump for the 
board?  I might get around to adding kernel level isapnp support for the 
board if I had it's id numbers, so you dont have to use isapnptools.

--

-- 
Frank

Raghu Sankarayogi | 2 Aug 2004 15:08
Picon

Re: Error when "make" for comedilib-0.7.21

Hello,

        All that I know is that this error can be fixed with the
docbook-sgml utility, because it worked for me. There could be other
ways which I am not aware of. Try searching the comedi archives ( and
also rtai ) and you may find an alternative.

Regards,

Raghu

On Mon, 2 Aug 2004 10:56:39 +0800, Sim Wai Yong <g0301119 <at> nus.edu.sg> wrote:
> Hi,
> 
> May I know is it a "MUST" to install docbook-sgml?
> Or can I ignore the jade error?
> 
> regards,
> Waiyong
> 
> -----Original Message-----
> From: Raghu Sankarayogi [mailto:sankarayogi <at> gmail.com]
> Sent: 2004年7月28日 21:00
> To: Sim Wai Yong
> Cc: comedi <at> comedi.org
> Subject: Re: Error when "make" for comedilib-0.7.21
> 
> Hello,
> 
>        Can you please post the errors. If it is something with jade,
> you must install docbook-sgml utility for your linux distro.
> 
> Regards,
> 
> Raghu
> 
> ----- Original Message -----
> From: Sim Wai Yong <g0301119 <at> nus.edu.sg>
> Date: Wed, 28 Jul 2004 11:52:26 +0800
> Subject: Error when "make" for comedilib-0.7.21
> To: comedi <at> comedi.org
> 
> Hi,
> 
> I encounter errors when install the comedilib-0.7.21.
> 
> Here's what I did:
> 
> tar �Cxvzf comedilib-0.7.21.tar.gz
> 
> 
> go to the directory comedilib-0.7.21
> run ./configure
> run make à shows errors
> 
> At this stage, I cannot proceed.
> 
> I am new to both linux and comedi. Can someone tell me how to print
> out the error message during the make into a file.
> 
> I tried make >"my log file name". But the file does not consist of any
> error messages.
> 
> regards,
> 
> Waiyong
>
Rajeshwary Tayade | 2 Aug 2004 17:33
Picon
Favicon

newbie: error in "make" for comedi


hi
  I am new to linux and am trying to install comedi for NI PCI 6052E. I am running Red Hat 9.0 with kernel version 2.4.20-18.9 and gcc version 3.2.3.
The comedi version i downloaded and was trying to install is comedi-0.7.68

I did the following steps:
cd /usr/src/linux2.4.20-18.9/
make mrproper
cp /configs/kernel-2.4.20-i686.config .config
make oldconfig
make dep

Then in the comedi-0.7.68 directory i run "./configure" which generates the Makefile.

there is no rule for 'make config' so i directly ran "make"

and i get an error , I am posting the last part of the build log here for reference.




In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_mio_cs.c:44:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_mio_cs.c:44:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o ni_mio_cs.ko  ni_mio_cs.o  
ld -m elf_i386 -e stext -r -o ni_mio_cs.ko ni_mio_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ -DKBUILD_MODNAME=ni_labpc_cs -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT ni_labpc_cs.o -MD -MP -MF ".deps/ni_labpc_cs.Tpo" \
  -c -o ni_labpc_cs.o `test -f 'ni_labpc_cs.c' || echo './'`ni_labpc_cs.c; \
then mv -f ".deps/ni_labpc_cs.Tpo" ".deps/ni_labpc_cs.Po"; \
else rm -f ".deps/ni_labpc_cs.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_labpc_cs.c:64:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_labpc_cs.c:64:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o ni_labpc_cs.ko  ni_labpc_cs.o  
ld -m elf_i386 -e stext -r -o ni_labpc_cs.ko ni_labpc_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ -DKBUILD_MODNAME=quatech_daqp_cs -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT quatech_daqp_cs.o -MD -MP -MF ".deps/quatech_daqp_cs.Tpo" \
  -c -o quatech_daqp_cs.o `test -f 'quatech_daqp_cs.c' || echo './'`quatech_daqp_cs.c; \
then mv -f ".deps/quatech_daqp_cs.Tpo" ".deps/quatech_daqp_cs.Po"; \
else rm -f ".deps/quatech_daqp_cs.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from quatech_daqp_cs.c:50:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from quatech_daqp_cs.c:50:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o quatech_daqp_cs.ko  quatech_daqp_cs.o  
ld -m elf_i386 -e stext -r -o quatech_daqp_cs.ko quatech_daqp_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ -DKBUILD_MODNAME=usbdux -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT usbdux.o -MD -MP -MF ".deps/usbdux.Tpo" \
  -c -o usbdux.o `test -f 'usbdux.c' || echo './'`usbdux.c; \
then mv -f ".deps/usbdux.Tpo" ".deps/usbdux.Po"; \
else rm -f ".deps/usbdux.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from usbdux.c:74:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from usbdux.c:74:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o usbdux.ko  usbdux.o  
ld -m elf_i386 -e stext -r -o usbdux.ko usbdux.o
make[3]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi/drivers'
make[3]: Entering directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../include/ -DKBUILD_MODNAME=comedi -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT comedi_ko-comedi_fops.o -MD -MP -MF ".deps/comedi_ko-comedi_fops.Tpo" \
  -c -o comedi_ko-comedi_fops.o `test -f 'comedi_fops.c' || echo './'`comedi_fops.c; \
then mv -f ".deps/comedi_ko-comedi_fops.Tpo" ".deps/comedi_ko-comedi_fops.Po"; \
else rm -f ".deps/comedi_ko-comedi_fops.Tpo"; exit 1; \
fi
In file included from ../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../include/linux/mm.h:23,
                 from comedi_fops.c:34:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../include/linux/mm.h:23,
                 from comedi_fops.c:34:
../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
comedi_fops.c: In function `comedi_mmap_v22':
comedi_fops.c:1300: warning: passing arg 1 of `remap_page_range_R492427ce' makes pointer from integer without a cast
comedi_fops.c:1300: incompatible type for argument 4 of `remap_page_range_R492427ce'
comedi_fops.c:1300: too few arguments to function `remap_page_range_R492427ce'
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68'
make: *** [all] Error 2


If needed I can attach the complete 'make log'.

I would really appreciate some help in solving this problem..

Thanks in advance
Regards
Rajeshwary
Rajeshwary Tayade | 2 Aug 2004 20:54
Picon
Favicon

newbie: error on "make" for comedi


hi
  I am new to linux and am trying to install comedi for NI PCI 6052E. I am running Red Hat 9.0 with kernel version 2.4.20-18.9 and gcc version 3.2.3.
The comedi version i downloaded and was trying to install is comedi-0.7.68

I did the following steps:
cd /usr/src/linux2.4.20-18.9/
make mrproper
cp /configs/kernel-2.4.20-i686.config .config
make oldconfig
make dep

Then in the comedi-0.7.68 directory i run "./configure" which generates the Makefile.

there is no rule for 'make config' so i directly ran "make"

and i get an error , I am posting the last part of the build log here for reference.




In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_mio_cs.c:44:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_mio_cs.c:44:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o ni_mio_cs.ko  ni_mio_cs.o  
ld -m elf_i386 -e stext -r -o ni_mio_cs.ko ni_mio_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ -DKBUILD_MODNAME=ni_labpc_cs -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT ni_labpc_cs.o -MD -MP -MF ".deps/ni_labpc_cs.Tpo" \
  -c -o ni_labpc_cs.o `test -f 'ni_labpc_cs.c' || echo './'`ni_labpc_cs.c; \
then mv -f ".deps/ni_labpc_cs.Tpo" ".deps/ni_labpc_cs.Po"; \
else rm -f ".deps/ni_labpc_cs.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_labpc_cs.c:64:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from ni_labpc_cs.c:64:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o ni_labpc_cs.ko  ni_labpc_cs.o  
ld -m elf_i386 -e stext -r -o ni_labpc_cs.ko ni_labpc_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ -DKBUILD_MODNAME=quatech_daqp_cs -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT quatech_daqp_cs.o -MD -MP -MF ".deps/quatech_daqp_cs.Tpo" \
  -c -o quatech_daqp_cs.o `test -f 'quatech_daqp_cs.c' || echo './'`quatech_daqp_cs.c; \
then mv -f ".deps/quatech_daqp_cs.Tpo" ".deps/quatech_daqp_cs.Po"; \
else rm -f ".deps/quatech_daqp_cs.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from quatech_daqp_cs.c:50:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from ../../include/linux/comedidev.h:32,
                 from quatech_daqp_cs.c:50:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o quatech_daqp_cs.ko  quatech_daqp_cs.o  
ld -m elf_i386 -e stext -r -o quatech_daqp_cs.ko quatech_daqp_cs.o
if gcc -DHAVE_CONFIG_H -I. -I. -I../..    -I../../include/ -DKBUILD_MODNAME=usbdux -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT usbdux.o -MD -MP -MF ".deps/usbdux.Tpo" \
  -c -o usbdux.o `test -f 'usbdux.c' || echo './'`usbdux.c; \
then mv -f ".deps/usbdux.Tpo" ".deps/usbdux.Po"; \
else rm -f ".deps/usbdux.Tpo"; exit 1; \
fi
In file included from ../../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from usbdux.c:74:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../../include/linux/mm.h:23,
                 from /usr/src/linux-2.4.20-18.9/include/linux/slab.h:14,
                 from ../../include/linux/slab.h:13,
                 from usbdux.c:74:
../../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
../../modtool --link -o usbdux.ko  usbdux.o  
ld -m elf_i386 -e stext -r -o usbdux.ko usbdux.o
make[3]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi/drivers'
make[3]: Entering directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
if gcc -DHAVE_CONFIG_H -I. -I. -I..    -I../include/ -DKBUILD_MODNAME=comedi -D__KERNEL__ -I/usr/src/linux-2.4.20-18.9/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i686 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -DMODULE -DMODVERSIONS -include /usr/src/linux-2.4.20-18.9/include/linux/modversions.h -D__MODULE_KERNEL_i686=1 -D__BOOT_KERNEL_ENTERPRISE=0 -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -D__BOOT_KERNEL_BIGMEM=0 -D__BOOT_KERNEL_HUGEMEM=0   -g -O2 -MT comedi_ko-comedi_fops.o -MD -MP -MF ".deps/comedi_ko-comedi_fops.Tpo" \
  -c -o comedi_ko-comedi_fops.o `test -f 'comedi_fops.c' || echo './'`comedi_fops.c; \
then mv -f ".deps/comedi_ko-comedi_fops.Tpo" ".deps/comedi_ko-comedi_fops.Po"; \
else rm -f ".deps/comedi_ko-comedi_fops.Tpo"; exit 1; \
fi
In file included from ../include/asm/pgtable.h:30,
                 from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../include/linux/mm.h:23,
                 from comedi_fops.c:34:
/usr/src/linux-2.4.20-18.9/include/asm/pgtable.h:347:1: warning: "pte_offset_kernel" redefined
In file included from /usr/src/linux-2.4.20-18.9/include/linux/mm.h:41,
                 from ../include/linux/mm.h:23,
                 from comedi_fops.c:34:
../include/asm/pgtable.h:26:1: warning: this is the location of the previous definition
comedi_fops.c: In function `comedi_mmap_v22':
comedi_fops.c:1300: warning: passing arg 1 of `remap_page_range_R492427ce' makes pointer from integer without a cast
comedi_fops.c:1300: incompatible type for argument 4 of `remap_page_range_R492427ce'
comedi_fops.c:1300: too few arguments to function `remap_page_range_R492427ce'
make[3]: *** [comedi_ko-comedi_fops.o] Error 1
make[3]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68/comedi'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/zebra/ni_pci_6052e/comedi-0.7.68'
make: *** [all] Error 2


If needed I can attach the complete 'make log'.

I would really appreciate some help in solving this problem..

Thanks in advance
Regards
Rajeshwary
Woelke, Milan | 3 Aug 2004 14:30
Picon

advantech pci-1760

hello,
i've got an advantech pci-1760 which I'm trying to access using
comedi-0.7.68 and comedilib-0.7.21. the driver and the lib compiled fine and
without errors, the driver can be loaded successfully and comedi_config is
able to assign it to a device file. but the card isnt working at all. its
not possible to get any of the relays working. I tried all the ways
comedilib offers to acomplish such task (comedi_data_write,
comedi_dio_write, comedi_dio_bitfield, comedi_do_insn (with INSN_WRITE) and
comedi_do_insn (with INSN_BITS)). Most of these call return without error
(except comedi_do_insn which is returning 1 which seems to be undocumented),
but all of them are writing the same message to the syslogd:

comedi0: adv_pci_dio: PCI-1760 mailbox request timeout!
comedi0: adv_pci_dio: PCI-1760 mailbox request timeout!
comedi0: adv_pci_dio: PCI-1760 mailbox request timeout!
comedi0: adv_pci_dio: PCI-1760 mailbox request timeout!
comedi0: adv_pci_dio: PCI-1760 mailbox request timeout!
comedi0: adv_pci_dio: PCI-1760 mailbox request timeout!

does anybody know what that means, and how to avoid it. Has anybody ever
heard of someone who got this card working with linux. and what do I have to
do to acomplish that myself.

thanx in advance.
Milan Wölke

Gmane