Tuesday, May 25, 2010

Installing AF9035 DVB-T USB Tuner on Ubuntu 10.04 (lucid) 64bit

There is already a discussion on http://ubuntuforums.org/showthread.php?t=1364396 but it does not solve the problem.

I tried these steps:

1. Get the 64bit source code from http://www.linux-cam.com/downloads/9035.linux.PC.dvb-tV9.07.10.1.zip

2. Get the kernel source code. My running kernel is 2.6.32.22. So I get the source code of 2.6.32.13

3. Make a folder called AF903x_SRC\v4l\kernel-2.6.32

4. Add the following lines to Makefile:

ifneq (,$(findstring 2.6.32, $(CURRENT)))
@cp -f v4l/kernel-2.6.32/* ./
endif

5. Copy dvb-usb.h and dvb-pll.h from the kernel source code to AF903x_SRC folder

6. Run the following commands from console:

sudo make clean
sudo make
sudo make install


7. Plug-in USB tuner, then run this command: cat /var/log/messages. It shows the following messages:

May 25 21:34:30 HTPC kernel: [215971.529790] usb 2-1: new high speed USB device using ehci_hcd and address 18
May 25 21:34:30 HTPC kernel: [215971.686942] usb 2-1: configuration #1 chosen from 1 choice
May 25 21:34:30 HTPC kernel: [215971.692255] input: Afa Technologies Inc. AF9035A USB Device as /devices/pci0000:00/0000:00:06.1/usb2/2-1/2-1:1.1/input/input25
May 25 21:34:30 HTPC kernel: [215971.692644] generic-usb 0003:15A4:1001.0016: input,hidraw0: USB HID v1.01 Keyboard [Afa Technologies Inc. AF9035A USB Device] on usb-0000:00:06.1-1/input1
May 25 21:34:31 HTPC kernel: [215971.963099] AF903X: af903x_module_init
May 25 21:34:31 HTPC kernel: [215971.963181] DRIVER_RELEASE_VERSION : v9.07.10.1
May 25 21:34:31 HTPC kernel: [215971.963189] FW_RELEASE_VERSION : v8_8_63_0
May 25 21:34:31 HTPC kernel: [215971.963196] API_RELEASE_VERSION : 200.20090402.0
May 25 21:34:31 HTPC kernel: [215972.472189] dvb-usb: found a 'ITEtech USB2.0 DVB-T Recevier' in warm state.
May 25 21:34:31 HTPC kernel: [215972.545942] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
May 25 21:34:31 HTPC kernel: [215972.546762] DVB: registering new adapter (ITEtech USB2.0 DVB-T Recevier)
May 25 21:34:31 HTPC kernel: [215972.547603] DVB: registering adapter 0 frontend 0 (AF903X USB DVB-T)...
May 25 21:34:31 HTPC kernel: [215972.559440] dvb-usb: ITEtech USB2.0 DVB-T Recevier successfully initialized and connected.
May 25 21:34:31 HTPC kernel: [215972.559570] usbcore: registered new interface driver dvb_usb_af903x

Verify the tuner with http://parker1.co.uk/mythtv_dvb.php and get the perfect ABC HDTV. But I am surprised that it's 1280 x 720 - not full HD.

Note: Not sure if disabling usbhid is required. I did that as mentioned in the discussion but did not notice any change before I successfully installed the driver.

7 comments:

  1. Thanks a lot! this actually worked. I'm using fedora and 2.6.33 kernel (fedora kernel, not vanilla), and also had to copy every file dvb-usb.h and dvb-pll.h included themselves. I actually ended up using the same header files from the currentl af9015 mercurial repository, would have probably worked with the fedora 2.6.33 (or the vanilla for that matter) too.

    ReplyDelete
  2. Bad luck for me, it doesn't work

    [ 3604.856607] AF903X: af903x_module_init
    [ 3604.856651] usbcore: registered new interface driver dvb_usb_af903x
    [ 3611.375856] usb 2-1: USB disconnect, address 2
    [ 3615.040137] usb 2-1: new high speed USB device using ehci_hcd and address 7
    [ 3615.196814] usb 2-1: configuration #1 chosen from 1 choice
    [ 3615.201303] input: Afa Technologies Inc. AF9035A USB Device as /devices/pci0000:00/0000:00:1d.7/usb2/2-1/2-1:1.1/input/input12
    [ 3615.201481] generic-usb 0003:0B05:1779.0003: input,hidraw0: USB HID v1.01 Keyboard [Afa Technologies Inc. AF9035A USB Device] on usb-0000:00:1d.7-1/input1

    I never get "found a 'ITEtech USB2.0 DVB-T Recevier'"

    Nicolas

    ReplyDelete
  3. Yes, it works. However in addition to dvb-usb.h and dvb-pll.h you need to copy from linux sources similar files *.h which exists in v4l/kernel-2.6.29 folder, but make sure you copy it from linux-sources!

    ReplyDelete
  4. Does anyone have an alternative source of the 9035.linux.PC.dvb-tV9.07.10.1.zip file? It is no longer available at this URL (or anywhere else I can find). I really hope someone out there has kept a copy of it.

    ReplyDelete
  5. Same inquiry, need file 9035.linux.PC.dvb-tV9.07.10.1.zip or MiniTV_For_Linux.rar (including driver 9.08.14.1) or ITE-Linux-AF903x-v9.08.14.1.sh (same file, just outside rar). If anyone has it, please upload it somewhere!

    ReplyDelete
  6. I managed to get driver 9.08.14.1 after emailing itesupport@ite.com.tw . They send me the file after a couple of days. If you want it, either also contact ite support or contact me by email to malakudi at gmail dot com.

    ReplyDelete
  7. Mine problem is the device is recognized as a keyboard, quirks is not working. any options to avoid usbhid to take control of the device? any idea guys?


    [ 1.236019] usb 1-4: new high speed USB device using ehci_hcd and address 3
    [ 1.391440] input: Afa Technologies Inc. AF9035A USB Device as /devices/pci0000:00/0000:00:02.1/usb1/1-4/1-4:1.1/input/input2
    [ 1.391539] generic-usb 0003:0B05:1779.0001: input,hidraw0: USB HID v1.01 Keyboard [Afa Technologies Inc. AF9035A USB Device] on usb-0000:00:02.1-4/input1
    [ 1.391559] usbcore: registered new interface driver usbhid

    ReplyDelete