FS#3942 - can't insert lirc_gpio module (and possibly some others)

Attached to Project: Arch Linux
Opened by Simon Morgan (sjmorgan) - Friday, 10 February 2006, 16:12 GMT
Last edited by Paul Mattal (paul) - Tuesday, 27 November 2007, 14:39 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Paul Mattal (paul)
Architecture not specified
Severity Medium
Priority Normal
Reported Version 0.7.1 Noodle
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

# find /lib/modules/ -name lirc_gpio.ko
/lib/modules/2.6.15-ARCH/misc/lirc_gpio.ko
# modprobe lirc_gpio
FATAL: Module lirc_gpio not found.
This task depends upon

Closed by  Paul Mattal (paul)
Tuesday, 27 November 2007, 14:39 GMT
Reason for closing:  Deferred
Additional comments about closing:  This module has not worked for years. It now no longer even compiles and has been disabled.
Comment by Simon Morgan (sjmorgan) - Tuesday, 21 February 2006, 17:03 GMT
Now I get:

FATAL: Error inserting lirc_gpio (/lib/modules/2.6.15-ARCH/misc/lirc_gpio.ko): Invalid request code
Comment by Paul Mattal (paul) - Tuesday, 21 February 2006, 20:37 GMT
Yikes. I'll see if I can get to the bottom of this tonight; don't know why I didn't see this on my box.
Comment by Paul Mattal (paul) - Wednesday, 22 February 2006, 12:23 GMT
So I found a lot of people talking about this problem over time, but never a solution. It appears that it only affects the lirc_gpio module, not all of them; I am able to load the lirc_i2c and lirc_dev modules.

At the moment, after some hours of hunting, I'm at a loss. I tried updating to a cvs snapshot from yesterday, but still can't load lirc_gpio.

I guess we'll have to wait for some more info or a fix from upstream on this one.
Comment by arjan timmerman (blaasvis) - Sunday, 26 March 2006, 11:40 GMT
how is this with 2.6.16?
Comment by Simon Morgan (sjmorgan) - Sunday, 02 April 2006, 13:19 GMT
2.6.16.1 just hit current. Unfortunately the lirc package seems to be built against 2.6.15 so I cannot test whether it works with the new kernel.
Comment by Paul Mattal (paul) - Sunday, 02 April 2006, 14:56 GMT
Wait.. there should also be lirc 0.8.0.20060401-1 that went into extra along with the 2.6.16.1 kernel. That one should be built against 2.6.16.. is that the one you're using?
Comment by Simon Morgan (sjmorgan) - Tuesday, 04 April 2006, 09:08 GMT
For some reason lirc 0.8.0.20060401-1 still hasn't hit the package repositories:

# pacman -sS lirc
extra/lirc 0.8.0.20060314-4
Comment by Dale Blount (dale) - Tuesday, 04 April 2006, 11:59 GMT
It has hit mine, which mirror are you using?
Comment by Simon Morgan (sjmorgan) - Tuesday, 04 April 2006, 12:24 GMT
Apart from uncommenting the community repository my pacman settings are the defaults. I always assumed the repositories are hit in a round robin fashion seeing as there are a bunch of servers listed.
Comment by Dale Blount (dale) - Tuesday, 04 April 2006, 12:33 GMT
It'll use the first mirror in /etc/pacman.d/extra which for me is:

ftp://ftp.nethat.com/pub/linux/archlinux/extra/os/i686

and yes, that mirror is out of date.

you can try the sortmirrors script to re-arrange them by network proximity
Comment by Simon Morgan (sjmorgan) - Tuesday, 04 April 2006, 12:49 GMT
Thanks Dale, that did the trick. And for anyone who's interested:

# modprobe lirc_gpio
FATAL: Module lirc_gpio not found.
Comment by Paul Mattal (paul) - Tuesday, 04 April 2006, 13:04 GMT
Interesting. I just rebuilt the package against kernel26 2.6.16.1-3 and it works a lot better now. I'm not sure why the old one didn't.

In any case, here's what I get after installing, which indicates we're back to the same old problems, but no longer have the new one:

[root@pedantic misc]# modprobe lirc_i2c
[root@pedantic misc]# modprobe lirc_gpio
FATAL: Error inserting lirc_gpio (/lib/modules/2.6.16-ARCH/kernel/drivers/misc/lirc_gpio.ko): Invalid request code
Comment by Simon Morgan (sjmorgan) - Tuesday, 04 April 2006, 13:10 GMT
Yeah, just after I added my comment I tried doing a manual depmod (got the impression the install script did this but it looks like it doesn't work properly) and now I also get:

# modprobe lirc_gpio
FATAL: Error inserting lirc_gpio (/lib/modules/2.6.16-ARCH/kernel/drivers/misc/lirc_gpio.ko): Invalid request code

Back to the drawing board.
Comment by Simon Morgan (sjmorgan) - Tuesday, 04 April 2006, 13:16 GMT
I doubt it's any help but I get the following in dmesg:

lirc_dev: IR Remote Control driver registered, at major 61
The bttv_* interface is obsolete and will go away,
please use the new, sysfs based interface instead.
lirc_gpio (-1): could not get card type
Comment by Simon Morgan (sjmorgan) - Tuesday, 04 April 2006, 15:16 GMT
Ok, I'm starting to get somewhere. I've been doing a lot of searching and discovered that it's possible to use some remotes without having to load a lirc_* kernel module. http://www.linuxtv.org/v4lwiki/index.php/Remote_controllers has a lot of good info on the subject. cat /dev/input/event2 is producing output when I hit buttons on my remote.
Comment by Paul Mattal (paul) - Monday, 31 July 2006, 21:04 GMT
Has ANYONE gotten lirc_gpio to load recently? I can't remember the last time I got it to load. I know I still couldn't when I built the most recent snapshot. Anyone have different results? I don't need the module, which is probably why it hasn't bothered me too much.
Comment by Paul Mattal (paul) - Thursday, 01 February 2007, 03:41 GMT
Just built 0.8.1-1 and put in testing. Here's the modules I can't insert into my kernel, and the messages:

[pjmattal@pedantic lirc]$ sudo modprobe lirc_cmdir
FATAL: Error inserting lirc_cmdir (/lib/modules/2.6.19-ARCH/kernel/drivers/misc/lirc_cmdir.ko): Unknown symbol in module, or unknown parameter (see dmesg)
[pjmattal@pedantic lirc]$ sudo modprobe lirc_gpio
FATAL: Error inserting lirc_gpio (/lib/modules/2.6.19-ARCH/kernel/drivers/misc/lirc_gpio.ko): Invalid request code
[pjmattal@pedantic lirc]$ sudo modprobe lirc_it87
FATAL: Error inserting lirc_it87 (/lib/modules/2.6.19-ARCH/kernel/drivers/misc/lirc_it87.ko): No such device or address
[pjmattal@pedantic lirc]$ sudo modprobe lirc_serial
FATAL: Error inserting lirc_serial (/lib/modules/2.6.19-ARCH/kernel/drivers/misc/lirc_serial.ko): Device or resource busy

Some of these are expected (like the serial one), but I still included them all for completeness.

It looks like gpio is still busted. I wonder if there's something we don't know..
Comment by Roman Kyrylych (Romashka) - Wednesday, 04 April 2007, 19:37 GMT
Status in 2.6.20 and tpowa's 2.6.21 builds?
Comment by Paul Mattal (paul) - Tuesday, 05 June 2007, 02:56 GMT
Exactly the same, as of 0.8.1-6.
Comment by Roman Kyrylych (Romashka) - Monday, 10 September 2007, 08:42 GMT
status with 2.6.22?

Loading...