Jump to content
  • 0

Petalinux Kernel header




Could someone please help me how I can compile multiple files and create a module in Petalinux.

From my understanding,
I should Include Kernel headers in the petalinux build and use make command inside board which automatically compiles the required modules for the running kernel. (if kernel headers are present).

Currently I don't have kernel headers (/lib/modules/$(uname -r)/build )in my board.

I do not have the option "kernel-devsrc" to include kernel-headers under,
user packages --> [*] kernel-devsrc when I give the command "petalinux-config -c rootfs"

Can you please help me in how I can include kernel headers into my petalinux image file.

Thanks in Advance.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


Depending of you petalinux version you need to add the config to:
project-spec/meta-user/recipes-core/images/petalinux-image-full.bbappend (<19.2)
project-spec/meta-user/conf/user-rootfsconfig (>19.1)
Then you will have this option in "petalinux-config -c rootfs" menu.


Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...