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
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..
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