Page 1 of 1

How can I install linux headers for kernel 3.4.39-h3?

Posted: Sun Sep 03, 2017 1:17 pm
by naturious
I tried looking into the available packaged versions using

Code: Select all

apt-cache search linux-headers-
but it doesnt seem there's one that even comes close to this version of the kernel, so I tried installing the headers manually.
I'm running Ubuntu Core 16.04 on the NEO, kernel version 3.4.39-h3.
I tried getting the source files from here: https://github.com/friendlyarm/h3_lichee
and renamed the "linux-3.4" directory to "linux-3.4.39-h3" and got it to /usr/src
Then in that directory I tried running

make install_headers

or

make oldconfig

to install the headers or at least compile the linux source to be able to reference it in the driver source, but I always get the same error:

In file included from scripts/basic/fixdep.c:106:0:
/usr/include/arm-linux-gnueabihf/sys/types.h:25:22: fatal error: features.h: No such file or directory
compilation terminated.


Any help would be largely appreciated

Re: How can I install linux headers for kernel 3.4.39-h3?

Posted: Sun Sep 03, 2017 6:41 pm
by igorp
Get Armbian and this (headers are already installed by default) will work out of the box. With much more recent and fixed kernel.