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

  • 0


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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...