wpc8769l module not included in build list

Bug #508266 reported by Greg Vickers
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lirc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: lirc-modules-source

When installing the lirc-modules-source package, there is a module 'wpc8769l' included in the lirc-modules-source package. The file /usr/src/lirc-0.8.6/lirc-modules-source.conf has a configuration item LIRC_MODULES which does not included in the 'wpc8769l' module.

Revision history for this message
Greg Vickers (daehenoc) wrote :

I've got the module compiled by downloading the source code from the sourceforge lirc page. It compiled and inserted successfully and I was able to see data coming from the /dev/lirc0 device with mode2.

I purged the lirc-modules-source package, used dpkg with the --unpack switch to unpack the .deb file, and edit the following files to add in the lirc_wpc8769l module for compilation by dkms:
/usr/src/lirc-0.8.6/dkms.conf
/usr/src/lirc-0.8.6/lirc-modules-source.conf

Find patches for the above changes attached.

This successfully creates the lirc_wpc8769l.ko file, but it does not successfully load via modprobe or insmod:

Revision history for this message
Greg Vickers (daehenoc) wrote :

Hmm, sorry, first time posting a patch, here's the other patch, also I forgot that I patched the /usr/src/lirc-0.8.6/Makefile as well, please find it following.

$ ls -l /lib/modules/2.6.31-17-generic/updates/dkms/lirc_wpc8769l.ko
-rw-r--r-- 1 root root 15408 2010-01-17 15:54 /lib/modules/2.6.31-17-generic/updates/dkms/lirc_wpc8769l.ko

$ modinfo lirc_wpc8769l
filename: /lib/modules/2.6.31-17-generic/updates/dkms/lirc_wpc8769l.ko
version: 0.0
description: Driver for the integrated Winbond WPC8769L-based IR receiver found in Acer laptops.
author: Juan J. Garcia de Soria
license: GPL
srcversion: A4EF2B4A2EE6DEAC24CDF0C
depends: lirc_dev
vermagic: 2.6.31-17-generic SMP mod_unload modversions 586
parm: debug:Enable debugging messages (bool)
parm: baseport1:First I/O range base address (default: ACPI autodetect). (uint)
parm: baseport2:Second I/O range base address (default: ACPI autodetect). (uint)
parm: irq:IRQ number (default: ACPI autodetect). (uint)
parm: skip_probe:Skip ACPI-based device detection (default: false for ACPI autodetect). (bool)

Information from command line and dmesg when attempting to load the resulting module:

$:/lib/modules/2.6.31-17-generic$ sudo modprobe lirc_wpc8769l
FATAL: Error inserting lirc_wpc8769l (/lib/modules/2.6.31-17-generic/updates/dkms/lirc_wpc8769l.ko): No such device

$:/lib/modules/2.6.31-17-generic/updates/dkms$ sudo insmod lirc_wpc8769l.ko
insmod: error inserting 'lirc_wpc8769l.ko': -1 No such device

$dmesg | tail
[ 4368.162423] lirc_wpc8769l: Found WEC1020 device via ACPI.
[ 4368.162650] lirc_wpc8769l: Not all required resources found for lirc_wpc8769l device.
[ 4384.508336] lirc_wpc8769l: Found WEC1020 device via ACPI.
[ 4384.508563] lirc_wpc8769l: Not all required resources found for lirc_wpc8769l device.
[ 4426.799540] lirc_wpc8769l: Found WEC1020 device via ACPI.
[ 4426.799768] lirc_wpc8769l: Not all required resources found for lirc_wpc8769l device.

Revision history for this message
Greg Vickers (daehenoc) wrote :

Patch for /usr/lib/lirc-0.8.6/Makefile

Revision history for this message
Greg Vickers (daehenoc) wrote :

When the above patches were applied to an Acer laptop running the x86_64 architecture, the module compiled successfully. When applied to an Acer laptop running the i686 architecture, the module did not compile successfully.

Changed in lirc (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package lirc - 0.8.6-0ubuntu4

---------------
lirc (0.8.6-0ubuntu4) lucid; urgency=low

  [ Mario Limonciello ]
  * debian/patches/lirc-i2c-2.6.patch:
    - Fixes building lirc-i2c on kernel 2.6.32 (LP: #513042)
  * Enable building wpc8769l module. Thanks Greg Vickers. (LP: #508266)
  * debian/patches/lirc_dev-2.6.33.patch:
    - Fixes lirc_dev to work with 2.6.33 as well. Useful for people who use
      the kernel mainline PPA. (LP: #529514)
    - Thanks RK & MarkRandolph.
  * debian/patches/appleir_repeat_issue.patch:
    - Fix apple IR key repeat issue by backporting patch from LIRC CVS.
      (LP: #440466)
    - Thanks Chase Douglas for sharing this patch.

  [ Jeremy Yoder ]
  * Fix /regression in /etc/init.d/lirc where if both REMOTE and TRANSMITTER
    are selected the symlinks /dev/lircd and /dev/lircd1 both point to
    /var/run/lirc/lircd.
  * Fix related bug where if the user sets TRANSMITTER_SOCKET in hardware.conf
    a "1" is appended even though it doesn't need to be.
 -- Mario Limonciello <email address hidden> Sun, 28 Mar 2010 00:12:34 -0500

Changed in lirc (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.