[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#729801: linux-image-3.10-3-amd64: kernel module i2c-hid does not exist



Ben Hutchings <ben@decadent.org.uk> writes:

>> Can I compile the module by my own or can it be
>> integrated into Debian?
>
> You might be able to compile the module but I can't provide simple
> instructions for this.

Since this is a simple driver with few dependencies, it seems to be as
simple as

 1) get a recent kernel source with the driver you want.  Mainline is
   fine, but you are safer if you stick with a stable release matching
   the Debian kernel you want to build it for.

 2) Install Debian kernel headers:
      apt-get install linux-headers-`uname -r`

 3) build the module:
      cd /where/you/put/the/kernelsrc
      make -C /lib/modules/`uname -r`/build SUBDIRS=`pwd`/drivers/hid/i2c-hid CONFIG_I2C_HID=m 

 4) optionally copy the resulting module to /lib/modules
      mkdir -p /lib/modules/`uname -r`/extra
      cp drivers/hid/i2c-hid/i2c-hid.ko /lib/modules/`uname -r`/extra/
      depmod -a

 5) load it manually, or reboot to have it autoloaded if you've got the
    ACPI device


> I will enable this for Linux 3.12.

Which of course is much better.  But the above should work until this is
available.


Bjørn


Reply to: