neggles / cm4io-fan

CM4 IO board PWM fan controller driver
GNU General Public License v2.0
79 stars 17 forks source link

driver won't load on latest kernel #7

Closed twoseascharlie closed 3 years ago

twoseascharlie commented 3 years ago

driver is not loading for me on latest 32-bit kernel:

dmesg | grep emc
[   10.584880] emc2301: disagrees about version of symbol module_layout

just installed a fresh copy of raspberry pi os then ran sudo apt update/sudo apt full-upgrade then pulled kernel source and built with few custom needed configs then pulled this repo and built it added an entry to my config.txt

sudo dkms install cm4io-fan/0.1.1

uname -r
5.10.60-v7l_charlie1+

this driver worked great for me under kernel 5.10.17, so not sure what the problem is? I've tried googling around, but haven't found anything helpful.

Any thoughts?

twoseascharlie commented 3 years ago

well I just reverted my local repo, re-built the kernel, rebooted and re-built the fan driver, and now it works again, but my kernel version is now at 49 instead of 60. So no idea what's going on...

uname -r
5.10.49-v7l_charlie1+

maybe the fact that I originally installed dkms after I built the kernel, and now this time around, I built the kernel after installing dkms?

twoseascharlie commented 3 years ago

I've figured it out, chalk this one up to user error

sorry for the spam!