Re: TBS driver breaks lirc_serial

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andreas,

You've right, .config file from TBS has many modules not set.
After checking each module, I've modified .config to set-up many of them, like your config.

I ran the workflow with this config and reboot :
CONFIG_LIRC_TTUSBIR=m
CONFIG_LIRC_SIR=m
CONFIG_LIRC_IMON=m
CONFIG_LIRC_SERIAL_TRANSMITTER=y
CONFIG_LIRC=m
CONFIG_LIRC_PARALLEL is not set
CONFIG_LIRC_ZILOG=m
CONFIG_IR_LIRC_CODEC=m
CONFIG_LIRC_IGORPLUGUSB=m
CONFIG_LIRC_BT829=m
CONFIG_LIRC_SASEM=m
CONFIG_LIRC_STAGING=y
CONFIG_LIRC_SERIAL=m

=> Unfortunately, pb still here :-(

dmesg is OK
dmesg | grep lirc
[    3.835944] lirc_dev: IR Remote Control driver registered, major 251 
[    3.836499] rc rc0: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 0
[    4.402162] rc rc1: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 1
[    7.364112] lirc_serial: Manually using active low receiver
[    7.364198] lirc_serial lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 2
[  388.677309] lirc_dev: module unloaded
[  513.779622] lirc_dev: IR Remote Control driver registered, major 251 
[  513.780127] lirc_serial: Manually using active low receiver
[  513.780224] lirc_serial lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 0

modules are loaded
lsmod | grep lirc*
lirc_serial            13282  0 
lirc_dev               17031  1 lirc_serial

no error in syslog
grep lirc /var/log/syslog
May 21 22:40:05 pctest kernel: [    3.835944] lirc_dev: IR Remote Control driver registered, major 251 
May 21 22:40:05 pctest kernel: [    3.836499] rc rc0: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 0
May 21 22:40:05 pctest kernel: [    4.402162] rc rc1: lirc_dev: driver ir-lirc-codec (saa716x) registered at minor = 1
May 21 22:40:05 pctest kernel: [    7.364112] lirc_serial: Manually using active low receiver
May 21 22:40:05 pctest kernel: [    7.364198] lirc_serial lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 2
May 21 22:46:27 pctest kernel: [  388.677309] lirc_dev: module unloaded
May 21 22:48:32 pctest kernel: [  513.779622] lirc_dev: IR Remote Control driver registered, major 251 
May 21 22:48:32 pctest kernel: [  513.780127] lirc_serial: Manually using active low receiver
May 21 22:48:32 pctest kernel: [  513.780224] lirc_serial lirc_serial.0: lirc_dev: driver lirc_serial registered at minor = 0

Questions :

1/
There is **2 modules**, but I think it's not a problem because modinfo is OK.
Are you OK ?

locate lirc_serial.ko
/lib/modules/3.2.0-4-amd64/kernel/drivers/linux/drivers/staging/lirc/lirc_serial.ko
/lib/modules/sic/2016-05-20_22:51/3.2.0-4-amd64/kernel/drivers/media/staging/media/lirc/lirc_serial.ko

modinfo lirc_serial
filename:       /lib/modules/3.2.0-4-amd64/kernel/drivers/linux/drivers/staging/lirc/lirc_serial.ko
license:        GPL
author:         Ralph Metzler, Trent Piepho, Ben Pfaff, Christoph Bartelmus, Andrei Tanas
description:    Infra-red receiver driver for serial ports.
depends:        lirc_dev
vermagic:       3.2.0-4-amd64 SMP mod_unload modversions 
parm:           type:Hardware type (0 = home-brew, 1 = IRdeo, 2 = IRdeo Remote, 3 = AnimaX, 4 = IgorPlug, 5 = NSLU2 RX:CTS2/TX:GreenLED) (int)
parm:           io:I/O address base (0x3f8 or 0x2f8) (int)
parm:           iommap:physical base for memory mapped I/O (0 = no memory mapped io) (bool)
parm:           ioshift:shift I/O register offset (0 = no shift) (int)
parm:           irq:Interrupt (4 or 3) (int)
parm:           share_irq:Share interrupts (0 = off, 1 = on) (bool)
parm:           sense:Override autodetection of IR receiver circuit (0 = active high, 1 = active low ) (bool)
parm:           txsense:Sense of transmitter circuit (0 = active high, 1 = active low ) (bool)
parm:           softcarrier:Software carrier (0 = off, 1 = on, default on) (bool)
parm:           debug:Enable debugging messages (bool)


2/ 
I found a problem with lirc (I don't know if there is a relation with mode2 :
setserial /dev/ttyS0 uart none
/etc/init.d/lirc start
[ ok ] Loading LIRC modules:.
[FAIL] Starting remote control daemon(s) : LIRC : failed!
You mean lirc or lircd ? (I use lircd in my vdr)


3/ 
During workflow, theses commands returns "no file", I don't know if it's normal :
   mv /lib/modules/`uname -r`/kernel/drivers/media/* $SICDIR/media/
   mv /lib/modules/`uname -r`/kernel/drivers/staging/media/* $SICDIR/staging/media/

4/
I can't check this because "/etc/sysconfig" doesn't exist in my Debian 7.7.0.
Do you know the path for Debian ?
vdr:~ # grep '^[A-Z]' /etc/sysconfig/lirc LIRCD_DEV_PERMISSIONS="660"
LIRCD_DEV_OWNER="root:video"
LIRCD_DRIVER="default"
LIRCD_DEVICE="/dev/lirc0"
LIRC_MODULE="lirc_serial"
LIRCD_LISTENPORT=
LIRCD_CONNECT=


5/ 
I use Homebrew too.
Could you confirm that parameters must be sent with theses 3 files ?

/etc/lirc/lircd.conf


/etc/serial.conf
/dev/ttyS0 uart none

/etc/lirc/hardware.conf
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS=""

#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false

#Don't start irexec, even if a good config file seems to exist.
#START_IREXEC=false

#Try to load appropriate kernel modules
LOAD_MODULES=true

# Run "lircd --driver=help" for a list of supported drivers.
DRIVER=""
# If DEVICE is set to /dev/lirc and udev is in use /dev/lirc0 will be
# automatically used instead
DEVICE=""
MODULES="lirc_serial"

# Default configuration files for your hardware if any
LIRCD_CONF=""
LIRCMD_CONF=""


Thanks !

Best regards.
Karim


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr




[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux