Get the linux kernel headers

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

Get the linux kernel headers

2,234 Views
terateller
Contributor II

Dear All,

I have the freescale imx6 SD board and I have the LTIB ubuntu running on it. When I did a "uname  -r" , here is what I see:

3.0.35-2666-gbdde708

However under /lib/modules, I only see the headers for  3.0.35-2508-g54750ff

How/where do I download the kernel headers for 3.0.35-2666-gbdde708 ?

Thanks in advance

Regards,

tera

Labels (1)
Tags (2)
0 Kudos
4 Replies

1,389 Views
LeonardoSandova
Specialist I

Did you did some changes on your kernel? If yes, build the whole system (./ltib) and flash the rootfs again. The problem is that one you have a rootfs (with certain modules on it) and  later you update the kernel (and boot with it), you can see the directory name mismatch as the one you are seen.

Hack: If you did not do any change on the module area, you can do a just create a soft link on the modules where link's name is the uname -r one and points to the current module's folder...

Leo

0 Kudos

1,389 Views
terateller
Contributor II

I wanted to compile an application. It asked for the kernel headers. Also I was searching for "tcrypt.c" crypto test program which happens to be under /crypto/ folder in my main LTIB kernel sources. However I don't find it in the booted IMX board with this kernel. I wanted to run this test program so wondered about compiling the kernel with sources

0 Kudos

1,389 Views
BrilliantovKiri
Senior Contributor I

Hello!

3.0.35 is a Linux version, 2666 - local changes and gbdde708 - git hash.

I think you get similar version after compiling Linux from LTIB, but major only Linux version, local changes and git revision may be difference.

0 Kudos

1,389 Views
terateller
Contributor II

so should I get headers for 3.0.35 via the apt-get command?

0 Kudos