Get the linux kernel headers

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Get the linux kernel headers

2,674件の閲覧回数
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

ラベル(1)
タグ(2)
0 件の賞賛
返信
4 返答(返信)

1,829件の閲覧回数
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 件の賞賛
返信

1,829件の閲覧回数
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 件の賞賛
返信

1,829件の閲覧回数
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 件の賞賛
返信

1,829件の閲覧回数
terateller
Contributor II

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

0 件の賞賛
返信