Moderator Control Panel ]

can't load module lirc_igorplugusb after TBS driver install

can't load module lirc_igorplugusb after TBS driver install

Postby timmy » Wed Sep 26, 2012 6:45 pm

Hello!

I have a system running yavdr64 0.5.0-beta with kernel 3.2.0-31, an IR USB dongle (igor-plug), and the TBS QBOX 2.

Befor installing the driver for the QBOX2, the IR remote control works without problems.
I installed the latest driver (120814) and after reboot, the QBOX2 works as expected BUT the IR remote control doesn't.

Looking at dmesg the problem seems to be:
Code: Select All Code
[   12.777125] lirc_dev: IR Remote Control driver registered, major 250
[   12.800187] lirc_igorplugusb: module is from the staging directory, the quality is unknown, you have been warned.
[   12.800346] lirc_igorplugusb: disagrees about version of symbol lirc_register_driver
[   12.800355] lirc_igorplugusb: Unknown symbol lirc_register_driver (err -22)


I have tried to load the module manualy with "sudo modprobe lirc_igorplugusb" but with response
Code: Select All Code
FATAL: Error inserting lirc_igorplugusb (/lib/modules/3.2.0-31-generic/kernel/drivers/staging/media/lirc/lirc_igorplugusb.ko): Invalid argument

or with "sudo insmod /lib/modules/3.2.0-31-generic/kernel/drivers/staging/media/lirc/lirc_igorplugusb.ko" throwing similar response
Code: Select All Code
insmod: error inserting '/lib/modules/3.2.0-31-generic/kernel/drivers/staging/media/lirc/lirc_igorplugusb.ko': -1 Invalid parameters



Anyone an idea how to solve the problem?
Is it necessary to rebuild lirc_igorplugusb after QBOX2 driver installation? If so, please give informations how to do so.

PS: the same hardware works under yavdr64 0.4 with kernel 2.6.38-13 flawless.
timmy
 
Posts: 5
Joined: Sat Sep 22, 2012 7:51 pm

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby SergioDanielG » Wed Sep 26, 2012 8:36 pm

Hi timmy.
Tell me, lirc_igorplugusb is part of yavdr's installation? If so, maybe you can solve it reinstalling this package.

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby timmy » Wed Sep 26, 2012 9:22 pm

Thank you for reply!

Yes, lirc ( +support for igorplug) comes preconfigured with yavdr installation.

I have tried
Code: Select All Code
sudo apt-get --reinstall install lirc_igorplugusb
throwing: "Paket lirc_igorplugusb cannot be found".

Then i tried:
Code: Select All Code
sudo apt-get --reinstall install lirc
On first run "/lib/modules/3.2.0-31-generic/kernel/drivers/staging/lirc" was missing so i linked it with ./media/lirc from the path mentioned before. Second run of reinstall lirc finished without any errors but after reboot dmesg shows same errors for lirc_igorplugusb.
timmy
 
Posts: 5
Joined: Sat Sep 22, 2012 7:51 pm

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby SergioDanielG » Thu Sep 27, 2012 5:59 am

Ok, try to search lirc_igorplugusb package with "sudo apt-cache search lirc", or search "igorplugusb".
Other question. Did you modify, add or delete some source in your /etc/apt/sources.conf ?

Best regards
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby timmy » Thu Sep 27, 2012 5:11 pm

I added a ppa with "sudo add-apt-repository ..." but removed the corresponding file in /etc/apt/sources.list.d/ today to exclude any conflict. Did a apt-get autoclean, clean and update.

"sudo apt-cache search igorplug" returns with zero matches.

"sudo apt-cache search lirc" returns
Code: Select All Code
liblircclient-dev - infra-red remote control support - client library development files
liblircclient0 - Unterstützung für Infrarot-Fernbedienungen - Clientbibliothek
lirc - infra-red remote control support
pulseaudio-module-lirc - LIRC-Erweiterung für den PulseAudio-Soundserver
pulseaudio-module-lirc-dbg - LIRC-Erweiterung für den PulseAudio-Soundserver (Symbole zur Fehlerdiagnose)
libirman-dev - library for accessing the Irman Infra Red hardware
rhythmbox-plugins - plugins for rhythmbox music player
banshee-extension-lirc - LIRC-Integrationserweiterung für Banshee
freevo-lirc - home theater framework - LIRC support
ncmpc - Ncurses-basierter Audiospieler
audacious - small and fast audio player which supports lots of formats
audacious-dbg - audacious media player (debugging symbols)
audacious-dev - audacious development files
audacious-plugins - Base plugins for audacious
audacious-plugins-dbg - Audacious-Plugins debug symbols
gmpc-plugins - Plugins for the GNOME Music Player Client
gnash-ext-lirc - GNU Shockwave Flash (SWF) player - LIRC extension
gnome-lirc-properties - Control panel to configure remote controls
gnomeradio - FM-radio tuner for the GNOME desktop
inputlirc - Zeroconf LIRC daemon using input event devices
kdelirc - transitional package for kremotecontrol
kradio4 - comfortable radio application for KDE
lcdproc-extra-drivers - extra drivers for the LCD display driver daemon
libaudclient2 - audacious dbus remote control library
libaudcore1 - audacious core engine library
lxmms2 - control XMMS2 with a LIRC compatible remote control
mythbuntu-lirc-generator - Mythbuntu Lirc Configuration Generator
python-pylirc - Python bindings for Linux Infra-red Remote Control (LIRC) support
digitools - A set of tools to control ASUS Digimatrix embedded hardware
lirc-x - infra-red remote control support - X utilities
pulseaudio - PulseAudio sound server
eventlircd - The eventlircd daemon provides additional functions for LIRC devices
vdr-plugin-lircrc - Adds LIRC support by using '.lircrc'.
I tried reinstalling eventlircd, inputlirc and liblircclient0 with no success (same dmesg error).

Is it possible to say whether the problem is caused from QBOX driver installation or yavdr (distribution) related?
timmy
 
Posts: 5
Joined: Sat Sep 22, 2012 7:51 pm

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby SergioDanielG » Fri Sep 28, 2012 12:30 am

Hi timmy.

Can you tray remove lirc package, then update apt sources, and then install lirc again? This is to prevent reinstall from cached packages.

About the problem. I can't say if is from QBOX driver or yavdr because all tbs drivers replace all v4l from kernel. And in your case, it's like there are differences between lirc packages and lirc_igorplugusb version.

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby timmy » Fri Sep 28, 2012 1:22 am

SergioDanielG Wrote:Can you tray remove lirc package, then update apt sources, and then install lirc again?

Done, but didn't solve the problem.
timmy
 
Posts: 5
Joined: Sat Sep 22, 2012 7:51 pm

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby SergioDanielG » Fri Sep 28, 2012 4:43 am

Hi timmy.

And what about install a previous version of TBS driver? Or do you really need this version?

Best regards
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby timmy » Fri Sep 28, 2012 7:07 pm

Installing driver 20120617 leads to the same lirc_igorplugusb error in dmesg as in the postings before.

After same dirty hacking on the system I decided the make a fresh install of the distribution.
On the fresh system i made a backup of the content from the two folders:
Code: Select All Code
/lib/modules/3.2.0-31-generic/kernel/drivers/staging/media/lirc/
/lib/modules/3.2.0-31-generic/kernel/drivers/media/rc/
At this state the igorplug works.

After rebuilding and installing the driver (20120814) I compared lirc_igorplugusb.ko with the backuped one with md5sum with the result that they are identical.
Comparing /lib/modules/3.2.0-31-generic/kernel/drivers/media/rc/lirc_dev.ko with the backup yields to different hashes. I replaced lirc_dev.ko with with the backup and after reboot the remote was working, dmesg shows:
Code: Select All Code
[   11.858982] lirc_dev: IR Remote Control driver registered, major 250
[   11.886443] lirc_igorplugusb: module is from the staging directory, the quality is unknown, you have been warned.
[   11.889093] lirc_igorplugusb 3-4:1.0: lirc_dev: driver lirc_igorplugusb  registered at minor = 0
[   11.920568] lirc_igorplugusb[3]: Ing. Igor Cesko, Copyright(c) 2003 IgorPlug-USB (AVR) on usb3:3
[   11.925242] usbcore: registered new interface driver lirc_igorplugusb
[   12.707854] ir_lirc_codec: disagrees about version of symbol lirc_register_driver
[   12.707870] ir_lirc_codec: Unknown symbol lirc_register_driver (err -22)
[   14.088986] input: lircd as /devices/virtual/input/input5

Not satisfied with the working remote control, I tried to remove the error from ir_lirc_codec by replacing the whole content of /lib/modules/3.2.0-31-generic/kernel/drivers/media/rc/ with the backup. After reboot, dmesg seems fine:
Code: Select All Code
[   12.137726] lirc_dev: IR Remote Control driver registered, major 250
[   12.148669] lirc_igorplugusb: module is from the staging directory, the quality is unknown, you have been warned.
[   12.149711] lirc_igorplugusb 3-4:1.0: lirc_dev: driver lirc_igorplugusb  registered at minor = 0
[   12.181116] lirc_igorplugusb[3]: Ing. Igor Cesko, Copyright(c) 2003 IgorPlug-USB (AVR) on usb3:3
[   12.186178] usbcore: registered new interface driver lirc_igorplugusb
[   12.659387] IR LIRC bridge handler initialized
[   13.974812] input: lircd as /devices/virtual/input/input5


Don't know if this replacement is a "no-go" or can yield to troubles in the future, but it seems to work by now.

Thanks to SergioDanielG for all your efforts!
timmy
 
Posts: 5
Joined: Sat Sep 22, 2012 7:51 pm

Re: can't load module lirc_igorplugusb after TBS driver inst

Postby SergioDanielG » Sat Sep 29, 2012 12:19 am

Hi timmy.

Congratulation!I think you was do a great work, because now is working. Now it's time to modify "lirc_dev" or, really, wait to an lirc_igorplugusb update.

Best regards.
SergioDanielG
 
Posts: 356
Joined: Tue May 31, 2011 3:53 am
Location: Tostado (SF) Argentina


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest