Page 1 of 1

v170330 driver with Fedora Kernel 4.11.3 compile fails.

PostPosted: Sat Jun 10, 2017 11:16 pm
by andyharvey
Trying to compile drivers with Fedora kernel 4.11.3-202.fc25.x86_64 fails.

First with:

/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_workaround':
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/saa7146_vbi.c:117:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if(signal_pending(current)) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors

Fixed this by adding :

#include <linux/sched/signal.h>

to linux/include/media/v4l2-common.h & ./linux/drivers/media/rc/lirc_dev.c


Then hit the following:

/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/videobuf-dma-sg.c:444:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fault = videobuf_vm_fault,
^~~~~~~~~~~~~~~~~
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/videobuf-dma-sg.c:444:11: note: (near initialization for 'videobuf_vm_ops.fault')

I have not found the solution to this yet.

Re: v170330 driver with Fedora Kernel 4.11.3 compile fails.

PostPosted: Sun Jun 11, 2017 9:54 pm
by steven
Hi

Please have a try with this driver :
#wget http://www.tbsdtv.com/download/document ... 19.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-latest.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind Regards

steven

Re: v170330 driver with Fedora Kernel 4.11.3 compile fails.

PostPosted: Sun Jun 11, 2017 11:01 pm
by andyharvey
Thanks,
that version works ok.

The install.shj/patch-kernel.sh scripts seem debian biased, they use dpkg-query, which isn't on my Fedora system but it worked ok despite that.