cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Adventurer
Adventurer
362 Views
Registered: ‎05-31-2019

How to build a kernel module using petalinux?

Jump to solution

Hi, all

I want to build the kernel module from here: https://github.com/nvdla/sw/tree/master/kmd. The instruction given on how to configure and compile this directory is: 

make KDIR=<path_to_Linux_source> ARCH=arm64 CROSS_COMPILE=<path_to_toolchain>

I want to build this using petalinux without creating any additional module. So what should be the <path_to_Linux_source> , <path_to_toolchain> in this case?

0 Kudos
1 Solution

Accepted Solutions
Mentor
Mentor
320 Views
Registered: ‎06-16-2013

Re: How to build a kernel module using petalinux?

Jump to solution

Hi @maju42 

 

FYI.

 

<path_to_Linux_source>

=> Download suitable linux kernel same as what you use by petalinux.

<path_to_toolchain>

=> Your cross compiler toolchain path

ex. <your installed SDK directory>/aarch64/lin/aarch64-linux/bin

 

Best regards,

View solution in original post

0 Kudos
1 Reply
Mentor
Mentor
321 Views
Registered: ‎06-16-2013

Re: How to build a kernel module using petalinux?

Jump to solution

Hi @maju42 

 

FYI.

 

<path_to_Linux_source>

=> Download suitable linux kernel same as what you use by petalinux.

<path_to_toolchain>

=> Your cross compiler toolchain path

ex. <your installed SDK directory>/aarch64/lin/aarch64-linux/bin

 

Best regards,

View solution in original post

0 Kudos