Compiling kernel modules (.config file)

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
Post Reply
User avatar
DarthStroyer
Posts: 5
Joined: 17 May 2024, 16:33
Great Britain

Compiling kernel modules (.config file)

Post by DarthStroyer »

I know @outkastm has successfully compiled kernel modules, thanks to the excellent USB device drivers they've posted on these forums. However, it looks like they've gone quiet so I'm trying here now. I'd really like to compile the driver for the Coral AI Edge TPU PCIe card (the card is detected by the OS if I insert it into an SSD slot) but, since the .config file used to compile the kernel isn't included on the system, nor with the source, I've not had much luck.

I've tried contacting technical support but they won't supply the file either. Has anyone else had any luck doing this?

My device is a Terramaster F2-423 running the latest TOS 5.
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: Compiling kernel modules (.config file)

Post by outkastm »

No really quiet but building a kernel module require quite some time and tests. Without the board is even more difficult. Not speaking that every additional kernel module can interfere with the system and can lead to issues. Also i'm not sure how many guys are interested about this driver. For you to start, is mandatory to use the Terramaster toolchain to build the kernel modules
User avatar
DarthStroyer
Posts: 5
Joined: 17 May 2024, 16:33
Great Britain

Re: Compiling kernel modules (.config file)

Post by DarthStroyer »

Thank you for the response! I appreciate that this may be a bit of a niche and it's not straightforward to add to your package, but I'd really like to get it working.

I have the toolchain extracted on my Linux PC (I looked for a .config file and cannot find one), I also have the GPL source code released by TerraMaster. I'm just not sure how to actually compile the modules without that .config file. Could you give me some pointers, please? :)
User avatar
XFNeo
Posts: 101
Joined: 10 Oct 2022, 23:18
Russia

Re: Compiling kernel modules (.config file)

Post by XFNeo »

I have the USB version of Coral TPU and am very interested in this driver.
User avatar
Wifurrive
Posts: 1
Joined: 21 Apr 2025, 12:38
United States of America

Re: Compiling kernel modules (.config file)

Post by Wifurrive »

Agree with @outkastm – building a kernel module without a board to test is almost like groping in the dark, not to mention the risk of system damage.
Post Reply

Return to “Developer Discussion Room”