EzCap DVB T Stick: Difference between revisions

From LinuxTVWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 7: Line 7:
|selval1=ezcap-afatech-9035}}
|selval1=ezcap-afatech-9035}}
}}
}}



'''Note:''' There is also a card with exactly same ID data , hence based on same hardware, just rebranded, sold as '''Infinity PC-TV Nano DVB-T USB stick''' brand (at least in Croatia). This is a best buy model. Procedure for geting this DVB stick working is described below inside NOTE blocks. If your stick is not Infinity Nano, disregard this comments.

Currently not supported by LinuxTV. No manufacturer website.


Based on:
Based on:
Line 18: Line 12:
* Fiti Power FC0011
* Fiti Power FC0011


Begin Michael Lamothe's Notes
On sale in Australia inside a box which says '''Blaze HDTV Tuner''', inside which is another package which says '''MinTV DVB-T Stick'''. Compiled driver from the Terratec site works well.

I picked up this device in Australia from Dick Smith Electronics (DSE) labelled "Gadget Geek".


Also, on sale in Australia inside a box which says '''Blaze HDTV Tuner''', inside which is another package which says '''MinTV DVB-T Stick'''.


[[Category:DVB-T USB Devices]]
[[Category:DVB-T USB Devices]]
Line 26: Line 23:
== Install instructions for using alternate manufacturer driver ==
== Install instructions for using alternate manufacturer driver ==


I've pre-hacked the manufacturer's driver:
This is provided by Andreas Mattsson and lifted (mostly) verbatim from his website [http://strobe.anti.nu/af9035_fc0011.html].

'''Note for ''Infinity Nano'' (as of september 2010 deprecated)''': Infinity PC-TV Nano instructions were written by [[User:Phantom25]], after painfull try&mistake process lasting three days with final success.
Data aquired by mixing Andreas Mattson website data, Ubuntu Forums [http://ubuntuforums.org/showthread.php?s=a4c2eb78ea05c68b9121e9ddc4f89226&t=1364396] and trial&error experiments.'''End note for ''Infinity Nano'' '''

This is a simple how-to in order to quickly get up and running if you've got a card based on this combination.
As of 20100123, the LinuxTV-project doesn't support this yet and I have not found any working instructions anywhere, only questions about how to get it to work.
I'm running Xubuntu and will thus be using apt, but the instructions should work for most any distribution if you fix the dependencies in another way.
Most cards with the AF9035 seems to be combined with the Infineon TUA9001 tuner, with vendor supplied Linux-drivers that only support this tuner.
For instance, [[Terratec's current Cinergy T-stick|TerraTec_Cinergy_T_Stick]] driver in the archive "terratec_af9035.zip" available via their linux-driver site is one such driver.
Luckily, they also have an older driver version where they have sourcecode supporting the FC0011 tuner in place.
As a matter of fact, there's support for a whole bunch of tuners in there, like Microtune MT2266, Philips TDA18291 and of course Infineon TUA9001.
We're going to use this.
You can't find it via their web-page, but it's still available.


# The source extracted from the manufactuter's driver
# The missing crystal frequencies commented out from line 178-187
# Commented out #include <autoconf.h> from api/usb2impl.c


First up, you'll need a working build environment, the kernel-headers and the kernel-source.
First up, you'll need a working build environment, the kernel-headers and the kernel-source.
Line 47: Line 34:
<pre>uname -r</pre>
<pre>uname -r</pre>


<pre>sudo apt-get install build-essential linux-headers-2.6.35-25-generic linux-source-2.6.35 kernel-package</pre>
For instance, I've installed

<pre>sudo apt-get install build-essential linux-headers-2.6.31-17-generic linux-source-2.6.31 kernel-package</pre>

Continue with downloading the needed driver-file from Terratec.

<pre>wget http://linux.terratec.de/files/Linux-Driver-for-T-Stick.rar</pre>

'''Note for ''Infinity Nano'' (as of september 2010 deprecated) ''': The mentioned URL is an outdated driver, and does improperly support this card (module error -12).
Newer version (Year 2009 instead of year 2008) is on:
<pre>wget http://www.linux-cam.com/downloads/9035.linux.PC.dvb-tV9.07.10.1.zip</pre>'''End note for ''Infinity Nano'' '''

In order to unpack the archives, you'll need rar and rpm. (Actually, I'm not sure about rpm. You'll at least need the rpm2cpio which I think comes with the rpm package).


<pre>sudo apt-get install rar rpm</pre>
<pre>sudo tar jxvf /usr/src/linux-source-2.6.35.tar.bz2</pre>

then
<pre>
rar x Linux-Driver-for-T-Stick.rar
cd Linux_PC_AF9035_Afatech_2008.12.17/Linux-32bit_AF9035_20081217
rpm2cpio AF903x-32bit-2.0-1.src.rpm | cpio -idmv
tar -xzf AF903x_SRC.tar.gz
</pre>

'''Note for ''Infinity Nano'' (as of september 2010 deprecated) ''': The mentioned URL is an outdated driver, and does inproperly support this card.
The newer driver needs to be unpacked via unzip, instead using rar, replace the procedure with:
<pre>
unzip 9035.linux.PC.dvb-tV9.07.10.1.zip
cd 9035.linux.PC.dvb-tV9.07.10.1/32bit/
tar -xzf AF903x_SRC.tar.gz
</pre>'''End note for ''Infinity Nano'' '''

There! Now we got a folder called AF903x_SRC containing the source for the driver.
If you're running a kernel version between 2.6.16 and 2.6.27, all you should have to do is to compile and install the driver, although I haven't actually tested this.
I'm running 2.6.31, so I had to manually copy a few files.
Enter AF903x_SRC and copy the following files there. (I've unpacked my kernel source into /usr/src/linux-source-2.6.31)


<pre>
<pre>
wget http://me-tv.googlecode.com/files/AF903x.tar.gz
tar zxvf AF903x.tar.gz
cd installer
cd AF903x_SRC
cd AF903x_SRC
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/demux.h ./
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/frontends/*.h .
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/dmxdev.h ./
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/dvb-core/*.h .
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/dvb_demux.h ./
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/dvb-usb/*.h .
cd ..
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/dvb_frontend.h ./
sudo ./installer.sh
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/dvb_net.h ./
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/dvb_ringbuffer.h ./
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-core/dvbdev.h ./
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-usb/dvb-usb.h ./
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/dvb-usb/dvb-usb-ids.h ./
cp /usr/src/linux-source-2.6.31/drivers/media/dvb/frontends/dvb-pll.h ./
</pre>
</pre>


Have tested this in Maverick using Me TV.
Now we're ready to make and install...
<pre>
make
sudo make install
depmod -a
</pre>

reboot or do a

<pre>modprobe dvb_af903x</pre>

'''Note for ''Infinity Nano'' (as of september 2010 deprecated) ''':The module name has been changed, use instead:
<pre>modprobe dvb_usb_af903x</pre>

USB hotpluging should start working immediately, however, some Linuxes wrong identify this stick as USB HID device, due to conflicting ID woth some possibly existing HID device !??????? Therefore, further steps should be neccessary. Please see below.'''End note for ''Infinity Nano'' '''


If you run
If you run


<pre>cat /var/log/messages | grep DVB</pre>
<pre>dmesg</pre>


you should see
you should see
<pre>
<pre>
DRIVER_RELEASE_VERSION : v9.08.14.1
dvb-usb: found a 'Afatech USB2.0 DVB-T Recevier' in warm state.
FW_RELEASE_VERSION : v8_8_63_0
DVB: registering new adapter (Afatech USB2.0 DVB-T Recevier)
API_RELEASE_VERSION : 200.20090402.0
DVB: registering adapter 0 frontend 0 (AF903X USB DVB-T)...
usbcore: registered new interface driver hiddev
dvb-usb: Afatech USB2.0 DVB-T Recevier successfully initialized and connected.
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: registering new adapter (ITEtech USB2.0 DVB-T Recevier)
DVB: registering adapter 0 frontend 0 (AF903X USB DVB-T)..
</pre>
</pre>


End Michael Lamothe's notes.
'''Note for ''Infinity Nano'' (as of september 2010 deprecated) ''':The output is slightly different, depending on cold or warm state, anyhow, success message must be shown.'''End note for ''Infinity Nano'' '''

Your Afatech USB card is now ready to be used. Happyhappyjoyjoy! =)


Beware if you have more than one DVB adapter, though. It seem like the dvb_af903x driver can't tune if it isn't adapter 0, at least not in my system.
Beware if you have more than one DVB adapter, though. It seem like the dvb_af903x driver can't tune if it isn't adapter 0, at least not in my system.
Line 137: Line 77:
Now, with the Afatech as adapter 0 and the Hauppauge as adapter 1, both work great.
Now, with the Afatech as adapter 0 and the Hauppauge as adapter 1, both work great.


Might simply be some specific incompatability between the Hauppauge driver and the Afatech, but I thought a heads up might be in place.
Might simply be some specific incompatibility between the Hauppauge driver and the Afatech, but I thought a heads up might be in place.

'''Note for ''Infinity Nano'' (as of september 2010 deprecated) ''':Newer driver version procedure tested upto kernel 2.6.32 (2.6.32-22 more specific) and still works flawlessly.'''End note for ''Infinity Nano'' '''

===''' Installing on Maverick '''===

For those that are interested, I got this device working on Maverick. I picked up this device in Australia from Dick Smith Electronics (DSE) labelled "Gadget Geek". I've pre-hacked the source with:

# The source extracted from the supplied driver
# The missing crystal frequencies commented out from line 178-187
# Commented out #include <autoconf.h> from api/usb2impl.c

<pre>
wget http://me-tv.googlecode.com/files/AF903x.tar.gz
tar zxvf AF903x.tar.gz
cd installer
cd AF903x_SRC
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/frontends/*.h .
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/dvb-core/*.h .
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/dvb-usb/*.h .
cd ..
sudo ./installer.sh
</pre>

Have tested this in Maverick using Me TV.



===''' General important note! (1) ''' USB DVB is wrongly identified as a HID device===
===''' General important note! (1) ''' USB DVB is wrongly identified as a HID device===
Line 204: Line 119:


Happy TV-viewing.
Happy TV-viewing.

*** I also cannot find this file. Can you post it online somewhere (eg mediafire or similar) so this file doesn't disappear forever.


== References ==
== References ==

Revision as of 20:12, 15 February 2011

Afatech USB 2.0 DVB-T Stick is a USB 2.0 DVB-T device.


did vendor device standard supported pic url hostinterface usbid hw tuner demodulator usbbridge fw comment E
ezcap-afatech-9035 EzCap DVB-T USB2.0 stick DVB-T Yes, but see device page for details. EzTV USB DVB-T internals 3243.jpg USB2.0 15a4:1001 Afatech AF9035 fc0011 af9035 af903x Sold as Infinity PC-TV Nano DVB-T USB stick (at least in Croatia) and as Blaze HDTV Tuner in Australia. An EzCAP USB 2.0 DVB-T Stick exist with rtl2832u chipset. Jump to the place where you can edit this entry

Based on:

  • Afatech AF9035
  • Fiti Power FC0011

Begin Michael Lamothe's Notes

I picked up this device in Australia from Dick Smith Electronics (DSE) labelled "Gadget Geek".

Also, on sale in Australia inside a box which says Blaze HDTV Tuner, inside which is another package which says MinTV DVB-T Stick.


Install instructions for using alternate manufacturer driver

I've pre-hacked the manufacturer's driver:

  1. The source extracted from the manufactuter's driver
  2. The missing crystal frequencies commented out from line 178-187
  3. Commented out #include <autoconf.h> from api/usb2impl.c

First up, you'll need a working build environment, the kernel-headers and the kernel-source. If you don't know which kernel you're running, you can find out with

uname -r
sudo apt-get install build-essential linux-headers-2.6.35-25-generic linux-source-2.6.35 kernel-package
sudo tar jxvf /usr/src/linux-source-2.6.35.tar.bz2
wget http://me-tv.googlecode.com/files/AF903x.tar.gz
tar zxvf AF903x.tar.gz
cd installer
cd AF903x_SRC
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/frontends/*.h .
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/dvb-core/*.h .
ln -s /usr/src/linux-source-2.6.35/linux-source-2.6.35/drivers/media/dvb/dvb-usb/*.h .
cd ..
sudo ./installer.sh

Have tested this in Maverick using Me TV.

If you run

dmesg

you should see

DRIVER_RELEASE_VERSION : v9.08.14.1
FW_RELEASE_VERSION     : v8_8_63_0
API_RELEASE_VERSION    : 200.20090402.0
usbcore: registered new interface driver hiddev
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: registering new adapter (ITEtech USB2.0 DVB-T Recevier)
DVB: registering adapter 0 frontend 0 (AF903X USB DVB-T)..

End Michael Lamothe's notes.

Beware if you have more than one DVB adapter, though. It seem like the dvb_af903x driver can't tune if it isn't adapter 0, at least not in my system. In my case, I also have a Hauppauge PCI DVB-T card that always got installed as adapter 0, with the Afatech as adapter 1. With the Hauppauge card installed, the Afatech would always fail at tuning. With it removed, it worked. I got around this by blacklisting the cx88_dvb, cx88xx, cx8800 and cx8802 modules and loading them manually after the dvb_af903x had loaded. Now, with the Afatech as adapter 0 and the Hauppauge as adapter 1, both work great.

Might simply be some specific incompatibility between the Hauppauge driver and the Afatech, but I thought a heads up might be in place.

General important note! (1) USB DVB is wrongly identified as a HID device

Most Linuxes improperly identify this USB stick as USB HID, which it is not! This leads to driver conflicts. When looking into:

dmesg

There is mention of a HID device, by default, after plugging in the stick.

This has to be done, in order to remedy this:

  • 1. /etc/modprobe.d/usbhid.conf needs to have the line (for module version):
options usbhid quirks=0x15a4:0x1001:0x0004

This line ignores this ID from HID devices! If there is a real physical USB device present, which is HID, i.e. keyboard, mouse (funny, this should never have happened, according to the specification, that two or more devices share the same USB ID!), it must not be 15a4:1001, or it will be ignored!

  • 2. if HID driver is incorporated into kernel, these boot parameters must be appended:
usbhid.quirks=0x15a4:0x1001:0x0004

this goes in, i.e. /boot/grub/menu.lst (grub.conf) , or other means of linux bootconfig.

  • 3. Reboot, just in case. :) Or, unload and reload the usbhid module, in order for the changes to take effect!

General important note! (2) in order to compile, install or even load modules, root privileges might be required

Albeit making may look successfull, even if performed from non-root privileges, the resulting module might cause the error of being invalid module, when loaded!

So, just to be sure, substitute:

make
sudo make install
depmod -a

with:

sudo make
sudo make install
sudo depmod -a

also:

sudo modprobe dvb_af903x

(Note for Infinity Nano (as of september 2010 deprecated) :or

sudo modprobe dvb_usb_af903x

respectivelly.End note for Infinity Nano )

Happy TV-viewing.

References