runfalk / synology-wireguard

WireGuard support for some Synology NAS drives
MIT License
919 stars 131 forks source link

Kernel module doesn't seem to load on DS1621+ (v1000 arch) #61

Open Woodham opened 3 years ago

Woodham commented 3 years ago

Description I'm attempting to install and use on a DS1621+. I have managed to build the .spk using the v1000 arch (using the fix here https://github.com/runfalk/synology-wireguard/issues/48#issuecomment-718302349 ), and it seems to install ok, but I don't think the kernel module is being loaded.

When I run dmesg I see this line:

[599058.301294] wireguard: version magic '4.4.59+ SMP preempt mod_unload ' should be '4.4.59+ SMP mod_unload '

Whenever I reinstall the .spk.

Expected behavior The kernel module to load.

Synology NAS model DS1621+

gallivanter commented 3 years ago

I can reproduce this on a DS1821+ running DSM 6.2.3-25426 Update 3: [101781.516824] wireguard: version magic '4.4.59+ SMP preempt mod_unload ' should be '4.4.59+ SMP mod_unload ' The running kernel: Linux version 4.4.59+ (root@build5) (gcc version 4.9.3 20150311 (prerelease) (crosstool-NG 1.20.0) ) #25426 SMP Mon Dec 14 18:52:44 CST 2020

zachberger commented 3 years ago

The SDK seems to have the wrong kernel configuration, I've filed SynologyOpenSource/pkgscripts-ng#30

zachberger commented 3 years ago

A new toolkit has been released that fixes this issue. Try rebuilding with the latest toolkit.

Woodham commented 3 years ago

I've just upgraded to DSM 6.2.4, rebuilt the module using the latest version (with HAS_MEMNEQ=1) and installed and it appears to be loading now :)

[ 1290.606243] wireguard: module verification failed: signature and/or required key missing - tainting kernel
[ 1290.617456] wireguard: WireGuard 1.0.20210219 loaded. See www.wireguard.com for information.
[ 1290.625896] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
Woodham commented 3 years ago

Just to confirm - I've been testing using this module on mt DS1621+ and it now works well in both client and server mode.

The v1000 platform could probably be added to the release list.

gallivanter commented 3 years ago

Also confirming successful build on the DS1821+ with the latest toolkit. Thanks for pushing to get the upstream fix @zachberger !

mylegitches commented 2 years ago

I know this has been over a year- very similar issue, but on DSM7.0.

Description I'm attempting to install and use on a DS1621+. I have managed to build the .spk using the v1000 arch (using the fix here #48 (comment) )

Result [2021-10-30 08:12:48,816] ERROR: PlatformNotAvailableError [2021-10-30 08:12:48,816] ERROR: [V1000] is not available platform. [2021-10-30 08:12:48,817] ERROR: pkgscripts-ng/EnvDeploy -p V1000 -v 7.0 failed!

Expected behavior The kernel module to install.

Synology NAS model DS1621+

zachberger commented 2 years ago

The command is case sensitive you'll want to use v1000 not V1000