kasbert / epsolar-tracer

Tools for EPsolar Tracer BN solar charge controller
Apache License 2.0
121 stars 76 forks source link

Fix kernel drivers for linux 5.13 and above #42

Closed Planet-X closed 2 years ago

Planet-X commented 2 years ago

Collection of backwards-compatible fixes for kernel version 5.13 and above.

I've verified that both drivers can be compiled and loaded on kernels 5.15 (RPi kernel) and 5.17. Also read some data using the xr_usb_serial_common driver - works like a charm!
Haven't had the time yet to tinker with the experimental xr_serial, though :)

cacktopus commented 2 years ago

FWIW, I was able to build and run this on a raspberry pi 4 with this kernel:

5.15.32-v8+ #1538 SMP PREEMPT Thu Mar 31 19:40:39 BST 2022 aarch64 GNU/Linux
kasbert commented 2 years ago

Thank you. I'd rather have the official kernel changed, if I had the energy to try suggesting a kernel change.