Loading ...
Sorry, an error occurred while loading the content.

Re: Compiling a kernel module with bitbake

Expand Messages
  • circlotron
    I ve got the gotemp driver working! Here s what I had to do: copy usb-gotemp.patch to: /openslug/openembedded/packages/linux/ixp4xx-kernel/2.6.15 add the
    Message 1 of 3 , Feb 9, 2006
    View Source
    • 0 Attachment
      I've got the gotemp driver working! Here's what I had to do:

      copy usb-gotemp.patch to:
      /openslug/openembedded/packages/linux/ixp4xx-kernel/2.6.15

      add the following line
      CONFIG_USB_GOTEMP=m
      to:
      /openslug/openembedded/packages/linux/ixp4xx-kernel/2.6.15/defconfig
      immediately after
      # CONFIG_USB_LD is not set

      add the following line
      IXP4XX_PATCHES += "file://usb-gotemp.patch;patch=1"
      to:
      /openslug/openembedded/packages/linux/ixp4xx-kernel_2.6.15.2.bb
      immediately after:
      IXP4XX_PATCHES += "file://96-nslu2-leds.patch;patch=1"

      I deleted: /openslug/openslug/tmp/work/ixp4xx-kernel*
      and also:
      /openslug/openslug/tmp/work/openslug*
      /openslug/openslug/tmp/stamps/ixp4xx-kernel*
      /openslug/openslug/tmp/stamps/openslug*

      and then:
      make openslug-image

      After reflashing my slug I copied gotemp.ko into
      /lib/modules/2.6.15.2/kernel/drivers/usb/misc

      and then loaded the module using: insmod gotemp.ko

      The author of the gotemp kernel module (greg KH) had sent me the
      latest version of the module as a patch. Eventually gotemp will be
      part of the standard kernel.

      I'd like to thank √ėyvind for his help via this group and IRC.
    Your message has been successfully submitted and would be delivered to recipients shortly.