Slackware - ARM This forum is for the discussion of Slackware ARM. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
08-04-2020, 12:24 AM
|
#1
|
Member
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68
Rep: 
|
Wireguard module
Hi all,
i try get Wireguard running on an installed rpi3 under Slackware. On Slackbuilds, i didn't find a Sackbuild for -current, so i used the one for -14.2.
Everything compiles fine, but when trying to insert the module, i get the following error:
Code:
root@ebbes:~/wireguard-linux-compat> modprobe wireguard
modprobe: ERROR: could not insert 'wireguard': Exec format error
root@ebbes:~/wireguard-linux-compat> modinfo wireguard
filename: /lib/modules/5.4.47-v7-arm/extra/wireguard.ko
intree: Y
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
version: 1.0.20200623
author: Jason A. Donenfeld <Jason@zx2c4.com>
description: WireGuard secure network tunnel
license: GPL v2
srcversion: 7407718E6357B33A3813792
depends: ipv6,udp_tunnel,ip6_udp_tunnel
name: wireguard
vermagic: 5.4.51-armv7 SMP mod_unload modversions ARMv6 p2v8
root@ebbes:~/wireguard-linux-compat> uname -r
5.4.47-v7-arm
I tried to compile the module by hand, but that also didn't work (unfortunately, I don't know too much about compiling by hand).
Has anyone an idea, how to get the module running under slackwarearm -current?
|
|
|
08-04-2020, 11:21 AM
|
#2
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,524
|
Without thinking, "Exec Format error" would be caused by a serious mismatch of architecture.
Try
'file /bin/bash' and
'file /path/to/wireguard.ko' and
'file /path/to/other_module' which should all be the same. If they are all the same, post details of your build process.
|
|
|
08-04-2020, 11:32 PM
|
#3
|
Member
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68
Original Poster
Rep: 
|
Code:
root@ebbes:~/wireguard-linux-compat> file /bin/bash
/bin/bash: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, stripped
root@ebbes:~/wireguard-linux-compat> file /lib/modules/5.4.47-v7-arm/extra/wireguard.ko
/lib/modules/5.4.47-v7-arm/extra/wireguard.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=68f4963af5cd2ad43b14f4c4aad0250e9f1dc98d, not stripped
root@ebbes:~/wireguard-linux-compat> file /lib/modules/5.4.47-v7-arm/kernel/mm/zbud.ko
/lib/modules/5.4.47-v7-arm/kernel/mm/zbud.ko: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), BuildID[sha1]=ebed5e856cd65fe44977548a06a33783157f39b2, not stripped
In wireguard-linux-compat.SlackBuild:
Code:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
.
.
.
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
SLKCFLAGS="-O2"
LIBDIRSUFFIX=""
fi
...so the compiler will get only "-O2" as a flag. Could this be the Problem?
Thanks in advance
|
|
|
08-05-2020, 04:11 AM
|
#4
|
Slackware Contributor
Registered: Apr 2008
Distribution: Slackware
Posts: 1,657
|
Quote:
Originally Posted by lambo69
[CODE]
...so the compiler will get only "-O2" as a flag. Could this be the Problem?
Thanks in advance
|
No it's not. I built this on -current and it works fine.
I'm using the kernel packages shipped in -current though, not any RPi stuff although it shouldn't make any difference.
|
|
|
08-05-2020, 04:28 AM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,524
|
post deleted
|
|
|
08-05-2020, 06:36 AM
|
#6
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,071
|
Quote:
Originally Posted by drmozes
I'm using the kernel packages shipped in -current though, not any RPi stuff although it shouldn't make any difference.
|
I wouldn't treat you any differently if you admittedly owned a Raspberry Pi.
|
|
|
08-05-2020, 11:26 AM
|
#7
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,071
|
Quote:
Originally Posted by lambo69
...so the compiler will get only "-O2" as a flag. Could this be the Problem?
Thanks in advance
|
I've just test-built 'wireguard' using build scripts from https://slackbuilds.org/repository/1...-linux-compat/ (hope that's the one you used) on a freshly installed Slackware ARM system and discovered that the '/usr/src/linux' source needs to be present. Once that kernel source is in-place it's a done deal. That's all I had to do for 100% success in building 'wireguard' on my RPi4 using Slackware ARM -current.
So maybe check which Linux source you have and ensure it's the same one that built the kernel you're currently running. If not, get rid of it and install the correct source. Or do it with 'upgradepkg' if you're using the SARPi shizzle. Then try building 'wireguard' once more.
|
|
1 members found this post helpful.
|
08-06-2020, 11:47 PM
|
#8
|
Member
Registered: Sep 2012
Distribution: Slackware, Manjaro, Slackarm, Raspbian, Debian
Posts: 68
Original Poster
Rep: 
|
Yes, i used the slackbuild you linked to.
Thanks for the hint with the sources, they were of a wrong version (under /lib/modules/ , the modules are of the kernel-version). Actually kernel 5.4.47 is running, but sources were of 5.4.51. So i installed the appropriate sources (followed by 'make oldconfig', just to be sure they are configured right). The package again built and installed without trouble, but inserting the module brought the same error. After an update/upgrade of the whole system, new sources were installed (now 5.4.54), so i removed the old package, built it again, but the result was the same. The package builds, installs, but the module does not load.
If there's no other idea, i'm going to to build a new kernel over the weekend, maybe the problem lies there. Thanks for your help, i will report.
|
|
|
08-07-2020, 10:51 AM
|
#9
|
Senior Member
Registered: Jul 2017
Location: EU
Distribution: Slackware
Posts: 1,634
|
@lambo69
Use the exact kernel source code (including configuration) that was used for building the running kernel, in the state left after compiling the kernel. make oldconfig is not necessary.
If you're using the official Slackware ARM kernel, then grab the source from the Slackware ARM repository. Note that Slackware ARM doesn't officially support the Raspberries and the kernel it provides is only partially functional on the Raspberries.
|
|
|
08-07-2020, 01:54 PM
|
#10
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,071
|
Quote:
Originally Posted by lambo69
If there's no other idea, i'm going to to build a new kernel over the weekend, maybe the problem lies there. Thanks for your help, i will report.
|
I did the same again, only this time I used an updated version of the source (1.0.20200729) from: https://git.zx2c4.com/wireguard-linu...0200729.tar.xz
Building with the 'root' user and using '/tmp/wireguard-linux-compat' as my build directory...
Code:
root@torq:/tmp/wireguard-linux-compat# uname -a
Linux torq 5.4.50-v7l-arm #4 SMP Thu Jul 23 07:47:27 BST 2020 armv7l BCM2711 GNU/Linux
root@torq:/tmp/wireguard-linux-compat# cat /etc/slackware-version
Slackware 14.2+
root@torq:/tmp/wireguard-linux-compat# time ./wireguard-linux-compat.SlackBuild
wireguard-linux-compat-1.0.20200729/
wireguard-linux-compat-1.0.20200729/COPYING
wireguard-linux-compat-1.0.20200729/README.md
wireguard-linux-compat-1.0.20200729/kernel-tree-scripts/
wireguard-linux-compat-1.0.20200729/kernel-tree-scripts/create-patch.sh
wireguard-linux-compat-1.0.20200729/kernel-tree-scripts/filter-compat-defines.sh
wireguard-linux-compat-1.0.20200729/kernel-tree-scripts/jury-rig.sh
wireguard-linux-compat-1.0.20200729/src/
wireguard-linux-compat-1.0.20200729/src/Kbuild
wireguard-linux-compat-1.0.20200729/src/Kconfig
wireguard-linux-compat-1.0.20200729/src/Makefile
wireguard-linux-compat-1.0.20200729/src/allowedips.c
wireguard-linux-compat-1.0.20200729/src/allowedips.h
wireguard-linux-compat-1.0.20200729/src/compat/
wireguard-linux-compat-1.0.20200729/src/compat/Kbuild.include
wireguard-linux-compat-1.0.20200729/src/compat/checksum/
wireguard-linux-compat-1.0.20200729/src/compat/checksum/checksum_partial_compat.h
wireguard-linux-compat-1.0.20200729/src/compat/compat-asm.h
wireguard-linux-compat-1.0.20200729/src/compat/compat.h
wireguard-linux-compat-1.0.20200729/src/compat/dst_cache/
wireguard-linux-compat-1.0.20200729/src/compat/dst_cache/dst_cache.c
wireguard-linux-compat-1.0.20200729/src/compat/dst_cache/include/
wireguard-linux-compat-1.0.20200729/src/compat/dst_cache/include/net/
wireguard-linux-compat-1.0.20200729/src/compat/dst_cache/include/net/dst_cache.h
wireguard-linux-compat-1.0.20200729/src/compat/fpu-x86/
wireguard-linux-compat-1.0.20200729/src/compat/fpu-x86/include/
wireguard-linux-compat-1.0.20200729/src/compat/fpu-x86/include/asm/
wireguard-linux-compat-1.0.20200729/src/compat/fpu-x86/include/asm/fpu/
wireguard-linux-compat-1.0.20200729/src/compat/fpu-x86/include/asm/fpu/api.h
wireguard-linux-compat-1.0.20200729/src/compat/intel-family-x86/
wireguard-linux-compat-1.0.20200729/src/compat/intel-family-x86/include/
wireguard-linux-compat-1.0.20200729/src/compat/intel-family-x86/include/asm/
wireguard-linux-compat-1.0.20200729/src/compat/intel-family-x86/include/asm/intel-family.h
wireguard-linux-compat-1.0.20200729/src/compat/memneq/
wireguard-linux-compat-1.0.20200729/src/compat/memneq/include.h
wireguard-linux-compat-1.0.20200729/src/compat/memneq/memneq.c
wireguard-linux-compat-1.0.20200729/src/compat/neon-arm/
wireguard-linux-compat-1.0.20200729/src/compat/neon-arm/include/
wireguard-linux-compat-1.0.20200729/src/compat/neon-arm/include/asm/
wireguard-linux-compat-1.0.20200729/src/compat/neon-arm/include/asm/neon.h
wireguard-linux-compat-1.0.20200729/src/compat/ptr_ring/
wireguard-linux-compat-1.0.20200729/src/compat/ptr_ring/include/
wireguard-linux-compat-1.0.20200729/src/compat/ptr_ring/include/linux/
wireguard-linux-compat-1.0.20200729/src/compat/ptr_ring/include/linux/ptr_ring.h
wireguard-linux-compat-1.0.20200729/src/compat/simd-asm/
wireguard-linux-compat-1.0.20200729/src/compat/simd-asm/include/
wireguard-linux-compat-1.0.20200729/src/compat/simd-asm/include/asm/
wireguard-linux-compat-1.0.20200729/src/compat/simd-asm/include/asm/simd.h
wireguard-linux-compat-1.0.20200729/src/compat/simd/
wireguard-linux-compat-1.0.20200729/src/compat/simd/include/
wireguard-linux-compat-1.0.20200729/src/compat/simd/include/linux/
wireguard-linux-compat-1.0.20200729/src/compat/simd/include/linux/simd.h
wireguard-linux-compat-1.0.20200729/src/compat/siphash/
wireguard-linux-compat-1.0.20200729/src/compat/siphash/include/
wireguard-linux-compat-1.0.20200729/src/compat/siphash/include/linux/
wireguard-linux-compat-1.0.20200729/src/compat/siphash/include/linux/siphash.h
wireguard-linux-compat-1.0.20200729/src/compat/siphash/siphash.c
wireguard-linux-compat-1.0.20200729/src/compat/udp_tunnel/
wireguard-linux-compat-1.0.20200729/src/compat/udp_tunnel/include/
wireguard-linux-compat-1.0.20200729/src/compat/udp_tunnel/include/net/
wireguard-linux-compat-1.0.20200729/src/compat/udp_tunnel/include/net/udp_tunnel.h
wireguard-linux-compat-1.0.20200729/src/compat/udp_tunnel/udp_tunnel.c
wireguard-linux-compat-1.0.20200729/src/compat/udp_tunnel/udp_tunnel_partial_compat.h
wireguard-linux-compat-1.0.20200729/src/cookie.c
wireguard-linux-compat-1.0.20200729/src/cookie.h
wireguard-linux-compat-1.0.20200729/src/crypto/
wireguard-linux-compat-1.0.20200729/src/crypto/Kbuild.include
wireguard-linux-compat-1.0.20200729/src/crypto/include/
wireguard-linux-compat-1.0.20200729/src/crypto/include/zinc/
wireguard-linux-compat-1.0.20200729/src/crypto/include/zinc/blake2s.h
wireguard-linux-compat-1.0.20200729/src/crypto/include/zinc/chacha20.h
wireguard-linux-compat-1.0.20200729/src/crypto/include/zinc/chacha20poly1305.h
wireguard-linux-compat-1.0.20200729/src/crypto/include/zinc/curve25519.h
wireguard-linux-compat-1.0.20200729/src/crypto/include/zinc/poly1305.h
wireguard-linux-compat-1.0.20200729/src/crypto/zinc.h
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/blake2s/
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/blake2s/blake2s-x86_64-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/blake2s/blake2s-x86_64.S
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/blake2s/blake2s.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-arm-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-arm.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-arm64.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-mips-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-mips.S
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-unrolled-arm.S
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-x86_64-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-x86_64.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20poly1305.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-arm-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-arm.S
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-fiat32.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-hacl64.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-x86_64-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-x86_64.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-arm-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-arm.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-arm64.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-donna32.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-donna64.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-mips-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-mips.S
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-mips64.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-x86_64-glue.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-x86_64.pl
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/blake2s.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/chacha20.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/chacha20poly1305.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/curve25519.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/poly1305.c
wireguard-linux-compat-1.0.20200729/src/crypto/zinc/selftest/run.h
wireguard-linux-compat-1.0.20200729/src/device.c
wireguard-linux-compat-1.0.20200729/src/device.h
wireguard-linux-compat-1.0.20200729/src/dkms.conf
wireguard-linux-compat-1.0.20200729/src/main.c
wireguard-linux-compat-1.0.20200729/src/messages.h
wireguard-linux-compat-1.0.20200729/src/netlink.c
wireguard-linux-compat-1.0.20200729/src/netlink.h
wireguard-linux-compat-1.0.20200729/src/noise.c
wireguard-linux-compat-1.0.20200729/src/noise.h
wireguard-linux-compat-1.0.20200729/src/peer.c
wireguard-linux-compat-1.0.20200729/src/peer.h
wireguard-linux-compat-1.0.20200729/src/peerlookup.c
wireguard-linux-compat-1.0.20200729/src/peerlookup.h
wireguard-linux-compat-1.0.20200729/src/queueing.c
wireguard-linux-compat-1.0.20200729/src/queueing.h
wireguard-linux-compat-1.0.20200729/src/ratelimiter.c
wireguard-linux-compat-1.0.20200729/src/ratelimiter.h
wireguard-linux-compat-1.0.20200729/src/receive.c
wireguard-linux-compat-1.0.20200729/src/selftest/
wireguard-linux-compat-1.0.20200729/src/selftest/allowedips.c
wireguard-linux-compat-1.0.20200729/src/selftest/counter.c
wireguard-linux-compat-1.0.20200729/src/selftest/ratelimiter.c
wireguard-linux-compat-1.0.20200729/src/send.c
wireguard-linux-compat-1.0.20200729/src/socket.c
wireguard-linux-compat-1.0.20200729/src/socket.h
wireguard-linux-compat-1.0.20200729/src/tests/
wireguard-linux-compat-1.0.20200729/src/tests/debug.mk
wireguard-linux-compat-1.0.20200729/src/tests/netns.sh
wireguard-linux-compat-1.0.20200729/src/tests/qemu/
wireguard-linux-compat-1.0.20200729/src/tests/qemu/Makefile
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/aarch64.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/aarch64_be.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/arm.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/armeb.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/i686.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/m68k.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/mips.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/mips64.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/mips64el.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/mipsel.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/powerpc.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/powerpc64le.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/arch/x86_64.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/debug.config
wireguard-linux-compat-1.0.20200729/src/tests/qemu/init.c
wireguard-linux-compat-1.0.20200729/src/tests/qemu/kernel.config
wireguard-linux-compat-1.0.20200729/src/timers.c
wireguard-linux-compat-1.0.20200729/src/timers.h
wireguard-linux-compat-1.0.20200729/src/uapi/
wireguard-linux-compat-1.0.20200729/src/uapi/wireguard.h
wireguard-linux-compat-1.0.20200729/src/version.h
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/main.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/noise.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/device.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/peer.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/timers.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/queueing.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/send.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/receive.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/socket.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/peerlookup.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/allowedips.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/ratelimiter.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/cookie.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/netlink.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20.o
PERLASM /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-arm.S
AS [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-arm.o
AS [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20/chacha20-unrolled-arm.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305.o
PERLASM /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-arm.S
AS [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/poly1305/poly1305-arm.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/chacha20poly1305.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/blake2s/blake2s.o
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519.o
AS [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/crypto/zinc/curve25519/curve25519-arm.o
LD [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/wireguard.o
Building modules, stage 2.
MODPOST 1 modules
CC [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/wireguard.mod.o
LD [M] /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/wireguard.ko
INSTALL /tmp/SBo/wireguard-linux-compat-1.0.20200729/src/wireguard.ko
DEPMOD 5.4.50-v7l-arm
Warning: modules_install: missing 'System.map' file. Skipping depmod.
true -b "/" -a 5.4.50-v7l-arm
Slackware package maker, version 3.14159265.
Searching for symbolic links:
No symbolic links were found, so we won't make an installation script.
You can make your own later in ./install/doinst.sh and rebuild the
package if you like.
This next step is optional - you can set the directories in your package
to some sane permissions. If any of the directories in your package have
special permissions, then DO NOT reset them here!
Would you like to reset all directory permissions to 755 (drwxr-xr-x) and
directory ownerships to root.root ([y]es, [n]o)? n
Creating Slackware package: /tmp/wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz
./
install/
install/doinst.sh
install/slack-desc
lib/
lib/modules/
lib/modules/5.4.50-v7l-arm/
lib/modules/5.4.50-v7l-arm/extra/
lib/modules/5.4.50-v7l-arm/extra/wireguard.ko
Slackware package /tmp/wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz created.
real 1m1.555s
user 0m48.738s
sys 0m11.313s
root@torq:/tmp/wireguard-linux-compat# installpkg ../wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz
Verifying package wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz.
Installing package wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz:
PACKAGE DESCRIPTION:
# wireguard-linux-compat (WireGuard kernel module)
#
# WireGuard is a VPN that uses state-of-the-art cryptography. It is
# designed as a general purpose VPN for running on embedded interfaces
# and super computers alike, fit for many different circumstances.
#
# https://www.wireguard.com/
#
#
#
Executing install script for wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz.
Package wireguard-linux-compat-1.0.20200729_5.4.50_v7l_arm-arm-1_SBo.tgz installed.
root@torq:/tmp/wireguard-linux-compat# modprobe wireguard
root@torq:/tmp/wireguard-linux-compat# modinfo wireguard
filename: /lib/modules/5.4.50-v7l-arm/extra/wireguard.ko
intree: Y
alias: net-pf-16-proto-16-family-wireguard
alias: rtnl-link-wireguard
version: 1.0.20200729
author: Jason A. Donenfeld <Jason@zx2c4.com>
description: WireGuard secure network tunnel
license: GPL v2
srcversion: ED7FA2956B367C2B03DC135
depends: ipv6,udp_tunnel,ip6_udp_tunnel
name: wireguard
vermagic: 5.4.50-v7l+ SMP mod_unload modversions ARMv7 p2v8
root@torq:/tmp/wireguard-linux-compat#
The wireguard SlackBuild script compiles the source and installs the resulting pkg perfectly, on my Slackware ARM -current (Raspberry Pi 4) setup. The errors you're seeing on your setup seem to point to a cross-compiled mismatch of architectures but I really don't have a clue why it's happening.
|
|
1 members found this post helpful.
|
08-07-2020, 02:31 PM
|
#11
|
SARPi Maintainer
Registered: Nov 2012
Distribution: Slackware ARM, AArch64
Posts: 1,071
|
Quote:
Originally Posted by abga
If you're using the official Slackware ARM kernel, then grab the source from the Slackware ARM repository. Note that Slackware ARM doesn't officially support the Raspberries and the kernel it provides is only partially functional on the Raspberries.
|
The ONLY reason why SARPi builds kernels is for this specific reason.
It's bad advice to suggest using a kernel that hasn't been configured to fully support the hardware on which it's intended to run. You should appreciate this more than most, after accusing certain people in the past of butchering kernels because they don't specifically suit your individual requirements and/or setup.
|
|
|
All times are GMT -5. The time now is 01:45 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|