Page 1 of 1
/lib/modules/4.14.111/build direct to a unknown direction
Posted: Wed Jul 24, 2019 7:31 am
by fmstereo
when build a driver for uvc, the enviroment needed :
/lib/modules/4.14.111/build -> /root/2.source/board/tools/rom-manager/src/plat/sunxi/linux
it's not exists. there is no 4.14.111 linux-headers in apt repo.
how to get the headers?
Re: /lib/modules/4.14.111/build direct to a unknown direction
Posted: Wed Jul 24, 2019 10:24 am
by fmstereo
I have tried to download source code of 4.14.111 from kernel.org, and make headers_install, but the it couldn't work.
it suggests to make oldconfig && make prepare, so many parameters...
any one can help me with it?
Re: /lib/modules/4.14.111/build direct to a unknown direction
Posted: Wed Jul 24, 2019 10:27 am
by fmstereo
if excute apt-get install linux-headers-4.13.0-16-generic, and change the path in the Makefile, the driver can be compiled.
but the driver can't be load with the followin error:
[166779.671340] uvcvideo: version magic '4.15.0-13-generic SMP mod_unload aarch64' should be '4.14.111 SMP mod_unload aarch64'
Re: /lib/modules/4.14.111/build direct to a unknown direction
Posted: Wed Jul 24, 2019 10:50 am
by igorp
fmstereo wrote:
if excute apt-get install linux-headers-4.13.0-16-generic, and change the path in the Makefile, the driver can be compiled.
but the driver can't be load with the followin error:
[166779.671340] uvcvideo: version magic '4.15.0-13-generic SMP mod_unload aarch64' should be '4.14.111 SMP mod_unload aarch64'
It is expected that it will fail.
Re: /lib/modules/4.14.111/build direct to a unknown direction
Posted: Fri Oct 18, 2019 8:52 am
by Maggie777
I have the same issue! My current link for /lib/modules/4.14.111/build is exactly like yours and there is no kernel header for 4.14.111 in my system as well.
From googling other people's posts, I think I should expect the correct link to be something like "/lib/modules/4.14.111/build -> /usr/src/kernel/(files of your kernel vesion)" but my /usr/src is empty (i.e. there is no such directory /kernel in my system)!