If you require an out of tree kernel module to be built, then the recommendations would be:I'm facing the same issue: how can I compile a module for the 64-bit kernel used in the 32-bit RPI OS?
Use a 64-bit OS so you can build 64-bit kernel module natively.
Add arm_64bit=0 to config.txt to use the 32-bit kernel and you can build 32-bit kernel module natively.
Use a different machine to cross compile the 64-bit kernel module (e.g. an x86 Ubuntu machine).
Statistics: Posted by dom — Thu Feb 08, 2024 11:55 am