Page 1 of 1

build usbtv in NanopPi2

Posted: Mon Feb 13, 2017 11:25 am
by larryho5
I got the driver in here "https://github.com/mwelchuk/usbtv";

when I type "dkms build -m usbtv -v 1.0"

It just return me error like the following

Error! Your kernel headers for kernel 3.4.39-s5p4418 cannot be found.
Please install the linux-headers-3.4.39-s5p4418 package,
or use the --kernelsourcedir option to tell DKMS where it's located

Re: build usbtv in NanopPi2

Posted: Mon Feb 13, 2017 2:06 pm
by meisam
larryho5 wrote:
I got the driver in here "https://github.com/mwelchuk/usbtv";

when I type "dkms build -m usbtv -v 1.0"

It just return me error like the following

Error! Your kernel headers for kernel 3.4.39-s5p4418 cannot be found.
Please install the linux-headers-3.4.39-s5p4418 package,
or use the --kernelsourcedir option to tell DKMS where it's located


first you should download the friendlyarm linux-3.4.y from github to your /usr/src directory
Then return back to your driver directory and update the KSRC parameter to /usr/src/linux-3.4.y

now your compilation may be done with no error but this is not the end. you should edit vermagic.h
or utsreleased.h in the kernel source to let the modprobe executes your compiled module. there is
also another solution to run your module with modprobe --force-vermagic.