-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support for Linux raspberrypi 6.1.x kernels #18
Comments
Could you please let me know if there is a solution to this problem? |
I made a hack in install.sh
The build was successful, but after reboot the fan stopped even when the cpu temperature increased. |
Same issue here.
Even if I bypass the BUILD_EXCLUSIVE_KERNEL, the module does not work properly - the fan does not spin. |
Have a Look at this. After blacklisting emc2305 it works for me. |
Works for me as well. Thanks for the tip. |
Andi @neggles, any plan to update the driver for the 6.x kernel? Bypassing the BUILD_EXCLUSIVE_KERNEL makes the build pass, and the module is listed by the kernel ( |
Summer is almost over. |
Hello, @Arthur-Philip-Dent Summer is almost over. So cooling is no longer required ;-) Then, I had to reinstall the kernel from RaspberryPiOS official sources :
Then I removed any blacklist for
It is also visible in the
By the way, thank you very much @neggles for your work. |
Hey @kbenyous, I‘m starting to „learn this stuff“, and I thought, it’s a good idea to leave this matter for the “pros”. I‘m struggling currently on any part I pick up to make a CM4 module working to use it for a project (TeslaUSB) to make a “Pi 4B compatible” SBC running with a piece of software, running on a actual bullseye installation. Just saying “Gadget mode and M.2 SSD and suddenly WiFi doesn’t work anymore… the “silent fan” would help a but not to freak out. And yeah, not so hat at all anymore, we can save some energy. Right. But thanks for all the instructions. Best regards, |
Sorry for bringing up that old topic again but I'm struggling here too. What I did:
The Output I get:
Looking at the referenced
I'm lost here… the Linux-Headers for the current kernel-version are installed. It's a fresh downloaded ans installed Anyone with an idea what I could be missing here? |
Hi @tht ,
It seems that the kernel 6.1.21-v8+ was used, but after an upgrade I have kernel 6.1.0-rpi7-rpi-v8 and I'm no longer able to build the driver. I added these lines to config.txt:
After Reboot the fan stopped and it starts cooling at 45°. Not satisfying for the moment but it works for me now. If I find time in the next few days I will try to do the installation again. |
Today I made the installation again, here my steps:
During kernel re-installation the driver will be built with success. |
Can confirm… it works for me too after reinstalling the kernel. Strange…
Thanks a lot, seems to be working just fine now. |
Same problem here.
|
Hi all, sorry i've not had time to come back to this for quite a while partly because my CM4 carrier board doesn't have a module on it at the moment (and I don't have a spare) There were quite a few changes to the way this driver has to hook into the kernel since i last updated it, and i've learned a few more things about how DKMS builds etc. work, so it'll need a bit of rework. I'll try to come back to this in the near future and get it cleaned up (and updated with some of the other nice bits and pieces from the original author's newer versions, intended for another device) Sorry for the trouble... |
Good things take a while! So all good! |
Just wanted to share my odyssey... maybe it helps someone. Board: Waveshare CM4-IO-WIRELESS-BASE-B with CM4 (eMMC and wireless)
Remarks:
I know, this is not a proper solution, but for the time being this works in my case and it might help someone more experienced to fix the "dtbo not build by make" issue. Anyway, thanks for all the work @neggles and the hints by @sdwilsh in #6 (yes the warnings mentioned by him are still there with my approach) Update (23 Mar 2024):Another issue came up after installing the latest Raspberry Pi OS...
I fixed it by changing line 344 in file: /usr/src/cm4io-fan-0.2.0/emc2301/emc2301.c |
I forked the project and implemented the fixes: https://github.com/VikingGer/cm4io-fan |
Thanks for your effort. But I'm not able to build it on my CM4 (6.1.0-rpi7-rpi-v8, Debian 1:6.1.63-1+rpt1 (2023-11-24)).
The fix from @lukweb is installed, but the error is still there. |
Thanks for pointing that out. Guess, I was bit too lazy. It seems, the probe function was changed somewhere between kernel 6.1 (yours) and 6.8 (mine), but I wasnt able to find the exact kernel version. So I fixed it for what I know. Please try to replace line 344 with the following and try to compile again. If it works I'll merge it into the git code. #if LINUX_VERSION_CODE < KERNEL_VERSION(6, 2, 0) |
With that fix installed the build works perfectly. You can merge it into the git code. Great work, many thanks! |
Sorry, I was too happy too soon. The build was successful with the install.sh script, but after an apt upgrade the error was back. dkms status showed me an old installed module (0.2.0) that couldn't be removed with dkms. I have deleted the corresponding directories manually. After that an apt upgrade was successful for kernel 6.6 but it still shows the error during kernel 6.1 builds. |
Thank you for testing. What you describe may be due to residual code somewhere in the system. Have you deinstalled via sudo dkms remove cm4io-fan/0.2.0 --all ? |
No, I tried it without the option --all and got the reply that it isn't installed. But the dkms status showed it. Then
But after an apt upgrade the dkms starts a build for the 6.1 kernel that fails:
Logfile: make.log But the module for kernel 6.6 was built and and that is the main thing. |
Hm...strange. I just had a look in the different kernel sources of i2c.h and they prepared a probe_new method in the i2c_driver class with the second parameter removed in kernel V6.1. However, that doesn't explain what you see. |
Upon running
sudo ./install.sh
this is the output :
Iam running :
pi@raspberrypi:~/src/cm4io-fan $ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
What do I need to update in order for the installation to succeed?
The text was updated successfully, but these errors were encountered: