Ettore Pedretti wrote: > Hi, > > There was no option in menuconfig for enabling > CONFIG_XENO_DRIVERS_ANALOGY_DEBUG_LEVEL=1 > CONFIG_XENO_DRIVERS_ANALOGY_DRIVER_DEBUG_LEVEL=1 That's weird. There must be a bug somewhere. Could you send me your last .config file? > > I edited .config manually and that worked (I hope). > > Error trace attached. I hope this will narrow-down the problem Thank you. I think I fixed the bug. I updated my git repository (branch analogy). Could you test it ?
If you do not want to bother with git. Here is the patch: diff --git a/ksrc/drivers/analogy/national_instruments/mio_common.c b/ksrc/drive index c722384..db9762a 100644 --- a/ksrc/drivers/analogy/national_instruments/mio_common.c +++ b/ksrc/drivers/analogy/national_instruments/mio_common.c @@ -3732,9 +3732,14 @@ void mio_common_detach(a4l_dev_t * dev) static void init_ao_67xx(a4l_dev_t * dev) { - a4l_subd_t *subd = dev->transfer.subds[NI_AO_SUBDEV]; + a4l_subd_t *subd = a4l_get_subd(dev, NI_AO_SUBDEV); int i; + if (subd == NULL) { + a4l_err(dev, "%s: unable to find AO subdevice\n", __FUNCTION__); + return; + } + for (i = 0; i < subd->chan_desc->length; i++) ni_ao_win_outw(dev, AO_Channel(i) | 0x0, AO_Configuration_2_67xx); > > Ettore > > 2010/1/5 Alexis Berlemont <berlemont.h...@free.fr>: >> Hi, >> >> Ettore Pedretti wrote: >>> Hi >>> >>> I have installed Xenomai 2.5.0 and tried to attach the module: >>> analogy_config analogy0 analogy_ni_pcimio >>> >>> The error trace is attached as a text file >> I do not see any analogy debug traces. In your kernel configuration, >> have you configured the following options like this: >> CONFIG_XENO_DRIVERS_ANALOGY_DEBUG=y >> CONFIG_XENO_DRIVERS_ANALOGY_DEBUG_LEVEL=1 >> CONFIG_XENO_DRIVERS_ANALOGY_DRIVER_DEBUG_LEVEL=1 >> >>> Regards >>> Ettore >>> >> Alexis. >> > > > Alexis. _______________________________________________ Xenomai-help mailing list Xenomai-help@gna.org https://mail.gna.org/listinfo/xenomai-help