lirc_register_driver: dev pointer not filled in!

Bug #912251 reported by Massimo Dal Zotto
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-lts-xenial (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Lirc package installed on a Dell Latitude d600 with builtin infrared port and configured for "SIR IrDA (built-in IR ports)" on /dev/ttyS1 (io=0x2f8, irq=3). BIOS is configured with IrDA on COM2.

Created /etc/modprobe.d/lirc-sir.conf with:

install lirc_sir setserial /dev/ttyS1 uart none; modprobe --ignore-install lirc_sir irq=3 io=0x2f8

Starting lirc gives the following error:

# /etc/init.d/lirc start
 * Loading LIRC modules [ OK ]
 * Unable to load LIRC kernel modules. Verify your
 * selected kernel modules in /etc/lirc/hardware.conf

and the following kernel messages:

[ 23.184985] lirc_dev: IR Remote Control driver registered, major 251
[ 23.192510] init: apport pre-start process (867) terminated with status 1
[ 23.222720] lirc_sir: module is from the staging directory, the quality is unknown, you have been warned.
[ 23.229006] lirc_register_driver: dev pointer not filled in!
[ 23.229083] lirc_sir: init_chrdev() failed.

The lirc_sir module is not loaded and lirc doesn't work. Trying to manually load the module with the following commands gives the same error:

# setserial /dev/ttyS1 uart none
# insmod /lib/modules/3.0.0-12-generic/kernel/drivers/staging/lirc/lirc_sir.ko irq=3 io=0x2f8
insmod: error inserting '/lib/modules/3.0.0-12-generic/kernel/drivers/staging/lirc/lirc_sir.ko': -1 Input/output error

Compiling lirc version 0.9.1-git from the lirc git repository and manually loading the new modules works fine and I can then succesfully start lircd and test my remote with irw:

[ 2354.994042] lirc_dev: IR Remote Control driver registered, major 251
[ 2380.204606] lirc_dev: lirc_register_driver: sample_rate: 0
[ 2380.204797] lirc_sir: I/O port 0x02f8, IRQ 3.
[ 2380.204815] lirc_sir: Installed.

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: lirc 0.9.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.0.0-12.20-generic 3.0.4
Uname: Linux 3.0.0-12-generic i686
ApportVersion: 1.23-0ubuntu3
Architecture: i386
Date: Thu Jan 5 13:42:56 2012
InstallationMedia: Xubuntu 11.04 "Natty Narwhal" - Release i386 (20110426.1)
ProcEnviron:
 LANGUAGE=en_US:en
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: lirc
UpgradeStatus: Upgraded to oneiric on 2011-10-31 (66 days ago)
mtime.conffile..etc.lirc.hardware.conf: 2012-01-04T19:38:28.247174
mtime.conffile..etc.lirc.lircd.conf: 2012-01-04T19:07:30.715709

Revision history for this message
Massimo Dal Zotto (dz) wrote :
Revision history for this message
Alec Leamas (leamas-alec) wrote :

This is clearly a kernel bug (media subsystem) and should be reassigned to the kernel. lirc is not involved in this (the lirc_sir module belongs despite it's name to the kernel).

Revision history for this message
Alec Leamas (leamas-alec) wrote :

This is clearly a kernel bug and should be re-assigned to the proper yet-to-be-understood kernel package. Despite it's name, the lirc_sir module belongs to the kernel (media subsystem).

What does 'dpkg -l | grep linux-image-extra' tell us on your host?

Changed in lirc (Ubuntu):
status: New → Incomplete
Revision history for this message
Massimo Dal Zotto (dz) wrote : Re: [Bug 912251] Re: lirc_register_driver: dev pointer not filled in!

2016-11-01 13:55 GMT+01:00 Alec Leamas <email address hidden>:
> This is clearly a kernel bug and should be re-assigned to the proper
> yet-to-be-understood kernel package. Despite it's name, the lirc_sir
> module belongs to the kernel (media subsystem).
>
> What does 'dpkg -l | grep linux-image-extra' tell us on your host?

Hi,

I don't use lirc anymore because my recent laptop lacks the IR port.

Here is the dpkg output:

ii linux-image-extra-4.4.0-43-generic 4.4.0-43.63 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP
ii linux-image-extra-4.4.0-45-generic 4.4.0-45.66 amd64 Linux kernel
extra modules for version 4.4.0 on 64 bit x86 SMP

Revision history for this message
Alec Leamas (leamas-alec) wrote :

The former lirc modules now belongs to kernel (media subsystem)

affects: lirc (Ubuntu) → linux-lts-xenial (Ubuntu)
Revision history for this message
Alec Leamas (leamas-alec) wrote :

OK. Thanks for feedback!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux-lts-xenial (Ubuntu) because there has been no activity for 60 days.]

Changed in linux-lts-xenial (Ubuntu):
status: Incomplete → Expired
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.