DVB-T tuner IT9135

Diskusije o hardveru i driverima pod Linuxom.

Moderator/ica: Moderatori/ce

Avatar
iForce
Postovi: 960
Pridružen/a: 02 stu 2010, 15:14
Spol: M
OS: Android 14

Re: DVB-T tuner IT9135

Post Postao/la iForce »

Evo idem prema uputama od driver koji je došao na cd.

Kod: Označi sve

5.  Package Installation for Linux

    a. Install driver with source code
        Alternatively, you may compile and install the driver source code manually,
        
        1) In the folder 'IT9135_SRC', type the following command to compile & install it9135 DVB-T driver dvb-usb-it9135.ko.
            # make clean
            # make
            # make install
        
        2) Plug in the device and check the message to make sure the driver is work normally.
            # cat /var/log/messages
            
            log messages:
            
            dvb-usb: found a 'ITEtech USB2.0 DVB-T Recevier' in warm state.
            dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
            dvb-usb: ITEtech USB2.0 DVB-T Recevier successfully initialized and connected.
            
            #lsmod|more
            
            Module info:
            
            Module                  Size  Used by
            
            dvb_usb_it9135         -----  0 
            dvb_usb                -----  1 dvb_usb_it9135
            dvb_core               -----  1 dvb_usb
            dvb_pll                -----  1 dvb_usb
Raspakiram driver i pokrenem: make clean i prođe, ali mi ovo javi kada pokušam pokrenuti make.

Kod: Označi sve

make -C /lib/modules/3.2.0-26-generic/build SUBDIRS=/home/ijohnny/dvb/64bit/IT9135_SRC modules
make[1]: Ulazim u direktorij `/usr/src/linux-headers-3.2.0-26-generic'
  CC [M]  /home/ijohnny/dvb/64bit/IT9135_SRC/it9135-core.o
In file included from /home/ijohnny/dvb/64bit/IT9135_SRC/it9135-core.c:1:0:
/home/ijohnny/dvb/64bit/IT9135_SRC/it9135.h:12:28: fatal error: linux/smp_lock.h: Nema takve datoteke ili direktorija
compilation terminated.
make[2]: *** [/home/ijohnny/dvb/64bit/IT9135_SRC/it9135-core.o] Greška 1
make[1]: *** [_module_/home/ijohnny/dvb/64bit/IT9135_SRC] Greška 2
make[1]: Izlazim iz direktorija `/usr/src/linux-headers-3.2.0-26-generic'
make: *** [default] Greška 2
Dropbox, jednostavno možete otvoriti račun i besplatno dobijete 2 GB http://db.tt/OioEmCb Ukoliko prilikom registracije koristite navedeni link oboje dobijemo 500 MB gratis.
Avatar
iForce
Postovi: 960
Pridružen/a: 02 stu 2010, 15:14
Spol: M
OS: Android 14

Re: DVB-T tuner IT9135

Post Postao/la iForce »

blacx je napisao/la:Instalirati V4l-DVB drivere:
git clone git://linuxtv.org/media_build.git
cd media_build
./build
make allyesconfig
make
sudo make install

Restart pa uključiti usb i upisati odmah dmesg pa vidi jel prepoznaje karticu.
Prođe ok do ./build kada mi javi ovo:

Kod: Označi sve

Checking if the needed tools for Ubuntu 12.04 LTS are available
Needed package dependencies are met.

************************************************************
* This script will download the latest tarball and build it*
* Assuming that your kernel is compatible with the latest  *
* drivers. If not, you'll need to add some extra backports,*
* ./backports/<kernel> directory.                          *
* It will also update this tree to be sure that all compat *
* bits are there, to avoid compilation failures            *
************************************************************
************************************************************
* All drivers and build system are under GPLv2 License     *
* Firmware files are under the license terms found at:     *
* http://www.linuxtv.org/downloads/firmware/               *
* Please abort if you don't agree with the license         *
************************************************************

****************************
Updating the building system
****************************
From git://linuxtv.org/media_build
 * branch            master     -> FETCH_HEAD
Already up-to-date.
make: Ulazim u direktorij `/home/ijohnny/v4l/media_build/linux'
wget http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5 -O linux-media.tar.bz2.md5.tmp
--2012-07-13 12:22:06--  http://linuxtv.org/downloads/drivers/linux-media-LATEST.tar.bz2.md5
Tražim linuxtv.org (linuxtv.org)... 130.149.80.248
Spajanje na linuxtv.org (linuxtv.org)|130.149.80.248|:80... spojen.
HTTP zahtjev poslan, čeka se odgovor... 200 OK
Veličina: 93 [application/x-bzip2]
Spremanje u: `linux-media.tar.bz2.md5.tmp'

100%[======================================>] 93          --.-K/s   in 0s      

2012-07-13 12:22:08 (13,6 MB/s) - `linux-media.tar.bz2.md5.tmp' preuzeto [93/93]

make: Izlazim iz direktorija `/home/ijohnny/v4l/media_build/linux'
make: Ulazim u direktorij `/home/ijohnny/v4l/media_build/linux'
tar xfj linux-media.tar.bz2
rm -f .patches_applied .linked_dir .git_log.md5
make: Izlazim iz direktorija `/home/ijohnny/v4l/media_build/linux'
**********************************************************
* Downloading firmwares from linuxtv.org.                *
**********************************************************
dvb-fe-bcm3510-01.fw
dvb-fe-or51132-qam.fw
dvb-fe-or51132-vsb.fw
dvb-fe-or51211.fw
dvb-fe-xc5000-1.6.114.fw
dvb-ttpci-01.fw-261a
dvb-ttpci-01.fw-261b
dvb-ttpci-01.fw-261c
dvb-ttpci-01.fw-261d
dvb-ttpci-01.fw-261f
dvb-ttpci-01.fw-2622
dvb-usb-avertv-a800-02.fw
dvb-usb-bluebird-01.fw
dvb-usb-dib0700-1.20.fw
dvb-usb-dibusb-5.0.0.11.fw
dvb-usb-dibusb-6.0.0.8.fw
dvb-usb-dtt200u-01.fw
dvb-usb-terratec-h5-drxk.fw
dvb-usb-terratec-h7-az6007.fw
dvb-usb-terratec-h7-drxk.fw
dvb-usb-umt-010-02.fw
dvb-usb-vp702x-01.fw
dvb-usb-vp7045-01.fw
dvb-usb-wt220u-01.fw
dvb-usb-wt220u-02.fw
v4l-cx231xx-avcore-01.fw
v4l-cx23418-apu.fw
v4l-cx23418-cpu.fw
v4l-cx23418-dig.fw
v4l-cx23885-avcore-01.fw
v4l-cx23885-enc.fw
v4l-cx25840.fw
******************
* Start building *
******************
make -C /home/ijohnny/v4l/media_build/v4l allyesconfig
make[1]: Ulazim u direktorij `/home/ijohnny/v4l/media_build/v4l'
make[2]: Entering directory `/home/ijohnny/v4l/media_build/linux'
Applying patches for kernel 3.2.0-26-generic
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
Patched drivers/media/dvb/dvb-core/dvbdev.c
Patched drivers/media/video/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory `/home/ijohnny/v4l/media_build/linux'
./scripts/make_kconfig.pl /lib/modules/3.2.0-26-generic/build /lib/modules/3.2.0-26-generic/build 1
Preparing to compile for kernel version 3.2.0

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

WARNING: This is the V4L/DVB backport tree, with experimental drivers
	 backported to run on legacy kernels from the development tree at:
		http://git.linuxtv.org/media-tree.git.
	 It is generally safe to use it for testing a new driver or
	 feature, but its usage on production environments is risky.
	 Don't use it in production. You've been warned.
Created default (all yes) .config file
./scripts/fix_kconfig.pl
make[1]: Izlazim iz direktorija `/home/ijohnny/v4l/media_build/v4l'
make -C /home/ijohnny/v4l/media_build/v4l 
make[1]: Ulazim u direktorij `/home/ijohnny/v4l/media_build/v4l'
./scripts/make_myconfig.pl
make[1]: Izlazim iz direktorija `/home/ijohnny/v4l/media_build/v4l'
make[1]: Ulazim u direktorij `/home/ijohnny/v4l/media_build/v4l'
perl scripts/make_config_compat.pl /lib/modules/3.2.0-26-generic/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/home/ijohnny/v4l/media_build/v4l/firmware'
make[2]: Leaving directory `/home/ijohnny/v4l/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/ijohnny/v4l/media_build/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/home/ijohnny/v4l/media_build/v4l/firmware'
Kernel build directory is /lib/modules/3.2.0-26-generic/build
make -C ../linux apply_patches
make[2]: Entering directory `/home/ijohnny/v4l/media_build/linux'
Patches for 3.2.0-26-generic already applied.
make[2]: Leaving directory `/home/ijohnny/v4l/media_build/linux'
make -C /lib/modules/3.2.0-26-generic/build SUBDIRS=/home/ijohnny/v4l/media_build/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-3.2.0-26-generic'
  CC [M]  /home/ijohnny/v4l/media_build/v4l/altera-lpt.o
  CC [M]  /home/ijohnny/v4l/media_build/v4l/altera-jtag.o
  CC [M]  /home/ijohnny/v4l/media_build/v4l/altera-comp.o
  CC [M]  /home/ijohnny/v4l/media_build/v4l/altera.o
  CC [M]  /home/ijohnny/v4l/media_build/v4l/au0828-core.o
In file included from /home/ijohnny/v4l/media_build/v4l/au0828-core.c:24:0:
/home/ijohnny/v4l/media_build/v4l/../linux/include/linux/videodev2.h:67:31: fatal error: linux/v4l2-common.h: No such file or directory
compilation terminated.
make[3]: *** [/home/ijohnny/v4l/media_build/v4l/au0828-core.o] Greška 1
make[2]: *** [_module_/home/ijohnny/v4l/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.2.0-26-generic'
make[1]: *** [default] Greška 2
make[1]: Izlazim iz direktorija `/home/ijohnny/v4l/media_build/v4l'
make: *** [all] Greška 2
build failed at ./build line 452.
Dropbox, jednostavno možete otvoriti račun i besplatno dobijete 2 GB http://db.tt/OioEmCb Ukoliko prilikom registracije koristite navedeni link oboje dobijemo 500 MB gratis.
Avatar
blacx
Postovi: 1245
Pridružen/a: 22 vel 2012, 12:24
Spol: M
OS: Arch bspwm/KDE
Lokacija: Split

Re: DVB-T tuner IT9135

Post Postao/la blacx »

Hmmm....
Probaj

Kod: Označi sve

sudo apt-get install libv4l-dev
pa opet make.
Avatar
iForce
Postovi: 960
Pridružen/a: 02 stu 2010, 15:14
Spol: M
OS: Android 14

Re: DVB-T tuner IT9135

Post Postao/la iForce »

blacx je napisao/la:Hmmm....
Probaj

Kod: Označi sve

sudo apt-get install libv4l-dev
pa opet make.
Opet isto. :?
Dropbox, jednostavno možete otvoriti račun i besplatno dobijete 2 GB http://db.tt/OioEmCb Ukoliko prilikom registracije koristite navedeni link oboje dobijemo 500 MB gratis.
Avatar
nicky
Site Admin
Postovi: 2074
Pridružen/a: 07 pro 2007, 16:30
Spol: Ž
OS: ubuntu 12.04
Lokacija: Zagreb

Re: DVB-T tuner IT9135

Post Postao/la nicky »

Mislim da ti je u ovome problem:

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

Nažalost, neznam ništa dalje od ovog :(
Avatar
blacx
Postovi: 1245
Pridružen/a: 22 vel 2012, 12:24
Spol: M
OS: Arch bspwm/KDE
Lokacija: Split

Re: DVB-T tuner IT9135

Post Postao/la blacx »

I meni je to pisalo jer sam radio na 3.4.4-2-ARCH #1 SMP PREEMPT pa je prošla instalacija bez problema svejedno.
Možda da napraviš custom kernel sa v4l-dvb uključenim... 8-)
http://www.linuxzasve.com/kompiliranje- ... ko-i-zasto
semiRocket
Postovi: 287
Pridružen/a: 13 lip 2009, 03:34

Re: DVB-T tuner IT9135

Post Postao/la semiRocket »

nisam proučio detaljno...

Mogu pitati zašto moraš instalirati driver uopće? Kernel bi trebao podržavati uz odgovarajuću firmware datoteku. Ako trenutni kernel ne podržava koji imaš instaliran sa distribucijom jednostavno nabavi noviji sa ubuntu repoa.

Ovo što ti pokušavaš u nedavnim postovima je kompilirati svježe v4l-dvb module sa starijim kernelom. To se radi zadnje kada sve ostalo posustane.
▓▒░░▒▓╚╩══╦╧═══╨─◄♦
Odgovori