[Nexus 7 General] motylu:
I have working DVB-T with Terratec TStick+ (RTL2832 + E4000) from Ebay on my Nexus 7 running kernel 3.1.10-g05b777c!!!

Nobody can help me with this problem so I must working on my own:

Boot Ubuntu 12.04 32bit on VMware, install git, download dvbn7comp script from martintzvetomirov to folder nexusdvb, run chmod +x dvbn7comp inside the folder and then run ./dvbn7comp 3.1.10-g05b777c. So I get drivers already in the Nexus kernel.

Download RTL2832 driver from https://github.com/ambrosa/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0, rename folder to dvb-usb-rtl2832u and copy to nexusdvb/ksrc/drivers/media/dvb.

Add

dvb-usb-rtl2832u/	\

to nexusdvb/ksrc/drivers/media/dvb/Makefile.

Add definitions to Product ID (PID) 0x00d7 (Terratec TStick+ has PID 0x00d7) in nexusdvb/ksrc/drivers/media/dvb/dvb-usb-rtl2832u/rtl2832u.h and nexusdvb/ksrc/drivers/media/dvb/dvb-usb-rtl2832u/rtl2832u.c. You can also change existing PID in appropriate lines to PID of your tuner - it is faster and easier.

Edit nexusdvb/ksrc/drivers/media/dvb/dvb-usb-rtl2832u/Makefile:

# License: GPL
# RTL2832U Driver

# Choose here wich include file to use: from kernel 3.0.0 (good for 3.1.0) or from kernel 3.2.0

# kernel 3.0.0 / 3.1.0
#INCLUDE_EXTRA_DVB := include-300

# kernel 3.2.0
#INCLUDE_EXTRA_DVB := include-320

# ----------------------------------------

# current dir
SOURCEDIR := $(PWD)

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 \
tuner_tda18272.o nim_rtl2832_tda18272.o rtl2832u_ioctl.o nim_rtl2832_fc0013.o \
tuner_fc0013.o

obj-m += dvb-usb-rtl2832u.o

EXTRA_CFLAGS += -Idrivers/media/dvb/dvb-usb/ \
-Idrivers/media/dvb/dvb-core/ \
-Idrivers/media/dvb/frontends/ \
-Idrivers/media/common/tuners/

KINS = /lib/modules
KDIR = /usr/src/linux-headers-`uname -r`

#default:
#	make -C $(KDIR) SUBDIRS=$(PWD) modules
#
#install:
#	cp dvb-usb-rtl2832u.ko $(KINS)/`uname -r`/kernel/drivers/media/#dvb/dvb-usb/
#	depmod -a
#
#clean:
#	-rm -f *.o *.ko *.mod.c .*.o.cmd .*.o.d .*.ko.cmd #Module.symvers Module.markers modules.order
#	-rm -rf .tmp_versions

Add

CONFIG_DVB_RTL2832U=m\

and comment

# Reset the repo so that it is clean
#echo " *** Resetting git repo to commit $COMMIT ***"
#git checkout $COMMIT
#git clean -f -x
#git reset --hard
#make mrproper

in dvbn7comp script.

Compile drivers running ./dvbn7comp 3.1.10-g05b777c, get dvb-usb-rtl2832u.ko from output_3.1.10-g05b777c folder and ENJOY DVB-T on my Nexus 7!!!

So if your tuner has RTL2832 and Elonics E4000 chips and is not working with your Nexus 7 using precompiled dvb-usb-rtl2832u.ko try my procedure described above with PID of your tuner.

Here is my kernel module compiled for kernel 3.1.10-g05b777c:

dvb-usb-rtl2832u.ko