WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: how to compile wireguard kernel module for TCL  (Read 11391 times)

Offline ramblurr

  • Newbie
  • *
  • Posts: 2
Re: how to compile wireguard kernel module for TCL
« Reply #15 on: October 21, 2020, 05:41:54 AM »
I'm trying to follow the original topic's instructions, but it seems several extensions and the kernel config are missing for the arm6 release:

ncursesw-dev
elfutils-dev

and the kernel config at http://tinycorelinux.net/11.x/armv6/releases/RPi/src/

Is it possible to compile wireguard for tinycore arm6?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: how to compile wireguard kernel module for TCL
« Reply #16 on: October 21, 2020, 08:57:39 AM »
Hi ramblurr
Welcome to the forum.

...  the kernel config are missing for the arm6  ...
Courtesy of Paul_123:
Code: [Select]
sudo modprobe configs
zcat /proc/config.gz > <path to kernel source>/.config

Quote
... ncursesw-dev ...
The static libraries listed here and the shared objects in ncurses.tcz.list all have a  w  suffix:
http://tinycorelinux.net/11.x/armv6/tcz/ncurses-dev.tcz.list
http://tinycorelinux.net/11.x/armv6/tcz/ncurses.tcz.list

Offline Paul_123

  • Administrator
  • Hero Member
  • *****
  • Posts: 1267
Re: how to compile wireguard kernel module for TCL
« Reply #17 on: October 21, 2020, 10:08:57 AM »
AFAIK, Wireguard did not make it into the official kernel until 5.9.y (Maybe not until 5.10.y).  And has not been officially backported.   I realize there are wireguard supported backports, but I'm not willing to deal with those.

If someone wants to take on creating the kernel modules and utils, we would gladly accept the contribution.


Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14849
Re: how to compile wireguard kernel module for TCL
« Reply #18 on: October 22, 2020, 04:37:03 AM »
ncursesw-dev
elfutils-dev

The piCore equivalents are ncurses-dev and libelf-dev

Offline ovacikar

  • Jr. Member
  • **
  • Posts: 65
Re: how to compile wireguard kernel module for TCL
« Reply #19 on: March 25, 2024, 10:04:11 AM »
Paul-123 has posted kernel module for armv6 wireguard-6.1.68-piCore.tcz , but there is no source build script published.

I would like to compile the kernel modules for x86 , I understand compiling instructions in this thread was for 4.x kernel and no longer apply to 5.x and 6.x kernels.

Any guidance?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11694
Re: how to compile wireguard kernel module for TCL
« Reply #20 on: March 25, 2024, 10:31:52 AM »
Hi ovacikar
... I would like to compile the kernel modules for x86 ...
I think the module is already included as of TC12. Check here:
Code: [Select]
ls -l /lib/modules/$(uname -r)/kernel/drivers/net/wireguard

Offline ovacikar

  • Jr. Member
  • **
  • Posts: 65
Re: how to compile wireguard kernel module for TCL
« Reply #21 on: March 25, 2024, 04:54:18 PM »
Yes indeed it was. A quick and dirty compile of wireguard-tools and it is good to go.

Offline ovacikar

  • Jr. Member
  • **
  • Posts: 65
Re: how to compile wireguard kernel module for TCL
« Reply #22 on: December 13, 2024, 07:24:27 AM »
The first post with the tce-load command is missing openssl-dev.tcz. Resulting this error :

Code: [Select]
scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directory
   21 | #include <openssl/bio.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[1]: *** [scripts/Makefile.host:107: scripts/extract-cert] Error 1
make: *** [Makefile:1100: scripts] Error 2