USB DVB-T: TDA18218 not yet compiled in af9015

Bug #622397 reported by Sander Jonkers
84
This bug affects 19 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned
Nominated for Maverick by Joe

Bug Description

Short: This is a request to get the TDA18218 patched compiled into the Ubuntu Linux kernel.

Long:

I have a DVB-T USB stick with an af9015 chip, and a TDA18218 tuner. The TDA18218 is not recognized. This is a well known problem. The relevant message in /var/log/messages is:

af9015: tuner id:179 not supported, please report!

For some months, there is a patch to make the tda18218 work. I've created an (ugly, as I had to remove firedtv stuff) script to make it work. See http://ubuntuforums.org/showpost.php?p=9723087&postcount=133 and below.

So: can the TDA18218 stuff be included into the standard Ubuntu kernel?

Complete /var/log/messages:

Aug 22 21:00:44 athlon64 kernel: [ 75.290038] usb 1-6: new high speed USB device using ehci_hcd and address 5
Aug 22 21:00:44 athlon64 kernel: [ 75.444770] usb 1-6: configuration #1 chosen from 1 choice
Aug 22 21:00:44 athlon64 kernel: [ 75.448016] Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
Aug 22 21:00:44 athlon64 kernel: [ 75.448378] input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:13.5/usb1/1-6/1-6:1.1/input/input6
Aug 22 21:00:44 athlon64 kernel: [ 75.448499] generic-usb 0003:15A4:9016.0003: input,hidraw2: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:13.5-6/input1
Aug 22 21:00:44 athlon64 kernel: [ 75.552398] af9015: tuner id:179 not supported, please report!
Aug 22 21:00:44 athlon64 kernel: [ 75.552442] usbcore: registered new interface driver dvb_usb_af9015

sander@athlon64:~$ lsusb
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 03f0:0024 Hewlett-Packard KU-0316 Keyboard
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 002: ID 046d:c016 Logitech, Inc. M-UV69a/HP M-UV96 Optical Wheel Mouse
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 005: ID 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T USB2.0 stick
Bus 001 Device 004: ID 059f:1019 LaCie, Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
sander@athlon64:~$

sander@athlon64:~$ uname -a
Linux athlon64 2.6.32-24-generic #41-Ubuntu SMP Thu Aug 19 01:38:40 UTC 2010 x86_64 GNU/Linux

sander@athlon64:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=10.04
DISTRIB_CODENAME=lucid
DISTRIB_DESCRIPTION="Ubuntu 10.04.1 LTS"
sander@athlon64:~$

Script to get the TDA18218 compiled in:

#!/bin/sh
# sanderj, thanks to size_XXM
# http://ubuntuforums.org/showthread.php?p=9722751#post9722751
# 2010-08-15, 2

sudo apt-get install mercurial

DIR=tda18218-attempt.`uname -r`.$$
cd ~
mkdir usb-dvb
cd usb-dvb
mkdir $DIR
cd $DIR
echo "hallo" > file.txt

hg clone http://linuxtv.org/hg/~anttip/tda18218/
cd tda18218/
time make
sed -i 's/FIREDTV=m/FIREDTV=n/g' v4l/.config
time make
sudo make install
# wget http://palosaari.fi/linux/v4l-dvb/firmware/af9015/4.95.0.0/dvb-usb-af9015.fw
wget http://palosaari.fi/linux/v4l-dvb/firmware/af9015/5.1.0.0/dvb-usb-af9015.fw
sudo cp dvb-usb-af9015.fw /lib/firmware/

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: linux-image-2.6.32-24-generic 2.6.32-24.41
Regression: No
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.32-24.41-generic 2.6.32.15+drm33.5
Uname: Linux 2.6.32-24-generic x86_64
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.21.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: sander 1697 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xfe020000 irq 16'
   Mixer name : 'Realtek ALC883'
   Components : 'HDA:10ec0883,10438232,00100002'
   Controls : 38
   Simple ctrls : 21
Card1.Amixer.info:
 Card hw:1 'HDMI'/'HDA ATI HDMI at 0xfdcfc000 irq 19'
   Mixer name : 'ATI RS690/780 HDMI'
   Components : 'HDA:1002791a,00791a00,00100000'
   Controls : 4
   Simple ctrls : 1
Card1.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
Date: Sun Aug 22 21:01:14 2010
HibernationDevice: RESUME=UUID=d6d1a648-4c1a-4ce5-8e0f-74a76cf87952
MachineType: System manufacturer System Product Name
ProcCmdLine: root=UUID=6315540a-5dd2-4fc2-9143-e56c4c5527f0 ro quiet splash
ProcEnviron:
 LANG=en_US.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.34.1
RfKill:

SourcePackage: linux
WpaSupplicantLog:

dmi.bios.date: 10/22/2008
dmi.bios.vendor: Phoenix Technologies, LTD
dmi.bios.version: ASUS M2A-VM HDMI ACPI BIOS Revision 2201
dmi.board.name: M2A-VM HDMI
dmi.board.vendor: ASUSTeK Computer INC.
dmi.board.version: 1.XX
dmi.chassis.asset.tag: 123456789000
dmi.chassis.type: 3
dmi.chassis.vendor: Chassis Manufacture
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnPhoenixTechnologies,LTD:bvrASUSM2A-VMHDMIACPIBIOSRevision2201:bd10/22/2008:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKComputerINC.:rnM2A-VMHDMI:rvr1.XX:cvnChassisManufacture:ct3:cvrChassisVersion:
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
Sander Jonkers (jonkers) wrote :
Revision history for this message
Sander Jonkers (jonkers) wrote :

PS:

Best to run the script with sudo.
Running the script (Compiling) takes 10 - 40 minutes, depending on the speed of your machine
I will post the /var/log/messages with the corrert drivers in place (ie after running my script)

Revision history for this message
Sander Jonkers (jonkers) wrote :

Bug report https://bugs.launchpad.net/ubuntu/+source/kaffeine/+bug/553320 has the same problem ("af9015: tuner id:179 not supported, please report!"), but the bug report is incorrectly linked to kaffeine; it's a kernel driver problem.

Revision history for this message
Sander Jonkers (jonkers) wrote :

After running my script (compiling took 18 minutes on my Athlon X2), and a reboot, the /var/log/messages shows that the USB-stick is recognized (see below): "NXP TDA18218HN successfully identified.".

IMHO this means the patch is correct, and I hope it can get into the mainstream kernel.

Aug 22 21:36:17 athlon64 kernel: [ 63.590664] af9015_read_config: [0] tuner id:179
Aug 22 21:36:17 athlon64 kernel: [ 63.590905] af9015_identify_state: reply:01
Aug 22 21:36:17 athlon64 kernel: [ 63.590908] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
Aug 22 21:36:17 athlon64 kernel: [ 63.590913] usb 1-6: firmware: requesting dvb-usb-af9015.fw
Aug 22 21:36:17 athlon64 kernel: [ 63.605161] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
Aug 22 21:36:17 athlon64 kernel: [ 63.605165] af9015_download_firmware:
Aug 22 21:36:17 athlon64 kernel: [ 63.674174] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
Aug 22 21:36:17 athlon64 kernel: [ 63.674241] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
Aug 22 21:36:17 athlon64 kernel: [ 63.674797] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
Aug 22 21:36:17 athlon64 kernel: [ 63.676965] af9015_af9013_frontend_attach: init I2C
Aug 22 21:36:17 athlon64 kernel: [ 63.676969] af9015_i2c_init:
Aug 22 21:36:17 athlon64 kernel: [ 63.721676] af9013: firmware version:5.1.0.0
Aug 22 21:36:17 athlon64 kernel: [ 63.724715] DVB: registering adapter 0 frontend 0 (Afatech AF9013 DVB-T)...
Aug 22 21:36:17 athlon64 kernel: [ 63.724824] af9015_tuner_attach:
Aug 22 21:36:17 athlon64 kernel: [ 63.752179] >>> 22 49 c1 00 00 00 01 01
Aug 22 21:36:17 athlon64 kernel: [ 63.753552] <<< 49 00 c0
Aug 22 21:36:17 athlon64 kernel: [ 63.754177] NXP TDA18218HN successfully identified.
Aug 22 21:36:17 athlon64 kernel: [ 63.754181] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
Aug 22 21:36:17 athlon64 kernel: [ 63.754184] af9015_init:
Aug 22 21:36:17 athlon64 kernel: [ 63.754185] af9015_init_endpoint: USB speed:3
Aug 22 21:36:17 athlon64 kernel: [ 63.759677] af9015_download_ir_table:
Aug 22 21:36:17 athlon64 kernel: [ 63.759732] usbcore: registered new interface driver dvb_usb_af9015

Revision history for this message
Sander Jonkers (jonkers) wrote :
Download full text (4.5 KiB)

Additional remark: the need to not-compile firedtv has to do with another bug, as http://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers#Building.2FCompiling_the_Modules says:

/QUOTE
Building/Compiling the Modules
Note: If you are using Ubuntu, before proceeding to build the modules, you will have to edit the file v4l/.config and change the line for the firedtv driver from "firedtv=m" to "firedtv=n". The reason for this necessity is because Ubuntu has a bug in their packaging of the kernel headers that results in a fatal compilation error within the v4l-dvb build process when it reaches the firedtv module. This is a long standing issue, and one of the most frequently reported on the mailing list. Please nag the crap out of Ubuntu package managers to fix this problem!
/UNQUOTE

Some errors when compiling with the firedtv module still on "m" (not "n"):

make[2]: Entering directory `/usr/src/linux-headers-2.6.32-24-generic'
  CC [M] /home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.o
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:21:17: error: dma.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:22:21: error: csr1212.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:23:23: error: highlevel.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:24:19: error: hosts.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:25:22: error: ieee1394.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:26:17: error: iso.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:27:21: error: nodemgr.h: No such file or directory
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:40: warning: 'struct hpsb_iso' declared inside parameter list
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:40: warning: its scope is only this definition or declaration, which is probably not what you want
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c: In function 'rawiso_activity_cb':
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:56: error: dereferencing pointer to incomplete type
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:57: error: implicit declaration of function 'hpsb_iso_n_ready'
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:64: error: dereferencing pointer to incomplete type
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:65: error: implicit declaration of function 'dma_region_i'
/home/sander/usb-dvb/tda18218-attempt.2.6.32-24-generic.3092/tda18218/v4l/firedtv-1394.c:65: error: derefere...

Read more...

Revision history for this message
Sander Jonkers (jonkers) wrote :

The status is now "Nominated for Maverick by Joe".

What are the chances this af9015 / TDA18218 bugfix will get into the official Maverick release, so ultimately (before) 10-10-10? Reason: I believe there's now a feature freeze in place for Maverick, so I'm wondering about the Maverick feasibility...

And: Can I follow the progress somewhere?

Revision history for this message
Sander Jonkers (jonkers) wrote :

A tip for Do-It-Yourself-ers: it seems you can check which af9015 driver has been tda18218 patched (by yourself ;-( ). Howto: run the one-liner below, and if it says "tda18218_attach" on the next line, it's patched.

Below is my output; apparantly I've two version patched, the others not.

sander@athlon64:~$ locate -i af9015 | grep lib/modules | grep -vi home | awk '{ print "ls -al " $1 " ; strings " $1 " | grep 18218 | head -1; echo ; echo" }' | /bin/sh

-rw-r--r-- 1 root root 65560 2010-01-03 12:30 /lib/modules/2.6.28-17-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko

-rw-r--r-- 1 root root 50160 2010-03-24 10:24 /lib/modules/2.6.31-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko

-rw-r--r-- 1 root root 61376 2010-08-15 12:14 /lib/modules/2.6.32-21-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko
tda18218_attach

-rw-r--r-- 1 root root 51680 2010-06-04 00:54 /lib/modules/2.6.32-22-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko

-rw-r--r-- 1 root root 51680 2010-06-11 13:29 /lib/modules/2.6.32-23-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko

-rw-r--r-- 1 root root 61376 2010-08-22 21:32 /lib/modules/2.6.32-24-generic/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9015.ko
tda18218_attach

sander@athlon64:~$

Revision history for this message
Sander Jonkers (jonkers) wrote :

FWIW:

On Maverick Meerkat (Ubuntu 10.10) Alpha 3, the kernel message is

af9015: tuner NXP TDA18218 not supported yet

So let's check if that message is going to disappear in the newer versions ...

Revision history for this message
Jeremy Foshee (jeremyfoshee) wrote :

Hi Sander,

If you could also please test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

    [This is an automated message. Apologies if it has reached you inappropriately; please just reply to this message indicating so.]

tags: added: kj-triage
Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Sander Jonkers (jonkers) wrote : Re: [Bug 622397] Re: USB DVB-T: TDA18218 not yet compiled in af9015

Hi Jeremy,

On which Ubuntu should I test this: Lucid or Maverick?

And which upstream kernel should I use? The most recent dated version within
Lucid or Maverick? So, for Lucid: within
http://kernel.ubuntu.com/~kernel-ppa/mainline/ the
http://kernel.ubuntu.com/~kernel-ppa/mainline/v2.6.35-rc1-lucid/ , dated 1
june 2010?

One more question: I Maverick Meerkat (Ubuntu 10.10) Alpha 3 on August 29
does not support the TDA18281, what are the chances a kernel dated 1 June (3
months older) does support it?

Sander

On Wed, Sep 8, 2010 at 20:20, Jeremy Foshee <email address hidden>wrote:

> Hi Sander,
>
> If you could also please test the latest upstream kernel available that
> would be great. It will allow additional upstream developers to examine the
> issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once
> you've tested the upstream kernel, please remove the
> 'needs-upstream-testing' tag. This can be done by clicking on the yellow
> pencil icon next to the tag located at the bottom of the bug description and
> deleting the 'needs-upstream-testing' text. Please let us know your
> results.
>
> Thanks in advance.
>
> [This is an automated message. Apologies if it has reached you
> inappropriately; please just reply to this message indicating so.]
>
>
> ** Tags added: kj-triage
>
> ** Changed in: linux (Ubuntu)
> Status: New => Incomplete
>
> --
> USB DVB-T: TDA18218 not yet compiled in af9015
> https://bugs.launchpad.net/bugs/622397
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
mlx (myxal-mxl) wrote :

@sander: "Latest upstream" probably means the highest number, meaning whatever is in the http://kernel.ubuntu.com/~kernel-ppa/mainline/daily/current/ directory.

That said, I doubt that would change anything - since the relevant driver isn't in the mainline V4L yet, Ubuntu would need to pull it from the tda18218 branch themselves.

Revision history for this message
Anders (andersja+launchpad-net) wrote :

https://patchwork.kernel.org/patch/82493/

Bert Massop: "This solves the problem of the tuner id:179 not supported error, when loading the AF9015 driver."

Revision history for this message
Sander Jonkers (jonkers) wrote :

Anders,

The patch you're pointing to (dated feb 2010) is incorporated in the source
made by 'anttip' and available on
http://linuxtv.org/hg/~anttip/tda18218/rev/40e288163c8d (dated july 2010)
I'm pointing to (and my script on
http://www.appelboor.com/af9015/usb-dvb-make-script.sh uses )

But, AFAIK, it's still not in the Linux kernel nor in the Ubuntu Linux
kernel .. and that's the point of my bug report / request.

Sander

On Thu, Sep 23, 2010 at 17:06, Anders <email address hidden> wrote:

> https://patchwork.kernel.org/patch/82493/
>
> Bert Massop: "This solves the problem of the tuner id:179 not supported
> error, when loading the AF9015 driver."
>
> --
> USB DVB-T: TDA18218 not yet compiled in af9015
> https://bugs.launchpad.net/bugs/622397
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sander Jonkers (jonkers) wrote :

Maybe good to again post my script that takes care of the driver on Unbutu
10.04 and older, but does not work on Ubuntu 10.10 as the new kernels
(2.6.34+) needs some explicit definition in the c-source file (can't recall
what the error message is):

#!/bin/sh
# sanderj, thanks to size_XXM
# http://ubuntuforums.org/showthread.php?p=9722751#post9722751
# 2010-08-15, 2

sudo apt-get install mercurial

DIR=tda18218-attempt.`uname -r`.$$
cd ~
mkdir usb-dvb
cd usb-dvb
mkdir $DIR
cd $DIR
echo "hallo" > file.txt

hg clone http://linuxtv.org/hg/~anttip/tda18218/
cd tda18218/
time make
sed -i 's/FIREDTV=m/FIREDTV=n/g' v4l/.config
time make
sudo make install
# wget
http://palosaari.fi/linux/v4l-dvb/firmware/af9015/4.95.0.0/dvb-usb-af9015.fw
wget
http://palosaari.fi/linux/v4l-dvb/firmware/af9015/5.1.0.0/dvb-usb-af9015.fw
sudo cp dvb-usb-af9015.fw /lib/firmware/

HTH

Sander

On Thu, Sep 23, 2010 at 18:26, Sander Jonkers - GMX <email address hidden> wrote:

> Anders,
>
> The patch you're pointing to (dated feb 2010) is incorporated in the
> source made by 'anttip' and available on
> http://linuxtv.org/hg/~anttip/tda18218/rev/40e288163c8d (dated july 2010)
> I'm pointing to (and my script on
> http://www.appelboor.com/af9015/usb-dvb-make-script.sh uses )
>
> But, AFAIK, it's still not in the Linux kernel nor in the Ubuntu Linux
> kernel .. and that's the point of my bug report / request.
>
>
> Sander
>
>
> On Thu, Sep 23, 2010 at 17:06, Anders <email address hidden> wrote:
>
>> https://patchwork.kernel.org/patch/82493/
>>
>> Bert Massop: "This solves the problem of the tuner id:179 not supported
>> error, when loading the AF9015 driver."
>>
>> --
>> USB DVB-T: TDA18218 not yet compiled in af9015
>> https://bugs.launchpad.net/bugs/622397
>> You received this bug notification because you are a direct subscriber
>> of the bug.
>>
>
>

Revision history for this message
Maik Wagner (mtwagner) wrote :

I am currently testing the RC of Maverick Meerkat and dmesg gives me the following output:

[ 5396.012057] usb 1-7: new high speed USB device using ehci_hcd and address 4
[ 5396.605870] af9015: tuner NXP TDA18218 not supported yet
[ 5396.605980] usbcore: registered new interface driver dvb_usb_af9015
[ 5396.653243] usbcore: registered new interface driver hiddev
[ 5396.653325] usbcore: registered new interface driver usbhid
[ 5396.653332] usbhid: USB HID core driver

The stick is identified as (lsusb):

Bus 001 Device 004: ID 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T USB2.0 stick

Revision history for this message
Sander Jonkers (jonkers) wrote :

Maik,

Yup, that's exactly the problem. "Solution": stick with 10.04 and run my
script to get your USB stick working.

On Thu, Sep 30, 2010 at 20:26, Maik Wagner <email address hidden>wrote:

> I am currently testing the RC of Maverick Meerkat and dmesg gives me the
> following output:
>
> [ 5396.012057] usb 1-7: new high speed USB device using ehci_hcd and
> address 4
> [ 5396.605870] af9015: tuner NXP TDA18218 not supported yet
> [ 5396.605980] usbcore: registered new interface driver dvb_usb_af9015
> [ 5396.653243] usbcore: registered new interface driver hiddev
> [ 5396.653325] usbcore: registered new interface driver usbhid
> [ 5396.653332] usbhid: USB HID core driver
>
> The stick is identified as (lsusb):
>
> Bus 001 Device 004: ID 15a4:9016 Afatech Technologies, Inc. AF9015 DVB-T
> USB2.0 stick
>
> --
> USB DVB-T: TDA18218 not yet compiled in af9015
> https://bugs.launchpad.net/bugs/622397
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Nel Mac (ittsz) wrote :

Having just installed 10.10 I started to try and get a 'Hi-point' DVB-T usb dongle to work and after a bit of looking about, I found this post. Looking at the script there, it looks like you have near enough the same setup as me on an Asus vm2-hdmi. I'm wondering if the difference(s) between 10.04 and 10.10 will prevent or stop me getting this to work on my machine !!??? Any help is greatly appreciated !! Thx !!

Revision history for this message
Sander Jonkers (jonkers) wrote :

Nel,

Just try the script on your 10.10, and let us know.

One or two months ago, I tried to compile the source on 10.10 alpha, and it
gave errors. After some googling, it looked liked kernel 2.6.34+ needs some
extra #define in the C source code

Sander

On Mon, Oct 11, 2010 at 23:42, Nel Mac <email address hidden> wrote:

> Having just installed 10.10 I started to try and get a 'Hi-point' DVB-T
> usb dongle to work and after a bit of looking about, I found this post.
> Looking at the script there, it looks like you have near enough the same
> setup as me on an Asus vm2-hdmi. I'm wondering if the difference(s)
> between 10.04 and 10.10 will prevent or stop me getting this to work on
> my machine !!??? Any help is greatly appreciated !! Thx !!
>
> --
> USB DVB-T: TDA18218 not yet compiled in af9015
> https://bugs.launchpad.net/bugs/622397
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sander Jonkers (jonkers) wrote :

FYI:

KMK_ECS has posted a method to get the AF9015 TDA18218 combo working on
Ubuntu 10.10. See
http://ubuntuforums.org/showpost.php?p=9979509&postcount=155
<http://ubuntuforums.org/showpost.php?p=9979509&postcount=155>
Half of the method is patching the Ubuntu Linux kernel with the git
repository. See the quote below. The other half of the method is creating an
installable kernel .deb.

If the files mentioned below from the git repository can be put into the
mainstream Ubuntu Linux kernel, I guess this bug is solved for all users.

So, what is needed to achieve this?

QUOTE

http://git.linuxtv.org/anttip/media_tree.git?a=tree;hb=5fe8996a83d3808b7ff9e0a49
80b60b4fed9b1c2
<http://git.linuxtv.org/anttip/media_tree.git?a=tree;hb=5fe8996a83d3808b7ff9e0a4980b60b4fed9b1c2>

Download the following files and put them in the corresponding folders of
the original Maverick kernel source (You have to use the browser to navigate
to the different folders and then click on raw to download the file).
Overwrite the original files in the original kernel source if necessary. I
am sure there is a more convenient way of doing this, maybe someone knows
how? I might create a patch for the Maverick kernel if I find some time.

drivers/media/common/tuners/Kconfig
drivers/media/common/tuners/Makefile
drivers/media/common/tuners/tda18218.c
drivers/media/common/tuners/tda18218.h
drivers/media/common/tuners/tda18218_priv.h
drivers/media/dvb/dvb-usb/Kconfig
drivers/media/dvb/dvb-usb/af9015.c
drivers/media/dvb/frontends/af9013.c
drivers/media/dvb/frontends/af9013_priv.h

/QUOTE

FWIW: with a patched Ubuntu 10.10, /var/log/messages shows the info below:

Oct 25 11:59:47 HPP4 kernel: [45840.248032] usb 1-6: new high speed USB
device using ehci_hcd and address 6
Oct 25 11:59:48 HPP4 kernel: [45840.773904] dvb-usb: found a
'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a
firmware
Oct 25 11:59:48 HPP4 kernel: [45840.955346] dvb-usb: downloading firmware
from file 'dvb-usb-af9015.fw'
Oct 25 11:59:48 HPP4 kernel: [45841.028534] dvb-usb: found a
'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
Oct 25 11:59:48 HPP4 kernel: [45841.029268] dvb-usb: will pass the complete
MPEG2 transport stream to the software demuxer.
Oct 25 11:59:48 HPP4 kernel: [45841.030081] DVB: registering new adapter
(Afatech AF9015 DVB-T USB2.0 stick)
Oct 25 11:59:48 HPP4 kernel: [45841.040377] af9013: firmware version:5.1.0
Oct 25 11:59:48 HPP4 kernel: [45841.045964] DVB: registering adapter 0
frontend 0 (Afatech AF9013 DVB-T)...
Oct 25 11:59:48 HPP4 kernel: [45841.049274] tda18218: NXP TDA18218HN
successfully identified.
Oct 25 11:59:48 HPP4 kernel: [45841.051243] dvb-usb: Afatech AF9015 DVB-T
USB2.0 stick successfully initialized and connected.
Oct 25 11:59:48 HPP4 kernel: [45841.068861] Afatech DVB-T 2: Fixing
fullspeed to highspeed interval: 10 -> 7
Oct 25 11:59:48 HPP4 kernel: [45841.073568] input: Afatech DVB-T 2 as
/devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1/input/input5
Oct 25 11:59:48 HPP4 kernel: [45841.075996] generic-usb 0003:15A4:9016.0004:
input,hidraw0: USB HID v1.01 Keyboard [Afatech DVB-T 2] on
usb-0000:00:1d.7-6/input1

Revision history for this message
joenix (woutersj) wrote :

This tuner is now supported in natty (kernel 2.6.37-6).

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
Sander Jonkers (jonkers) wrote :

The output of /var/log/messages of Natty Alpha 1 looks good, and thus solved:

Dec 4 19:10:35 ubuntu kernel: [ 8681.788333] usb 1-6: new high speed USB device using ehci_hcd and address 8
Dec 4 19:10:35 ubuntu kernel: [ 8681.935099] Afatech DVB-T 2: Fixing fullspeed to highspeed interval: 10 -> 7
Dec 4 19:10:35 ubuntu kernel: [ 8681.936869] input: Afatech DVB-T 2 as /devices/pci0000:00/0000:00:1d.7/usb1/1-6/1-6:1.1/input/input12
Dec 4 19:10:35 ubuntu kernel: [ 8681.938455] generic-usb 0003:15A4:9016.0004: input,hidraw1: USB HID v1.01 Keyboard [Afatech DVB-T 2] on usb-0000:00:1d.7-6/input1
Dec 4 19:10:35 ubuntu kernel: [ 8682.068970] IR NEC protocol handler initialized
Dec 4 19:10:36 ubuntu kernel: [ 8682.140065] IR RC5(x) protocol handler initialized
Dec 4 19:10:36 ubuntu kernel: [ 8682.160444] IR RC6 protocol handler initialized
Dec 4 19:10:36 ubuntu kernel: [ 8682.170691] IR JVC protocol handler initialized
Dec 4 19:10:36 ubuntu kernel: [ 8682.182840] IR Sony protocol handler initialized
Dec 4 19:10:36 ubuntu kernel: [ 8682.235689] lirc_dev: IR Remote Control driver registered, major 250
Dec 4 19:10:36 ubuntu kernel: [ 8682.242496] IR LIRC bridge handler initialized
Dec 4 19:10:36 ubuntu kernel: [ 8682.675416] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
Dec 4 19:10:36 ubuntu kernel: [ 8682.698860] dvb_usb_af9015: probe of 1-6:1.0 failed with error -2
Dec 4 19:10:36 ubuntu kernel: [ 8682.698940] usbcore: registered new interface driver dvb_usb_af9015

ubuntu@ubuntu:~$ uname -a
Linux ubuntu 2.6.37-7-generic #19-Ubuntu SMP Tue Nov 30 23:46:45 UTC 2010 i686 GNU/Linux
ubuntu@ubuntu:~$

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.