On 10/05/14 08:44, Robert Brown
wrote:
On 10/05/14 08:11, Robert Brown
wrote:
Try extending the EXTRA_CFLAGS in the Makefile
thus:
...
-I$(SOURCEDIR)/$(INCLUDE_EXTRA_DVB) \
-I/home/debian/linux-sunxi-pat-3.4.67/drivers/media/dvb/dvb-usb/
I.e. The "\" extends from the pre-existing last line, adding
one new.
Now it has somewhere to find dvb-usb.h, and anything could
happen after
that.
Erik
The result is in the attached compile2.txt and have also
attached dvb_frontend.h
A bit of searching on the error led me to:
https://github.com/ambrosa/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/issues/12
which suggests this:
https://github.com/tmair/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/tree/master/RTL2832-2.2.2_kernel-3.0.0
which I am about to d/l and try. Beats me why all of my
previous searches for "rtl2832 and kernel 3.4" have not taken
me to this possibly vital link.
Rob
Ok this compile works without errors. Yay (have you any idea how
long I have been at this?) and creates a
dvb-usb-rtl2832u.ko
but not a
rtl2832u.ko
despite there being a bunch of files like rtl2832u.c and
rtl2832u.o
and dmesg complains of no frontend:
dvb-usb: found a 'RTL2832U DVB-T USB DEVICE' in warm state.
[ 2040.777066] dvb-usb: will pass the complete MPEG2 transport
stream to the software demuxer.
[ 2040.793621] DVB: registering new adapter (RTL2832U DVB-T USB
DEVICE)
[ 2040.833115] RTL2832U usb_init_bulk_setting : USB2.0 HIGH
SPEED (480Mb/s)
[ 2041.153012] RTL2832U check_tuner_type : ERROR Unknown tuner
on board...
[ 2041.166512] dvb-usb: no frontend was attached by 'RTL2832U
DVB-T USB DEVICE'
[ 2041.190209] input: IR-receiver inside an USB DVB receiver as
/devices/platform/sw-ehci.1/usb2/2-1/input/input3
[ 2041.226625] dvb-usb: schedule remote query interval to 287
msecs.
[ 2041.251663] dvb-usb: RTL2832U DVB-T USB DEVICE successfully
initialized and connected.
[ 2041.267826] usbcore: registered new interface driver
dvb_usb_rtl2832u
[ 2548.427451] rtl2832: disagrees about version of symbol
module_layout
so I will attach -v in the Makefile and run it again.
Getting there!
So the make is running:
CC [M]
/home/debian/DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0/rtl2832u.o
without errors and similar so should produce a rtl2832u.ko IMHO.
It says : ignoring nonexistent directory
"/drivers/media/dvb/frontends/"
and 3 others like it but those directories exist e.g.
~/linux-sunxi-pat-3.4.67/drivers/media/dvb/frontends
so it must be looking in a different place. Not sure if that's why
I don't get a rtl2832u.ko but I notice that the install part of
the makefile doesn't seem to expect such a .ko file. Maybe I
could try mkdir /drivers/media/dvb/frontends/ in directory
DVB-Realtek-RTL2832U-2.2.2-10tuner-mod_kernel-3.0.0/RTL2832-2.2.2_kernel-3.0.0
from where I run make?
Ok so that doesn't help.