Re: [comedi] ni_pcimio does not support attach using comedi_config

Ian Abbott <[email protected]> Fri, 30 Jun 2023 12:28:10 +0100
Newsgroups gmane.linux.comedi
Organization MEV Ltd.
Message-ID <[email protected]>
On 30/06/2023 01:29, Random Stuff wrote:
> Hello everyone,
>=20
> I'm using a National Instruments PCI-6014 188626D-01 daq and trying to=20
> run comedi_config to setup the daq. Initially, I kept getting the=20
> "comedi.o not loaded" error and fixed it by setting autoconfig=3D0.=20
> However now, I'm getting the following error:
>=20
> configuring driver=3Dni_pcimio 0,0,0,0,0,...0,0,0
> Configure failed!: Input/output error
> Check kernel log for more information
> Possible reasons for failure:
>  =C2=A0 Driver not found
>=20
> If I check kernel logs using "dmesg", I see: "comedi comedi0: driver=20
> ni_pcimio does not support attach using comedi_config" multiple times as=
=20
> well as a few comedi_fc errors regarding unkown symbols. Let me know if=
=20
> you'd like me to send over the full dmesg output, but it is quite large.=
=20
> Let me know if any further information is required, as I'm quite new to=
=20
> this.
>=20
> Thanks!

It sounds like you *might* have a mixture of the two mutually=20
incompatible sets of comedi modules installed on your system, but=20
perhaps not.  By the two mutually incompatible sets of comedi modules, I=20
mean:

1. The set of comedi modules built from sources at=20
https://github.com/Linux-Comedi/comedi.git (if you have done that).=20
These were previously hosted on comedi.org so I will refer to them as=20
the "comedi.org" comedi modules.

2. The set of comedi modules included with the Linux kernel image=20
packages, or perhaps in an "extra modules" package.  I will refer to=20
them as the "Linux" comedi modules.

The modules from set 2 (the "Linux" comedi modules) removed the support=20
for manually configuration from most of the PCI and USB drivers a long=20
time ago, and also removed "comedi_fc" as a separate module,=20
incorporating its functions into the main "comedi" module.=20
Auto-configuration was removed from the "ni_pcimio" driver in kernel=20
version 3.10.  The "comedi_fc" module was removed in kernel version 3.18.

The modules from set 1 (the "comedi.org" comedi modules) still support=20
manual configuration of PCI and USB devices and still has the=20
"comedi_fc" module.

The usual reason auto-configuration doesn't work is when there is a=20
variant of the card with different PCI ID information that the driver's=20
device ID table does not match.  That has happened before with NI cards.

The following info would be useful:

1. The output from: lspci -v -n -d 1093:
    (That will list info about PCI devices matching NI's PCI vendor ID.)

2. The output from: sudo modinfo --filename comedi comedi_fc ni_pcimio
    (That will show the paths of various comedi modules.)

3. Your "dmesg" output, preferably with bits unrelated to comedi removed.

Regards,
Ian

--=20
-=3D( Ian Abbott <[email protected]> || MEV Ltd. is a company  )=3D-
-=3D( registered in England & Wales.  Regd. number: 02862268.  )=3D-
-=3D( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=3D-
-=3D( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=3D-

--=20
You received this message because you are subscribed to the Google Groups "=
Comedi: Linux Control and Measurement Device Interface" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/=
comedi_list/1ff4a71b-dc34-d002-385b-f95c4144fb0c%40mev.co.uk.