AM67A: Linux Kernel Header Files to Compile .ko Modules

Part Number: AM67A
Other Parts Discussed in Thread: J722SXH01EVM,

Development Board: J722SXH01EVM
"uname -r" : 6.12.17-ti-00773-gcdcaeac783e3-dirty
image: tisdk-edgeai-image-j722s-evm.wic.xz

 



Hello,

I am working with the J722SXH01EVM evaluation board. This board uses the same processor as a custom embedded board currently under development, and I am testing and comparing certain properties between the two platforms.

I am using the following SD card image on the EVM:

  • tisdk-edgeai-image-j722s-evm.wic.xz (~1.04 GB),
    from Processor SDK Linux for AM67A → SD card image with Edge AI stack

To test additional external/attachment modules on the board, I need to build some out-of-tree kernel modules (.ko).

I attempted to compile the module sources directly on the development board, but the Linux kernel headers are not present in the filesystem.

My questions are:

  1. What is the recommended way to obtain the correct Linux kernel headers or kernel source for this image in order to compile kernel modules?

  2. Is it mandatory to use the Yocto SDK for building kernel modules?

  3. Is there an alternative method to compile kernel modules without installing the full Yocto SDK, as its size is quite large?

Any guidance or best-practice recommendations would be appreciated.

Thank you.

Best regards,
Hasan Halil

  • Hello Hasan,

    Please see the Linux SDK for this [1]. The SDK installation will include the Linux kernel, and this should be where you build your .KO's by default. I don't expect those KO's to be build-able on the target

    No, using Yocto should not be required for this purpose. That is needed for the additional libraries and user-level software, applicatoins, utilities that go into the SDK. 

    [1] www.ti.com/.../PROCESSOR-SDK-AM67A