Forum Discussion

MRazw's avatar
MRazw
Icon for New Contributor rankNew Contributor
6 years ago
Solved

How to compile kernel module on DE10 nano

Hello,

I need to develop a kernel module for my system. I dont know how to compile the module with my kernel headers. I searched rocketboards but could not find the answer. Please advice.

Thank you

  • Hello,

    Once you build your linux kernel, you can use the following command:

    make CROSS_COMPILE=<PATH_TO_YOUR_COMPILER> KERNEL_SRC=<inux-socfpga location>

    This will build the custom kernel module for you.

    Thank you

2 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    Once you build your linux kernel, you can use the following command:

    make CROSS_COMPILE=<PATH_TO_YOUR_COMPILER> KERNEL_SRC=<inux-socfpga location>

    This will build the custom kernel module for you.

    Thank you

  • MRazw's avatar
    MRazw
    Icon for New Contributor rankNew Contributor

    Thank you very much. I can compile it now.