- From: Torben Mikael Hansen <comedi_ns_at_linhard.dk>
- Date: Mon, 10 Jul 2006 13:56:22 +0200
Thanks, it works fine.
Further I patched ni_mio_cs.c to compile with kernel 2.6.17. I have tested it
with comedi_test and a simple AO -> AI loopback (in labview) and it seems to
work.
Of couse you'll need to change the kbuild file since other pcmcia
drivers still doesn't work.
Since dev_init_t no longer exist in 2.6.17 and pcmcia_device has no next
member, a device list is no longer maintained. If cs_attach is called twice
dev_list is writen over and the first call to cs_detact sets dev_list to
NULL. I'm not sure if this is the right thing to do?
I'm not sure about all the corrections I have done, but I seems to work and I
get no error messages from the kernel. I think the the dev_list should not be
used at all anymore, but I couldn't find a good way of avoiding it.
I hope it is usefull, and please let me know it I should do some specific
testing or if you have other comments.
Regards
Torben
Onsdag 05 juli 2006 11:58 skrev Ian Abbott:
> On 04/07/06 18:18, Torben Mikael Hansen wrote:
> > Hi Ian
> >
> >> Hello Alessandro,
> >> Could you restore it as it was and post the section of
> >> the config.log file from "checking for Linux CFLAGS" onwards? That
> >
> > would show where the error occurred. It looks like the make command run
> > by that test failed before it created the ${tmpdir}/flags file.
> >
> > Since I'm having the same problem I send my config.log
> >
> > The problem only occurs when compiling under 2.6.17 and not under 2.6.16.
> >
> > --snip config.log ----
> > configure:3803: result: 2.6
> > configure:3811: checking for Linux CFLAGS
> > make -C /lib/modules/2.6.17-1.2139_FC5/build V=1
> > SUBDIRS=/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977
> > LINUXDIR=/lib/modules/2.6.17-1.2139_FC5/build
> > MODVERDIR=/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977
> > modules make: Entering directory
> > `/usr/src/kernels/2.6.17-1.2139_FC5-i686' mkdir -p
> > /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977 rm -f
> > /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/*
> > make -f scripts/Makefile.build
> > obj=/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977
> > scripts/Makefile.build:17:
> > /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/Makefile: No
> > such file or directory
> > make[1]: *** No rule to make target
> > `/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/Makefile'.
> > Stop. make: ***
> > [_module_/usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977] Error
> > 2 make: Leaving directory `/usr/src/kernels/2.6.17-1.2139_FC5-i686'
> >
> > -- snip end config.log --
>
> Thanks! It seems to have suffered from paragraph reformatting a bit,
> but the killer line is:
>
> rm -f /usr/src/redhat/BUILD/comedi-cvs20060704/./confstatzm7977/*
>
> In the kernel Makefile for 2.6.17, that comes from the line:
>
> $(Q)rm -f $(MODVERDIR)/*
>
> 2.6.16 has a similar line:
>
> $(Q)rm -f $(MODVERDIR)
>
> so I'm not sure why _that_ worked! (I may investigate further if I have
> the time.)
>
> Anoyhow, I fixed it in CVS (see attached patch) by not setting MODVERDIR
> on the command line and letting the kernel Makefile figure it out by
> itself. You need to re-run ./autogen.sh with your current ./configure
> command-line options after applying this patch.
Attachments
- text/x-diff attachment: ni_mio_cs_2.6.17.patch
Received on 2006-07-10Z10:56:22