usbTuner (multiple tuners on dm800) v0.7.3 ipk package (all new images) + GUI plugin

  • so, im neuen oe2.0 sind auch treiber für mein usb DVB-T stick verfügbar, nur fehlt der box wohl ne firmware ???




    wo bekomm ich nun die firmware her???



    edit: habe es nun so weit gebracht


    [ 377.776000] usb 1-1.3: new high-speed USB device number 5 using ehci-brcm
    [ 377.860000] it913x: Chip Version=01 Chip Type=9135
    [ 377.862000] it913x: Dual mode=0 Remote=5 Tuner Type=ca
    [ 377.863000] dvb-usb: found a 'ITE 9135 Generic' in cold state, will try to load a firmware
    [ 377.875000] dvb-usb: downloading firmware from file 'dvb-usb-it9137-01.fw'
    [ 377.877000] it913x: FRM Starting Firmware Download
    [ 378.182000] it913x: FRM Firmware Download Completed - Resetting Device
    [ 378.182000] it913x: Chip Version=01 Chip Type=9135
    [ 378.183000] it913x: Firmware Version 204147968
    [ 378.215000] dvb-usb: found a 'ITE 9135 Generic' in warm state.
    [ 378.216000] dvb-usb: will use the device's hardware PID filter (table count: 31).
    [ 378.225000] DVB: registering new adapter (ITE 9135 Generic)
    [ 378.344000] DVB: registering adapter 1 frontend 0 (ITE 9135 Generic_1)...
    [ 378.403000] IR keymap rc-kworld-315u not found
    [ 378.403000] Registered IR keymap rc-empty
    [ 378.403000] input: IR-receiver inside an USB DVB receiver as /devices/platform/ehci-brcm.0/usb1/1-1/1-1.3/rc/rc0/input5
    [ 378.407000] rc0: IR-receiver inside an USB DVB receiver as /devices/platform/ehci-brcm.0/usb1/1-1/1-1.3/rc/rc0
    [ 378.407000] dvb-usb: schedule remote query interval to 250 msecs.
    [ 378.407000] dvb-usb: ITE 9135 Generic successfully initialized and connected.
    [ 378.407000] it913x: DEV registering device driver
    root@dm8000:~#
    root@dm8000:~# [ 378.225000] DVB: registering new adapter (ITE 9135 Generic)
    -sh: syntax error: unexpected "("
    root@dm8000:~# [ 378.344000] DVB: registering adapter 1 frontend 0 (ITE 9135 Ge
    neric_1)...
    -sh: syntax error: unexpected "("
    root@dm8000:~# [ 378.403000] IR keymap rc-kworld-315u not found
    sh: missing ]
    root@dm8000:~# [ 378.403000] Registered IR keymap rc-empty
    sh: missing ]
    root@dm8000:~# [ 378.403000] input: IR-receiver inside an USB DVB receiver as /
    devices/platform/ehci-brcm.0/usb1/1-1/1-1.3/rc/rc0/input5
    sh: missing ]
    root@dm8000:~# [ 378.407000] rc0: IR-receiver inside an USB DVB receiver as /de
    vices/platform/ehci-brcm.0/usb1/1-1/1-1.3/rc/rc0
    sh: missing ]
    root@dm8000:~# [ 378.407000] dvb-usb: schedule remote query interval to 250 mse
    cs.
    sh: missing ]
    root@dm8000:~# [ 378.407000] dvb-usb: ITE 9135 Generic successfully initialized
    and connected.
    sh: missing ]
    root@dm8000:~# [ 378.407000] it913x: DEV registering device driver




    habe ein firmware file erstellt nach dieser anleitung:


    http://linuxtv.org/wiki/index.php/Kworld_UB499-2T




    jedoch erscheint der tuner nicht in enigma...

    Dreambox 900 UHD SS
    Dreambox 8000 HD: SSSC/T, 2GB CF, DVD
    Qnap TS219 P II + 2TB + 3TB HDD


    NC+ HD
    Sky Germany HD

    Edited once, last by Micha_123 ().

  • Dude if u could write this in English ill be more than happy to help. From the log I see that there's a missing or incorrect firmware file.



  • I've not had a chance to try the package on oe2.0 yet but the problem you have is that for some reason modprobe -b returns error on exit whereas it should return 0.



  • helour fixed that ,plugin installs properly
    ,but now its problem with drivers, or load
    plugin works normally
    without bad magic


    dm800 login: root
    root@dm800:~# cd
    root@dm800:~# cd /
    root@dm800:/# /usr/script/usbtnrsetup.sh download_drivers dvb-usb-af9015
    This procedure will try to download and install module: dvb-usb-af9015 and it's
    dependent modules from your ipk/opk repositories.
    Do you want to continue? (y/n) y
    sh: sifteam: unknown operand
    Installing [1/11]: v4l-dvb-module-dvb-usb...sh: sifteam: unknown operand
    [2/11]: v4l-dvb-module-dvb-pll...sh: sifteam: unknown operand
    [3/11]: v4l-dvb-module-af9013...sh: sifteam: unknown operand
    [4/11]: v4l-dvb-module-mt2060...sh: sifteam: unknown operand
    [5/11]: v4l-dvb-module-qt1010...sh: sifteam: unknown operand
    [6/11]: v4l-dvb-module-tda18271...sh: sifteam: unknown operand
    [7/11]: v4l-dvb-module-mxl5005s...sh: sifteam: unknown operand
    [8/11]: v4l-dvb-module-mc44s803...sh: sifteam: unknown operand
    [9/11]: v4l-dvb-module-tda18218...sh: sifteam: unknown operand
    [10/11]: v4l-dvb-module-mxl5007t...sh: sifteam: unknown operand
    [11/11]: v4l-dvb-module-dvb-usb-af9015...sh: sifteam: unknown operand
    sh: sifteam: unknown operand
    Done.
    All v4l modules installed.

  • I've manually installed all needed v4l-dvb packages, then I've copied /etc/init.d/usbtuner.sh with /etc/usbtuner.conf and /usr/bin/usbtuner from older image OE1.6. After that I've started usbtuner with /etc/init.d/usbtuner.sh start , next I restarted enigma and it works...


    The latest package usbtuner_0.7.3x_all.ipk I've attached in the post above works for me :) .


    Attention:
    OE2.0 Images has modprobe.conf file inside the /etc/modprobe.d/ directory

  • but what about tda18218.ko
    they dont have it here
    http://www.dreamboxupdate.com/opendreambox/2.0.0/dm800/


    will it work from sifteam or Openpli with OE2.0


    i did as helour said but only added tda118218.ko from openpli and depmod -a
    but no success
    here is dmesg

  • You can't mix OpenPli or Sifteam modules with Experimental one. You have to use all modules from Sifteam or all from Experimental only repos.

  • what i have done
    i have installed first firmware from first page than module-init-tools
    then usbtuner


    than i have insalled drivers with /usr/sript/usbtnrsetup.sh download_drivers dvb-usb-af9015
    it was instaling all 11 needed drivers but after instalation TDA18218 was mising in tunners directory
    helour can yuo share yuors v4l-dvb packages
    thats what if got


    opendreambox 2.0.0 dm800



    dm800 login: root
    root@dm800:~# cd /
    root@dm800:/# opkg install module-init-tools
    Installing module-init-tools (3.16-r0) to root...
    Downloading http://dreamboxupdate.com/open…0/ipk/mips32el-nf/module-
    init-tools_3.16-r0_mips32el-nf.ipk.
    Configuring module-init-tools.
    update-alternatives: Linking //sbin/insmod to /sbin/insmod.26
    update-alternatives: Linking //sbin/modprobe to /sbin/modprobe.26
    update-alternatives: Linking //sbin/rmmod to /sbin/rmmod.26
    update-alternatives: Linking //sbin/modinfo to /sbin/modinfo.26
    update-alternatives: Linking //bin/lsmod to /bin/lsmod.26
    update-alternatives: Linking //sbin/lsmod to /bin/lsmod.26
    root@dm800:/# opkg install /tmp/usbtuner_0.7.3x_all.ipk
    Installing usbtuner (0.7.3x) to root...
    Configuring usbtuner.
    Adding system startup for /etc/init.d/usbtuner.sh.
    Checking for -b support in modprobe... OK.
    Searching for tuners... Done.
    Found: dvb-usb-af9015 !
    Adding dvb-usb-af9015 to the config file (/etc/usbtuner.conf)... Done.
    Blacklisting dvb-usb-af9015 by adding: blacklist dvb-usb-af9015 to /etc/modprob
    e.d/modprobe.conf... Done.
    All done but modprobe dvb-usb-af9015 did not return 0 wich may mean that the dri
    ver for your module could not be loaded.
    You need to install drivers for your tuner.
    You can try to call this script like that: /usr/script/usbtnrsetup.sh download_d
    rivers to install required or, if not known, all v4l drivers.
    If you have already ran the above and modprobe still fails you may require a fir
    mware file which is not provided in opkg's repositories.
    Check /var/log/messages or dmesg for errors.
    root@dm800:/# /usr/script/usbtnrsetup.sh download_drivers dvb-usb-af9015
    This procedure will try to download and install module: dvb-usb-af9015 and it's
    dependent modules from your ipk/opk repositories.
    Do you want to continue? (y/n) y
    Installing [11/11]: v4l-dvb-module-dvb-usb-af9015... Done.
    All v4l modules installed.
    root@dm800:/# /etc/init.d/usbtuner.sh start
    Loading module: dvb-usb-af9015...Failed!
    /dev/dvb/adapter1 not created by loading the driver. Please check dmesg for reas
    ons
    root@dm800:/#

  • help


    root@dm800:~# dmesg
    .
    [4294726.122000] usbcore: registered new driver usbhid
    [4294726.122000] drivers/usb/input/hid-core.c: v2.6:USB HID core driver
    [4294726.207000] dvb_usb_af9035: version magic '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.4' should be '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.6'
    .
    ++++++++++++++++++++++++++++++++++++
    root@dm800:~# modprobe dvb-usb-af9035


    FATAL: Error inserting dvb_usb_af9035 (/lib/modules/2.6.18-7.4-dm800/kernel/drivers/media/dvb/dvb-usb/dvb-usb-af9035.ko): Invalid module format
    ++++++++++++++++++++++++++++++++++++
    root@dm800:~# dmesg | grep -i "dvb"
    [4294694.484000] Initializing adapter 0 (Alps BSBE2-DVB-S2)
    [4294698.893000] DVB: registering adapter 0 frontend 0 (cx24116)...
    [4294726.207000] dvb_usb_af9035: version magic '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.4' should be '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.6'
    [4294813.078000] dvb_demux_feed_del: feed not in list (type=0 state=0 pid=ffff)
    [4294813.529000] dvb_demux_feed_del: feed not in list (type=0 state=0 pid=ffff)
    ++++++++++++++++++++++++++++++++++++
    root@dm800:~# cat /proc/bus/usb/devices
    .
    T: Bus=01 Lev=02 Prnt=02 Port=06 Cnt=06 Dev#= 10 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=07ca ProdID=a835 Rev= 2.03
    S: Manufacturer=AVerMedia TECHNOLOGIES, Inc
    S: Product=A835
    S: SerialNumber=xxxxxxxxxxxxx
    C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
    I: If#= 0 Alt= 0 #EPs= 5 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
    E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=86(I) Atr=01(Isoc) MxPS= 0 Ivl=125us
    I: If#= 0 Alt= 1 #EPs= 5 Cls=ff(vend.) Sub=00 Prot=00 Driver=(none)
    E: Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=84(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
    E: Ad=86(I) Atr=01(Isoc) MxPS=3072 Ivl=125us
    .
    ++++++++++++++++++++++++++++++++++++
    file (dvb-usb-af9035.ko=155185)

    Edited 6 times, last by My20 ().

  • skirmas


    Hi to all,


    I'm trying getting work a DTT USB tuner on new image OE 2.0 but I have the same problem shown on page 12 by skirmas.
    I see above that you solve the modprobe issue.....can you explain how please?


    I install a fresh CVS OE 2.0, after that I install module-init-tools


    Code
    root@dm7020hd:~# opkg list-installed | grep module-init
    module-init-tools - 3.16-r0
    module-init-tools-depmod - 3.16-r0


    Than when I run the usbtuner install I get the error


    Code
    root@dm7020hd:/usr/script# ./usbtnrsetup.sh auto_setup
    Checking for -b support in modprobe... Failed.
    Error: modprobe -b returns error! Is module-init-tools package installed ?


    If I try to change modutils.sh by hand


    Code
    LOAD_MODULE=modprobe -b


    the box don't boot.


    Thanks in advance!

  • Quote


    If I try to change modutils.sh by hand


    Code
    LOAD_MODULE=modprobe -b


    the box don't boot.


    You have to remove "-b" part because new OE2.0 images has support for "-b" option in modprobe already.


    I've posted here new usbtuner_0.7.3x_all.ipk package. If it doesn't work, you have to edit this part of code in the /usr/script/usbtnrsetup.sh:

    Code
    checkModprobe() {
    if ! modprobe -b dvb_core 2&>/dev/null; then
    return 1
    else
    return 0
    fi
    }


    and change dvb_core to anything else what you find in the your lsmod output. Maybe OE2.0 images for 7020hd doesn't contains dvb_core in the standard lsmod output.

  • Code
    dvb_usb_af9035: version magic '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.4' should be '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.6'


    The line above indicates that you are using some older modules/drivers (compiled with gcc-4.4) within newer image (which was compiled with gcc-4.6).


    Maybe you are using/mixing modules from oe1.6 inside oe2.0 image.

  • Quote

    Originally posted by helour

    Code
    dvb_usb_af9035: version magic '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.4' should be '2.6.18-7.4-dm800 mod_unload MIPS32_R1 32BIT gcc-4.6'


    The line above indicates that you are using some older modules/drivers (compiled with gcc-4.4) within newer image (which was compiled with gcc-4.6).


    Maybe you are using/mixing modules from oe1.6 inside oe2.0 image.


    where can I get the modules for gcc-4.6 (AF9035)


    thanks

  • Thanks Helour, with this


    Code
    if ! modprobe -b stb_core 2&>/dev/null; then
    return 1
    else
    return 0
    fi


    it works on dm7020hd.
    I change also this


    Code
    07ca:a867) dvbt="dvb-usb-a867";devs="AVerMedia A867 DVB-T Receiver" ;;


    because my DTT pen was wrong detected as AF9035. Now I can see it on enigma2 tuner list, but if I try to search channels enigma freeze and I need to reboot by terminal. With your excellent plugin I have the attached status with 0 devices running, but green light on A867.


    This are the informations:



    Do you think could be a driver problem or is a conflicts with the internal DTT tuner of 7020?
    Thanks for this great work!

  • root@dm800:~# /usr/script/usbtnrsetup.sh extended_status
    Connected devices:
    07ca:a835 Avermedia AverTV Volar HD Team Bob/Chip (A825/A835/B835): <Driver error>


    Usbtuner service:


    Contents of /proc/bus/nim_sockets:
    NIM Socket 0:
    Type: DVB-S2
    Name: Alps BSBE2
    Has_Outputs: yes
    Frontend_Device: 0
    I2C_Device: 0

  • disconnect and connect pen DTT


    .
    [4294825.773000] VIDEO0: progressive changed (0)
    [4294898.357000] JFFS2 notice: (24) check_node_data: wrong data CRC in data node at 0x025a2600: read 0xb5fc5f05, calculated 0xaed9b32a.
    [ 95.953000] usb 1-1.7: USB disconnect, address 10
    [ 98.437000] usb 1-1.7: new full speed USB device using brcm-ehci and address 11
    [ 98.585000] usb 1-1.7: new high speed USB device using brcm-ehci and address 12
    [ 98.681000] usb 1-1.7: configuration #1 chosen from 1 choice


  • Thanks for info from 7020hd box.


    I'll rewrite proper parts in the scripts and also check the python plugin (I have to change ps console command to ps -A x) because I didn't test it yet :).