cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
280 Views
Registered: ‎08-11-2019

How create Kernel module for xilinx

Hi,

i had setup ZC706 board with an prebuild image and every thing is ok and i can connect to it. now i want to create a kernel module for and i need kernel header files, but when i write "apt-get install linux-headers-$(uname -r)" it give below errors:

Reading package lists... Done
Building dependency tree        
Reading state information... Done
E: Unable to locate package linux-headers-4.14.0-xilinx
E: Couldn't find any package by regex 'linux-headers-4.14.0-xilinx'

how can i install kernel header-files for xilinx?? or is there any other way to build a kernel module for xilinx board?

0 Kudos
1 Reply
Highlighted
Moderator
Moderator
208 Views
Registered: ‎12-04-2016

Re: How create Kernel module for xilinx

Hi @alireza11045 

You need to have petalinux tool from Xilinx installed to develop kernel module for zynq platforms.

You can find information on adding kernel module in this post:

https://forums.xilinx.com/t5/Embedded-Linux/petalinux-files-kernel-headers-for-module-development/td-p/977821

 

You can also refer to petalinux user guide here:

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1144-petalinux-tools-reference-guide.pdf

 

 

0 Kudos