Building a demo kernel module for PYNQ v3.1

The complete project is here:

PYNQ-Kernel-Module-Demo/hello_pynq at main · konosubakonoakua/PYNQ-Kernel-Module-Demo

The errors I have encountered are kernel vermagic mismatch & uapi/asm header absence.
The former can be solved simply by modifying include/generated/utsrelease.h, and the later error can be fixed by make modules_prepare. You can find details in the git repo above.

[ 3212.142410] Hello PYNQ module loaded!
[ 3212.142431] Kernel version: 6.6.10-xilinx-v2024.1-g1594cb1cd9ce
[ 4309.099383] smbd(2471): Attempt to set a LOCK_MAND lock via flock(2). This support has been removed and the request ignored.
[ 4764.948419] Hello PYNQ module unloaded!
[ 4769.519658] Hello PYNQ module loaded!
[ 4769.519678] Kernel version: 6.6.10-xilinx-v2024.1-g1594cb1cd9ce
[ 4774.259951] Hello PYNQ module unloaded!
2 Likes

Hi @rafael.ren,

Welcome to the PYNQ community and thank you for sharing.

Mario