Find the answer to your Linux question:
Results 1 to 7 of 7
I build the kernel "linux-2.6.20.1" under FC4 by using command as follows: - make menuconfig - make After finished building, it generates "usbhid.ko" in /drivers/usb/input/. I use "insmod usbhid.ko", but ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    9

    Insert Modules Problem~


    I build the kernel "linux-2.6.20.1" under FC4 by using command as follows:
    - make menuconfig
    - make
    After finished building, it generates "usbhid.ko" in /drivers/usb/input/.
    I use "insmod usbhid.ko", but it produces the error message "insmod: error inserting 'usbhid.ko': -1 Invalid module format"

    Do someone can tell me why? thanks!

  2. #2
    Linux Newbie bobescalin2005's Avatar
    Join Date
    Oct 2005
    Posts
    167
    insmod: error inserting 'usbhid.ko': -1 Invalid module format
    I know the module it has to be something like this, for example:
    Code:
    usb-uhci.o
    I don`t get it...your usb it`s not working or what?
    You can use:
    Code:
    lsmod
    to list the loaded modules!
    Cheers!
    Registered Linux user #471256
    http://counter.li.org
    Don`t give up so easy...
    calin

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    9
    I have already used "lsmod" before, I can't see "usbhid" module in FC4.
    So I hope to add "usbhid" module to it and use HID to write the programme for my usb device.

    Any suggestion how can I add HID module to it?
    Thanks!

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    what is the output of
    Code:
    uname -r

  6. #5
    Just Joined!
    Join Date
    May 2008
    Posts
    9
    The output of "uname -r" is
    "2.6.11-1.1369_FC4"

  7. #6
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    this is the problem I expected, you have to actually boot up your system and use the kernel that you compiled in order to load modules for it

  8. #7
    Just Joined!
    Join Date
    May 2008
    Posts
    9
    Thanks for your help.

Posting Permissions

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