Jump to content


Photo

RTL2832U chipset support proposal

DVB-T

  • Please log in to reply
170 replies to this topic

Re: RTL2832U chipset support proposal #61 vin

  • Member
  • 3 posts

0
Neutral

Posted 6 May 2012 - 09:00

Never mind my last two posts. I applied the patch Gennar1 provided to the checkout from Ambrosa's git repository and the device is working fine now. It would be great if the patch could be added to the repository, in order to make the installation process easier.

Great work to anyone involved.

Re: RTL2832U chipset support proposal #62 GeoKM

  • Member
  • 1 posts

0
Neutral

Posted 14 May 2012 - 13:14

Please help with adding Support for 1b80:d393 Afatech DVB-T receiver [RTL2832U]

[list]
[*]Edit
[/list]


Hi I am trying to get a couple of these USB DVB-T Tuner sticks working under Mythbuntu 12.04.
They are Gigabyte U7300 Model USB 2.0 devices and they appear in lsusb as

1b80:d393 Afatech DVB-T receiver [RTL2832U]

I am wondering if I can help you to add support for these in your module.

My current Kernel is 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

I cloned your repository and built the module all ok and it load without a problem, however in dmesg it complains that no fronted was attatched.

I guess the module does not know about this particular tuner?

BTW I am in Australia.

dmesg from immediately after boot output is as follows

[ 139.584406] RTL2832U check_tuner_type : ERROR Unknown tuner on board...
[ 139.584414] dvb-usb: no frontend was attached by 'USB DVB-T DEVICE'
[ 139.584563] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb1/1-2/1-2.3/input/input7
[ 139.584925] dvb-usb: schedule remote query interval to 287 msecs.
[ 139.584933] dvb-usb: USB DVB-T DEVICE successfully initialized and connected.
[ 139.584964] usbcore: registered new interface driver dvb_usb_rtl2832u

removing the module and reloading it with sudo modprobe dvb_usb_rtl2832u debug=1 shows

139.584406] RTL2832U check_tuner_type : ERROR Unknown tuner on board...
[ 139.584414] dvb-usb: no frontend was attached by 'USB DVB-T DEVICE'
[ 139.584563] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb1/1-2/1-2.3/input/input7
[ 139.584925] dvb-usb: schedule remote query interval to 287 msecs.
[ 139.584933] dvb-usb: USB DVB-T DEVICE successfully initialized and connected.
[ 139.584964] usbcore: registered new interface driver dvb_usb_rtl2832u
[ 278.428204] usbcore: deregistering interface driver dvb_usb_rtl2832u
[ 278.454672] dvb-usb: USB DVB-T DEVICE successfully deinitialized and disconnected.
[ 278.492845] dvb-usb: USB DVB-T DEVICE successfully deinitialized and disconnected.
[ 299.797605] +info debug open_rtl2832u_usb_module_init
[ 299.797654] dvb-usb: found a 'USB DVB-T DEVICE' in warm state.
[ 299.797667] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 304.796492] DVB: registering new adapter (USB DVB-T DEVICE)
[ 304.799188] +rtl2832u_fe_attach : chialing 0409-1
[ 304.799436] +usb_init_setting
[ 304.799439] +usb_init_bulk_setting
[ 309.796382] read_usb_register: offset=0x0, error code=0xffffff92 !
[ 309.796390] dvb-usb: no frontend was attached by 'USB DVB-T DEVICE'
[ 309.796550] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb1/1-2/1-2.1/input/input8
[ 309.796996] dvb-usb: schedule remote query interval to 287 msecs.
[ 309.797005] dvb-usb: USB DVB-T DEVICE successfully initialized and connected.
[ 309.797034] dvb-usb: found a 'USB DVB-T DEVICE' in warm state.
[ 309.797048] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 314.796472] DVB: registering new adapter (USB DVB-T DEVICE)
[ 314.797616] +rtl2832u_fe_attach : chialing 0409-1
[ 314.797716] +usb_init_setting
[ 314.797718] +usb_init_bulk_setting
[ 319.796421] read_usb_register: offset=0x0, error code=0xffffff92 !
[ 319.796430] dvb-usb: no frontend was attached by 'USB DVB-T DEVICE'
[ 319.796581] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:15.0/0000:03:00.0/usb1/1-2/1-2.3/input/input9
[ 319.796902] dvb-usb: schedule remote query interval to 287 msecs.
[ 319.796910] dvb-usb: USB DVB-T DEVICE successfully initialized and connected.
[ 319.796959] usbcore: registered new interface driver dvb_usb_rtl2832u

lsmod shows

Module Size Used by
dvb_usb_rtl2832u 408029 0
dvb_usb 24490 1 dvb_usb_rtl2832u
dvb_core 110619 1 dvb_usb
vmwgfx 122198 1
ttm 76949 1 vmwgfx
drm 242038 3 vmwgfx,ttm
nfsd 277809 13
nfs 356307 0
lockd 86161 2 nfsd,nfs
fscache 61529 1 nfs
auth_rpcgss 53380 2 nfsd,nfs
nfs_acl 12883 2 nfsd,nfs
sunrpc 245464 19 nfsd,nfs,lockd,auth_rpcgss,nfs_acl
ir_lirc_codec 12859 0
lirc_dev 19204 1 ir_lirc_codec
ppdev 17113 0
ir_mce_kbd_decoder 12777 0
ir_sony_decoder 12510 0
ir_jvc_decoder 12507 0
snd_usb_audio 122982 0
ir_rc6_decoder 12507 0
ir_rc5_decoder 12507 0
ir_nec_decoder 12507 0
snd_pcm 97188 1 snd_usb_audio
vmw_balloon 12809 0
rc_core 26412 8 dvb_usb,ir_lirc_codec,ir_mce_kbd_decoder,ir_sony_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_rc5_decoder,ir_nec_decoder
snd_page_alloc 18529 1 snd_pcm
snd_hwdep 13668 1 snd_usb_audio
snd_usbmidi_lib 25395 1 snd_usb_audio
snd_seq_midi 13324 0
snd_rawmidi 30748 2 snd_usbmidi_lib,snd_seq_midi
snd_seq_midi_event 14899 1 snd_seq_midi
snd_seq 61896 2 snd_seq_midi,snd_seq_midi_event
snd_timer 29990 2 snd_pcm,snd_seq
snd_seq_device 14540 3 snd_seq_midi,snd_rawmidi,snd_seq
psmouse 87692 0
serio_raw 13211 0
snd 78855 8 snd_usb_audio,snd_pcm,snd_hwdep,snd_usbmidi_lib,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
cm109 22061 0
soundcore 15091 1 snd
joydev 17693 0
parport_pc 32866 1
mac_hid 13253 0
i2c_piix4 13301 0
shpchp 37277 0
lp 17799 0
parport 46562 3 ppdev,parport_pc,lp
usb_storage 49198 0
uas 18027 0
usbhid 47199 0
hid 99559 1 usbhid
floppy 70365 0
e1000 108476 0
mptspi 22921 2
mptscsih 44882 1 mptspi
mptbase 103162 2 mptspi,mptscsih

If there is more info you need please let me know, 8-)

Thanks.


Re: RTL2832U chipset support proposal #63 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 15 May 2012 - 12:09

Your device PID is already supported, but it is shared by several different products.

The dmesg error is clear:
[ 139.584406] RTL2832U check_tuner_type : ERROR Unknown tuner on board...

The rtl2832 driver supports 10 different tuners, but probably your device is using a new tuner type. Other devices with the same PID usually come with the fc0012 tuner; maybe you have a new revision of this tuner that is not supported yet.

Can you open the device? It would be interesting to see a picture of the PCB.
Anyway, your best chance to get it supported is to ask Realtek for an updated driver with support for the new tuner.

Re: RTL2832U chipset support proposal #64 cyb

  • Member
  • 48 posts

0
Neutral

Posted 15 May 2012 - 21:23

Hello,

I also have a RTL2832U chipset based DVB-T USB tuner. Its name is "Twintech UT40" but my VU+ Duo recognize it as an Afatech :

Bus 001 Device 007: ID 1b80:d3a4 Afatech
iProduct 2 Rtl2832UDVB
iSerial 0															

I'd like to install the driver but it is not in the plugin list nor the package list. Do you think Your driver could work ? Where could I find an IPK ?
Thanks,

-cyb-

Re: RTL2832U chipset support proposal #65 nico37

  • Member
  • 1 posts

0
Neutral

Posted 17 May 2012 - 19:21

Hi,

it's my first post here, hello ;)

I'v bought a AUGUST DVB-T205 USB Stick with a RTL2832U chip.
lsusb say:
ID 1f4d:a803 G-Tek Electronics Group
They give source code at:
http://www.augustint...river_linux.zip
But with linux 3.0.0 :( they didn't work...

Can you made something please?

ps: I've test your work but when a made a modprobe, he give me a FATAL ERROR.

Re: RTL2832U chipset support proposal #66 cyb

  • Member
  • 48 posts

0
Neutral

Posted 23 May 2012 - 18:22

Hello,

I also have a RTL2832U chipset based DVB-T USB tuner. Its name is "Twintech UT40" but my VU+ Duo recognize it as an Afatech :

Bus 001 Device 007: ID 1b80:d3a4 Afatech
iProduct 2 Rtl2832UDVB
iSerial 0															

I'd like to install the driver but it is not in the plugin list nor the package list. Do you think Your driver could work ? Where could I find an IPK ?
Thanks,

-cyb-


Hello,

Anyone could help me please ?
Thanks,

-cyb-

Re: RTL2832U chipset support proposal #67 Mewtwo

  • Member
  • 1 posts

0
Neutral

Posted 23 May 2012 - 20:00


Hello,

I also have a RTL2832U chipset based DVB-T USB tuner. Its name is "Twintech UT40" but my VU+ Duo recognize it as an Afatech :

Bus 001 Device 007: ID 1b80:d3a4 Afatech
iProduct 2 Rtl2832UDVB
iSerial 0															

I'd like to install the driver but it is not in the plugin list nor the package list. Do you think Your driver could work ? Where could I find an IPK ?
Thanks,

-cyb-


Hello,

Anyone could help me please ?
Thanks,

-cyb-


You can try this patch
--- a/RTL2832-2.2.2_kernel-3.0.0/rtl2832u.c
+++ b/RTL2832-2.2.2_kernel-3.0.0/rtl2832u.c
@@ -839,6 +839,7 @@ static struct usb_device_id rtl2832u_usb_table [] = {
	    { USB_DEVICE(USB_VID_COMPRO,  USB_PID_COMPRO_WARM_9520)},	   // 74
	   
	    { USB_DEVICE(USB_VID_GOLDENBRIDGE, USB_PID_GOLDENBRIDGE_WARM)}, //75   
+	   { USB_DEVICE(0x1b80, 0xd3a4)},  // 76
																									   
	    { 0 },
};

or manually edit RTL2832-2.2.2_kernel-3.0.0/rtl2832u.c




The driver works well for me with the ezcap EzTV USB 2.0 DVB-T/DAB/FM dongle (Realtek Semiconductor Corp. RTL2838 DVB-T) on Ubuntu 12.04 64bit - have you considered submitting it to Linux staging?

Re: RTL2832U chipset support proposal #68 cyb

  • Member
  • 48 posts

0
Neutral

Posted 23 May 2012 - 22:33

Thanks for your help :)

But I do not know how to install/compile the driver or patch it :-/ ...
Is it possible to make an IPK installer or something simpler than all this stuff ?

Re: RTL2832U chipset support proposal #69 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 24 May 2012 - 14:16

Hi,

it's my first post here, hello ;)

I'v bought a AUGUST DVB-T205 USB Stick with a RTL2832U chip.
lsusb say:
ID 1f4d:a803 G-Tek Electronics Group
They give source code at:
http://www.augustint...river_linux.zip
But with linux 3.0.0 :( they didn't work...

Can you made something please?

ps: I've test your work but when a made a modprobe, he give me a FATAL ERROR.


Hi nico,
1f4d:a803 is alredy supported by the current driver. If Ambrosa's git does not work on your kernel, your best option is to use the media_build driver tree and apply the patch over it (see the older posts).

Re: RTL2832U chipset support proposal #70 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 24 May 2012 - 14:23

You can try this patch

--- a/RTL2832-2.2.2_kernel-3.0.0/rtl2832u.c
+++ b/RTL2832-2.2.2_kernel-3.0.0/rtl2832u.c
@@ -839,6 +839,7 @@ static struct usb_device_id rtl2832u_usb_table [] = {
		{ USB_DEVICE(USB_VID_COMPRO,  USB_PID_COMPRO_WARM_9520)},	   // 74
	  
		{ USB_DEVICE(USB_VID_GOLDENBRIDGE, USB_PID_GOLDENBRIDGE_WARM)}, //75  
+	   { USB_DEVICE(0x1b80, 0xd3a4)},  // 76
																									  
		{ 0 },
};

or manually edit RTL2832-2.2.2_kernel-3.0.0/rtl2832u.c


The patch is not complete, as you have to add also a new board description to the driver (or add the new USB ID to an existing board description). Anyway, it's not needed at all, as 0x1b80:0xd3a4 is already supported.

The driver works well for me with the ezcap EzTV USB 2.0 DVB-T/DAB/FM dongle (Realtek Semiconductor Corp. RTL2838 DVB-T) on Ubuntu 12.04 64bit - have you considered submitting it to Linux staging?


There is a completely new driver for the rtl2832u demodulator, written by Thomas Mair, which is currently under heavy development and will be probably merged in the upcoming 3.5 kernel. Currently it supports only 2 tuners, in spite of the 10 tuners supported by the Realtek driver, but things will get better in the future. As soon as it will be mature enough, I will backport it to the OpenPli kernel.

Edited by Gennar1, 24 May 2012 - 14:24.


Re: RTL2832U chipset support proposal #71 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 24 May 2012 - 14:28

But I do not know how to install/compile the driver or patch it :-/ ...
Is it possible to make an IPK installer or something simpler than all this stuff ?


Hi Cyb,
unfortunately, currently there is no ipk package for the rtl2832 driver on VuPlus kernels on OpenPli images.
You may want to check other images (Vix? SifTeam?) but I'm sure if they are including this driver in their images.

Re: RTL2832U chipset support proposal #72 cyb

  • Member
  • 48 posts

0
Neutral

Posted 25 May 2012 - 17:05

Hi Gennar1,

I've temporary replaced the .conf opkg feed files of OpenPLi with the VIX ones. And after an opkg update, I've found a driver for RTL2832 that I managed to install via Telnet.
And... Everything works fine ! My two USB tuners are working without any problem :)

Too bad this driver is not in the OpenPLi feed !
Anyway, thanks for this tip !

-cyb-

Re: RTL2832U chipset support proposal #73 ims

  • PLi® Core member
  • 13,600 posts

+210
Excellent

Posted 26 May 2012 - 13:13


lsusb:

Bus 002 Device 005: ID 1d19:1102 Dexatek Technology Ltd. DK mini DVB-T Dongle


Yes, your device is supported (well, its VID-PID is in devices list).
See here https://github.com/a....0.0/rtl2832u.h row 26 and 28


@ambrosa: under OpenPli 3.0 will be possible using it for DMM with new kernel too ?
Kdo nic nedělá, nic nezkazí!

Re: RTL2832U chipset support proposal #74 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 26 May 2012 - 14:20

For sure, no problem. Just take the et9x00 patch and adapt it to the DMM kernel. Only minor manual editing to the dvb-usb Kconfig/Makefile files could be required.

Re: RTL2832U chipset support proposal #75 ims

  • PLi® Core member
  • 13,600 posts

+210
Excellent

Posted 6 June 2012 - 10:54

For sure, no problem. Just take the et9x00 patch and adapt it to the DMM kernel. Only minor manual editing to the dvb-usb Kconfig/Makefile files could be required.


OK, I will try it.

Edited by ims, 7 June 2012 - 08:06.

Kdo nic nedělá, nic nezkazí!

Re: RTL2832U chipset support proposal #76 Gennar1

  • Senior Member
  • 296 posts

+31
Good

Posted 7 June 2012 - 14:50


For sure, no problem. Just take the et9x00 patch and adapt it to the DMM kernel. Only minor manual editing to the dvb-usb Kconfig/Makefile files could be required.


OK, I will try it.


While you are looking into it, you may want to port all the DVB driver patches to the Dream kernels. Just take the ET patches for kernel 3.2 here:

http://openpli.git.s...ac0b1b21241a188

and apply them to the new Dream kernels. They should apply without any editing as the kernels are pretty much identical.
Then you just have to compile again the new kernel and retrieve the new ipk packages. If this packages work fine, the patches could be committed to the Dream tree.

Re: RTL2832U chipset support proposal #77 ims

  • PLi® Core member
  • 13,600 posts

+210
Excellent

Posted 7 June 2012 - 15:05

What all is then needed for trying dvb-t usb ? Some plugin or usb tuner is added to Setup - Service Searching - Tuner configuration ?
Kdo nic nedělá, nic nezkazí!

Re: RTL2832U chipset support proposal #78 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 7 June 2012 - 15:07

things are integrated in e2, so you just need to download the driver ko (and possibly firmware), modprobe the driver, and restart e2.

Re: RTL2832U chipset support proposal #79 ims

  • PLi® Core member
  • 13,600 posts

+210
Excellent

Posted 7 June 2012 - 15:20

can i update older ( yesterday's) kernel manualy with ipk from my PC too or must I flash with whole new firmware ?
Kdo nic nedělá, nic nezkazí!

Re: RTL2832U chipset support proposal #80 ims

  • PLi® Core member
  • 13,600 posts

+210
Excellent

Posted 7 June 2012 - 15:37

Why was Q about new flash: after build todays clear firmware (removed whole tmp) and flash, there is so much errors for several plugins ( some with header and python 2.7 and some with md5), f.eg. softwaremanager too... => I put back my yesterday's image, install manualy kernel.ipk, module, modprobe and it seems, now it searching dvb-t programs (16 programs - include radio). And works :)

Attached Files


Edited by ims, 7 June 2012 - 16:12.

Kdo nic nedělá, nic nezkazí!



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users