Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 43

Thread: Driver or Firmware for USB DVB TV tuner stick

  1. #31
    Join Date
    Jan 2011
    Beans
    17

    Smile Re: Driver or Firmware for USB DVB TV tuner stick

    Hi, Just to let you know I got it working (scaning working as well). I upgraded o Ubuntu 10.10 then compiled the newer drivers from
    http://195.135.221.134/repositories/...E_Factory/src/

    dvb-usb-rtl2832u-2.0.1-9.4.src.rpm 27-Feb-2011 01:38 179K

    Brief summary of what I did using the notes on this thread and the instructions in the archive above...

    Extracted
    Code:
    compat-2.6.38.patch
    dvb-usb-rtl2832u.spec
    dvb-usb-rtl2832u.tar.bz2
    copied patch into dvb-usb-rtl2832u
    Code:
    $cd ~/Desktop/dvb-usb-rtl2832u
    ran 
    $ patch -p1 < compat-2.6.38.patch
    patching file rtl2832u.c
    make menuconfig

    add the following lines to Kconfig in v4l-dvb-(version)/linux/drivers/media/dvb/dvb-usb.
    Code:
    config DVB_USB_RTL2832U
    	tristate "Realtek RTL2832U DVB-T USB2.0 support"
    	depends on DVB_USB
    	help
    	  Realtek RTL2832U DVB-T driver.
    added the following
    Code:
    #define USB_PID_KWORLD_WARM_5 0xD395
    to rtl2832u.h and
    Code:
    { USB_DEVICE(USB_VID_KWORLD_1ST, USB_PID_KWORLD_WARM_5) }
    , to rtl2832u.c

    added to v4l....\linux\drivers\media\dvb\Kconfig
    Code:
    comment "Supported FireWire (IEEE 1394) Adapters"
    	depends on DVB_CORE && IEEE1394
    	source "drivers/media/dvb/firewire/Kconfig
    make
    make install

    Thanks everyone for your help!

  2. #32
    Join Date
    Mar 2011
    Beans
    2

    Re: Driver or Firmware for USB DVB TV tuner stick

    Hi All,

    Been trying for the past 2 weeks to try and get this driver to install and no matter what I do I can't for the life of me get it to work! Every time I try to compile, I get errors.

    Now I am not actually running ubuntu but instead Gentoo, but all the driver support is on your forums

    Current system setup: 2.6.36-gentoo-r5 and I have JUST downloaded the latest linuxtv dvb media_build git repo, and used various RTL2832 sources but always get the same error.

    Can anyone help out or do I need to install ubuntu to get it to work

    Code:
    /root/realtek/media_try/v4l/nim_rtl2832_mt2266.c: In function 'rtl2832_mt2266_UpdateFunction':
    /root/realtek/media_try/v4l/nim_rtl2832_mt2266.c:423: warning: passing argument 6 of 'demod_pdcontrol' from incompatible pointer type
    /root/realtek/media_try/v4l/nim_rtl2832_mt2266.h:250: note: expected 'uint32_t *' but argument is of type 'long unsigned int *'
    In file included from /root/realtek/media_try/v4l/rtl2832u.c:5:
    /root/realtek/media_try/v4l/rtl2832u.h:41:1: warning: "USB_VID_GTEK" redefined
    In file included from /root/realtek/media_try/v4l/dvb-usb.h:26,
                     from /root/realtek/media_try/v4l/rtl2832u.h:7,
                     from /root/realtek/media_try/v4l/rtl2832u.c:5:
    /root/realtek/media_try/v4l/dvb-usb-ids.h:35:1: warning: this is the location of the previous definition
    /root/realtek/media_try/v4l/rtl2832u.c:37: error: array type has incomplete element type
    /root/realtek/media_try/v4l/rtl2832u.c: In function 'rtl2832u_rc_query':
    /root/realtek/media_try/v4l/rtl2832u.c:563: warning: type defaults to 'int' in declaration of 'type name'
    /root/realtek/media_try/v4l/rtl2832u.c:563: warning: type defaults to 'int' in declaration of 'type name'
    /root/realtek/media_try/v4l/rtl2832u.c:563: error: negative width in bit-field '<anonymous>'
    Appreciate the help!

    Chris

  3. #33
    Join Date
    Jan 2011
    Beans
    17

    Re: Driver or Firmware for USB DVB TV tuner stick

    Arghhhhh! my USB stick is no longer recognised.

    lsusb gives
    Code:
    Bus 001 Device 004: ID 1b80:d395 Afatech
    but
    dmesg | grep -i dvb gives nothing and MythTV does not see the stick.

    Could this have been caused by an update, or installation of a different version of MythTV?

    I re-complied and installed from the same patched sources used above but no joy.

    The stick still works fine on windows.

    Any ideas?

  4. #34
    Join Date
    Jan 2011
    Beans
    17

    Re: Driver or Firmware for USB DVB TV tuner stick - 'Make' is using wrong Kernel

    I am trying to reinstall the RTL2832u driver using the latest sources trying to follow the method I successfully used before.

    I am currently running Ubuntu 11.04 and
    $ uname -r gives
    2.6.38-8-generic

    but when i run
    $ make clean
    $ make

    I get Preparing to compile for kernel version 2.6.35 and erors...

    Code:
    make -C /home/ben/Desktop/v4l-dvb/v4l 
    make[1]: Entering directory `/home/ben/Desktop/v4l-dvb/v4l'
    scripts/make_makefile.pl
    Updating/Creating .config
    Preparing to compile for kernel version 2.6.35
    File not found: /lib/modules/2.6.35-28-generic/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
    make[1]: Leaving directory `/home/ben/Desktop/v4l-dvb/v4l'
    make[1]: Entering directory `/home/ben/Desktop/v4l-dvb/v4l'
    Updating/Creating .config
    Preparing to compile for kernel version 2.6.35
    File not found: /lib/modules/2.6.35-28-generic/build/.config at ./scripts/make_kconfig.pl line 32, <IN> line 4.
    make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
    make[1]: Leaving directory `/home/ben/Desktop/v4l-dvb/v4l'
    make: *** [all] Error 2
    Any ideas?

  5. #35
    Join Date
    Jan 2011
    Beans
    17

    Re: Driver or Firmware for USB DVB TV tuner stick

    I have managed to install again on a fresh install of Ubuntu 11.04 (2.6.38-8-generic) on another laptop.

    Chris - I got the same warnings as you, but no errors and it is working

    Code:
    CC [M]  /home/ben/Desktop/media_build/v4l/nim_rtl2832_mxl5007t.o
      CC [M]  /home/ben/Desktop/media_build/v4l/nim_rtl2832_fc2580.o
      CC [M]  /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.o
    /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.c: In function 'rtl2832_mt2266_UpdateFunction':
    /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.c:423:3: warning: passing argument 6 of 'demod_pdcontrol' from incompatible pointer type
    /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.h:250:1: note: expected 'uint32_t *' but argument is of type 'long unsigned int *'
      CC [M]  /home/ben/Desktop/media_build/v4l/rtl2832u.o
    In file included from /home/ben/Desktop/media_build/v4l/rtl2832u.c:5:0:
    /home/ben/Desktop/media_build/v4l/rtl2832u.h:42:0: warning: "USB_VID_GTEK" redefined
    /home/ben/Desktop/media_build/v4l/dvb-usb-ids.h:35:0: note: this is the location of the previous definition
    /home/ben/Desktop/media_build/v4l/rtl2832u.c:468:12: warning: 'rtl2832u_rc_query' defined but not used
      CC [M]  /home/ben/Desktop/media_build/v4l/rtl2832u_fe.o
    In file included from /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:4:0:
    /home/ben/Desktop/media_build/v4l/rtl2832u.h:42:0: warning: "USB_VID_GTEK" redefined
    /home/ben/Desktop/media_build/v4l/dvb-usb-ids.h:35:0: note: this is the location of the previous definition
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c: In function 'rtl2832_set_parameters':
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:1545:5: warning: passing argument 3 of 'read_usb_sys_register' from incompatible pointer type
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:96:1: note: expected 'int *' but argument is of type 'unsigned char *'
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:1553:5: warning: passing argument 3 of 'read_usb_sys_register' from incompatible pointer type
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:96:1: note: expected 'int *' but argument is of type 'unsigned char *'
      CC [M]  /home/ben/Desktop/media_build/v4l/rtl2832u_io.o
      CC [M]  /home/ben/Desktop/media_build/v4l/tuner_mxl5007t.o
    I also used the latest linuxtv dvb media_build git repo and this RTL2832U source:
    http://195.135.221.134/repositories/...E_Factory/src/

    dvb-usb-rtl2832u-2.0.1-9.10.src.rpm 05-May-2011 17:25 179K Details

    I am still having problems on my Desktop - 'make' is referencing the wrong (old) kernel version. Do you know how I fix?

  6. #36
    Join Date
    Jan 2010
    Location
    opposing reality (VIC AU)
    Beans
    990
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Driver or Firmware for USB DVB TV tuner stick

    Look in Synaptic for 'linux headers', you should be able to find it's old pack and the pack which relates to your kernel; Install the one you want and ditch any that appear to be getting in the way.
    NEED HELP? | [SOLVED] | MS hide
    A little nonsense now and then...
    .
    If this is a game thread and you are going to post I hope you have read the Original Post.

  7. #37
    Join Date
    Dec 2010
    Location
    Sometimes I visit earth
    Beans
    687

    Re: Driver or Firmware for USB DVB TV tuner stick

    Do any of the readme's or instructions mention running configure? Usually when we see something be made, you do a ./configure in the main folder that everything unpacked to. This supposedly makes sure you have everything the package needs to compile and it sets some things to be specific to your installation.

    Normally, when installing from source, the sequence would be:

    - unpack the source
    - ./configure
    - make
    - sudo make install

    You may want to double-check the instructions to see if you are missing a configure or if they aren't using it.

    Also, as already mentioned, be sure to install build-essential. If you did a bare install of 11.04, you'll need to reinstall build-essential.

  8. #38
    Join Date
    May 2011
    Beans
    2

    Re: Driver or Firmware for USB DVB TV tuner stick

    Quote Originally Posted by ginner View Post
    I have managed to install again on a fresh install of Ubuntu 11.04 (2.6.38-8-generic) on another laptop.

    Chris - I got the same warnings as you, but no errors and it is working

    Code:
    CC [M]  /home/ben/Desktop/media_build/v4l/nim_rtl2832_mxl5007t.o
      CC [M]  /home/ben/Desktop/media_build/v4l/nim_rtl2832_fc2580.o
      CC [M]  /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.o
    /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.c: In function 'rtl2832_mt2266_UpdateFunction':
    /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.c:423:3: warning: passing argument 6 of 'demod_pdcontrol' from incompatible pointer type
    /home/ben/Desktop/media_build/v4l/nim_rtl2832_mt2266.h:250:1: note: expected 'uint32_t *' but argument is of type 'long unsigned int *'
      CC [M]  /home/ben/Desktop/media_build/v4l/rtl2832u.o
    In file included from /home/ben/Desktop/media_build/v4l/rtl2832u.c:5:0:
    /home/ben/Desktop/media_build/v4l/rtl2832u.h:42:0: warning: "USB_VID_GTEK" redefined
    /home/ben/Desktop/media_build/v4l/dvb-usb-ids.h:35:0: note: this is the location of the previous definition
    /home/ben/Desktop/media_build/v4l/rtl2832u.c:468:12: warning: 'rtl2832u_rc_query' defined but not used
      CC [M]  /home/ben/Desktop/media_build/v4l/rtl2832u_fe.o
    In file included from /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:4:0:
    /home/ben/Desktop/media_build/v4l/rtl2832u.h:42:0: warning: "USB_VID_GTEK" redefined
    /home/ben/Desktop/media_build/v4l/dvb-usb-ids.h:35:0: note: this is the location of the previous definition
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c: In function 'rtl2832_set_parameters':
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:1545:5: warning: passing argument 3 of 'read_usb_sys_register' from incompatible pointer type
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:96:1: note: expected 'int *' but argument is of type 'unsigned char *'
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:1553:5: warning: passing argument 3 of 'read_usb_sys_register' from incompatible pointer type
    /home/ben/Desktop/media_build/v4l/rtl2832u_fe.c:96:1: note: expected 'int *' but argument is of type 'unsigned char *'
      CC [M]  /home/ben/Desktop/media_build/v4l/rtl2832u_io.o
      CC [M]  /home/ben/Desktop/media_build/v4l/tuner_mxl5007t.o
    I also used the latest linuxtv dvb media_build git repo and this RTL2832U source:
    http://195.135.221.134/repositories/...E_Factory/src/

    dvb-usb-rtl2832u-2.0.1-9.10.src.rpm 05-May-2011 17:25 179K Details

    I am still having problems on my Desktop - 'make' is referencing the wrong (old) kernel version. Do you know how I fix?
    try
    Code:
    make distclean
    Than you will compile for your new kernel, anyway i fail with error

    Code:
      CC [M]  /usr/src/media_build/v4l/nim_rtl2832_mt2266.o
    /usr/src/media_build/v4l/nim_rtl2832_mt2266.c: In function 'rtl2832_mt2266_UpdateFunction':
    /usr/src/media_build/v4l/nim_rtl2832_mt2266.c:423:3: warning: passing argument 6 of 'demod_pdcontrol' from incompatible pointer type
    /usr/src/media_build/v4l/nim_rtl2832_mt2266.h:250:1: note: expected 'uint32_t *' but argument is of type 'long unsigned int *'
      CC [M]  /usr/src/media_build/v4l/rtl2832u.o
    In file included from /usr/src/media_build/v4l/rtl2832u.c:5:0:
    /usr/src/media_build/v4l/rtl2832u.h:41:0: warning: "USB_VID_GTEK" redefined
    /usr/src/media_build/v4l/dvb-usb-ids.h:35:0: note: this is the location of the previous definition
    /usr/src/media_build/v4l/rtl2832u.c:37:27: error: array type has incomplete element type
    /usr/src/media_build/v4l/rtl2832u.c: In function 'rtl2832u_rc_query':
    /usr/src/media_build/v4l/rtl2832u.c:561:20: warning: type defaults to 'int' in type name
    /usr/src/media_build/v4l/rtl2832u.c:561:20: warning: type defaults to 'int' in type name
    /usr/src/media_build/v4l/rtl2832u.c:561:20: error: negative width in bit-field '<anonymous>'
    /usr/src/media_build/v4l/rtl2832u.c: At top level:
    /usr/src/media_build/v4l/rtl2832u.c:37:27: warning: 'rtl2832u_rc_keys_map_table' defined but not used
    /usr/src/media_build/v4l/rtl2832u.c:466:12: warning: 'rtl2832u_rc_query' defined but not used
    make[3]: *** [/usr/src/media_build/v4l/rtl2832u.o] Error 1
    make[2]: *** [_module_/usr/src/media_build/v4l] Error 2
    make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
    make[1]: *** [default] Error 2
    make[1]: Leaving directory `/usr/src/media_build/v4l'
    make: *** [all] Error 2
    any idea?

  9. #39
    Join Date
    May 2011
    Beans
    2

    Re: Driver or Firmware for USB DVB TV tuner stick

    So i beat it!!! It's WORKING finally with kernel 2.6.38-8. There's steps how i did it.

    1) download v4l-dvb sources:
    Code:
    cd /usr/src/
    git clone git://linuxtv.org/media_build.git 
    cd media_build 
    ./build.sh
    2) download sources with driver from: https://build.opensuse.org/package/f...e%3Apolyconvex and unpack it copy it to "/usr/src/media_build/linux/drivers/media/dvb/dvb-usb/" except Makefile and Kconfig files.

    Read readme and do steps in readme.

    3) Use patch which is included
    Code:
    patch -p1 < compat-2.6.38.patch
    4) check your usb vendor and product id
    Code:
    root@pc:/usr/src/media_build# lsusb                                                                                                                                                                           
    Bus 002 Device 010: ID 0a81:0101 Chesen Electronics Corp. Keyboard                                                                                                                                                 
    Bus 002 Device 009: ID 04f2:b11c Chicony Electronics Co., Ltd                                                                                                                                                      
    Bus 002 Device 008: ID 0458:707f KYE Systems Corp. (Mouse Systems)  <<THIS IS MY TUNER>>
    and correct ids header file "/usr/src/media_build/linux/drivers/media/dvb/dvb-usb/rtl2832u.h"
    Code:
    #define	USB_VID_GTEK				0x0458
    #define	USB_PID_GTEK_WARM			0x707f
    5)Compile it and install from with
    Code:
    cd /usr/src/media_build/
    make distclean
    make
    make install
    Hope it will help

    E.

  10. #40
    Join Date
    Sep 2008
    Beans
    25

    Re: Driver or Firmware for USB DVB TV tuner stick

    Thanks ElseCZ,

    I successfully applied your steps on Leadtek WinFast DTV Dongle mini (orange). Here are (a little bit more detailed) steps:

    % download v4l-dvb sources:
    Code:
    mkdir leadtek; cd leadtek
    git clone git://linuxtv.org/media_build.git 
    cd media_build 
    ./build.sh
    % dowloaded dvb-usb-rtl2832u.tar.bz2 from https://build.opensuse.org/package/f...e%3Apolyconvex
    % copied all files to '/leadtek/media_build/linux/drivers/media/dvb/dvb-usb' except Makefile. Kconfig file is not in downloaded library.

    % Read readme and do steps in readme.
    (??)
    ==========================
    What do you exactly mean by "do steps"? I suppose steps (1)-(5a) are already done at this moment.

    So I started with step (5b) - added the following lines to Makefile in v4l-dvb-(version)/linux/drivers/media/dvb/dvb-usb.
    Code:
    dvb-usb-rtl2832u-objs = demod_rtl2832.o	dvbt_demod_base.o dvbt_nim_base.o foundation.o math_mpi.o nim_rtl2832_mxl5007t.o nim_rtl2832_fc2580.o nim_rtl2832_mt2266.o rtl2832u.o rtl2832u_fe.o rtl2832u_io.o tuner_mxl5007t.o tuner_fc2580.o tuner_mt2266.o tuner_tua9001.o nim_rtl2832_tua9001.o tuner_fc0012.o nim_rtl2832_fc0012.o demod_rtl2836.o dtmb_demod_base.o dtmb_nim_base.o nim_rtl2836_fc2580.o nim_rtl2836_mxl5007t.o tuner_e4000.o nim_rtl2832_e4000.o tuner_mt2063.o demod_rtl2840.o tuner_max3543.o nim_rtl2832_mt2063.o nim_rtl2832_max3543.o nim_rtl2840_mt2063.o nim_rtl2840_max3543.o qam_demod_base.o qam_nim_base.o
    obj-$(CONFIG_DVB_USB_RTL2832U) += dvb-usb-rtl2832u.o
    (5c) added the following lines to Kconfig in v4l-dvb-(version)/linux/drivers/media/dvb/dvb-usb.
    Code:
    config DVB_USB_RTL2832U
    	tristate "Realtek RTL2832U DVB-T USB2.0 support"
    	depends on DVB_USB
    	help
    	  Realtek RTL2832U DVB-T driver.
    Rest of steps (make clean -> make -> ...) skipped for now
    =========================

    % Copied compat-2.6.38.patch into '/leadtek/media_build/linux/drivers/media/dvb/dvb-usb' and run

    Code:
    cd ./linux/drivers/media/dvb/dvb-usb/
    patch -p1 < compat-2.6.38.patch
    % Corrected ids header file "/media_build/linux/drivers/media/dvb/dvb-usb/rtl2832u.h"

    Code:
    #define	USB_VID_GTEK					       0x0413
    #define	USB_PID_GTEK_WARM			       0x6a03
    % compile
    Code:
    make distclean
    make
    sudo make install
    It seems working so far.
    Last edited by kem; June 13th, 2011 at 08:37 PM.

Page 4 of 5 FirstFirst ... 2345 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •