HarryMuscle Posted October 1, 2021 Share Posted October 1, 2021 I'm looking to compile a tool that I will run on my Unraid setup. This tool requires the kernel headers to compile. I believe Unraid is based on Slackware so I'm assuming that compiling on Slackware would be the most appropriate. Is there a specific version that corresponds closest to Unraid 6.9.2? I'll also need to install the kernel headers on the machine that will be used for compiling and I was wondering if there's any information on whether the standard kernel headers on Slackware are what I should be using. If so, it is just a matter of matching the correct kernel version (I believe Unraid 6.9.2 is using kernel 5.10.28)? Or does Unraid have it's own customized kernel headers available somewhere that I should be using? Thanks, Harry Quote Link to comment
ich777 Posted October 1, 2021 Share Posted October 1, 2021 14 hours ago, HarryMuscle said: I'm looking to compile a tool that I will run on my Unraid setup. May I ask which tool? Why does it need the Kernel headers, some kind of modules involved? Quote Link to comment
HarryMuscle Posted October 1, 2021 Author Share Posted October 1, 2021 4 hours ago, ich777 said: May I ask which tool? Why does it need the Kernel headers, some kind of modules involved? It's the panq tool. It allows monitoring the IT8528 sensor chip. Possibly also the iManager driver if I can get it to work correctly. Quote Link to comment
ich777 Posted October 1, 2021 Share Posted October 1, 2021 7 minutes ago, HarryMuscle said: It's the panq tool. It allows monitoring the IT8528 sensor chip. Possibly also the iManager driver if I can get it to work correctly. I've already read about that here: Don't know how much users would benefit from this... Wouldn't it be better to create a post on the feature request sub forums so this gets baked into unRAID itself? You can use my Unraid-Kernel-Helper container for this, it also supports manual compiling and integration, but please be aware that I maybe soon will deprecate the Unraid-Kernel-Helper because I want to move away from custom builds since you can now integrate basically everything with plugins to unRAID. Quote Link to comment
HarryMuscle Posted October 7, 2021 Author Share Posted October 7, 2021 (edited) On 10/1/2021 at 4:43 PM, ich777 said: I've already read about that here: Don't know how much users would benefit from this... Wouldn't it be better to create a post on the feature request sub forums so this gets baked into unRAID itself? You can use my Unraid-Kernel-Helper container for this, it also supports manual compiling and integration, but please be aware that I maybe soon will deprecate the Unraid-Kernel-Helper because I want to move away from custom builds since you can now integrate basically everything with plugins to unRAID. Thanks. Once the development is done on it (I'm working on turning that panq tool into a kernel driver) it would be nice to have it part of Unraid. It's not a huge target audience but there aren't many alternatives to QNAP for a ready made NAS format machine that can run Unraid. Fan and temp sensor support seems to be the only missing link that prevents QNAP units and Unraid from being a perfect match. Edited October 7, 2021 by HarryMuscle Quote Link to comment
ich777 Posted October 8, 2021 Share Posted October 8, 2021 On 10/7/2021 at 6:10 AM, HarryMuscle said: I'm working on turning that panq tool into a kernel driver Can you give me a resource to that? Isn't there a Github repo? Quote Link to comment
HarryMuscle Posted October 9, 2021 Author Share Posted October 9, 2021 18 hours ago, ich777 said: Can you give me a resource to that? Isn't there a Github repo? I forked the existing repo. Here's the link: https://github.com/Stonyx/PanQ I've been overhauling the existing code and making it more generic so that it works on more NAS models. In the process we discovered that the library from QNAP can be used directly to get the information from the chip so I'm pretty sure I'm gonna switch direction and use that instead of basing things on the reverse engineered code from the original panq. Should make the tool work on every model from QNAP that has this chip, in theory. All of that is really to get a better understanding of the existing tool and QNAP library so that the driver can be created. I haven't made a repo yet for the driver itself but will in the next few days. Good progress has been made on the driver though. 1 Quote Link to comment
HarryMuscle Posted October 24, 2021 Author Share Posted October 24, 2021 (edited) On 10/8/2021 at 3:59 AM, ich777 said: Can you give me a resource to that? Isn't there a Github repo? Here's the repo for the driver: https://github.com/Stonyx/QNAP-EC Today we got it fully working. Currently the development and testing is being done on Debian and Ubuntu but it works great. You can view temps, fan RPMs, and view and adjust fan PWM values. Code needs a tiny amount of cleanup still and a few odds and ends but it should be ready for prime time pretty soon. Need to write some more documentation about it and figure out how to compile it for Unraid too still. Edited October 24, 2021 by HarryMuscle Quote Link to comment
ich777 Posted October 24, 2021 Share Posted October 24, 2021 5 hours ago, HarryMuscle said: Here's the repo for the driver: Already answered here: (Please don't do tripple posts...) Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.