I installed the kernels from
and flashed them to sd card. Then i copied the modified .ko files from image that i built for latest non-rt kernel using the compile.sh. My orange pi zero is running rt version. When i try to modprobe the modified and copied module it gives me error:
modprobe: ERROR: could not insert 'libcomposite': Exec format error
I read that incorrect arch could cause this so i ran the file command. libcomposite.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=3a49e12c7809bbbdbdc3c5c5bd0fcd53e77dde44, not stripped
i think module i built is not compatible with rt kernel i downloaded. I need to rebuild kernel with modified source code(only a few lines and 2 files) with rt patch or i need a way to build that module respecting rt kernel version i downloaded.
Thanks for your attention