Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 07/06/2011, à 18:32

snucky

Probleme Compilation CLE USB TNT PINNACLE PCTV 340 E

Bonjour,

J'ai voulu installer la Cle TNT en suivant ce tuto.

http://doc.ubuntu-fr.org/pinnacle_pctv_ … stick_340e

Après plusieurs recherches et des essais sur des kernels différents, je bloque sur ce message d'erreur.

make -C /lib/modules/2.6.39-3-generic/build SUBDIRS=/usr/src/pctv-340e-2-927fd2a915c4/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.39-3-generic'
  CC [M]  /usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.o
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c: In function 'free_firmware':
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c:253:3: error: implicit declaration of function 'kfree'
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c:315:2: error: implicit declaration of function 'kzalloc'
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c:315:13: warning: assignment makes pointer from integer without a cast
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c:366:21: warning: assignment makes pointer from integer without a cast
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c: In function 'xc2028_attach':
/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.c:1269:13: warning: assignment makes pointer from integer without a cast
make[3]: *** [/usr/src/pctv-340e-2-927fd2a915c4/v4l/tuner-xc2028.o] Erreur 1
make[2]: *** [_module_/usr/src/pctv-340e-2-927fd2a915c4/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.39-3-generic'
make[1]: *** [default] Erreur 2
make[1]: quittant le répertoire « /usr/src/pctv-340e-2-927fd2a915c4/v4l »
make: *** [all] Erreur 2

Je transmets quelques informations systèmes.

Natty 11.04
Noyau 2.6.39-3
Gnome 3.0.2
En vous remerciant de votre aide.

http://anargeek.net/fr.html

Hors ligne

#2 Le 08/06/2011, à 19:13

snucky

Re : Probleme Compilation CLE USB TNT PINNACLE PCTV 340 E

Les problèmes de compilations sont liées au différentes changement de Kernel.
Je vous indiques celles que j'ai trouvé pour l'instant si cela peut aider.
Ceci est pour le kernel 2.6.39

Premiers Problèmes :

Make s'arrête dés le début.
Ouvrir le fichier config-compat.h situe ds ~/pctv/v4l

#ifndef __CONFIG_COMPAT_H__
#define __CONFIG_COMPAT_H__
#include <linux/autoconf.h>
#include <linux/mmdebug.h>

remplacez la première #include par

#include <generated/autoconf.h>

Deuxièmes Problèmes :
Pour le premier message d'erreur,

~/pctv-340e-2-927fd2a915c4/v4l/tda827x.c:768:2: error: implicit declaration of function 'kfree'
-/pctv-340e-2-927fd2a915c4/v4l/tda827x.c:886:2: error: implicit declaration of function 'kzalloc'

Il faut aller dans le répertoire ~/pctv/v4l puis le ouvrir le fichier correspondant :
Ici tda827x.c et rajouter au début du fichier juste après les commentaires cette ligne :

#include <linux/slab.h>

ce qui donne ceci :

/*
*
* (c) 2005 Hartmut Hackmann
* (c) 2007 Michael Krufky
*
*  This program is free software; you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation; either version 2 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software
*  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/

#include <linux/slab.h>
#include <linux/module.h>
#include <asm/types.h>
#include "compat.h"
#include <linux/dvb/frontend.h>
#include <linux/videodev2.h>


Et relancer un make et a chaque fichier qui pause problème, Effectuer la même chose .

Sources :

http://us.generation-nt.com/answer/bug- … 26032.html

Troisièmes Problèmes :

au0828-video.c:185:5: error: implicit declaration of function 'usb_buffer_free
au0828-video.c:255:3: error: implicit declaration of function 'usb_buffer_alloc

Solutions :

usb_buffer_alloc() is renamed to usb_alloc_coherent()
usb_buffer_free()  is renamed to usb_free_coherent()

Il faut remplacer ces deux éléments dans le fichier concernant.

sources

http://git.kernel.org/?p=linux/kernel/g … b8dbda1363

Quatrièmes Problèmes :

~/pctv/v4l/flexcop-i2c.c:253:39: error: 'I2C_CLASS_TV_DIGITAL' undeclared (first use in this function)

Ouvrir le fichier concerné et supprimer cette partie :

    fc->fc_i2c_adap[0].i2c_adap.class =
        fc->fc_i2c_adap[1].i2c_adap.class =
        fc->fc_i2c_adap[2].i2c_adap.class = I2C_CLASS_TV_DIGITAL;

Source

http://forums.dvbowners.com/index.php?s … entry79529

Cinquième Problèmes

/home/tuxdavy/Transit_LAN/pctv-340e-2-927fd2a915c4/v4l/bttv-driver.c:45:28: fatal error: linux/smp_lock.h: No such file or directory
compilation terminated.

#linux/smp_lock.h

Cette fonction n'existe plus sur le noyau 2.6.39.
Il faut supprimer la ligne au début du fichier et les parties qui y font référence :
lock_kernel et unlock_kernel
Si vous supprimez d'abord la première ligne il vous indiqueras la partie qui faut supprimez.
bttv-driver.c:45:28 ici correspond a la ligne 45...

Sixième Problème :

/home/tuxdavy/Transit_LAN/pctv-340e-2-927fd2a915c4/v4l/bttv-i2c.c:433:3: error: too few arguments to function 'i2c_new_probed_device'
include/linux/i2c.h:293:1: note: declared here

La je Cherche..
A ++

Hors ligne

#3 Le 21/06/2011, à 09:54

Daniel_K

Re : Probleme Compilation CLE USB TNT PINNACLE PCTV 340 E

Bonjour,

J'ai la même clé et le même noyau je ne parviens pas à finaliser la compilation. Avez-vous finalement réussi à l'installer ?

J'ai vu que plusieurs sites qui avaient réussi :
http://doc.ubuntu-fr.org/pinnacle_pctv_ … stick_340e
http://forum.ubuntuusers.de/topic/pinna … 0e-se-usb/
http://forum.ubuntu-it.org/index.php?ac … c=360333.0

Infos techniques :
http://istvanv.users.sourceforge.net/v4l/xc4000.html
http://linuxpc.info/node/51

et sur les autres distributions :
http://forums.linuxmint.com/viewtopic.p … 0&start=40
http://tasos.pavta.com/myblog/2011/02/0 … on-ubuntu/
http://www.crismonblog.org/opensuse-11. … -meta.html

Si vous avez modifié les fichiers, pouvez-vous les mettre ici ? Merci.

Daniel

Hors ligne

#4 Le 09/10/2011, à 07:30

Daniel_K

Re : Probleme Compilation CLE USB TNT PINNACLE PCTV 340 E

Bonjour,

La clé est désormais reconnu nativement avec le kernel 3.1 (actuellement en ppa experimental) qu'il suffit donc d'installer...

Daniel

Hors ligne

#5 Le 05/11/2011, à 19:50

Merlu

Re : Probleme Compilation CLE USB TNT PINNACLE PCTV 340 E

Daniel_K a écrit :

Bonjour,

La clé est désormais reconnu nativement avec le kernel 3.1 (actuellement en ppa experimental) qu'il suffit donc d'installer...

Daniel

ça, c'est une bonne nouvelle. Tu pourrais nous donner l'adresse du dépôt ppa, stp (encore que je crains une certaine instabilité) ?

Dernière modification par Merlu (Le 05/11/2011, à 19:50)


OS: Kubuntu 17.04 Kernel: 4.8.0-41-generic
RAM: 3 Go
Proc.: 3 GHZ (amd64)
Graph: Nvidia Geforce 210

Hors ligne

#6 Le 08/11/2011, à 08:25

Daniel_K

Re : Probleme Compilation CLE USB TNT PINNACLE PCTV 340 E

Hors ligne