tvheadend error: DTV_CLEAR failed [e=Bad address]

  • Hi
    I'm using Odroid C2 + LibreELEC-Odroid_C2.aarch64-7.90.010 .
    My dvb-stick (RTL2832 + FC0013) is initialized and connected:


    Also scan tool (from dvb-tools addon) finds muxes.
    But tvheadend fails scanning:
    [ ERROR]:linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=Bad address]
    Both tvheadends are failing, 4.0 and 4.2 (4.0.9 and 4.1.2415), addon v.102 and v8.1.109.

    It works with Libreelec7 image from odroid forum:
    ODROID Forum • View topic - LibreELEC 7.1.0 - media_build edition.
    tvh version 4.0.9 (addon v.102 and v7.0.101).

    What can be the reason?

  • Same problem with me.
    Configuration: odroid c2; Realtek DVBT USB Stick; LibreELEC-Odroid_C2.aarch64-8.0.0.img.gz
    (see also project örlie)
    .
    In sum it seems the DVB device is not correctly addressed by the involved software.
    Highly speculative: Probably the deeper reason is some 32/64 bit incompatibility of the respective ioctl? function FE_GET_PROPERTY similar as described by Pavel Troller
    .
    Error Messages

    • TVHeadend: [ ERROR] linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=Bad address]
    • dvb_fe_tool: ERROR FE_GET_PROPERTY: Bad address
    • lsusb: can't get debug descriptor: Resource temporarily unavailable
    • With dmesg: none


    Analysis
    .
    Info on stick: LinuxTV-Wiki; Antti's LinuxTV Blog: Teardown
    .
    Notifiable messages are taken above the boxes and outlined bold.
    .
    What is my system?


    .
    What about the USB-stick?

    Code
    lsusb
    
    
    Bus 001 Device 003: ID 15f4:0131 HanfTek


    .
    "can't get debug descriptor: Resource temporarily unavailable"


    .


    .
    Is the adapter installed properly?
    Get dmesg information, adapt below output selection to your situation by select appropriate grep terms


    .

    Code
    ls -la /dev/dvb/adapter*
    
    
    total 0
    drwxr-xr-x    2 root     root           120 Feb 17 12:46 .
    drwxr-xr-x    3 root     root            60 Feb 17 12:46 ..
    crw-rw----    1 root     video     212,   4 Feb 17 12:46 demux0
    crw-rw----    1 root     video     212,   5 Feb 17 12:46 dvr0
    crw-rw----    1 root     video     212,   3 Feb 17 12:46 frontend0
    crw-rw----    1 root     video     212,   7 Feb 17 12:46 net0


    .
    Additional investigation with DVB-tools installed from dvb addon in libreelec/program repository:
    "WARNING: YOU ARE USING OUTDATED DVB DRIVERS."


    .
    "ERROR FE_GET_PROPERTY: Bad address"


    .
    "DEBUG POST BER not available"


    .
    "Problem retrieving frontend information: Operation not supported"

    Code
    cd ~/.kodi/addons/virtual.dvb-tools/bin
    ./femon
    
    
    FE: Realtek RTL2832 (DVB-T) (DVBT)
    Problem retrieving frontend information: Operation not supported
    status       | signal 0000 | snr 0000 | ber 0000ffff | unc 88000250 |


    .


    .
    TVHeadend 4.2 service protocol. It can also be shown in TVHeadend configuration window (http at port: 9981) at bottom bar (open in lower right corner).
    "[ ERROR] linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=Bad address]"

    Code
    more ~/.kodi/userdata/addon_data/service.tvheadend42/service.log
    
    
    2017-02-25 16:31:05.095 [ NOTICE] START: HTS Tvheadend version 4.1.2415 ~ LibreELEC Tvh-addon v8.1.109 started, running as PID:750 UID:0 GID:39, CWD:/ CNF:/storage/.kodi/userdata/addon_data/service.tvheadend42
    2017-02-25 16:34:42.393 [   INFO] mpegts: 858MHz in DVB-T Netzwerk - tuning on Realtek RTL2832 (DVB-T) : DVB-T #0
    2017-02-25 16:34:42.393 [  ERROR] linuxdvb: Realtek RTL2832 (DVB-T) : DVB-T #0 - DTV_CLEAR failed [e=Bad address]


    .
    Experiments with manual activation of drivers where not successful, i.e. had no positive effect


    .
    Probably someone else knows more. At this point I am "at the end with my latin" (German phrase: at my wit's end ;)

    Edited once, last by melibokus (April 16, 2017 at 11:29 PM).

  • Hi,

    I've just received an Odroid N2, trying to get TVHeadend set up on it with the same USB stick as mentioned in this thread, and have run up against exactly the same error. Did it ever get fixed? Ive tried using TVH in docker and building by hand.

    Thanks.