Re: Comedi on FC5

On 04/09/06 04:15, Wensheng Wang wrote:
> Hi,
> I've just installed the comedi-0.7.73 on FC5(2.6.16).
> It seems everything well, but when I tried to do this:
>       #modprobe usbdux
> or
>       #insmod usbdux
> I got error messages:
> WARNING: 
> Error inserting comedi (/lib/modules/2.6.16-prep/extra/comedi.ko):
> Invalid module format
> FATAL: 
> Error inserting usbdux
> (/lib/modules/2.6.16-prep/extra/drivers/usbdux.ko): Invalid module
> format
> I really don't know what is the problem. I can see those files
> (comedi.ko, usbdux.ko) in the
> directory (/lib/modules/2.6.16-prep/extra/). Actually I haven't a real
> device yet now. 
> Thank you in advance for your help.

Running 'dmesg' to display the end of the kernel log should provide more
info about what went wrong.  In general, it is caused by one of the
following:

i) compiling the modules with the wrong version of GCC (the GCC major
and minor number has to match whatever the kernel was compiled with);

ii) compiling the modules against the wrong kernel version; or

iii) compiling the modules against the correct kernel version, but with
the wrong kernel config settings (the kernel config used to build the
modules needs to match those used to build the kernel).

You should also note that most Comedi drivers have not been tested with
big-endian architectures such as PowerPC (I'm guessing you are using
PowerPC from the "-prep" suffix), so you may encounter endian problems
with some drivers.

-- 
-=( Ian Abbott _at_ MEV Ltd.    E-mail: <abbotti_at_mev.co.uk>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-

Received on 2006-09-04Z09:18:17