Power & Source of Big Ideas

Installing linux headers on the NanoPi NEO

Moderators: chensy, FATechsupport

I need to install the linux headers on the NanoPi NEO to compile a driver for the RTL8192CU wifi dongle.
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

Code: Select all

make install_headers
or

Code: Select all

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:

Code: Select all

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
naturious wrote:
I need to install the linux headers on the NanoPi NEO to compile a driver for the RTL8192CU wifi dongle.
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

Code: Select all

make install_headers
or

Code: Select all

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:

Code: Select all

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


1. Download, burn, boot
https://www.armbian.com/nanopi-neo/

2. Git clone driver source code

3. Type make (perhaps make ARCH=arm)

Headers are installed and ready

Who is online

In total there are 5 users online :: 0 registered, 0 hidden and 5 guests (based on users active over the past 5 minutes)
Most users ever online was 106 on Tue Jun 04, 2019 5:48 pm

Users browsing this forum: No registered users and 5 guests