PDA

View Full Version : Af9015


arnebaier
November 8th, 2007, 01:57 AM
Hi, I am trying to get an AfaTech AF9015 chip (USB stick) up and running, but mythbuntu doesn't seem to recognize it as a DVB-T source. Who can help?

mvirkkil
January 14th, 2008, 08:47 AM
The chip AF9015 is not supported yet.

As you might know the linux-dvb project (http://www.linuxtv.org) develops support for different DVB-chips. One of the people working on it has created a driver to support the AF9015 chip, and you might be able to use it. The sourcecode for the driver can be found in his mercurial repository at http://linuxtv.org/hg/~anttip/af9015/ and the firmware is at http://otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/

Please note that getting this to work means you probably need to get the development version of the linux kernel dvb subsystem, patch it and compile it.

Eventually the support will probably get in to linux-dvb and Linux in general but at the moment getting the AF9015 to work is a bit challenging.

seanemerald
January 29th, 2008, 08:44 AM
So once I run "make install" on the downloaded files mentioned above, will the tuner automatically be recognized in mythbuntu or any other media center?

mvirkkil
January 30th, 2008, 11:08 AM
What I did to get it working was (iirc):
- download and extract sources from http://linuxtv.org/hg/~anttip/af9015/archive/ca6a41d1798b.tar.bz2
- compile, you need at least the build-essentials and kernel-headers packages, you will find the compiled kernel modules (*.ko) in the v4l directory
- remove any dvb or v4l kernel modules you currently have loaded in your kernel (lsmod and "modprobe --remove")
- insert the newly compiled modules in to your kernel "sudo insmod ./v4l2-core.ko" etc.

I don't exactly remember which modules I loaded to get it to work. If you get any error like undefined symbol, check dmesg for more information. What I remember is that I needed to modprobe i2c-core, and to insmod at least dvb-usb. the af9013 -frontend and mt2060 and maybe qt1010. Oh and of course af9015. I also added a bunch more because of dependencies revealed by "undefined symbol" messages.

You also need to place the firmware file in /lib/firmware

motumboe
January 31st, 2008, 10:13 AM
@mvirkkil

So you got a tv tuner with af9015 to work??? great!
what is the usb id of your tuner (obtain e.g. with lsusb?)
cheers

motumboe
January 31st, 2008, 10:15 AM
I'm trying to get it working on a Terratec USB T XE tuner but at the moment without success.
USB ID 0ccd 0069

mvirkkil
February 4th, 2008, 11:08 AM
Install at least the following packages
build-essential
linux-headers-generic
dvb-utils

- Download the firmware to /lib/firmware/dvb-usb-af9015.fw
- remove any loaded v4l and dvb modules from your kernel
* first check what modules are loaded by issuing 'lsmod'
* remove modules by calling modprobe --remove modulename
ex: 'sudo modprobe --remove v4l2_common'
* if you get the error message "FATAL: Module v4lsomething is in use.", check which module is using it, and remove that one first.

- Download and unpack af9015-ca6a41d1798b.tar.bz2
- go to the af9015-ca6a41d1798b directory
- run `make`
- go to the subdirectory v4l (typing ls *.ko should show a whole bunch of kernel modules)
- 'sudo modprobe i2c-core'
- 'sudo insmod ./dvb-core.ko'
- 'sudo insmod ./dvb-usb.ko'
- 'sudo insmod ./mt2060.ko'
- 'sudo insmod ./qt1010.ko'
- 'sudo insmod ./af9013.ko'
- 'sudo insmod ./dvb-usb-af9015.ko'

Note: If you get something like "symbol not found (-1)" while insmod:ing the modules, check dmesg for the details and try to figure which module you are missing.

When you input the usb stick you should see the following messages:

af9015_usb_probe:
af9015_identify_state: reply:01
dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
af9015_download_firmware:
dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
af9015_eeprom_dump:
00: 2c 75 9b 0b 00 00 00 00 a4 15 16 90 00 02 01 02
10: 00 80 00 fa fa 10 40 ef 01 30 31 30 31 31 30 30
20: 34 30 36 30 30 30 30 31 ff ff ff ff ff ff ff ff
30: 00 00 3a 01 00 08 02 00 1d 8d c4 04 82 ff ff ff
40: ff ff ff ff ff 08 02 00 1d 8d c4 04 82 ff ff ff
50: ff ff ff ff ff 24 00 00 04 03 09 04 10 03 41 00
60: 66 00 61 00 74 00 65 00 63 00 68 00 10 03 44 00
70: 56 00 42 00 2d 00 54 00 20 00 32 00 20 03 30 00
80: 31 00 30 00 31 00 31 00 30 00 30 00 34 00 30 00
90: 36 00 30 00 30 00 30 00 30 00 31 00 00 ff ff ff
a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
af9015_read_config: xtal:2 set adc_clock:28000
af9015_read_config: tuner id1:130
af9015_read_config: spectral inversion:0
af9015_set_gpios:
af9013: firmware version:4.95.0
DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
af9015_tuner_attach:
af9015_mt2060_tuner_attach:
MT2060: successfully identified (IF1 = 1220)
dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
af9015_init:
af9015_download_ir_table:
usbcore: registered new interface driver dvb_usb_af9015

Writing 'ls /dev/dvb/adapter0' should show
demux0 dvr0 frontend0 net0

Ok, so next you will need a channels.conf file. To generate it you should use the command (replace xx-CityName with something more suitable):
'scan /usr/share/doc/dvb-utils/examples/scan/dvb-t/xx-CityName > channels.conf'

I haven't tested it very heavily, just by using xine. I couldn't get the radio channels to work in xine so I simply removed them from the config file.

To test it with xine copy the channels.conf file to the .xine directory. Start xine and press the dvb button.

There is currently no support for the remote controller, so I have not inserted the modules that the remote would use (probably ir-common.ko and ir-kbd-i2c.ko).

'lsusb -v' shows the following info about the stick:
Bus 007 Device 002: ID 15a4:9016
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x15a4
idProduct 0x9016
bcdDevice 2.00
iManufacturer 1 Afatech
iProduct 2 DVB-T 2
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 71
bNumInterfaces 2
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 4
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 0
bInterfaceProtocol 0
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 1
bInterfaceClass 3 Human Interface Devices
bInterfaceSubClass 0 No Subclass
bInterfaceProtocol 1 Keyboard
iInterface 0
HID Device Descriptor:
bLength 9
bDescriptorType 33
bcdHID 1.01
bCountryCode 0 Not supported
bNumDescriptors 1
bDescriptorType 34 Report
wDescriptorLength 65
Report Descriptors:
** UNAVAILABLE **
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 16
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

teetee
February 4th, 2008, 01:18 PM
When trying to install af9015-ca6a41d1798b (or v4l) I'll get:

/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l/saa7134-core.c: In function 'saa7134_resume':
/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l/saa7134-core.c:1348: error: size of array 'type name' is negative
/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l/saa7134-core.c:1348: warning: comparison of distinct pointer types lacks a cast
/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l/saa7134-core.c:1362: error: size of array 'type name' is negative
/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l/saa7134-core.c:1362: warning: comparison of distinct pointer types lacks a cast
make[3]: *** [/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l/saa7134-core.o] Error 1
make[2]: *** [_module_/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.22-14-rt'
make[1]: *** [default] Virhe 2
make[1]: Poistutaan hakemistosta "/home/tt/asennus/AlinkUSBdigi/af9015-ca6a41d1798b/v4l"
make: *** [all] Virhe 2

And that "Virhe" is Error...

teetee
February 4th, 2008, 01:32 PM
And by the way, from where can I found firmware that is needed here?

http://otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/
Won't open...

Edit: And should that firmware be located at /lib/firmware/dvb-usb-af9015.fw before starting to do anything else?

motumboe
February 5th, 2008, 03:27 AM
mvirkkil,
thank you very much for your really detailed explanation! This evening I'll try it!
Thank you again,
Marco

motumboe
February 5th, 2008, 03:30 AM
When trying to install af9015-ca6a41d1798b (or v4l) I'll get:



And that "Virhe" is Error...

teetee, check out if this is the problem:
http://linuxtv.org/wiki/index.php/Afatech_AF9015

For devices based on the MT2060 tuner (such as the Geniatech T328B) you may need to patch the file MT2060M.h in the following way:

replace

typedef unsigned long UData_t;

with

typedef unsigned int UData_t;

Then compile, install, modprobe dvb_usb_af9015 and you are finished.

teetee
February 5th, 2008, 11:05 AM
OK.

Where that MT2060M.h -file can be found? I have found:
mt20xx.h, mt2060.h and mt2060_priv.h -files (in several places, actually).

So if it some one of those, then in what directory file needed to patch is located?

Thanks.

Edit:
Hmm. Maybe I have tried with wrong drivers? Now I got drivers from here:
http://af.zsolttech.com/

teetee
February 5th, 2008, 11:33 AM
Ok. Now I have installed drivers. Nice...

dmesg | grep dvb
[ 4090.537745] dvb-usb: found a 'Afatech USB2.0 DVB-T Recevier' in warm state.
[ 4090.539739] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 4090.543733] dvb-usb: Afatech USB2.0 DVB-T Recevier successfully initialized and connected.
[ 4090.543759] usbcore: registered new interface driver dvb_usb_af901x

Is anything else needed to install? Well, next I will try to use this one also. So I will try to find something to watch...

teetee
February 5th, 2008, 12:08 PM
It seems that it is now working. Badly, but working anyway...

There is lot of errors (or something) in audio and video. Also all channels cannot be found. And I have my house's antenna attached.

teetee
February 5th, 2008, 12:47 PM
If anybody know place to get firmware for AF9015 let me know... (maybe I should get correct firmware to get better quality?)

Also I am wondering if my USB-port cannot give enough power, but I will get very soon USB-hub to test, so I will find that out.
Edit: USB-hub didn't help.

motumboe
February 5th, 2008, 05:44 PM
unfortunately my tuner uses mc44s803 from freescale, I'll try a different way http://linuxtv.org/pipermail/linux-dvb/2007-September/020689.html
thanks anyway again.

mvirkkil
February 11th, 2008, 12:39 PM
Try the followin address instead:

http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/4.95.0/dvb-usb-af9015.fw

ceminino
February 14th, 2008, 02:47 PM
I don't speak spanish but I managed to make it work thanks to this page, it's quite easy actually! Just copy paste!

http://www.ubuntu-es.org/index.php?q=node/76680

though I didn't figure out how to make it work with vlc but mplayer /dev/dvb/adapter0/dvr0 works.

mvirkkil
February 15th, 2008, 09:45 AM
FYI: Antti added support for the remote control which comes with the af9015. I don't have the remote control so I cannot test or give additional instructions, but I figured someone might be interested in trying it out. http://linuxtv.org/hg/~anttip/af9015/

ceminino
February 19th, 2008, 07:54 AM
damn! installing the tuner somehow destroyed the webcam, The module uvcvideo.ko can't be loaded anymore!

FATAL: Error inserting uvcvideo (/lib/modules/2.6.22-14-generic/ubuntu/media/usbvideo/uvcvideo.ko): Unknown symbol in module, or unknown parameter (see dmesg)

damn!

mvirkkil
February 25th, 2008, 12:30 PM
The reason why the webcam stopped working is that you inserted your own video4linux modules, and the uvcvideo module is compiled against the ubuntu video4linux. This is not really a bug or a problem. You cannot mix and match different versions of the video4linux. To get it to work, you would need to get the uvcvideo module's sources and compile against your version of the video4linux.

Hopey
May 19th, 2008, 08:48 AM
I got some strange problem with this. I compile the modules, install them, and dmesg gives me all the usual stuff and in the end:

[ 3269.339841] d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 3269.365453] e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 3269.391437] f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
[ 3269.392937] af9015_read_config: xtal:2 set adc_clock:28000
[ 3269.396064] af9015_read_config: IF1:36125
[ 3269.399190] af9015_read_config: MT2060 IF1:1220
[ 3269.400683] af9015_read_config: tuner id1:130
[ 3269.402181] af9015_read_config: spectral inversion:0
[ 3269.403679] af9013: firmware version:4.95.0
[ 3269.403687] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
[ 3269.403746] af9015_tuner_attach:
[ 3269.403751] af9015_set_gpio: gpio:3 gpioval:03
[ 3269.407536] MT2060: successfully identified (IF1 = 1220)
[ 3269.882659] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
[ 3269.882669] af9015_init:
[ 3269.882672] af9015_init_endpoint: USB speed:3
[ 3269.888161] af9015_download_ir_table:
[ 3269.956057] input: MSI MSI K-VOX as /devices/pci0000:00/0000:00:1d.7/usb5/5-5/5-5:1.1/input/input20
[ 3270.003593] input,hidraw1: USB HID v1.01 Keyboard [MSI MSI K-VOX] on usb-0000:00:1d.7-5


See the last lines about some MSI input keyboard. That happens every time I plug the dvb-t stick. lsusb -v doesn't show the dvb-t installed, but it shows the keyboard that I don't have. Is this some kind of conflict? How could I resolve it?

ernstkl
June 21st, 2008, 03:51 AM
the keyboard device you see is the representation of the remote control input from the dvb-t stick

dagrende
August 18th, 2008, 04:12 PM
Hi,

Thank you mvirkkil for the guide that made my af9015 work!

Now I would like a permanent working af9015 even after a reboot.

The funny thing is that is I check out af9015 and make make; sudo make install, it doesn't work.
But it works if I do as mvirkkil said:
cd v4l
sudo modprobe i2c-core
sudo insmod ./dvb-core.ko
sudo insmod ./dvb-usb.ko
sudo insmod ./mt2060.ko
sudo insmod ./qt1010.ko
sudo insmod ./af9013.ko
sudo insmod ./dvb-usb-af9015.ko


dmesg on device insert in this case (when it works):
Aug 18 22:04:51 tp kernel: [ 759.781462] usb 4-2: new high speed USB device using ehci_hcd and address 38
Aug 18 22:04:51 tp kernel: [ 759.934742] usb 4-2: configuration #1 chosen from 1 choice
Aug 18 22:04:51 tp kernel: [ 759.935218] af9015_usb_probe: interface:0
Aug 18 22:04:51 tp kernel: [ 759.960194] af9015_read_config: IR mode:1
Aug 18 22:04:51 tp kernel: [ 759.961971] af9015_read_config: TS mode:0
Aug 18 22:04:51 tp kernel: [ 759.963982] af9015_read_config: [0] xtal:2 set adc_clock:28000
Aug 18 22:04:51 tp kernel: [ 759.967843] af9015_read_config: [0] IF1:36125
Aug 18 22:04:51 tp kernel: [ 759.970998] af9015_read_config: [0] MT2060 IF1:1220
Aug 18 22:04:51 tp kernel: [ 759.972532] af9015_read_config: [0] tuner id:130
Aug 18 22:04:51 tp kernel: [ 759.973265] af9015_identify_state: reply:01
Aug 18 22:04:51 tp kernel: [ 759.973274] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
Aug 18 22:04:51 tp kernel: [ 759.999217] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
Aug 18 22:04:51 tp kernel: [ 759.999226] af9015_download_firmware:
Aug 18 22:04:51 tp kernel: [ 760.083687] af9015_usb_probe: interface:1
Aug 18 22:04:51 tp kernel: [ 760.083749] usb 4-2: USB disconnect, address 38
Aug 18 22:04:51 tp kernel: [ 760.103630] af9015_usb_device_exit:
Aug 18 22:04:51 tp kernel: [ 760.103635] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
Aug 18 22:04:51 tp kernel: [ 760.103697] af9015_usb_device_exit:
Aug 18 22:04:51 tp kernel: [ 760.103699] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
Aug 18 22:04:51 tp kernel: [ 760.196143] usb 4-2: new high speed USB device using ehci_hcd and address 39
Aug 18 22:04:52 tp kernel: [ 760.350085] usb 4-2: configuration #1 chosen from 1 choice
Aug 18 22:04:52 tp kernel: [ 760.350580] af9015_usb_probe: interface:0
Aug 18 22:04:52 tp kernel: [ 760.351997] af9015_read_config: IR mode:1
Aug 18 22:04:52 tp kernel: [ 760.361579] af9015_read_config: TS mode:0
Aug 18 22:04:52 tp kernel: [ 760.363239] af9015_read_config: [0] xtal:2 set adc_clock:28000
Aug 18 22:04:52 tp kernel: [ 760.367877] af9015_read_config: [0] IF1:36125
Aug 18 22:04:52 tp kernel: [ 760.370952] af9015_read_config: [0] MT2060 IF1:1220
Aug 18 22:04:52 tp kernel: [ 760.372499] af9015_read_config: [0] tuner id:130
Aug 18 22:04:52 tp kernel: [ 760.372941] af9015_identify_state: reply:02
Aug 18 22:04:52 tp kernel: [ 760.372948] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
Aug 18 22:04:52 tp kernel: [ 760.373024] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
Aug 18 22:04:52 tp kernel: [ 760.373848] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
Aug 18 22:04:52 tp kernel: [ 760.374240] af9015_af9013_frontend_attach: init I2C
Aug 18 22:04:52 tp kernel: [ 760.374245] af9015_i2c_init:
Aug 18 22:04:52 tp kernel: [ 760.402480] 00: 2c 1a 97 0b 00 00 00 00 a4 15 16 90 00 02 01 02
Aug 18 22:04:52 tp kernel: [ 760.434136] 10: 00 80 00 fa fa 10 40 ef 01 30 31 30 31 30 34 30
Aug 18 22:04:52 tp kernel: [ 760.461589] 20: 31 30 38 30 30 30 30 31 ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.480674] 30: 00 00 3a 01 00 08 02 00 1d 8d c4 04 82 ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.494160] 40: ff ff ff ff ff 08 02 00 1d 8d c4 04 82 ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.508045] 50: ff ff ff ff ff 24 00 00 04 03 09 04 10 03 41 00
Aug 18 22:04:52 tp kernel: [ 760.521327] 60: 66 00 61 00 74 00 65 00 63 00 68 00 0c 03 44 00
Aug 18 22:04:52 tp kernel: [ 760.534550] 70: 56 00 42 00 2d 00 54 00 20 03 30 00 31 00 30 00
Aug 18 22:04:52 tp kernel: [ 760.547674] 80: 31 00 30 00 31 00 30 00 31 00 30 00 36 00 30 00
Aug 18 22:04:52 tp kernel: [ 760.561136] 90: 30 00 30 00 30 00 31 00 00 ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.574383] a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.589803] b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.603388] c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.618904] d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.640390] e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.664482] f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:04:52 tp kernel: [ 760.667478] af9013: firmware version:4.95.0
Aug 18 22:04:52 tp kernel: [ 760.673472] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
Aug 18 22:04:52 tp kernel: [ 760.673522] af9015_tuner_attach:
Aug 18 22:04:52 tp kernel: [ 760.675948] MT2060: successfully identified (IF1 = 1220)
Aug 18 22:04:53 tp kernel: [ 761.246316] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
Aug 18 22:04:53 tp kernel: [ 761.246328] af9015_init:
Aug 18 22:04:53 tp kernel: [ 761.246331] af9015_init_endpoint: USB speed:3
Aug 18 22:04:53 tp kernel: [ 761.257393] af9015_download_ir_table:
Aug 18 22:04:53 tp kernel: [ 761.260374] input: Afatech DVB-T as /devices/pci0000:00/0000:00:1d.7/usb4/4-2/4-2:1.1/input/input32
Aug 18 22:04:53 tp kernel: [ 761.362194] input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-2

When I did only make;sudo make install (and it does NOT work) I get dmesg on device insert:
Aug 18 22:01:53 tp kernel: [ 729.692630] usb 4-2: new high speed USB device using ehci_hcd and address 36
Aug 18 22:01:53 tp kernel: [ 729.846042] usb 4-2: configuration #1 chosen from 1 choice
Aug 18 22:01:53 tp kernel: [ 729.846471] af9015_usb_probe: interface:0
Aug 18 22:01:53 tp kernel: [ 729.847824] af9015_read_config: IR mode:1
Aug 18 22:01:53 tp kernel: [ 729.858341] af9015_read_config: TS mode:0
Aug 18 22:01:53 tp kernel: [ 729.860055] af9015_read_config: [0] xtal:2 set adc_clock:28000
Aug 18 22:01:53 tp kernel: [ 729.864829] af9015_read_config: [0] IF1:36125
Aug 18 22:01:53 tp kernel: [ 729.867861] af9015_read_config: [0] MT2060 IF1:1220
Aug 18 22:01:53 tp kernel: [ 729.869369] af9015_read_config: [0] tuner id:130
Aug 18 22:01:53 tp kernel: [ 729.869931] af9015_identify_state: reply:01
Aug 18 22:01:53 tp kernel: [ 729.869938] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
Aug 18 22:01:53 tp kernel: [ 729.884530] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
Aug 18 22:01:53 tp kernel: [ 729.884539] af9015_download_firmware:
Aug 18 22:01:54 tp kernel: [ 729.957170] af9015_usb_probe: interface:1
Aug 18 22:01:54 tp kernel: [ 729.957305] usb 4-2: USB disconnect, address 36
Aug 18 22:01:54 tp kernel: [ 729.961905] af9015_usb_device_exit:
Aug 18 22:01:54 tp kernel: [ 729.961913] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
Aug 18 22:01:54 tp kernel: [ 729.962053] af9015_usb_device_exit:
Aug 18 22:01:54 tp kernel: [ 729.962056] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
Aug 18 22:01:54 tp kernel: [ 730.059946] usb 4-2: new high speed USB device using ehci_hcd and address 37
Aug 18 22:01:54 tp kernel: [ 730.214357] usb 4-2: configuration #1 chosen from 1 choice
Aug 18 22:01:54 tp kernel: [ 730.214766] af9015_usb_probe: interface:0
Aug 18 22:01:54 tp kernel: [ 730.216244] af9015_read_config: IR mode:1
Aug 18 22:01:54 tp kernel: [ 730.217866] af9015_read_config: TS mode:0
Aug 18 22:01:54 tp kernel: [ 730.220446] af9015_read_config: [0] xtal:2 set adc_clock:28000
Aug 18 22:01:54 tp kernel: [ 730.223514] af9015_read_config: [0] IF1:36125
Aug 18 22:01:54 tp kernel: [ 730.226482] af9015_read_config: [0] MT2060 IF1:1220
Aug 18 22:01:54 tp kernel: [ 730.227977] af9015_read_config: [0] tuner id:130
Aug 18 22:01:54 tp kernel: [ 730.228476] af9015_identify_state: reply:02
Aug 18 22:01:54 tp kernel: [ 730.228479] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
Aug 18 22:01:54 tp kernel: [ 730.228510] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
Aug 18 22:01:54 tp kernel: [ 730.228832] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
Aug 18 22:01:54 tp kernel: [ 730.229008] af9015_af9013_frontend_attach: init I2C
Aug 18 22:01:54 tp kernel: [ 730.229010] af9015_i2c_init:
Aug 18 22:01:54 tp kernel: [ 730.258153] 00: 2c 1a 97 0b 00 00 00 00 a4 15 16 90 00 02 01 02
Aug 18 22:01:54 tp kernel: [ 730.285104] 10: 00 80 00 fa fa 10 40 ef 01 30 31 30 31 30 34 30
Aug 18 22:01:54 tp kernel: [ 730.307676] 20: 31 30 38 30 30 30 30 31 ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.321213] 30: 00 00 3a 01 00 08 02 00 1d 8d c4 04 82 ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.334400] 40: ff ff ff ff ff 08 02 00 1d 8d c4 04 82 ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.348213] 50: ff ff ff ff ff 24 00 00 04 03 09 04 10 03 41 00
Aug 18 22:01:54 tp kernel: [ 730.361773] 60: 66 00 61 00 74 00 65 00 63 00 68 00 0c 03 44 00
Aug 18 22:01:54 tp kernel: [ 730.375442] 70: 56 00 42 00 2d 00 54 00 20 03 30 00 31 00 30 00
Aug 18 22:01:54 tp kernel: [ 730.388763] 80: 31 00 30 00 31 00 30 00 31 00 30 00 36 00 30 00
Aug 18 22:01:54 tp kernel: [ 730.402649] 90: 30 00 30 00 30 00 31 00 00 ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.415237] a0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.428964] b0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.442202] c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.455585] d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.468783] e0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.483411] f0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Aug 18 22:01:54 tp kernel: [ 730.486409] af9013: firmware version:4.95.0
Aug 18 22:01:54 tp kernel: [ 730.492407] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
Aug 18 22:01:54 tp kernel: [ 730.492483] af9015_tuner_attach:
Aug 18 22:01:54 tp kernel: [ 730.493271] mt2060 I2C read failed
Aug 18 22:01:54 tp kernel: [ 730.493350] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
Aug 18 22:01:54 tp kernel: [ 730.493355] af9015_init:
Aug 18 22:01:54 tp kernel: [ 730.493358] af9015_init_endpoint: USB speed:3
Aug 18 22:01:54 tp kernel: [ 730.509864] af9015_download_ir_table:
Aug 18 22:01:54 tp kernel: [ 730.514170] input: Afatech DVB-T as /devices/pci0000:00/0000:00:1d.7/usb4/4-2/4-2:1.1/input/input31
Aug 18 22:01:55 tp kernel: [ 730.609633] input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-2


So how do I do to simply get the device working whenever I insert it?

seanemerald
January 6th, 2009, 08:07 AM
I got my card running some time ago after following the steps given in the link below:

http://cutec.wordpress.com/2008/09/04/xubuntu-hardy-8041-fujtech-dvb-t-usb-stick-and-how-to-install-drivers/

In order to watch TV with VLC, first generate a channel.conf file, based on the steps given in the link below, and then just open it with VLC player!

http://davidwinter.me.uk/articles/2008/02/08/watching-freeview-dvb-t-tv-with-vlc-player-on-ubuntu/

Works like a charm for me!

orastem
January 10th, 2009, 09:47 PM
Mvirkkil, you're an absolute legend. It worked for me perfectly. How did you figure it all out?

mrdeadman
January 12th, 2009, 07:08 PM
Does anybody managed to get the Remote working?

dkrix
February 2nd, 2009, 05:38 AM
I'm having partial success with the Leadtek Winfast DTV Gold Dongle (apparently has af9015). Following instructions similar to those above (actually, these: http://www.mythtv.org/wiki/Winfast_DTV_Dongle_Gold ), it is recognised and "works" - but only a few channels are found. mythTV acually reports it as an af9013 when configuring it.

I'm actually using mythTV installed over existing ubuntu, rather than "real" mythbuntu.

The scan progress comments in mythTV show many more signal strengths than reported channels - which I presume correspond to the missing channels - eg, it might display 56% signal, and stop at that spot for a while, but report no corresponding channel, and later find several channels quickly. The channels found, when later viewing them, report about 33% signal strength - lower than at least one aparently skipped. All expected channels are found in windows, when using the software that came with the unit.

I haven't tried the remote yet.

Anyone else having problems getting all channels? (and solved them)

edy80y
February 10th, 2009, 01:52 AM
I too have successfully setup the dongle to work on my PC Running Ubuntu and MythTV on top.

With the remote, apart from it not registering the correct function for the button i press, it also looks like it locks the key down (as if you keep your finger on a key on the keyboard).

How do we overcome this??

Henkru
February 25th, 2009, 02:35 PM
I trying install this my asus eeepc, but i get this error.
make -C /home/xand3r/af9015-a57ea2073e77/v4l
make[1]: Entering directory `/home/xand3r/af9015-a57ea2073e77/v4l'
Updating/Creating .config
Preparing to compile for kernel version 2.6.27
File not found: /lib/modules/2.6.27-8-eeepc/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'. Stop.
make[1]: Leaving directory `/home/xand3r/af9015-a57ea2073e77/v4l'
make: *** [all] Error 2

EDIT.
Solved. I musted install linux-headers-eeepc packet.

piginabox
March 7th, 2009, 09:56 AM
It works out-of-the-box now with 9.04 Alpha 5. I installed Kaffeine from a Live Ubuntu session and scanned and watched DVB-T channels with no problems.

cheers

dal
August 6th, 2009, 06:12 AM
Mine has decided to start playing up on me. I haven't used it since 8.04 was new(ish), but decided to drag it out and see if I could get it going on my 9.04 system. Following the instructions in the 7th post I run into a problem with the i2c-core module, as it doesn't seem to exist under my current kernel (2.6.28 )'s modules tree. I do have i2c-ocores.ko though, so I tried putting that in there instead, as well as i2c-dev, assuming that i2c-core was renamed to one of these in one of the intervening kernel revisions. Moving on from that, the other modules inserted ok until I got to dvb_usb_af9015. When I modprobe this one, the console hangs for a minute or so, returns me to the prompt. When I dmesg, I see this:

[381816.686085] dvb-usb: found a 'Leadtek WinFast DTV Dongle Gold' in cold state, will try to load a firmware
[381816.686089] usb 1-2: firmware: requesting dvb-usb-af9015.fw
[381876.684541] dvb-usb: did not find the firmware file. (dvb-usb-af9015.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)
[381876.684552] dvb_usb_af9015: probe of 1-2:1.0 failed with error -2

BUT - the firmware (dvb-usb-af9015.fw) is at /lib/firmware, like it's meant to be.

Also, like the guy a dozen or so posts back, my device doesn't show up in lsusb. When I first realised this I was worried it might be dead, but then I realised the "found a 'Leadtek WinFast DTV Dongle Gold' in cold state, will try to load a firmware" message (and the one after it) in dmesg show up on plugging the device in, so it must still be working somewhat.

Anyone hit problems like this?

dal
August 6th, 2009, 06:39 AM
Just unplugged the device and plugged it back in, and got this dmesg output:

[382943.839367] usb 1-2: USB disconnect, address 5
[382948.604049] usb 1-2: new high speed USB device using ehci_hcd and address 6
[382948.740537] usb 1-2: configuration #1 chosen from 1 choice
[382948.752077] dvb-usb: found a 'Leadtek WinFast DTV Dongle Gold' in cold state, will try to load a firmware
[382948.752081] usb 1-2: firmware: requesting dvb-usb-af9015.fw
[383008.752540] dvb-usb: did not find the firmware file. (dvb-usb-af9015.fw) Please see linux/Documentation/dvb/ for more details on firmware-problems. (-2)
[383008.752549] dvb_usb_af9015: probe of 1-2:1.0 failed with error -2
[383008.754903] input: Leadtek WinFast DTV Dongle Gold as /devices/pci0000:00/0000:00:1a.7/usb1/1-2/1-2:1.1/input/input17
[383008.769358] generic-usb 0003:0413:6029.000C: input,hidraw5: USB HID v1.01 Keyboard [Leadtek WinFast DTV Dongle Gold] on usb-0000:00:1a.7-2/input1


not sure if those extra couple of lines are relevant at all (the last two lines weren't showing up for me before).

The device still doesn't show up in lsusb

Also, I've found two different size copies of dvb-usb-af9015.fw on the net, one is 12700 bytes, the other 15913. Same result trying to modprobe dvb-usb-af9015 with each.

Is there anywhere other than /lib/firmware that the kernel module could be expecting the .fw file to be located?

dal
August 13th, 2009, 02:46 AM
update: tried the device in my laptop again. It works fine under windowsXP, but now when I reboot into ubuntu and try it I see this in dmesg:

[ 10.918965] dvb-usb: found a 'Leadtek WinFast DTV Dongle Gold' in cold state, will try to load a firmware
[ 10.918973] usb 1-3: firmware: requesting dvb-usb-af9015.fw
[ 10.966265] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
[ 11.020556] dvb-usb: found a 'Leadtek WinFast DTV Dongle Gold' in warm state.
[ 11.020649] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 11.020963] DVB: registering new adapter (Leadtek WinFast DTV Dongle Gold)
[ 11.583964] af9013: firmware version:4.65.0
[ 11.588467] DVB: registering adapter 0 frontend 0 (Afatech AF9013 DVB-T)...
[ 12.003139] dvb-usb: schedule remote query interval to 150 msecs.
[ 12.003143] dvb-usb: Leadtek WinFast DTV Dongle Gold successfully initialized and connected.
[ 12.137657] usbcore: registered new interface driver dvb_usb_af9015
[ 12.152339] af9015: command failed:255
[ 12.152346] dvb-usb: error while querying for an remote control event.

Those last two lines repeat ad nauseum at the rate of about half a dozen times a second.

Anyone seen this error before?

sucitram
August 16th, 2009, 07:04 PM
dal.

That error you are seeing is due to the old firmware.
[ 11.583964] af9013: firmware version:4.65.0
You're running with 4.65.0 but 4.95.0 is the latest

you can download the latest version from here (http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/)
I'm using 4.95.0 and it removed these issues completely

You simply need to save the file to to you're /lib/firmwares/ directory

dal
August 20th, 2009, 08:43 AM
dal.

That error you are seeing is due to the old firmware.

You're running with 4.65.0 but 4.95.0 is the latest

you can download the latest version from here (http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/)
I'm using 4.95.0 and it removed these issues completely

You simply need to save the file to to you're /lib/firmwares/ directory

Absolutely right, thanks a bunch :)

geekyhawkes
August 20th, 2009, 03:09 PM
My Kworld U399 AF9015 dual tunner worked fine once i compiled and installed the v4l lib from hg.

I guess i was just lucky (im running 9.04 64bit if that matters)

em4mapson
November 4th, 2009, 06:51 PM
I had some problems getting af9015 to work (again) after running kernel update on 8.10. Just wanted to tell how I made it work, it might help somebody...

Here is what did first:
-cp the firmware to /lib/firmware/`uname -r`/dvb-usb-af9015.fw
-got latest from http://linuxtv.org/hg/~anttip/af9015/
(then in the extracted af9015 folder)
-$make all
-$sudo make install

plug usb in => not working

Then:
-delete latest af9015 & extract it again (although $make clean should be enough)
(in the extracted af9015 folder)
-$make rminstall (cleans previous installations of V4L/DVB modules)
-$make
-$make install

plug usb in => it works!
So, starting from the clean and removing previous installation made the magic happen...

fusionzone
November 25th, 2009, 11:32 AM
Hi all i tried installing the driver and firmware files mentioned but still not able to get my AF9016 working.

I check lsmod and it shows that 15a4:9016 detected but no matter how i reinstall the driver i still cannot find /dev/dvr ?

Can any one enlighten me on the problem i am facing thanks.

Regards
Andy

bertm90
November 25th, 2009, 02:27 PM
I also just received a unit with usb id 15a4:9016. Drivers compiled fine, but it won't work. Already tried different firmware versions.

dmesg output:
[ 1009.750949] usbcore: registered new interface driver dvb_usb_af9015
[ 1056.460344] usb 2-3: new high speed USB device using ehci_hcd and address 6
[ 1056.616049] usb 2-3: configuration #1 chosen from 1 choice
[ 1056.640930] af9015: tuner id:179 not supported, please report!
[ 1056.643683] Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
[ 1056.644100] input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:1d.7/usb2/2-3/2-3:1.1/input/input15
[ 1056.644197] generic-usb 0003:15A4:9016.0005: input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:1d.7-3/input1

I'll try to open it tonight and see what kind of chips are inside.

Anyone?

bertm90
November 25th, 2009, 03:12 PM
Alright, I've tracked down the problem with my device. It has the TDA18218HK tuner chip, which is not supported by any driver.

Are there any traces of someone working on such a driver?