Page 1 of 1

Kernel module build and kernel configuration

Posted: 26 May 2021, 03:59
by m_pashka
Does anybody succeed in building and loading kernel module for TNAS.

I needed kernel module for my zigbee stick support in order to run home assistant. I partially succeed https://github.com/mpashka/terranas/blo ... bdriver.md. But module is reported as [permanent] in lsmod output. That means module doesn't have proper exit function. My idea is either my kernel configuration is incorrect or there are some issues with the toolchain.

I tried kernel sources provided by TerraMaster but was not able to compile loadable driver - received seg fault during module loading.

Another module I need is tun driver to run wireguard-go. Or probably wireguard dkms module.

Re: Kernel module build and kernel configuration

Posted: 21 Apr 2023, 03:13
by XFNeo
Hi! Any updates?

Re: Kernel module build and kernel configuration

Posted: 21 Apr 2023, 06:12
by outkastm
Specify you TOS/Arch version.
If you are looking for x64 TOS4/TOS5, you can find them below

https://tmnascommunity.eu/download/kernelmodules/

Re: Kernel module build and kernel configuration

Posted: 21 Apr 2023, 17:40
by XFNeo
outkastm wrote: 21 Apr 2023, 06:12 Specify you TOS/Arch version.
If you are looking for x64 TOS4/TOS5, you can find them below

https://tmnascommunity.eu/download/kernelmodules/
Hi!
I have F2-423 x86_64 on TOS 5.1.31 with Kernel 5.15.59
I want to connect SONOFF Zigbee 3.0 USB Dongle Plus V2

Re: Kernel module build and kernel configuration

Posted: 21 Apr 2023, 18:54
by outkastm
then you can use the app from the link above

Re: Kernel module build and kernel configuration

Posted: 21 Apr 2023, 19:12
by XFNeo
{L_BUTTON_AT}outkastm

Yes, thanks! It works!

Re: Kernel module build and kernel configuration

Posted: 15 Dec 2023, 23:02
by xchabmospl
Hi, would it be possible to get the kernel .config file used to build these modules? I'm looking to build other modules but I need the correct .config for 5.15.59.

Re: Kernel module build and kernel configuration

Posted: 18 Dec 2023, 16:21
by alexmina3013
I'm not sure if they can publicly share the exact .config though due to potential company policies or licensing restrictions. However, you may want to try reaching out to their support team directly to submit an inquiry.