How I got my Realtek RTL2832 DVB-T USB adapter working on Debian 7.1.

Posted: October 29, 2013. At: 12:29 PM. This was 4 years ago. Post ID: 6486

I recently bought a TVstick branded USB TV tuner that had the Realtek Rtl2832UDVB chipset inside.

Following the instructions on this site: http://jms.id.au/wiki/EzcapDvbAdapter. I was able to get this device working with the 3.2 kernel on Debian Linux 7.1.

Firstly; retrieve the source code for the drivers.

git clone --depth=1 git://linuxtv.org/media_build.git

Then enter the newly created folder.

cd media_build

And begin the build process.

./build

I had to install these packages on Debian 7.1 to complete the process of building the firmware and the drivers.

sudo apt-get install  patchutils libproc-processtable-perl

Once the build process had completed; I could then type make install to install the firmware and the drivers.

sudo make install

And this is the dmesg output after plugging in the device to try it out. It even detected the IR reciever in the USB DVB device. That is pretty cool indeed.

[ 1699.384174] usb 2-1.2: new high-speed USB device number 5 using ehci_hcd
[ 1699.486648] usb 2-1.2: New USB device found, idVendor=1b80, idProduct=d3a8
[ 1699.486656] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1699.486662] usb 2-1.2: Product: Rtl2832UDVB
[ 1699.486666] usb 2-1.2: Manufacturer: Realtek
[ 1699.546541] WARNING: You are using an experimental version of the media stack.
[ 1699.546546] 	As the driver is backported to an older kernel, it doesn't offer
[ 1699.546549] 	enough quality for its usage in production.
[ 1699.546552] 	Use it with care.
[ 1699.546554] Latest git patches (needed if you report a bug to [email protected]):
[ 1699.546558] 	23c4919c6fd15e76fe245ad0158f8739a3fa0747 [media] marvell-ccic: drop free_irq for devm_request_irq allocated irq
[ 1699.546562] 	6c7e346974ad6d20898026f209581fb6dd8ce3f0 [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c
[ 1699.546567] 	b5eee19617a9d0b6e28fbbe7c669bbdc6a41a3e6 [media] media: Change variable type to bool
[ 1699.549994] WARNING: You are using an experimental version of the media stack.
[ 1699.549997] 	As the driver is backported to an older kernel, it doesn't offer
[ 1699.550000] 	enough quality for its usage in production.
[ 1699.550002] 	Use it with care.
[ 1699.550003] Latest git patches (needed if you report a bug to linux-media@vger.kernel.org):
[ 1699.550006] 	23c4919c6fd15e76fe245ad0158f8739a3fa0747 [media] marvell-ccic: drop free_irq for devm_request_irq allocated irq
[ 1699.550009] 	6c7e346974ad6d20898026f209581fb6dd8ce3f0 [media] drivers: media: usb: b2c2: use usb_*_coherent() instead of pci_*_consistent() in flexcop-usb.c
[ 1699.550012] 	b5eee19617a9d0b6e28fbbe7c669bbdc6a41a3e6 [media] media: Change variable type to bool
[ 1699.552671] usb 2-1.2: dvb_usb_v2: found a 'ASUS My Cinema-U3100Mini Plus V2' in warm state
[ 1699.594879] usb 2-1.2: dvb_usb_v2: will pass the complete MPEG2 transport stream to the software demuxer
[ 1699.594901] DVB: registering new adapter (ASUS My Cinema-U3100Mini Plus V2)
[ 1699.602292] usb 2-1.2: DVB: registering adapter 0 frontend 0 (Realtek RTL2832 (DVB-T))...
[ 1699.606347] fc0013: Fitipower FC0013 successfully attached.
[ 1699.613400] Registered IR keymap rc-empty
[ 1699.613524] input: ASUS My Cinema-U3100Mini Plus V2 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/rc/rc0/input17
[ 1699.613637] rc0: ASUS My Cinema-U3100Mini Plus V2 as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/rc/rc0
[ 1699.615917] IR NEC protocol handler initialized
[ 1699.616863] IR RC5(x) protocol handler initialized
[ 1699.617383] IR RC6 protocol handler initialized
[ 1699.620124] IR JVC protocol handler initialized
[ 1699.622247] IR Sony protocol handler initialized
[ 1699.622915] IR SANYO protocol handler initialized
[ 1699.623289] usb 2-1.2: dvb_usb_v2: schedule remote query interval to 400 msecs
[ 1699.624551] input: MCE IR Keyboard/Mouse (dvb_usb_rtl28xxu) as /devices/virtual/input/input18
[ 1699.625651] IR MCE Keyboard/mouse protocol handler initialized
[ 1699.626748] lirc_dev: IR Remote Control driver registered, major 250 
[ 1699.628207] rc rc0: lirc_dev: driver ir-lirc-codec (dvb_usb_rtl28xxu) registered at minor = 0
[ 1699.628216] IR LIRC bridge handler initialized
[ 1699.635040] usb 2-1.2: dvb_usb_v2: 'ASUS My Cinema-U3100Mini Plus V2' successfully initialized and connected
[ 1699.635117] usbcore: registered new interface driver dvb_usb_rtl28xxu

This is what the me-tv software looks like running on Debian 7.1. This TV tuner works better on Linux than it does with Windows. I do not watch that much television; but it is useful to be able to watch the news and keep up with current events. In this screenshot; Jeff Gordon is leading the race in the NASCAR championship. if you have one of these devices; give these instructions a go and see how you go. If you have a more recent kernel than me you should find that the device is detected right away. My Fedora 19 system detected this device right away. I have removed the Compro DTV T-300 card that I previously had installed on that computer and I will be using this one instead; it gets all of the available channels when used with me-tv.

I just did this with Linux Mint 15 and it worked perfectly with that distribution as well; follow the same instructions and this will work. You will need to install the build-essential package on Linux Mint if you do not already have it installed. But other than that this will really work.

Me TV - ONE Wagga Wagga - NASCAR Sprint Cup - Delayed.
Me TV – ONE Wagga Wagga – NASCAR Sprint Cup – Delayed.

Addendum: Just a note about this tip. You should keep the media-build source directory after installation of the drivers. If you update your kernel with apt-get update, you will need to re-install the driver firmware with sudo make install. Otherwise the hardware will not work again. I just did this on Linux Mint 15 and it worked a treat. I am using this software to watch Collateral and I am loving it.

1 responses to “How I got my Realtek RTL2832 DVB-T USB adapter working on Debian 7.1.

******************
* Start building *
******************
make -C /home/user/play/rtltv/media_build/v4l allyesconfig
make[1]: Entering directory `/home/user/play/rtltv/media_build/v4l’
make[2]: Entering directory `/home/user/play/rtltv/media_build/linux’
Applying patches for kernel 3.2.0-4-amd64
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
The text leading up to this was:
————————–
|diff –git a/drivers/media/usb/gspca/dtcs033.c b/drivers/media/usb/gspca/dtcs033.c
|index 5e42c71..ba01a3e 100644
|— a/drivers/media/usb/gspca/dtcs033.c
|+++ b/drivers/media/usb/gspca/dtcs033.c
————————–
No file to patch. Skipping patch.
1 out of 1 hunk ignored
make[2]: *** [apply_patches] Error 1
make[2]: Leaving directory `/home/user/play/rtltv/media_build/linux’
make[1]: *** [allyesconfig] Error 2
make[1]: Leaving directory `/home/user/play/rtltv/media_build/v4l’
make: *** [allyesconfig] Error 2
can’t select all drivers at ./build line 490.

Leave a Reply