Kernel module build and kernel configuration

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
Post Reply
User avatar
m_pashka
Posts: 3
Joined: 12 May 2021, 16:47

Kernel module build and kernel configuration

Post 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.
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Kernel module build and kernel configuration

Post by XFNeo »

Hi! Any updates?
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: Kernel module build and kernel configuration

Post 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/
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Kernel module build and kernel configuration

Post 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
User avatar
outkastm
Posts: 1185
Joined: 29 Dec 2020, 23:52

Re: Kernel module build and kernel configuration

Post by outkastm »

then you can use the app from the link above
User avatar
XFNeo
Posts: 90
Joined: 10 Oct 2022, 23:18

Re: Kernel module build and kernel configuration

Post by XFNeo »

{L_BUTTON_AT}outkastm

Yes, thanks! It works!
User avatar
xchabmospl
Posts: 1
Joined: 15 Dec 2023, 23:00

Re: Kernel module build and kernel configuration

Post 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.
User avatar
alexmina3013
Posts: 1
Joined: 18 Dec 2023, 16:19

Re: Kernel module build and kernel configuration

Post 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.
Post Reply