D&C GLug - Home Page

[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] kernel modules question - problem

 

On 10/18/06, stinga@xxxxxxxxxxxxx <stinga@xxxxxxxxxxxxx> wrote:
> G'day all,
>
> I have a pci card that requires a module to be loaded for it to work.
>
> The module is called EtCM.o and was compiled with 2.4.21-37.ELsmp.
>
> I am trying, without much success, to install it onto a fc4 linux box
> running...
> [root@blenny EtCM]# uname -r
> 2.6.11-1.1369_FC4smp

Thats cause the module is for *only* 2.4.21-37.ELsmp

>
> >From research it looks like 2.6 kenels need .ko module names and not .o
> ones.

Totaly different beasts, the linking is all different

>
> I am trying to get the vendor to compile for a newer kernel but I don't
> think that is going to fly, they have eol'd the card (I have asked if
> they will release the code since it is eol but I won't hold my breath
> on that one)

This is the best solution. If they will release it GPL then all the
better, you could try to come to an agreement if they will not release
the code that you can get a copy if you dont share it :-( (not the GPL
way but, better than nothing), push for a free release if you can.

>
> What other options do I have, I don't want to drop to an older kernel,
> but it might be the only solution.

Very little really. Even if you get the source it will need updating
as there are so many differences between 2.4 and 2.6 Kernels and the
kernel API is constantly evolving.

>
> It used to get installed using...
> insmod -f /usr/lib/eicon/conf/EtCM/EtCM.o ec_nbuf=128 ec_nreq=256
> ec_watchtime=30
>
> But insmod seems to have lost the -f flag, not sure that would have
> helped in any case.

No, you can force some modules to load if they just have aversion
magic difference for example, but two totaly different kernels is just
asking for an oops.

> I tried using another distros module but that just came up with other
> erros about missing modules.
>
> insmod /lib/modules/2.6.11-1.1369_FC4smp/eicon/EtCM.ko ec_nbuf=128
> ec_nreq=256 ec_watchtime=30
> FATAL: Error inserting EtCM (/lib/modules/2.6.11-1.1369_FC4smp/eicon/
> EtCM.ko): Unknown symbol in module, or unknown parameter (see dmesg)
> [root@blenny EtCM]# dmesg|tail
> EtCM: Unknown symbol ecios_mem_write
> EtCM: disagrees about version of symbol struct_module
> EtCM: disagrees about version of symbol struct_module
> EtCM: no version magic, tainting kernel.
> EtCM: Unknown symbol _STEChrdw
> EtCM: Unknown symbol _ECCMlana2dev
> EtCM: Unknown symbol ecios_mem_read
> EtCM: Unknown symbol EtEC_register_iface
> EtCM: Unknown symbol _ECCMinstoken
> EtCM: Unknown symbol ecios_mem_write
>
> I am not sure what these are really...

The module is looking for the above functions in the kernel or in any
loaded kernel modules and they are not present. the struct_module is
bad as it shows its for the wrong kernel.

Choices:-

Stick with old kernel

Ask for code to be released and try to update.

Get a new card.

Desperatly hunt around to see if someone has done a GPL version of the module.


What does the card do anyway?


-- 
Robin Cornelius
http://www.byteme.org.uk

-- 
The Mailing List for the Devon & Cornwall LUG
http://mailman.dclug.org.uk/listinfo/list
FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html