# Linux Kernel Headers for different PYNQ Versions

**URL:** <https://discuss.pynq.io/t/linux-kernel-headers-for-different-pynq-versions/8523>\
**Category:** Support\
**Created:** [June 8, 2025, 8:55pm UTC](https://discuss.pynq.io/t/linux-kernel-headers-for-different-pynq-versions/8523 "2025-06-08T20:55:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![marioruiz](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/marioruiz/32/2177_2.png) [@marioruiz](https://discuss.pynq.io/u/marioruiz)\
**Post date:** [June 16, 2025, 9:17am UTC](https://discuss.pynq.io/t/linux-kernel-headers-for-different-pynq-versions/8523/3 "2025-06-16T09:17:41Z")

</div>

Hi @xilin,

You may find this useful:

> [@Building a Kernel Module for a ZYNQ PL peripheral](https://discuss.pynq.io/t/building-a-kernel-module-for-a-zynq-pl-peripheral/8545):
>
> Hi Folks- A few months ago I put together a webpage for developing a simple Linux Kernel Module for a Zynq PS/PL. In my case I used my TUL-2 and built a peripheral to mimic an RPN calculator. It’s too big to put here but feel free to look at my webpage: Comments Appreciated

> [@How to compile kernel module for Pynq v3](https://discuss.pynq.io/t/how-to-compile-kernel-module-for-pynq-v3/5870/2):
>
> Realize this question is 18 months old but I was having the same issue and didn’t see a reply. I tried to compile natively on the Xilinx board and got the asm/bitsperlong.h error. Also tried the sd card rebuild and chewed up my month’s ISP data allowance. Xilinx publishes the linux distros at [GitHub - Xilinx/linux-xlnx: The official Linux kernel from Xilinx](https://github.com/Xilinx/linux-xlnx/) After a few educated guesses I was able to find the version that matched uname -r from my Pynq Z2 (v3.0.1 in my case). Get the linux-xlnx…

Mario

---

_[View the full topic](https://discuss.pynq.io/t/linux-kernel-headers-for-different-pynq-versions/8523)._
