I've tried the open source drivers and TBS's own proprietary ones, obtained from TBS website.
When I try and 'make' I get the following output:
- Code: Select All Code
root@lounge-server:~/tbs/linux-tbs-drivers# make -j5
make -C /root/tbs/linux-tbs-drivers/v4l
make[1]: Entering directory '/root/tbs/linux-tbs-drivers/v4l'
make -C firmware prep
creating symbolic links...
make[2]: Entering directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
make[2]: Leaving directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
make -C firmware
make[2]: Entering directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/root/tbs/linux-tbs-drivers/v4l/firmware'
Kernel build directory is /lib/modules/4.15.0-15-generic/build
make -C /lib/modules/4.15.0-15-generic/build SUBDIRS=/root/tbs/linux-tbs-drivers/v4l modules
make[2]: Entering directory '/usr/src/linux-headers-4.15.0-15-generic'
LD [M] /root/tbs/linux-tbs-drivers/v4l/tda18271.o
LD [M] /root/tbs/linux-tbs-drivers/v4l/saa7146.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/saa7146_video.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/saa716x_pci.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/saa716x_i2c.o
CC [M] /root/tbs/linux-tbs-drivers/v4l/saa716x_cgu.o
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c: In function 'video_init':
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c:1307:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
init_timer(&vv->video_q.timeout);
^~~~~~~~~~
init_timers
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c:1308:31: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
vv->video_q.timeout.function = saa7146_buffer_timeout;
^
/root/tbs/linux-tbs-drivers/v4l/saa7146_video.c:1309:21: error: 'struct timer_list' has no member named 'data'
vv->video_q.timeout.data = (unsigned long)(&vv->video_q);
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/tbs/linux-tbs-drivers/v4l/saa7146_video.o' failed
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/saa7146_video.o] Error 1
make[3]: *** Waiting for unfinished jobs....
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_workaround':
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:117:6: error: implicit declaration of function 'signal_pending'; did you mean 'timer_pending'? [-Werror=implicit-function-declaration]
if(signal_pending(current)) {
^~~~~~~~~~~~~~
timer_pending
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_init':
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:368:2: error: implicit declaration of function 'init_timer'; did you mean 'init_timers'? [-Werror=implicit-function-declaration]
init_timer(&vv->vbi_q.timeout);
^~~~~~~~~~
init_timers
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:369:29: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
vv->vbi_q.timeout.function = saa7146_buffer_timeout;
^
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:370:19: error: 'struct timer_list' has no member named 'data'
vv->vbi_q.timeout.data = (unsigned long)(&vv->vbi_q);
^
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_open':
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:418:32: error: assignment from incompatible pointer type [-Werror=incompatible-pointer-types]
fh->vbi_read_timeout.function = vbi_read_timeout;
^
/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.c:419:22: error: 'struct timer_list' has no member named 'data'
fh->vbi_read_timeout.data = (unsigned long)file;
^
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.o' failed
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/saa7146_vbi.o] Error 1
/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.c: In function 'saa716x_enable_msix':
/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.c:49:8: error: implicit declaration of function 'pci_enable_msix'; did you mean 'pci_enable_msi'? [-Werror=implicit-function-declaration]
ret = pci_enable_msix(pdev, saa716x->msix_entries, SAA716x_MSI_MAX_VECTORS);
^~~~~~~~~~~~~~~
pci_enable_msi
cc1: some warnings being treated as errors
scripts/Makefile.build:332: recipe for target '/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.o' failed
make[3]: *** [/root/tbs/linux-tbs-drivers/v4l/saa716x_pci.o] Error 1
Makefile:1552: recipe for target '_module_/root/tbs/linux-tbs-drivers/v4l' failed
make[2]: *** [_module_/root/tbs/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.15.0-15-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/root/tbs/linux-tbs-drivers/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2
root@lounge-server:~/tbs/l
Any ideas how to get past this?