Ceci est une ancienne révision du document !


Quent57

NomBérard
PrénomQuentin
LieuGrenoble
Ubunteros depuis 2005
Distribution testéeUbuntu, Kubuntu, Xubuntu, Mythbuntu, Easy Peasy, …

Création des pages :

Contributions importantes aux pages :

Contribution mineurs aux pages :

J'ai besoin d'aide sur ces topics :

Projet perso :

Mémo : language tool pour OOo

digikam :

digikam kde-l10n-fr non-free-codecs phonon-backend-gstreamer

xxs :

sudo apt-get install build-essential linux-headers-$(uname -r)
cd /usr/src
sudo tar xvjf linux-source-$YOUR_VERSION_HERE.tar.bz2

In some case some extra steps are required to make it compile.

Doing apt-get install linux-sources and decompressing the file is not sufficient. After doing that step you also need to:

1.

cd /usr/src/linux-source-{Version}/

(To find the value to replace in {Version} do: uname -r and use only the dot separated numbers, if there is dash something, please discard everything after and including the dash)

2.

sudo cp -vi /boot/config-`uname -r` .config

3.

sudo make oldconfig

4.

cd /lib/modules/`uname -r`

5. Check if the build softlink is pointing to /usr/src/linux-header-* by doing:

ls -l

6. If you see something like: … build → /usr/src/linux-headers-2.6.31-16-generic then proceed with 6.1, otherwise jump to step 7 6.1 then switch the softlink, first by deleting build:

sudo rm build

6.2 and then create the new link by doing:

sudo ln -s /usr/src/{Version} build

7. It is not required for this, but it won't hurt if you create

/usr/src/linux symlink

for that do:

sudo ln -s /usr/src/{Version} /usr/src/linux

8. Now go ahead and build those drivers

Good Luck! Last edited by go_linux; January 10th, 2010 at 09:23 AM..

ref : http://ubuntuforums.org/showthread.php?t=1047374&page=3

http://www.janw.dommel.be/nanoblogger/archives/2010/06/index.html#e2010-06-06T08_40_19.txt

Taking a look at the linux source in /usr/src/linux-2.6.34/drivers/media/dvb/dvb-usb/dib0700_devices.c, I found the following at line 515

      err("Unknown remote controller key: %2X %2X %2X %2X", (int) key[3-2],
                               (int) key[3-3], (int) key[3-1], (int) key[3]);

and this at line 592

      /* Key codes for the Terratec Cinergy DT XS Diversity, similar to cinergyT2.c */
      { 0xeb01, KEY_POWER },
      { 0xeb02, KEY_1 },
      { 0xeb03, KEY_2 },
      { 0xeb04, KEY_3 },

remplacer tous les eb

      { 0xeb04, KEY_3 },

par des 14

      { 0x1404, KEY_3 },

pour la section

/* Key codes for the Terratec Cinergy DT XS Diversity, similar to cinergyT2.c */

compiler un module : http://www.cyberciti.biz/tips/compiling-linux-kernel-module.html placer ce Makefile :

obj-m = foo.o
KVERSION = $(shell uname -r)
all:
      make -C /lib/modules/$(KVERSION)/build M=$(PWD) modules
clean:
      make -C /lib/modules/$(KVERSION)/build M=$(PWD) clean

dans le dossier du module, puis make

Mailquent57 à yaho dot fr
Messagerie instantanée quent57 à hotm dot com
  • utilisateurs/quent57.1292897575.txt.gz
  • Dernière modification: Le 18/04/2011, 14:44
  • (modification externe)