SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had to do the same in tuner_tda18218.h but now af9035.c seems to be missing these headers in mxl5007t and tuner_tda18218:
Quote:
make -C /usr/src/linux SUBDIRS=/home/gerard/Downloads/AF9035_xgaz_3.0.0 modules
make[1]: Entering directory `/usr/src/linux-3.0.0'
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/tuner_tda18218.o
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.o
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c: In function ‘af9035_tuner_attach’:
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:9: error: ‘mxl5007t_attach’ undeclared (first use in this function)
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:9: note: each undeclared identifier is reported only once for each function it appears in
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:9: warning: type defaults to ‘int’ in declaration of ‘__a’
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:3: warning: type defaults to ‘int’ in type name
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:9: warning: cast from pointer to integer of different size
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:3: warning: type defaults to ‘int’ in type name
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:9: warning: cast from pointer to integer of different size
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1066:9: error: called object ‘__a’ is not a function
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:26: error: ‘tuner_tda18218_attach’ undeclared (first use in this function)
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:26: warning: type defaults to ‘int’ in declaration of ‘__a’
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:20: warning: type defaults to ‘int’ in type name
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:26: warning: cast from pointer to integer of different size
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:20: warning: type defaults to ‘int’ in type name
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:26: warning: cast from pointer to integer of different size
/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.c:1102:26: error: called object ‘__a’ is not a function
make[2]: *** [/home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.o] Error 1
make[1]: *** [_module_/home/gerard/Downloads/AF9035_xgaz_3.0.0] Error 2
make[1]: Leaving directory `/usr/src/linux-3.0.0'
make: *** [default] Error 2
I'm not an expert C programmer but I'm trying to figure it out myself.
Please tell me if you come up with any possible way to fix it.
I removed both functions, compiled, installed firmware and reboot:
Quote:
make -C /usr/src/linux SUBDIRS=/home/gerard/Downloads/AF9035_xgaz_3.0.0 modules
make[1]: Entering directory `/usr/src/linux-3.0.0'
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/mxl5007t.o
/home/gerard/Downloads/AF9035_xgaz_3.0.0/mxl5007t.c:764:29: warning: ‘mxl5007t_tuner_ops’ defined but not used
/home/gerard/Downloads/AF9035_xgaz_3.0.0/mxl5007t.c:777:12: warning: ‘mxl5007t_get_chip_id’ defined but not used
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/tua9001.o
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/tuner_tda18218.o
/home/gerard/Downloads/AF9035_xgaz_3.0.0/tuner_tda18218.c:112:12: warning: ‘tda18218_rd_reg’ defined but not used
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/af9035.o
LD [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/dvb-usb-af9035.o
CC [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/af9033.o
Building modules, stage 2.
MODPOST 5 modules
CC /home/gerard/Downloads/AF9035_xgaz_3.0.0/af9033.mod.o
LD [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/af9033.ko
CC /home/gerard/Downloads/AF9035_xgaz_3.0.0/dvb-usb-af9035.mod.o
LD [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/dvb-usb-af9035.ko
CC /home/gerard/Downloads/AF9035_xgaz_3.0.0/mxl5007t.mod.o
LD [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/mxl5007t.ko
CC /home/gerard/Downloads/AF9035_xgaz_3.0.0/tua9001.mod.o
LD [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/tua9001.ko
CC /home/gerard/Downloads/AF9035_xgaz_3.0.0/tuner_tda18218.mod.o
LD [M] /home/gerard/Downloads/AF9035_xgaz_3.0.0/tuner_tda18218.ko
make[1]: Leaving directory `/usr/src/linux-3.0.0'
Quote:
[ 8.478882] dvb-usb: found a 'Avermedia AverTV Volar HD & HD PRO (A835)' in cold state, will try to load a firmware
[ 8.519652] dvb-usb: downloading firmware from file 'dvb-usb-af9035-01.fw'
[ 8.946890] dvb-usb: found a 'Avermedia AverTV Volar HD & HD PRO (A835)' in warm state.
[ 8.955705] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[ 8.964979] DVB: registering new adapter (Avermedia AverTV Volar HD & HD PRO (A835))
[ 8.990379] af9033: firmware version: LINK:11.15.10.0 OFDM:5.48.10.0
[ 9.001627] DVB: registering adapter 0 frontend 0 (Afatech AF9033 DVB-T)...
[ 9.017574] usb 8-2: New USB device found, idVendor=046d, idProduct=c050
[ 9.026901] usb 8-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 9.030487] tuner_tda18218_attach: driver disabled by Kconfig
[ 9.030499] Registered IR keymap rc-empty
[ 9.030561] input: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb2/2-4/rc/rc0/input4
[ 9.030621] rc0: IR-receiver inside an USB DVB receiver as /devices/pci0000:00/0000:00:1d.7/usb2/2-4/rc/rc0
[ 9.030623] dvb-usb: schedule remote query interval to 200 msecs.
[ 9.030625] dvb-usb: Avermedia AverTV Volar HD & HD PRO (A835) successfully initialized and connected.
[ 9.120406] usbcore: registered new interface driver dvb_usb_af9035
But neither Kaffeine nor VLC find any channels when scanning. The device works fine in a Windows7 partition.
I compared my dmesg with that in ArchLinux forum and there's a little difference:
They get: [17732.229761] tda18218: NXP TDA18218HN successfully identified.
instead of: [ 9.030487] tuner_tda18218_attach: driver disabled by Kconfig
Looks like the problem is that tuner_tda18218_attach function was removed. But I wonder why it is declared in two places when compiling and then missing when loading the driver. tuner_tda18218.c and tuner_tda18218.h are included in kernel-3.0.0 drivers (files are nearly the same) so they must be fine. May it have to do with the makefile? Or maybe the includes...
You have to compile the modules in the 3.0.0 kernel. So make sure you enable tda18218 and mxl5007t in the kernel as modules. Then you should try to compile these external drivers. If it finds them in the kernel, it won't try to compile them again and probably avoid this issue. So, just compile the kernel with these modules enabled and try compiling the external modules again without my modifications (should not be neccesary any more).
Last edited by H_TeXMeX_H; 01-22-2012 at 04:16 AM.
I previously tried enabling those modules but couldn't find them in the kernel configuration app. I turns out they were hidden because I had to activate Customize analog and hybrid tuner modules to build in Multimedia support. Then appears a section called Customize TV tuners and you can enable them.
Now it compiles and installs fine. Restarted the system and got this in dmesg:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.