[SOLVED] insmod error -- Invalid module format
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    insmod error -- Invalid module format

    Hello,

    I successfully built the sources for 64 bit linux drivers from http://www.broadcom.com/support/802.11/linux_sta.php on the 64 bit F14 machine:

    Code:
    Linux localhost.localdomain 2.6.35.6-45.fc14.x86_64 #1 SMP Mon Oct 18 23:57:44 UTC 2010 x86_64 x86_64 x86_64 GNU/Linux
    and got wl.ko:

    Code:
    /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
    -rwxr-xr-x. 1 root root 4061240  /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko*
    The Broadcom card is:

    Code:
    0c:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)
    (full output of lspci is attached at the bottom of this email)
    However, all attempts to install as per the instructions in the readme http://www.broadcom.com/docs/linux_sta/README.txt failed. The details of all the things I tried and the response from the system is given below:

    Commands tried and their results:

    Code:
     [root]# lsmod | grep "b43\|ssb\|wl"
    
     [root]# modprobe lib80211
    
     [root]# insmod wl.ko
     insmod: error inserting 'wl.ko': -1 Invalid module format
    
     [root]# ls /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
     /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
    
     [root]# insmod /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
     insmod: error inserting '/lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko': -1 Invalid module format
    
     [root]# modprobe ieee80211_crypt_tkip
     FATAL: Module ieee80211_crypt_tkip not found.
    
     [root]# modprobe lib80211
     [root]# insmod /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
     insmod: error inserting '/lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko': -1 Invalid module format
     [root]# insmod wl.ko
     insmod: error inserting 'wl.ko': -1 Invalid module format
     [root]# depmod
     [root]# depmod -a
     [root]# modprobe wl
     FATAL: Error inserting wl (/lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko): Invalid module format
     [root]# modprobe wl.ko
     FATAL: Module wl.ko not found.
     [root]# modprobe /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
     FATAL: Module /lib/modules/2.6.35.6_45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko not found.
     [root]# insmod wl
     insmod: can't read 'wl': No such file or directory
     [root]# insmod wl.ko
     insmod: error inserting 'wl.ko': -1 Invalid module format
    How to fix this?

    Thanks,

    Output of lspci:
    Code:
     [user]$ lspci
     00:00.0 Host bridge: Intel Corporation 4 Series Chipset DRAM Controller (rev 03)
     00:01.0 PCI bridge: Intel Corporation 4 Series Chipset PCI Express Root Port (rev 03)
     00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
     00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
     00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
     00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
     00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
     00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
     00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
     00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 02)
     00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 02)
     00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
     00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02)
     00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
     00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
     00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
     00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
     00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 92)
     00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 02)
     00:1f.2 RAID bus controller: Intel Corporation Mobile 82801 SATA RAID Controller (rev 02)
     00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
     01:00.0 VGA compatible controller: nVidia Corporation G92 [Quadro FX 3700M] (rev a2)
     03:01.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ba)
     03:01.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 04)
     03:01.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 21)
     03:01.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 11)
     03:01.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 11)
     09:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5761e Gigabit Ethernet PCIe (rev 10)
     0c:00.0 Network controller: Broadcom Corporation BCM4322 802.11a/b/g/n Wireless LAN Controller (rev 01)

  2. #2
    stevea Guest

    Re: insmod error -- Invalid module format

    It's the FORMAT of the wl.ko file.

    What does
    file .../wl.ko
    report ?

  3. #3
    Join Date
    Feb 2011
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: insmod error -- Invalid module format

    Result of "file wl.ko" command (using multiple lines to avoid the horizontal scroll bar):

    Code:
    .
    
    # find /lib /var wl.ko | xargs file
    
    /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko:  
    
    ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
    
    #

    (Likely that format of file is not what is meant by format of module.)

    .

    ---------- Post added at 07:59 AM ---------- Previous post was at 12:42 AM ----------

    Output of modinfo:
    Code:
    [root@localhost ~]# modinfo /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
    filename:       /lib/modules/2.6.35.6-45.fc14.x86_64/kernel/drivers/net/wireless/wl.ko
    srcversion:     0D99774351D8F5D1B0D3B59
    alias:          pci:v000014E4d00000576sv*sd*bc*sc*i*
    alias:          pci:v000014E4d0000435Asv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004359sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004358sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004727sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004357sv*sd*bc*sc*i*
    alias:          pci:v000014E4d0000A99Dsv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004353sv*sd*bc*sc*i*
    alias:          pci:v000014E4d0000432Dsv*sd*bc*sc*i*
    alias:          pci:v000014E4d0000432Csv*sd*bc*sc*i*
    alias:          pci:v000014E4d0000432Bsv*sd*bc*sc*i*
    alias:          pci:v000014E4d0000432Asv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004329sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004328sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004315sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004313sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004312sv*sd*bc*sc*i*
    alias:          pci:v000014E4d00004311sv*sd*bc*sc*i*
    depends:        lib80211
    vermagic:       2.6.35.11-83.fc14.x86_64 SMP mod_unload 
    parm:           oneonly:int
    parm:           piomode:int
    parm:           instance_base:int
    parm:           nompc:int
    parm:           name:string
    [root@localhost ~]#


    ---------- Post added at 08:04 AM ---------- Previous post was at 07:59 AM ----------

    Output from dmesg:

    Code:
    [ 2533.122235] wl: version magic '2.6.35.11-83.fc14.x86_64 SMP mod_unload ' should be '2.6.35.6-45.fc14.x86_64 SMP mod_unload '
    [ 2575.255172] wl: version magic '2.6.35.11-83.fc14.x86_64 SMP mod_unload ' should be '2.6.35.6-45.fc14.x86_64 SMP mod_unload '
    [root@localhost ~]#
    Last edited by m2lmb; 4th March 2011 at 09:48 AM. Reason: file vs module distinction

Similar Threads

  1. "insmod: -1 Invalid module format "error!
    By girish_rvd in forum Using Fedora
    Replies: 1
    Last Post: 2nd February 2009, 04:29 PM
  2. Fuse error: invalid module format
    By gooniefly in forum Using Fedora
    Replies: 10
    Last Post: 15th February 2007, 10:06 AM
  3. Invalid Module Format error...
    By lynxus in forum Using Fedora
    Replies: 0
    Last Post: 10th December 2006, 04:50 PM
  4. Invalid Module Format???
    By binnymitch in forum Using Fedora
    Replies: 6
    Last Post: 12th July 2006, 09:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •