Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A20 => Topic started by: andyw on May 25, 2018, 05:55:00 PM

Title: Kernel Headers - additional!
Post by: andyw on May 25, 2018, 05:55:00 PM
Please could somebody tell me how to install them on the A20-OLinuXino-MICRO board using the A20_OLinuxino_Micro_debian_Jessie_34_103_2G_eMMC_release_17.img?

So I downloaded linux-sunxi-sunxi-v3.4.29-r0.zip and unzipped it on the board.

Then went into the unzip directory and did make headers_install

But when I tried to compile my program that had

#include <linux/interrupt.h>

That is where the fun began...

It was not present in the /usr/include directory and the more and more I hunted for and copied missing files - we are talking about a lot - the worse it got!

Does anybody have a solution?



Thanks

Andy.
Title: Re: Kernel Headers - additional!
Post by: igorpec on June 01, 2018, 07:55:08 AM
https://www.armbian.com/olimex-micro/

Headers are installable from armbian-config menu.
Title: Re: Kernel Headers - additional!
Post by: andyw on June 01, 2018, 05:54:31 PM
I am using Debian but will give Armbian a try!

Thanks

Andy.
Title: Re: Kernel Headers - additional!
Post by: igorpec on June 02, 2018, 09:20:17 AM
Quote from: andyw on June 01, 2018, 05:54:31 PM
I am using Debian but will give Armbian a try!

Thanks

Andy.

Armbian is Debian or (Stallmanized) Ubuntu based. It's more polished and optimized for running on small ARM boards than stock Debian/Ubuntu. Give it a try. If you don't find the exact kernel/userspace combo, you can build one (https://github.com/armbian/build) on some Intel-based machine.
Title: Re: Kernel Headers - additional!
Post by: andyw on June 04, 2018, 10:57:11 AM
This does not install all the headers like interrupt.h either...
Title: Re: Kernel Headers - additional!
Post by: igorpec on June 05, 2018, 11:22:10 PM
Quote from: andyw on June 04, 2018, 10:57:11 AM
This does not install all the headers like interrupt.h either...

Then try with a whole source https://apt.armbian.com/pool/main/l/linux-source-3.4.113-default-sun7i
Title: Re: Kernel Headers - additional!
Post by: JohnS on June 08, 2018, 12:42:11 AM
Or install the Olimex source - usually linked from their product page/wiki.

John
Title: Re: Kernel Headers - additional!
Post by: andyw on June 12, 2018, 05:12:16 PM
I did...

Unfortunately when you include /linux/interrupt.h and let VisualGDB know where it actually is, then lots of other header files get invited to the party and I cannot resolve them.

I did make headers_install after I had downloaded linux-sunxi-sunxi-v3.4.29-r0.zip but even that did not solve everything.

What I want to do is use the EXTI interrupts.