HI,
ich habe eine PVR USB2 Box von Hauppauge. Die Box an sich habe ich auch schon zum laufen bekommen, aber nun habe ich noch ein Problem. Ich wollte noch gerne meine Fernbedienung nutzen, aber das hat bis jetzt leider noch nicht so geklappt.
Ich habe mir die neueste Version von Lirc gesaugt. Dann habe ich es entpackt und im lirc-Verzeichnis ./configure aufgerufen. Dann habe ich folgendes ausgewählt.
[Blockierte Grafik: http://www.fh-merseburg.de/~mschwane/bilder/snap1.png]
[Blockierte Grafik: http://www.fh-merseburg.de/~mschwane/bilder/snap1.png]
[Blockierte Grafik: http://www.fh-merseburg.de/~mschwane/bilder/snap1.png]
danach configuriert er alles. Das scheint auch gut geklappt zu haben. Nächster Schritt make, und da kommt es dann zu Problemen, welche ich selbst bis jetzt nicht lösen konnte. Sie Ausgabe:
Configuration: .setup.config, executable shell script: configure.sh
Starting the generated shell script which will call configure with the right
parameters...
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
...
...
...
creating drivers/Makefile
creating drivers/lirc_atiusb/Makefile
creating drivers/lirc_bt829/Makefile
creating drivers/lirc_cmdir/Makefile
creating drivers/lirc_dev/Makefile
creating drivers/lirc_gpio/Makefile
creating drivers/lirc_i2c/Makefile
creating drivers/lirc_igorplugusb/Makefile
creating drivers/lirc_imon/Makefile
creating drivers/lirc_it87/Makefile
creating drivers/lirc_mceusb/Makefile
creating drivers/lirc_mceusb2/Makefile
creating drivers/lirc_parallel/Makefile
creating drivers/lirc_sasem/Makefile
creating drivers/lirc_serial/Makefile
creating drivers/lirc_sir/Makefile
creating drivers/lirc_streamzap/Makefile
creating daemons/Makefile
creating tools/Makefile
creating doc/Makefile
creating doc/man/Makefile
creating config.h
You will have to use the lirc_i2c kernel module.
Now enter 'make' and 'make install' to compile and install the package.
miephos@PC-MIEPHOS:~/temp/lirc-0.7.2> make
make all-recursive
make[1]: Entering directory `/home/miephos/temp/lirc-0.7.2'
Making all in drivers
make[2]: Entering directory `/home/miephos/temp/lirc-0.7.2/drivers'
Making all in lirc_dev
make[3]: Entering directory `/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev'
mv Makefile Makefile.automake
cp ../Makefile.kernel Makefile
make -C /lib/modules/2.6.13-15-smp/build/ SUBDIRS=/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev modules \
KBUILD_VERBOSE=1
make[4]: Entering directory `/usr/src/linux-2.6.13-15-obj/i386/smp'
make -C ../../../linux-2.6.13-15 O=../linux-2.6.13-15-obj/i386/smp modules
make -C /usr/src/linux-2.6.13-15-obj/i386/smp \
KBUILD_SRC=/usr/src/linux-2.6.13-15 KBUILD_VERBOSE=1 \
KBUILD_CHECK= KBUILD_EXTMOD="/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev" \
-f /usr/src/linux-2.6.13-15/Makefile modules
mkdir -p /home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/.tmp_versions
make -f /usr/src/linux-2.6.13-15/scripts/Makefile.build obj=/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev
gcc -m32 -Wp,-MD,/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/.lirc_dev.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.0.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux-2.6.13-15/include -I/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -Werror-implicit-function-declaration -fno-strict-aliasing -fno-common -ffreestanding -O2 -fomit-frame-pointer -pipe -msoft-float -mpreferred-stack-boundary=2 -fno-unit-at-a-time -march=i586 -mregparm=3 -mtune=i686 -Iinclude/asm-i386/mach-generic -I/usr/src/linux-2.6.13-15/include/asm-i386/mach-generic -Iinclude/asm-i386/mach-default -I/usr/src/linux-2.6.13-15/include/asm-i386/mach-default -Wdeclaration-after-statement -Wno-pointer-sign -DIRCTL_DEV_MAJOR=61 -DEXPORT_SYMTAB -DHAVE_CONFIG_H -I. -I/usr/src/linux-2.6.13-15/. -I. -I/usr/src/linux-2.6.13-15/. -I../.. -I/usr/src/linux-2.6.13-15/../.. -I -I/usr/src/linux-2.6.13-15/ /home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/../.. -I -I/usr/src/linux-2.6.13-15/ /lib/modules/2.6.13-15-smp/build//include/ -DMODULE -DKBUILD_BASENAME=lirc_dev -DKBUILD_MODNAME=lirc_dev -c -o /home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/.tmp_lirc_dev.o /home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:25:21: error: config.h: Datei oder Verzeichnis nicht gefunden
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:61:29: error: drivers/kcompat.h: Datei oder Verzeichnis nicht gefunden
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:62:26: error: drivers/lirc.h: Datei oder Verzeichnis nicht gefunden
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:103: error: syntax error before '*' token
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:103: warning: type defaults to 'int' in declaration of 'lirc_class'
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:103: warning: data definition has no type or storage class
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function 'cleanup':
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:134: warning: passing argument 1 of 'class_device_destroy' from incompatible pointer type
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function 'lirc_register_plugin':
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:369: error: 'LIRC_CAN_REC_LIRCCODE' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:369: error: (Each undeclared identifier is reported only once
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:369: error: for each function it appears in.)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:369: error: 'LIRC_CAN_REC_CODE' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:386: warning: passing argument 1 of 'class_device_create' from incompatible pointer type
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:410: error: 'MOD_INC_USE_COUNT' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:418: warning: passing argument 1 of 'class_device_destroy' from incompatible pointer type
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function 'lirc_unregister_plugin':
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:504: error: 'MOD_DEC_USE_COUNT' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function 'irctl_ioctl':
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:685: error: 'LIRC_GET_FEATURES' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:688: error: 'LIRC_GET_REC_MODE' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:689: error: 'LIRC_CAN_REC_MASK' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:692: error: implicit declaration of function 'LIRC_REC2MODE'
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:696: error: 'LIRC_SET_REC_MODE' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:701: error: implicit declaration of function 'LIRC_MODE2REC'
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:708: error: 'LIRC_GET_LENGTH' undeclared (first use in this function)
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function 'lirc_dev_init':
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:858: warning: assignment from incompatible pointer type
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c: In function 'cleanup_module':
/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.c:898: warning: passing argument 1 of 'class_destroy' from incompatible pointer type
make[7]: *** [/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev/lirc_dev.o] Fehler 1
make[6]: *** [_module_/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev] Fehler 2
make[5]: *** [modules] Fehler 2
make[4]: *** [modules] Fehler 2
make[4]: Leaving directory `/usr/src/linux-2.6.13-15-obj/i386/smp'
make[3]: *** [lirc_dev.o] Fehler 2
make[3]: Leaving directory `/home/miephos/temp/lirc-0.7.2/drivers/lirc_dev'
make[2]: *** [all-recursive] Fehler 1
make[2]: Leaving directory `/home/miephos/temp/lirc-0.7.2/drivers'
make[1]: *** [all-recursive] Fehler 1
make[1]: Leaving directory `/home/miephos/temp/lirc-0.7.2'
make: *** [all] Fehler 2
Alles anzeigen
Auf der Seite vom Treiber steht:
ZitatIR handling
The IR receiver within the device is an I2C part that is understood by the lircd software package (0.7 or later). Previously Aurelien's driver hardcoded something here which made the IR receiver into another source for /dev/input, but I had stability problems with this and just decided to rip it out in favor of letting more stable external software handle this function.
You should do here precisely the same solution as that needed for ivtv. In other words, grab lircd 0.7 or later, build it, modprobe the I2C driver into the kernel and when configured with the appropriate lircd.conf (one is included with the pvrusb2 driver), it should "just work". The I2C driver should discover the internal I2C bus made available by the pvrusb2 driver, probe that bus, and attach itself when it finds the IR receiver chip it will be looking for.
I have received several reports that this in fact does work (I still haven't tested it myself yet).
Ich habe im Forum schon etwas gesucht, aber keiner konnte mir bis jetzt so richtig helfen.
Eine kurze, aber genaue Anleitung, wäre nett, oder eine Seite wo ich es nachlesen könnte.
~miephos