iMX6 linux kernel header installation

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6 linux kernel header installation

2,208 Views
JohnCannizzo
Contributor III

Hi All,

I decided to try the latest Linux version on my iMX6 SDB, so I downloaded the BSP and RFS, got u-boot, the kernel, and the file system running.  I ran
"do-release-upgrade", waited HOURS, did a little fix-up, and now have a stable Ubuntu 12.04 / Linaro system on my SD card.

I went to build my apps, which require kernel headers, and hit a wall.  The usual method to install kernel headers, "sudo apt-get install linux-headers-$(uname -r)" failed.  uname -r returns 3.0.35-2666-gbdde708.  I've already completed a "sudo apt-get update", so everything on my system is up-to-date.

How do I get and install the kernel headers for this release?  I'm trying to avoid the whole ltib / kernel build, so if there's a way to get and install just the kernel headers, please let me know.

Thanks in advance...

Tags (4)
0 Kudos
2 Replies

1,053 Views
LeonardoSandova
Specialist I

What is the error log? Why do you want to native compile?

0 Kudos

1,053 Views
JohnCannizzo
Contributor III

The error from my app build was that it couldn't find linux/modules.h  This is several 100K lines of legacy code still built using MAKE, and it built native under the pre-release version of iMX6 and Ubuntu 11.04 / Linaro, so staying with that method seemed like the path of least resistance.  I went through the ltib process for that build to get the kernel headers.  I just recall it being painful and wanted to avoid it this time if possible.  In Freescale's defense, it was a pre-release board with pre-release firmware / OS / software, and it still went smoother than other vendor's released product.  For the iMX6 release SDB, the Linux install instructions worked, and u-boot, kernel, and file system installed as expected.  If the kernel headers are available, it would save some time & effort...

Thanks

0 Kudos