rpi-firmware icon indicating copy to clipboard operation
rpi-firmware copied to clipboard

Kernel headers (source) for 5.10.46

Open bluuu81 opened this issue 4 years ago • 5 comments

If we want to add any module to kernel we need latest headers and source. For example for dkms and cm4io-fan ... I can't build module Any advices are welcome

bluuu81 avatar Jun 29 '21 16:06 bluuu81

See https://github.com/RPi-Distro/rpi-source

popcornmix avatar Jun 29 '21 17:06 popcornmix

Yeah, thanks Now module is building ... but can't work because of modprobe: ERROR: could not insert 'emc2301': Exec format error (with and without --force) Don't know is a module or headers issue :/

bluuu81 avatar Jun 29 '21 19:06 bluuu81

What is your module make command line? And the output of uname -a?

pelwell avatar Jun 29 '21 20:06 pelwell

Makefile (so make too is from cm4io-fan: https://github.com/neg2led/cm4io-fan): https://github.com/neg2led/cm4io-fan/blob/master/Makefile

uname -a: Linux greennas 5.10.46-v8+ #1430 SMP PREEMPT Mon Jun 28 17:17:17 BST 2021 aarch64 GNU/Linux

bluuu81 avatar Jun 29 '21 20:06 bluuu81

That Makefile doesn't make it obvious what the actual kernel make line would be. For example, does it include ARCH=aarch64? I suspect your problem might be that you are trying to build a 64-bit kernel with a native 32-bit gcc. What does file vmlinux return after the build?

pelwell avatar Jun 30 '21 19:06 pelwell