Moderator Control Panel ]

Error Compiling Driver

Error Compiling Driver

Postby kingsize » Wed Mar 20, 2019 8:52 pm

Hi there.
I have been using my TBS card from some time now and am quite use to compiling the drivers every time there is a kernel upgrade. How ever just lately I've been having no end of trouble.
My system is currently running Ubuntu Server 16.04LTS.
Linux localhost 4.4.0-143-generic #169-Ubuntu SMP Thu Feb 7 07:56:38 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
I have installed "build-essential" & "kernel-headers" I'm not aware of any other packages I might need.
The compile out put is bellow. Please any other information you might need from me just ask and I'd be happy to add to this.

/home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c: In function 'videobuf_dma_init_user_locked':
/home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c:193:21: warning: passing argument 6 of 'get_user_pages' makes pointer from integer without a cast [-Wint-conversion]
rw == READ, 1, /* force */
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from /home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c:28:
include/linux/mm.h:1222:6: note: expected 'struct page **' but argument is of type 'int'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c:194:9: warning: passing argument 7 of 'get_user_pages' from incompatible pointer type [-Wincompatible-pointer-types]
dma->pages, NULL);
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from /home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c:28:
include/linux/mm.h:1222:6: note: expected 'struct vm_area_struct **' but argument is of type 'struct page **'
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
/home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c:191:10: error: too many arguments to function 'get_user_pages'
err = get_user_pages(current, current->mm,
^
In file included from include/linux/scatterlist.h:7:0,
from include/linux/dma-mapping.h:10,
from /home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.c:28:
include/linux/mm.h:1222:6: note: declared here
long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
^
scripts/Makefile.build:291: recipe for target '/home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.o' failed
make[3]: *** [/home/godfather/TBS/v170330/linux-tbs-drivers/v4l/videobuf-dma-sg.o] Error 1
make[3]: *** Waiting for unfinished jobs....
Makefile:1454: recipe for target '_module_/home/godfather/TBS/v170330/linux-tbs-drivers/v4l' failed
make[2]: *** [_module_/home/godfather/TBS/v170330/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.4.0-143-generic'
Makefile:51: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/godfather/TBS/v170330/linux-tbs-drivers/v4l'
Makefile:26: recipe for target 'all' failed
make: *** [all] Error 2

Any help/sugestions would be welcome

Thanks in advance.
kingsize
 
Posts: 3
Joined: Tue Mar 19, 2019 11:46 pm

Re: Error Compiling Driver

Postby steven » Thu Mar 21, 2019 9:41 am

Hi

You can have a try update the kernel to 4.10 and try with our latest open source driver :
https://github.com/tbsdtv/linux_media/wiki

or this offline package :
#wget http://www.tbsdtv.com/download/document/linux/media_build-2019-0308.tar.bz2
# sudo rm -rf /lib/modules/`uname -r`/kernel/drivers/media/
#tar jxvf media_build-2019-0308.tar.bz2
#cd media_build
#./install.sh
#reboot

Thanks

Kind Regards

steven
steven
 
Posts: 1964
Joined: Fri Aug 06, 2010 3:23 pm

Re: Error Compiling Driver

Postby kingsize » Thu Mar 21, 2019 4:57 pm

Hi Steven

Thank you for the quick response. I shall try your suggestion later today and report back.
I do how ever think I might have all ready tried some thing similar from another thread.

Figures crost ;-)
kingsize
 
Posts: 3
Joined: Tue Mar 19, 2019 11:46 pm

Re: Error Compiling Driver (SOLVED)

Postby kingsize » Thu Mar 21, 2019 8:34 pm

So I've had a go and what do you know. I have finally succeeded in installing the git hub drivers.

Thank you for your help.
kingsize
 
Posts: 3
Joined: Tue Mar 19, 2019 11:46 pm


Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest