Problem mit lirc!

B

Benji

Gast
Hi!
ich wollte gerade lirc installieren damit ich die IrDa-Fernbedienung meine Hauppauge TV-Karte benutzen kann!
also habe ich lirc und lirc-modules-source installiert!
dann bin ich nach der anleitung vorgegangen und wollte das Modul installiern
hab also folgendes gemacht:
hab die Datei lirc-modules-source.tar.gz entpackt nach /usr/src
dann bin ich ins Verzeichniss "/usr/src/linux" gewechselt wo meine Kernelsourcen sind,
dort wollte ich "make-kpkg --revision number modules_image" eingeben doch dann kommt immer folgender fehler:

Making all in lirc_i2c
make[4]: Entering directory `/usr/src/modules/lirc/drivers/lirc_i2c'
Makefile:359: /usr/src/linux/Rules.make: Datei oder Verzeichnis nicht gefunden
make[4]: *** Keine Regel, um »/usr/src/linux/Rules.make« zu erstellen. Schluss.
make[4]: Leaving directory `/usr/src/modules/lirc/drivers/lirc_i2c'
make[3]: *** [all-recursive] Fehler 1
make[3]: Leaving directory `/usr/src/modules/lirc/drivers'
make[2]: *** [i2c] Fehler 2
make[2]: Leaving directory `/usr/src/modules/lirc'
make[1]: *** [build-stamp] Fehler 2
make[1]: Leaving directory `/usr/src/modules/lirc'
Module /usr/src/modules/lirc failed.
Hit return to Continue
Was muss ich machen damit lirc funktioniert??

THX
 
Benji schrieb:
hab die Datei lirc-modules-source.tar.gz entpackt nach /usr/src
Benji schrieb:
dann bin ich ins Verzeichniss /usr/src/linux gewechselt
Benji schrieb:
make[4]: Entering directory `/usr/src/modules/lirc/drivers/lirc_i2c'
Makefile:359: /usr/src/linux/Rules.make: Datei oder Verzeichnis nicht gefunden
make[4]: *** Keine Regel, um »/usr/src/linux/Rules.make« zu erstellen. Schluss.
Ich tippe mal, dass du /usr/src als Startpunkt zum kompilieren verwenden musst, da du dort ja auch die Quell-Dateien entpackt hast (s. erstes Quote). Ansonsten kopier doch mal den Link zu der Anleitung. Vll liegt der Fehler auch woanders.
 
nein das is es nicht in der Anleitung steht
Go to the the base of the kernel source tree (usually the
/usr/src/linux directory).

ich habe die Sourcen in /usr/src entpackt aber die hat der dann automatisch nach /usr/src/modules/lirc geschmissen!

ich stell mal die ganze Anleitung rein:

LIRC kernel modules source for DEBIAN
=====================================

By default, debian/rules will set the kernel-specific options from the
kernel source tree in /usr/src/linux.

You need to have a complete linux source tree for your kernel, not just an
up-to-date kernel image, to compile the LIRC drivers. The LIRC modules
contain some references to kernel source files.

To recompile the LIRC kernel modules:

If you are using make-kpkg:

0) Make sure you have installed kernel-package.

1) Unpack /usr/src/lirc-modules.tar.gz into your working directory.
!!WARMING!!
If you use same working directory where an old version of the source
is put, then you remove the old source before extracting this new
source.

2) Go to the the base of the kernel source tree (usually the
/usr/src/linux directory).

3) To build the LIRC modules, execute:
make-kpkg --revision number modules_image

where number is the same revision number used to build the
kernel-image package in the previous step. This will generate a
lirc-modules-<kernel version> deb file in the parent directory.

MODULE_LOC environment variable specifies a top directory
where kernel module sources you want to build are put.
For example, if you want to build LIRC and the source
are put in ~/modules/lirc/, then you need to
set MODULE_LOC="~/modules".

All settings can be set in /etc/lirc/lirc-modules-source.conf or
via debconf (debconf is preferred):

dpkg-reconfigure lirc-modules-source

4) Install the newly created deb file (you can use `dpkg -i file').

If you are not using make-kpkg:

If your kernel is compiled with CONFIG_MODVERSIONS enabled, for kernel
symbol version checking, /usr/include/linux/modversions.h (the symbol
version database) will be required. This is created by running `make dep'
(in addition to `make config) in the kernel source tree.

1) Ensure that the kernel source tree is in the /usr/src/linux
directory and ensure that it is configured (execute `make config
dep' in the /usr/src/linux directory).

2) Go to the lirc root directory.

3) Execute as root (or fakeroot) `debian/rules binary-modules'. This
will generate an lirc-modules-<kernel version> deb file in the
parent directory.

You must manually set KDREV environment variable, which specifies
the Debian kernel revision on which this LIRC modules package
depends. For example, if the Debian revision of the kernel package
is Custom.1, the proper command would be
debian/rules KDREV=Custom.1 binary-modules

The LIRC modules package will have a recommendation of
kernel-image-<kernel version> (= Custom.1)

Note: The location of the kernel source tree may be specified by
supplying the KSRC variable as a command line option. For example, if
the kernel source is located in /usr/local/src/kernel-2.0.0, the
proper command would be
debian/rules KSRC=/usr/local/src/kernel-2.0.0 binary-modules

This document is heavily base on the documentation of alsa-source package made
by Masato Taruishi <taru@debian.org> which itself is almost an exact copy of
the documentation for the pcmcia packages made by Brian Mays <brian@debian.org>.

Manuel Estrada Sainz <ranty@debian.org>
 
Darf ich mal ein ls -Al /usr/src und ein ls -Al /usr/src/linux sehen?

Hast du auch die Kernel Header installiert?

mfg
 
ja die müssten installiert sein.
hier das ls -Al /usr/src:
stefan@stefan:~$ ls -Al /usr/src/
insgesamt 39632
-rw-r--r-- 1 root root 1815839 2004-10-19 17:52 alsa-driver.tar.bz2
-rw-r--r-- 1 root root 245322 2004-11-03 23:30 fglrx-4.3.0-3.14.1.tar.gz
-rw-r--r-- 1 root src 58090 2004-11-03 23:30 fglrx-4.3.0-control-qt3_3
.14.1-2_i386.deb
-rw-r--r-- 1 root src 2789016 2004-11-03 23:30 fglrx-4.3.0-driver_3.14.1
-2_i386.deb
-rw-r--r-- 1 root src 9432 2004-11-03 23:30 fglrx-4.3.0-driver-dev_3.
14.1-2_i386.deb
-rw-r--r-- 1 root src 106648 2004-11-04 19:56 fglrx-4.3.0-kernel-2.6.8-
1-386_3.14.1-2+2.6.8-1-386_i386.deb
-rw-r--r-- 1 root src 106622 2004-11-04 18:26 fglrx-4.3.0-kernel-2.6.8_
3.14.1-2+2.6.8_i386.deb
-rw-r--r-- 1 root src 250968 2004-11-03 23:30 fglrx-4.3.0-kernel-src_3. 14.1-2_i386.deb
-rw-r--r-- 1 root src 73568 2004-11-03 23:30 fglrx-4.3.0-sources_3.14. 1-2_i386.deb
drwxr-xr-x 7 stefan stefan 4096 2004-11-03 23:30 fglrx-installer-3.14.1
-rw-r--r-- 1 root src 686 2004-10-09 12:30 fglrx-installer_3.14.1-2. dsc
-rw-r--r-- 1 stefan stefan 48550 2004-11-03 23:21 fglrx-installer_3.14.1-2. tar.gz
drwxr-xr-x 16 root root 4096 2004-11-03 16:13 kernel-headers-2.6.8-1
drwxr-xr-x 3 root root 4096 2004-11-03 16:13 kernel-headers-2.6.8-1-38 6
drwxr-xr-x 3 root root 4096 2004-11-03 16:13 kernel-kbuild-2.6-3
drwxr-xr-x 4 root root 4096 2004-11-03 16:16 kernel-patches
drwxr-xr-x 19 root root 4096 2004-11-05 12:26 kernel-source-2.6.8
-rw-r--r-- 1 root root 34864927 2004-10-03 09:35 kernel-source-2.6.8.tar.b z2
lrwxrwxrwx 1 root src 19 2004-11-04 14:41 linux -> kernel-source-2. 6.8
-rw-r--r-- 1 root root 76614 2003-12-05 08:02 lirc-modules.tar.gz
drwxr-xr-x 4 root root 4096 2003-12-05 08:02 modules
drwxr-xr-x 7 root root 4096 2004-11-03 16:14 rpm
stefan@stefan:~$

und hier ls -Al /usr/src/kernel-2.6.8:
(bei ls -Al /usr/src/linux zeigt er nur an das /usr/src/linux mit /usr/src/kernel-2.6.8 velinkt ist!)
stefan@stefan:~$ ls -Al /usr/src/kernel-source-2.6.8
insgesamt 13524
drwxr-xr-x 23 root root 4096 2004-08-14 07:36 arch
-rw-r--r-- 1 root root 55735 2004-11-05 11:58 .config
-rw-r--r-- 1 root root 55476 2004-11-05 11:53 .config.old
-rw-r--r-- 1 root root 960 2004-11-04 18:38 conf.vars
-rw-r--r-- 1 root root 18691 2004-08-14 07:36 COPYING
-rw-r--r-- 1 root root 86490 2004-08-14 07:37 CREDITS
drwxr-xr-x 2 root root 4096 2004-11-05 12:26 crypto
-rw-r--r-- 1 root root 64923 2004-10-03 09:21 Debian.src.changelog
drwxr-xr-x 43 root root 4096 2004-10-03 09:33 Documentation
drwxr-xr-x 45 root root 4096 2004-11-05 12:01 drivers
drwxr-xr-x 53 root root 8192 2004-11-05 12:28 fs
drwxr-xr-x 36 root root 4096 2004-11-05 11:59 include
drwxr-xr-x 2 root root 4096 2004-11-05 12:02 init
drwxr-xr-x 2 root root 4096 2004-11-05 12:00 ipc
drwxr-xr-x 3 root root 4096 2004-11-05 11:59 kernel
drwxr-xr-x 4 root root 4096 2004-11-05 12:28 lib
-rw-r--r-- 1 root root 52983 2004-10-03 09:33 MAINTAINERS
-rw-r--r-- 1 root root 38060 2004-10-03 09:33 Makefile
drwxr-xr-x 2 root root 4096 2004-11-05 11:59 mm
-rw-r--r-- 1 root root 213825 2004-11-05 12:26 Module.symvers
drwxr-xr-x 32 root root 4096 2004-11-05 12:02 net
-rw-r--r-- 1 root root 13970 2004-08-14 07:37 README
-rw-r--r-- 1 root root 2591 2004-08-25 17:40 README.Debian
-rw-r--r-- 1 root root 2815 2004-08-14 07:36 REPORTING-BUGS
drwxr-xr-x 9 root root 4096 2004-11-05 11:59 scripts
drwxr-xr-x 3 root root 4096 2004-11-05 12:29 security
drwxr-xr-x 15 root root 4096 2004-11-05 12:29 sound
-rw-r--r-- 1 root root 5 2004-11-04 00:45 stamp-build
-rw-r--r-- 1 root root 5 2004-11-04 18:50 stamp-configure
-rw-r--r-- 1 root root 5 2004-11-03 23:17 stamp-debian
-rw-r--r-- 1 root root 5 2004-11-04 18:50 stamp-kernel-configure
-rw-r--r-- 1 root root 864011 2004-11-05 12:02 System.map
-rw-r--r-- 1 root root 154678 2004-11-05 12:02 .tmp_kallsyms1.o
-rw-r--r-- 1 root root 433 2004-11-05 12:02 ..tmp_kallsyms1.o.cmd
-rw-r--r-- 1 root root 448535 2004-11-05 12:02 .tmp_kallsyms1.S
-rw-r--r-- 1 root root 154678 2004-11-05 12:02 .tmp_kallsyms2.o
-rw-r--r-- 1 root root 433 2004-11-05 12:02 ..tmp_kallsyms2.o.cmd
-rw-r--r-- 1 root root 448535 2004-11-05 12:02 .tmp_kallsyms2.S
-rw-r--r-- 1 root root 864011 2004-11-05 12:02 .tmp_System.map
drwxr-xr-x 2 root root 32768 2004-11-05 12:26 .tmp_versions
-rwxr-xr-x 1 root root 3250840 2004-11-05 12:02 .tmp_vmlinux1
-rw-r--r-- 1 root root 639 2004-11-05 12:02 ..tmp_vmlinux1.cmd
-rwxr-xr-x 1 root root 3406621 2004-11-05 12:02 .tmp_vmlinux2
-rw-r--r-- 1 root root 655 2004-11-05 12:02 ..tmp_vmlinux2.cmd
drwxr-xr-x 2 root root 4096 2004-11-05 11:59 usr
-rw-r--r-- 1 root root 2 2004-11-05 12:02 .version
-rw-r--r-- 1 root root 8 2004-10-03 09:33 version.Debian
-rwxr-xr-x 1 root root 3406621 2004-11-05 12:02 vmlinux
-rw-r--r-- 1 root root 643 2004-11-05 12:02 .vmlinux.cmd
stefan@stefan:~$
 
Zurück
Oben