Re: Afatech DVB-T - Installation Guide - v0.1.1j (70% working)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Antti Palosaari wrote:
> Jelle de Jong wrote:
>> Antti Palosaari wrote:
>>> hello Jelle,
>>> sorry for top-posting...
>>>
>>> Error from attached file:
>>>
>>> [   57.163981] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
>>> [   57.277990] af9015: command failed:2
>>> [   57.278001] mt2060 I2C read failed
>>>
>>> goes to the fact that I2C-communication towards tuner is behind I2C-gate 
>>> of the AF9015/AF9013. MT2060 you use does not have I2C-gate implemented. 
>>> Use newer MT2060 module for correct functionality.
>>>
>>> See for more information:
>>> http://palosaari.fi/linux/v4l-dvb/controlling_tuner.txt
>>> http://palosaari.fi/linux/v4l-dvb/controlling_tuner_af9015_dual_demod.txt
>>>
>>> reagrds
>>> Antti
>> Thanks for the information, since one of my specializations is embedded
>> hardware development, I do understand the presented issues.
>>
>> Should there not be an option to the MT2060 module to use the I2C-gate
>> or not? What can I do to get this device working now?
> 
> There is no option for I2C-gate, gate will be called every time when 
> access to tuner is needed. If you already use MT2060 coming with AF9015 
> driver it should work. I doubt that you are mixing em2880 driver and 
> af9015 and wrong tuner driver is coming from em2880. But I am not sure. 
> Could you make clean install to see whether or not it is working.
> 
> hg clone http://linuxtv.org/hg/v4l-dvb/
> make
> make install (root privileges)
> replug stick
> reboot
> plug stick
> 
> It should work (hopefully)
> 
> reagrds
> Antti

I tried the above but it did not work, so I flushed out my current
kernel and modules and restored it to a default Debian state and rebuild
the af9015 system as described in my attachment.

The device kind of works now (yes :-p), with normal passive antennas I
can find signals, however with my kind of expensive active antenna it
does not find anything... I can also tune the signal with totem-xine
dvb, mplayer is not able to tune the signal... I have no idea why, i
tried different timeout and cache settings.

Also the remote does not work, when the device is connected during boot
nu input device is created. When the device is insert after a complete
boot. the input device is created, but it is not working. I scanned the
event with irrecord without any result...

Playing dvb://Nederland 1(Digitenne).
dvb_tune Freq: 722000000
Not able to lock to the signal on the given frequency, timeout: 1
dvb_tune, TUNING FAILED
ERROR, COULDN'T SET CHANNEL  0: Failed to open dvb://Nederland 1(Digitenne).

Any idea's?

Best regards,

Jelle
#!/bin/bash # just for highliting

# Afatech DVB-T - Installation Guide - v0.1.2j.txt
#
# Copyright 2008 Jelle de Jong <jelledejong at powercraft dot nl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

cd ~
wget http://www.otit.fi/~crope/v4l-dvb/af9015/af9015_firmware_cutter/firmware_files/4.95.0/dvb-usb-af9015.fw
sudo mv --verbose dvb-usb-af9015.fw /lib/firmware/
sudo chmod 555 /lib/firmware/dvb-usb-af9015.fw
ls -hal /lib/firmware/dvb-usb-af9015.fw
    -r-xr-xr-x 1 jelle jelle 16K 2007-11-16 21:06 /lib/firmware/dvb-usb-af9015.fw

sudo apt-get install linux-headers-$(uname -r) build-essential mercurial

cd ~
[ -e af9015 ] && rm --recursive af9015
hg clone http://linuxtv.org/hg/~anttip/af9015
cd af9015
make
sudo make install
sudo depmod -a
cd ~

sudo shutdown -r now

ls -hal /dev/dvb/adapter0/
    total 0
    drwxr-xr-x 2 root root     120 2008-10-14 20:03 .
    drwxr-xr-x 3 root root      60 2008-10-14 20:03 ..
    crw-rw---- 1 root video 212, 4 2008-10-14 20:03 demux0
    crw-rw---- 1 root video 212, 5 2008-10-14 20:03 dvr0
    crw-rw---- 1 root video 212, 3 2008-10-14 20:03 frontend0
    crw-rw---- 1 root video 212, 7 2008-10-14 20:03 net0

dmesg | grep af90
    [   39.345010] firmware: requesting dvb-usb-af9015.fw
    [   39.354356] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
    [   39.427422] usbcore: registered new interface driver dvb_usb_af9015
    [   40.388995] af9013: firmware version:4.95.0

dmesg
    [   38.772041] usb 5-4: new high speed USB device using ehci_hcd and address 8
    [   38.908086] usb 5-4: configuration #1 chosen from 1 choice
    [   38.916772] Afatech DVB-T: Fixing fullspeed to highspeed interval: 16 -> 8
    [   38.923864] input: Afatech DVB-T as /class/input/input10
    [   38.952224] input,hidraw3: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-4
    [   38.952496] usb 5-4: New USB device found, idVendor=15a4, idProduct=9016
    [   38.952505] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [   38.952513] usb 5-4: Product: DVB-T
    [   38.952519] usb 5-4: Manufacturer: Afatech
    [   39.344997] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
    [   39.345010] firmware: requesting dvb-usb-af9015.fw
    [   39.354356] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
    [   39.422168] usb 5-4: USB disconnect, address 8
    [   39.424394] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
    [   39.427422] usbcore: registered new interface driver dvb_usb_af9015
    [   39.692085] usb 5-4: new high speed USB device using ehci_hcd and address 9
    [   39.835168] usb 5-4: configuration #1 chosen from 1 choice
    [   39.849246] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
    [   39.849366] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
    [   39.849792] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
    [   40.388995] af9013: firmware version:4.95.0
    [   40.395000] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
    [   40.671009] MT2060: successfully identified (IF1 = 1220)
    [   41.136134] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
    [   41.153146] Afatech DVB-T: Fixing fullspeed to highspeed interval: 16 -> 8
    [   41.154029] input: Afatech DVB-T as /class/input/input11
    [   41.184235] input,hidraw3: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-4
    [   41.184593] usb 5-4: New USB device found, idVendor=15a4, idProduct=9016
    [   41.184603] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [   41.184611] usb 5-4: Product: DVB-T
    [   41.184616] usb 5-4: Manufacturer: Afatech

# cleanup
cd ~
[ -e af9015 ] && rm --recursive af9015
sudo apt-get remove --purge linux-headers-$(uname -r) build-essential mercurial



------------------------------------------------------------------------
# debugging section

# original firmware included on cdrom
cd ~
sudo cp --verbose "/media/DIGITTRADE DVB-T/Installationsdateien/linux/dvb-usb-af9015.fw" /lib/firmware/
sudo chmod 555 /lib/firmware/dvb-usb-af9015.fw
ls -hal /lib/firmware/dvb-usb-af9015.fw
    -r-xr-xr-x 1 jelle root 13K 2008-10-14 15:36 /lib/firmware/dvb-usb-af9015.fw

# scanning channels .... (noting found, device does not seem to work)
# i used diffrent antenna's, including active ones and the orignal
# my em28xx devices do work so the signal is strong enough

bash .scripts/dvb-t/setup-free-to-air-channels.sh
w_scan version 20080815
Info: using DVB adapter auto detection.
   Found DVB-T frontend. Using adapter /dev/dvb/adapter0/frontend0
-_-_-_-_ Getting frontend capabilities-_-_-_-_
frontend Afatech AF9013 DVB-T supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
177500:
<skip>
858000:
ERROR: Sorry - i couldn't get any working frequency/transponder
 Nothing to scan!!
dumping lists (0 services)
Done.

# firmware version:4.95.0
[   44.132059] firmware: requesting dvb-usb-af9015.fw
[   44.141827] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
[   44.219500] usbcore: registered new interface driver dvb_usb_af9015
[   45.157789] af9013: firmware version:4.95.0
[   45.280556] af9015: command failed:2

[   43.552057] usb 5-4: new high speed USB device using ehci_hcd and address 9
[   43.688128] usb 5-4: configuration #1 chosen from 1 choice
[   43.696836] Afatech DVB-T: Fixing fullspeed to highspeed interval: 16 -> 8
[   43.703912] input: Afatech DVB-T as /class/input/input10
[   43.732239] input,hidraw3: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-4
[   43.732503] usb 5-4: New USB device found, idVendor=15a4, idProduct=9016
[   43.732512] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   43.732520] usb 5-4: Product: DVB-T
[   43.732525] usb 5-4: Manufacturer: Afatech
[   44.132046] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
[   44.132059] firmware: requesting dvb-usb-af9015.fw
[   44.141827] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
[   44.213470] usb 5-4: USB disconnect, address 9
[   44.216418] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
[   44.219500] usbcore: registered new interface driver dvb_usb_af9015
[   44.472074] usb 5-4: new high speed USB device using ehci_hcd and address 10
[   44.608713] usb 5-4: configuration #1 chosen from 1 choice
[   44.655921] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
[   44.656063] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   44.656439] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
[   45.157789] af9013: firmware version:4.95.0
[   45.163795] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
[   45.280556] af9015: command failed:2
[   45.280566] mt2060 I2C read failed
[   45.280675] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
[   45.294842] Afatech DVB-T: Fixing fullspeed to highspeed interval: 16 -> 8
[   45.295337] input: Afatech DVB-T as /class/input/input11
[   45.320250] input,hidraw3: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-4
[   45.320527] usb 5-4: New USB device found, idVendor=15a4, idProduct=9016
[   45.320536] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   45.320544] usb 5-4: Product: DVB-T
[   45.320549] usb 5-4: Manufacturer: Afatech

# firmware version:4.65.0
[   56.158741] firmware: requesting dvb-usb-af9015.fw
[   56.176145] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
[   56.231452] usbcore: registered new interface driver dvb_usb_af9015
[   57.157978] af9013: firmware version:4.65.0
[   57.277990] af9015: command failed:2

[   55.584068] usb 5-4: new high speed USB device using ehci_hcd and address 8
[   55.720067] usb 5-4: configuration #1 chosen from 1 choice
[   55.728745] Afatech DVB-T: Fixing fullspeed to highspeed interval: 16 -> 8
[   55.735821] input: Afatech DVB-T as /class/input/input10
[   55.764228] input,hidraw3: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-4
[   55.764496] usb 5-4: New USB device found, idVendor=15a4, idProduct=9016
[   55.764505] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   55.764513] usb 5-4: Product: DVB-T
[   55.764519] usb 5-4: Manufacturer: Afatech
[   56.158728] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in cold state, will try to load a firmware
[   56.158741] firmware: requesting dvb-usb-af9015.fw
[   56.176145] dvb-usb: downloading firmware from file 'dvb-usb-af9015.fw'
[   56.231452] usbcore: registered new interface driver dvb_usb_af9015
[   56.231533] usb 5-4: USB disconnect, address 8
[   56.232690] dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
[   56.504073] usb 5-4: new high speed USB device using ehci_hcd and address 9
[   56.640782] usb 5-4: configuration #1 chosen from 1 choice
[   56.654602] dvb-usb: found a 'Afatech AF9015 DVB-T USB2.0 stick' in warm state.
[   56.654720] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[   56.655145] DVB: registering new adapter (Afatech AF9015 DVB-T USB2.0 stick)
[   57.157978] af9013: firmware version:4.65.0
[   57.163981] DVB: registering frontend 0 (Afatech AF9013 DVB-T)...
[   57.277990] af9015: command failed:2
[   57.278001] mt2060 I2C read failed
[   57.278118] dvb-usb: Afatech AF9015 DVB-T USB2.0 stick successfully initialized and connected.
[   57.292623] Afatech DVB-T: Fixing fullspeed to highspeed interval: 16 -> 8
[   57.293147] input: Afatech DVB-T as /class/input/input11
[   57.324212] input,hidraw3: USB HID v1.01 Keyboard [Afatech DVB-T] on usb-0000:00:1d.7-4
[   57.324482] usb 5-4: New USB device found, idVendor=15a4, idProduct=9016
[   57.324492] usb 5-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[   57.324500] usb 5-4: Product: DVB-T
[   57.324505] usb 5-4: Manufacturer: Afatech

# I got the problem that I also had build and installed an other em28xx 4vl repository that was conflicting with the mt2060 module.
# I remove all my old modules resinstalled them to a fresh default stage and rebuild this driver and then the device worked!

cd ~
[ -e v4l-dvb ] && rm --recursive v4l-dvb
hg clone http://linuxtv.org/hg/v4l-dvb/
cd v4l-dvb
make
sudo make install
sudo depmod -a
cd ~
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux