Menu

Fedora 6: Invalid module format

Jan Grmela
2006-10-29
2013-02-17
  • Jan Grmela

    Jan Grmela - 2006-10-29

    Hello,
    i've successfuly compiled the kernel module for my ZyXEL G-162 Cardbus card (# lspci: 01:00.0 Network controller: Texas Instruments ACX 111 54 Mbps Wireless Interface), but there is some problem insmoding it.

    When i do "/sbin/insmod ./acx.ko", the system says
    "insmod: error inserting 'acx.ko': -1 Invalid module format".

    In dmesg is:
    "acx: version magic '2.6.18-1.2798.fc6 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1' should be '2.6.18-1.2798.fc6 SMP mod_unload 586 REGPARM 4KSTACKS gcc-4.1'"

    And the module doesn't load. I've added the config.h file to kernel sources + modyfied the pci.c (#include <linux/utsrelease.h>) to compile successfully. Also tried deleting & downloading the acx sources again but nothing has changed.
    Any ideas how to make the module load?

     
    • Jan Grmela

      Jan Grmela - 2006-11-01

      Found dirty workaround.

      Open acx.ko in some hexa editor (hexedit, KHexEdit, etc.) and search for string "686" (the whole line is "vermagic=.2.6.18-1.2798.fc6 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1"). I found it at 0001:bba0. Change it to "585". This tells the kernel different version of the module and the module loads like a charm :)

      Another possible solution is to load module using "modprobe --force-vermagic acx".

      I know this solution is not the finest but it does work and could be useful for someone wanting to get his Wifi card working quick.

       
      • Kacaban

        Kacaban - 2007-02-19

        Hello,

        I have the problem which looks like same... I've tryed to modify acx.ko as you said, but it won't load. Changing 586 back to 686 and changing kernel version to appropriate (before it was something like 2.6.19-2~~~) don't helps.

        modprobe --force-vermagic acx won't work at the same reason.

        How can i fix it?

         

Log in to post a comment.