Stranica: 1/3.
af9015: tuner NXP TDA18218 not supported yet
Postano: 25 kol 2010, 01:02
Postao/la Sokac
Kupio sam
DVB-T stick sa DX-a jer sam vidio po recenzijama da radi, no meni ne radi niti nakon ponuđenog patcha.
dmesg kaže sljedeće:
Kod: Označi sve
usb 1-8: new high speed USB device using ehci_hcd and address 20
Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:02.1/usb1/1-8/1-8:1.1/input/input9
generic-usb 0003:15A4:9016.0006: input,hidraw2: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:02.1-8/input1
af9015: tuner NXP TDA18218 not supported yet
usbcore: registered new interface driver dvb_usb_af9015
Prvo sam pokušao povuć sa Archlinux AUR paket
af9015
pa
http://www.dealextreme.com/forums/Forum ... did.644198
i ...
http://www.dealextreme.com/forums/Forum ... did.661972
pa
http://www.mail-archive.com/linux-media ... 16118.html
te na posljetku
http://www.ubuntu-hr.org/wiki/DVB#takeMS_DVB-T_Receiver
ali svugdje isto - isti output, isto ne radi.
Ima tko kakve ideje kako riješit ovaj problem? Ako treba još bilo kakvih informacija, slobodno pitajte...
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 25 kol 2010, 06:53
Postao/la drade
Pozdrav,
Logican odgovor bi bio da ako ti jos javlja "not supported yet" poruku, nisi dobro aplicirao patch ili nisi upotrijebio pravilan patch.
Gledajuci u kod patcha, pravilno apliciran patch bi zasigurno maknuo tu poruku:
Kod: Označi sve
@@ -1037,9 +1010,6 @@
af9015_af9013_config[i].gpio[1] = AF9013_GPIO_LO;
af9015_af9013_config[i].rf_spec_inv = 1;
break;
- case AF9013_TUNER_TDA18218:
- warn("tuner NXP TDA18218 not supported yet");
- return -ENODEV;
default:
warn("tuner id:%d not supported, please report!", val);
return -ENODEV;
Da li bilo kakvih relevetnih poruka prilikom apliciranja patcha ? Takodjer bi bilo odlicno kada bi mogao sjetiti se koje si tocno korake poduzimao kako bi aplicirao ovaj patch, te da li je bilo kakvih releventnijih poruka prilikom svakog poduzetog koraka.
Dodatno, kako je prosao compile, da li je bilo kakvih relevantnih poruka tijekom istoga ?
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 25 kol 2010, 07:37
Postao/la drade
Inace, pripremio sam vec "step-by-step" proceduru za ovaj tuner. Drugim rijecima, malo sam procistio silinu nebitnih informacija s foruma koje si postao, isto mogu postati uz svoj sljedeci odgovor.
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 25 kol 2010, 22:47
Postao/la Sokac
Kod: Označi sve
patch -p1 < ../p.patch
patching file drivers/media/common/tuners/Kconfig
patching file drivers/media/common/tuners/Makefile
patching file drivers/media/common/tuners/tda18218.c
patching file drivers/media/common/tuners/tda18218.h
patching file drivers/media/common/tuners/tda18218_priv.h
patching file drivers/media/dvb/dvb-usb/af9015.c
Hunk #1 succeeded at 32 (offset 2 lines).
Hunk #2 succeeded at 1027 (offset 35 lines).
Hunk #3 succeeded at 1039 (offset 35 lines).
Hunk #4 succeeded at 1246 (offset 40 lines).
Hunk #5 succeeded at 1280 (offset 40 lines).
patching file drivers/media/dvb/frontends/af9013.c
Hunk #1 succeeded at 488 (offset 1 line).
Hunk #2 succeeded at 1404 (offset 1 line).
patching file drivers/media/dvb/frontends/af9013_priv.h
[root@sokcevic linux]# cd ..
[root@sokcevic af9015]# make
make -C /root/dvbt/af9015/v4l
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/dvbt/af9015/v4l'
No version yet, using 2.6.35-ARCH
make[1]: Leaving directory `/root/dvbt/af9015/v4l'
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/dvbt/af9015/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.35
***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.
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/root/dvbt/af9015/v4l'
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/dvbt/af9015/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.35-ARCH/build ./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
make -C firmware prep
make[2]: Entering directory `/root/dvbt/af9015/v4l/firmware'
make[2]: Leaving directory `/root/dvbt/af9015/v4l/firmware'
make -C firmware
make[2]: Entering directory `/root/dvbt/af9015/v4l/firmware'
CC ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/root/dvbt/af9015/v4l/firmware'
Kernel build directory is /lib/modules/2.6.35-ARCH/build
make -C /lib/modules/2.6.35-ARCH/build SUBDIRS=/root/dvbt/af9015/v4l modules
make[2]: Entering directory `/usr/src/linux-2.6.35-ARCH'
/bin/sh: /sbin/lsmod: No such file or directory
CC [M] /root/dvbt/af9015/v4l/tuner-xc2028.o
/root/dvbt/af9015/v4l/tuner-xc2028.c: In function 'free_firmware':
/root/dvbt/af9015/v4l/tuner-xc2028.c:252:3: error: implicit declaration of function 'kfree'
/root/dvbt/af9015/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/root/dvbt/af9015/v4l/tuner-xc2028.c:314:2: error: implicit declaration of function 'kzalloc'
/root/dvbt/af9015/v4l/tuner-xc2028.c:314:13: warning: assignment makes pointer from integer without a cast
/root/dvbt/af9015/v4l/tuner-xc2028.c:365:21: warning: assignment makes pointer from integer without a cast
/root/dvbt/af9015/v4l/tuner-xc2028.c: In function 'xc2028_attach':
/root/dvbt/af9015/v4l/tuner-xc2028.c:1269:13: warning: assignment makes pointer from integer without a cast
make[3]: *** [/root/dvbt/af9015/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/root/dvbt/af9015/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.35-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/dvbt/af9015/v4l'
make: *** [all] Error 2
[root@sokcevic af9015]# make install
make -C /root/dvbt/af9015/v4l install
/bin/sh: /sbin/lsmod: No such file or directory
make[1]: Entering directory `/root/dvbt/af9015/v4l'
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/video:
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/dvb/cinergyT2:
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/common:
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/dvb/frontends:
Installing kernel modules under /lib/modules/2.6.35-ARCH/kernel/drivers/media/:
/sbin/depmod -a 2.6.35-ARCH
make -C firmware install
make[2]: Entering directory `/root/dvbt/af9015/v4l/firmware'
Installing firmwares at /lib/firmware: vicam/firmware.fw dabusb/firmware.fw dabusb/bitstream.bin ttusb-budget/dspbootcode.bin cpia2/stv0672_vp4.bin av7110/bootcode.bin
make[2]: Leaving directory `/root/dvbt/af9015/v4l/firmware'
make[1]: Leaving directory `/root/dvbt/af9015/v4l'
[root@sokcevic af9015]# dmesg | tail
eth0: link down.
eth0: link up.
eth0: link down.
eth0: link up.
usb 1-8: new high speed USB device using ehci_hcd and address 4
Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:02.1/usb1/1-8/1-8:1.1/input/input6
generic-usb 0003:15A4:9016.0003: input,hidraw2: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:02.1-8/input1
af9015: tuner NXP TDA18218 not supported yet
usbcore: registered new interface driver dvb_usb_af9015
[root@sokcevic af9015]
Ne bih znao što je točno problem, ovako kako kaže - sve je OK i ne bi trebao prikazivati poruku koju pokazuje...
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 26 kol 2010, 06:46
Postao/la drade
Pozdrav,
Compile ti nije uspio (modul se nije izgradio), a usto izgleda kao da nemas instaliran "module-init-tools" paket.
pacman -S kernel26 kernel26-headers module-init-tools base-devel mercurial
Ovako bi to trebalo ici (patch cu priviti uz post):
sada unutar gornje putanje skini patch datoteku koju sam privio uz ovaj post.
cd /usr/src/mercurial/af9015
gunzip tunerNXPTDA18218.patch.gz
patch -p1 < tunerNXPTDA18218.patch
make
make install
Skini i instaliraj firmware:
P.S. - patch info i sam patch:
https://patchwork.kernel.org/patch/82494/
P.P.S. - istestirao sam gore nevedene korake na 2.6.26 kernelu (distribucija debian - lenny).
Javi kako ide, postaj outpute za brzi debugging.
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 26 kol 2010, 10:46
Postao/la Sokac
Opet ista stvar, sve već potrebno imam instalirano (al napravih još i reinstall).
Ono što možda radi problem (kod make) je:
Kod: Označi sve
CC [M] /usr/src/mercurial/af9015/v4l/tuner-xc2028.o
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c: In function 'free_firmware':
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:252:3: error: implicit declaration of function 'kfree'
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:314:2: error: implicit declaration of function 'kzalloc'
Kod: Označi sve
[root@sokcevic af9015]# patch -p1 < file.patch
patching file linux/drivers/media/common/tuners/Kconfig
patching file linux/drivers/media/common/tuners/Makefile
patching file linux/drivers/media/common/tuners/tda18218.c
patching file linux/drivers/media/common/tuners/tda18218.h
patching file linux/drivers/media/common/tuners/tda18218_priv.h
patching file linux/drivers/media/dvb/dvb-usb/af9015.c
patching file linux/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
patching file linux/drivers/media/dvb/frontends/af9013.c
patching file linux/drivers/media/dvb/frontends/af9013.h
patching file linux/drivers/media/dvb/frontends/af9013_priv.h
[root@sokcevic af9015]# make
make -C /usr/src/mercurial/af9015/v4l
make[1]: Entering directory `/usr/src/mercurial/af9015/v4l'
No version yet, using 2.6.35-ARCH
make[1]: Leaving directory `/usr/src/mercurial/af9015/v4l'
make[1]: Entering directory `/usr/src/mercurial/af9015/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.35
***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.
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/usr/src/mercurial/af9015/v4l'
make[1]: Entering directory `/usr/src/mercurial/af9015/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.35-ARCH/build ./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
make -C firmware prep
make[2]: Entering directory `/usr/src/mercurial/af9015/v4l/firmware'
make[2]: Leaving directory `/usr/src/mercurial/af9015/v4l/firmware'
make -C firmware
make[2]: Entering directory `/usr/src/mercurial/af9015/v4l/firmware'
CC ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/usr/src/mercurial/af9015/v4l/firmware'
Kernel build directory is /lib/modules/2.6.35-ARCH/build
make -C /lib/modules/2.6.35-ARCH/build SUBDIRS=/usr/src/mercurial/af9015/v4l modules
make[2]: Entering directory `/usr/src/linux-2.6.35-ARCH'
CC [M] /usr/src/mercurial/af9015/v4l/tuner-xc2028.o
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c: In function 'free_firmware':
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:252:3: error: implicit declaration of function 'kfree'
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c: In function 'load_all_firmwares':
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:314:2: error: implicit declaration of function 'kzalloc'
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:314:13: warning: assignment makes pointer from integer without a cast
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:365:21: warning: assignment makes pointer from integer without a cast
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c: In function 'xc2028_attach':
/usr/src/mercurial/af9015/v4l/tuner-xc2028.c:1269:13: warning: assignment makes pointer from integer without a cast
make[3]: *** [/usr/src/mercurial/af9015/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/usr/src/mercurial/af9015/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.35-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/mercurial/af9015/v4l'
make: *** [all] Error 2
[root@sokcevic af9015]# make install
make -C /usr/src/mercurial/af9015/v4l install
make[1]: Entering directory `/usr/src/mercurial/af9015/v4l'
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/video:
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/dvb/cinergyT2:
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/common:
Removing obsolete files from /lib/modules/2.6.35-ARCH/kernel/drivers/media/dvb/frontends:
Installing kernel modules under /lib/modules/2.6.35-ARCH/kernel/drivers/media/:
/sbin/depmod -a 2.6.35-ARCH
make -C firmware install
make[2]: Entering directory `/usr/src/mercurial/af9015/v4l/firmware'
Installing firmwares at /lib/firmware: vicam/firmware.fw dabusb/firmware.fw dabusb/bitstream.bin ttusb-budget/dspbootcode.bin cpia2/stv0672_vp4.bin av7110/bootcode.bin
make[2]: Leaving directory `/usr/src/mercurial/af9015/v4l/firmware'
make[1]: Leaving directory `/usr/src/mercurial/af9015/v4l'
[root@sokcevic af9015]# wget http://jusst.de/manu/fw/AFA/dvb-usb-af9015.fw_a-link
--2010-08-26 11:30:27-- http://jusst.de/manu/fw/AFA/dvb-usb-af9015.fw_a-link
Resolving jusst.de... 213.239.213.5
Connecting to jusst.de|213.239.213.5|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 12700 (12K) [text/plain]
Saving to: “dvb-usb-af9015.fw_a-link”
100%[==============================================================>] 12,700 --.-K/s in 0.05s
2010-08-26 11:30:28 (246 KB/s) - “dvb-usb-af9015.fw_a-link” saved [12700/12700]
[root@sokcevic af9015]# mv dvb-usb-af9015.fw_a-link /lib/modules/dvb-usb-af9015.fw
[root@sokcevic af9015]# dmesg | tail
eth0: link up.
eth0: link down.
eth0: link up.
eth0: link down.
eth0: link up.
usb 1-8: new high speed USB device using ehci_hcd and address 5
af9015: tuner NXP TDA18218 not supported yet
Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:02.1/usb1/1-8/1-8:1.1/input/input7
generic-usb 0003:15A4:9016.0004: input,hidraw2: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:02.1-8/input1
[root@sokcevic af9015]#
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 26 kol 2010, 10:52
Postao/la drade
Opet ti nije uspio compile, pogledati cu poslije rucka pa postam.
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 26 kol 2010, 10:57
Postao/la Sokac
Now, we need to explicitly include <linux/slab.h> for kfree() and friends.
Ništa, radim izmjene pa ćemo vidjeti...
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 26 kol 2010, 11:00
Postao/la drade
Sokac je napisao/la:Now, we need to explicitly include <linux/slab.h> for kfree() and friends.
Ništa, radim izmjene pa ćemo vidjeti...
Puknuti ce (nekome jest), citao sam

.
Re: af9015: tuner NXP TDA18218 not supported yet
Postano: 26 kol 2010, 12:54
Postao/la Sokac
Ovdje je već sve patchirano i ispravljeno:
hg clone
http://mercurial.intuxication.org/hg/s2-liplianin-351
make prolazi, make install i make makelinks; no i dalje mi učitava stari driver. probat ću još jednom pa ćemo vidjeti...