adanowitz Posted January 17, 2020 Share Posted January 17, 2020 I'd like to use a ubuntu-based rootfs on top of a petalinux boot partition. If I do this, where can I find the kernel header files for the petalinux kernel so that I can compile drivers on the board? Link to comment Share on other sites More sharing options...
0 JColvin Posted February 7, 2020 Share Posted February 7, 2020 Hi @adanowitz, I apologize for the delay. As per this this Xilinx thread, https://forums.xilinx.com/t5/Embedded-Linux/petalinux-files-kernel-headers-for-module-development/td-p/977821, after you build petalinux, you will find the kernel source at build/tmp/work-shared/plnx-zynqmp/kernel-source/ path in your petalinux project. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 Ionel Posted February 26, 2021 Share Posted February 26, 2021 (edited) @adanowitz you need to add kernel-devsrc package to your petalinux rootfs then copy the {petalinux-rootfs}/lib/modules/{KVER}/build/ directory in your ubunu rootfs /lib/modules/{KVER}/build/ Edited February 26, 2021 by Ionel Link to comment Share on other sites More sharing options...
Question
adanowitz
I'd like to use a ubuntu-based rootfs on top of a petalinux boot partition. If I do this, where can I find the kernel header files for the petalinux kernel so that I can compile drivers on the board?
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now