[8MNANOLPD4-EVK] How to get kernel headers for release 5.15.52+g36363d8623ba?

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

[8MNANOLPD4-EVK] How to get kernel headers for release 5.15.52+g36363d8623ba?

509 Views
Petr_Choteborsky
Contributor I

Hey all,

I have recently started working on the i.MX 8M Nano EVK board and I need to write a small kernel module to make my app work.

I flashed the board with uuu using the auto script in LF_v5.15.52-2.1.0_images_IMX8MNEVK provided by NXP.  How do I get the proper kernel headers so I can compile my module?

I tried using 'apt-get install linux-headers-$(uname -r)' but no package is found.  And I tried searching the internet but came up empty-handed.  Any help would be greatly appreciated.

Thanks,

Petr

Labels (2)
0 Kudos
Reply
2 Replies

480 Views
edwardtyrrell
Senior Contributor I

Hi @Petr_Choteborsky,

If you are using Yocto you can add TOOLCHAIN_TARGET_TASK:append = " kernel-devsrc" into your local.conf. These will provide the necessary headers for out of tree module building.

Hope it helps..

0 Kudos
Reply

494 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Adding the packages to the SDKIMAGE_FEATURES indeed adds them to the toolchain installer. For adding to your actual image the easiest way would be adding the packages to the IMAGE_INSTALL_append variable so the packages are added to the image. I’m not sure if this would address your problem.

 

Regards

0 Kudos
Reply