WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline ramblurr

  • Newbie
  • *
  • Posts: 2
Re: how to compile wireguard kernel module for TCL
« Reply #15 on: October 21, 2020, 02: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: 11216
Re: how to compile wireguard kernel module for TCL
« Reply #16 on: October 21, 2020, 05: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: 1076
Re: how to compile wireguard kernel module for TCL
« Reply #17 on: October 21, 2020, 07: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: 14535
Re: how to compile wireguard kernel module for TCL
« Reply #18 on: October 22, 2020, 01:37:03 AM »
ncursesw-dev
elfutils-dev

The piCore equivalents are ncurses-dev and libelf-dev

Offline ovacikar

  • Newbie
  • *
  • Posts: 30
Re: how to compile wireguard kernel module for TCL
« Reply #19 on: March 25, 2024, 07: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: 11216
Re: how to compile wireguard kernel module for TCL
« Reply #20 on: March 25, 2024, 07: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

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