Kernel Configuration File For Compiling Custom Drivers or Kernel Modules

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
If I decide to go with TrueNAS Scale I'm gonna have to compile a custom driver so that it can read system temperatures and fan speeds. Since drivers are loadable kernel modules I will need to have a copy of the kernel .config or ideally the .config file along with the actual kernel headers. Is this available somewhere? Anyone else compile a kernel module for TrueNAS Scale yet?

Thanks,
Harry
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Can't you get that info through IPMI or Redfish API ?
 

HarryMuscle

Contributor
Joined
Nov 15, 2021
Messages
161
Can't you get that info through IPMI or Redfish API ?
Unfortunately the system I plan on using (QNAP TS-873A) doesn't include those, so it has to be managed by the host itself, hence the need for the driver.

Thanks,
Harry
 

morganL

Captain Morgan
Administrator
Moderator
iXsystems
Joined
Mar 10, 2018
Messages
2,694
Proprietary systems hardware are a pain.... perhaps its easier to swap hardware via EBay.
 

brucoder

Cadet
Joined
Apr 25, 2023
Messages
5
Harry - I've compiled drivers successfully, so what error are you running into? However, be sure that you do the compile as an added local user when admin privileges. I've just discovered that things added to /home/admin disappear after the lat update. Also, the .ko files installed in /lib/modules/5.15.79+truenas/extra get wiped as part of the upgrade.
 
Top