site  contact  subhomenews

Kernel 5.10.77 compiled with wireguard vpn and broadwell snd

November 06, 2021 — BarryK

Forum member TerryH reported missing kernel driver for a realtek rt286 sound chip:

http://forum.puppylinux.com/viewtopic.php?t=4359

Forum member allendiggity reported awhile back, recompiling the kernel for 'wireguard' support:

https://forum.puppylinux.com/viewtopic.php?t=1004

Here is the home page for wireguard:

https://www.wireguard.com/

img1

...looks good!

I have compiled the 5.10.77 kernel with support for both of these. Firstly, sound:

Sound card support -> Adanced Linux Sound Architecture -> ALSA for SoC audio support
<m> Haswell and Broadwell
Intel machine drivers
<m> Broadwell*

Afterward, running with the 5.10.77 kernel:

# modinfo snd-soc-sst-broadwell
filename: /lib/modules/5.10.77/kernel/sound/soc/intel/boards/snd-soc-sst-broadwell.ko
alias: platform:broadwell-audio
license: GPL v2
description: Intel SST Audio for WPT/Broadwell
author: Liam Girdwood, Xingchao Wang
depends: snd-soc-core,snd-pcm,snd-soc-rt286
intree: Y
name: snd_soc_sst_broadwell
vermagic: 5.10.77 SMP mod_unload modversions
sig_id: PKCS#7
signer:
sig_key:
sig_hashalgo: unknown
signature:

Now configuring for wireguard:

Device drivers -> Network device support
<m> Wireguard secure network tunnel

In EasyOS running with the 5.10.77 kernel:

# modinfo wireguard
filename: /lib/modules/5.10.77/kernel/drivers/net/wireguard/wireguard.ko
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
version: 1.0.0
author: Jason A. Donenfeld <Jason@zx2c4.com>
description: WireGuard secure network tunnel
license: GPL v2
srcversion: 44D713150F1EA3D8C223362
depends: libblake2s,udp_tunnel,curve25519-x86_64,libchacha20poly1305,ip6_udp_tunnel,libcurve25519-generic
intree: Y
name: wireguard
vermagic: 5.10.77 SMP mod_unload modversions
sig_id: PKCS#7
signer:
sig_key:
sig_hashalgo: unknown
signature:

The kernel source with patches and build scripts has been uploaded here:

http://distro.ibiblio.org/easyos/source/kernel/5.10.x/5.10.77/

I need to start thinking about getting the next release of EasyOS out!
There are userland tools for wireguard, but I won't do that. allendiggity and/or anyone interested can get it going in the next release of EasyOS, and post some documentation. Then I could add a PET to the package manager.

I have started a forum thread for wireguard discussion here:

http://forum.puppylinux.com/viewtopic.php?t=4404

EDIT 2021-11-07:
I decided to compile 'wireguard-tools' package. It has the 'wg' CLI utility, and 'wg-quick' script. Have added it to the package list for the next release of EasyOS.      

Tags: easy