lirc_imon.ko does not get installed through dkms

Bug #563727 reported by YorTheGreat
34
This bug affects 6 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

Binary package hint: lirc

Dkms does not install the lirc_imon.ko from lirc_modules_source when the kernel gets upgraded (in current lucid). The dkms output reads:

lirc_imon.ko:
Running module version sanity check.

Error! Module version 0.6 for lirc_imon.ko
is not newer than what is already found in kernel 2.6.32-21-generic (0.6).
You may override by specifying --force.

Fact is that the lirc_imon.ko provided by the default kernel does not work with the following imon controller:

15c2:ffdc SoundGraph Inc. iMON PAD Remote Controller

Manually copying the module built by DKMS solves the problem

sudo cp /var/lib/dkms/lirc/kernel-2.6.32-21-generic-i686/module/lirc_imon.ko /lib/modules/2.6.32-21-generic/updates/dkms/

It would be nice if dkms could copy this file regardless of the version available in the kernel (using the -f option?)

Revision history for this message
Dave Walker (davewalker) wrote :

Hi YorTheGreat,

Thanks for reporting this issue. It would be really useful to find out why the one shipped with the kernel isn't functioning correctly. Do you have any further information on why it is failing?

Thanks.

Changed in lirc (Ubuntu):
status: New → Incomplete
MarcRandolph (mrand)
Changed in linux (Ubuntu):
importance: Undecided → Medium
Changed in lirc (Ubuntu):
importance: Undecided → Medium
Changed in linux (Ubuntu):
status: New → Triaged
Revision history for this message
YorTheGreat (jord-swart) wrote :

I just found out I've made an error in the initial case: I need to overwrite the original kernel version, not copy the lirc_imon.ko into the updates, but I need to copy it into /lib/modules/2.6.32-21-generic/kernel/ubuntu/lirc/lirc_imon/.

To answer your question: I removed all the lirc_imon.ko files in /lib/modules/2.6.32-21-generic, reinstalled the kernel package and did a dpkg-reconfigure on lirc-modules-source. I then stopped lirc and LCDd and did a rmmod on lirc_imon and lirc_dev.

At this point I only have one lirc_imon.ko in my /lib/modules/2.6.32-21-generic due to dkms refusing to install its version (I checked this, just to be sure):

Starting lirc now gives the following information in syslog:
Apr 16 10:32:33 localhost kernel: [ 727.605729] lirc_dev: IR Remote Control driver registered, major 61
Apr 16 10:32:33 localhost kernel: [ 727.623131] lirc_imon: disagrees about version of symbol lirc_register_driver
Apr 16 10:32:33 localhost kernel: [ 727.623136] lirc_imon: Unknown symbol lirc_register_driver

Needless to say that lirc fails.

There is also only one lirc_dev version available on the system, which is in the original kernel location, NOT in the updates directory.

When I overwrite the original lirc_imon with the one from dkms everything works.

Revision history for this message
YorTheGreat (jord-swart) wrote :

This issue is still available in 10.10. A manual copy is still needed, since dkms will not install the module from lirc based on the same reasons mentioned above.

Revision history for this message
YorTheGreat (jord-swart) wrote :

Sorry, I guess I somehow missed your question Dave: I do not see any reason why the one included in the kernel fails. It seems to load correctly. My imon device reamins blank though. With the one from the dkms libraries text is displayed on my imon device.

If you could point me in the direction of better / more log files, I would have time to dig around a bit.

Revision history for this message
graylion (graylion) wrote :

hiya

I have what appears to be the exact same issue. I had a working installation of lirc and lcdproc. I had applied the patch http://launchpadlibrarian.net/38821679/lirc-0.8.6-VFD_0x0036_timing.patch. This all broke when I upgraded the kernel.

the old version of the kernel is 2.6.32-22-generic-pae-i686, the new one is 2.6.32-25-generic-pae-i686.

I have copied the module into the analogus directories as suggested but no joy. I'll try and recompile the mmodule and reapply the patch.

Revision history for this message
Fabian (ritzmann-extern+ubuntu) wrote :

Here is what is happening with the original lirc_imon in natty:

$ modprobe -v lirc_imon
insmod /lib/modules/2.6.38-8-generic/kernel/drivers/staging/lirc/lirc_imon.ko
FATAL: Error inserting lirc_imon (/lib/modules/2.6.38-8-generic/kernel/drivers/staging/lirc/lirc_imon.ko): Invalid argument

When I do as suggested by others and manually copy over the version that was built by DKMS, that error goes away. I also had a number of kernel crashes on my AMD64 X2 system when loading some imon related modules so I had to blacklist imon, rc-imon-mce and rc-imon-pad. I don't have the time to find out which one caused the crash.

I think we are looking at two bugs here:

1) The imon modules that come delivered with natty don't work with the iMon PAD and may even course a kernel crash.
2) The lirc-modules-source package contains an older version of the lirc_imon driver.

Ideally, 1) would be fixed but for now I'd rather have at least 2) work.

Revision history for this message
YorTheGreat (jord-swart) wrote :

@Fabian: Although your issue might be somewhat related you are looking at a different thing. Within natty the kernel comes with a complete new imon driver. Therefore the ones in lirc-modules-source will fail. You should not use the ones in lirc-modules-source anymore.

To completely get rid of it I had to: uninstall it, remove my current kernel, remove the /lib/modules that belongs to that kernel and reinstall the kernel again. There must be easier ways to achieve this, but you know, I had no time to think it over.

I have kernel crashes as well with the new driver (my device is a iMon Pad with usb id: 15c2:ffdc). However, since this is a new driver, it is a new case as well (https://bugs.launchpad.net/bugs/794234).

Concerning this case: since I have upgraded my box I don't have this issue anymore.

Revision history for this message
penalvch (penalvch) wrote :

YorTheGreat, this bug report is being closed due to your last comment https://bugs.launchpad.net/ubuntu/+source/linux/+bug/563727/comments/7 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

no longer affects: lirc (Ubuntu)
Changed in linux (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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