-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing net/gso.h on Raspberry Pi Debian 11 Bullseye - dependency problem? #18
Comments
The same problem here. Raspberry PI, Debian 12. Is amneziawg supposed to work on Arm 64? |
same here |
@1Godhell you seems to be building against kernel version higher than installed (current branch in https://github.com/raspberrypi/linux repo is rpi-6.6.y while you are building on 6.1 kernel). Obtain relevant kernel source by specifying branch in |
Tried to do this, got the same problem: net/gso.h No such file or directory. Raspberry Pi OS |
It works with vanilla Debian on Hetzner. So problem in Raspbian I think |
I tried to use legacy (user mode) implemetation and this works ok. It sufficient for my goals, no required super fast connection. At the same time, I was'nt notice difference between kernel and usermode iplementation. |
I found a way to install it.
uname -r b) Search for the correct version of the kernel source: sudo apt-cache search linux-source c) Install the source code: sudo apt install linux-source-<version> d) Verify where the source code is saved: dpkg -L linux-source-<version> Usually, it will be located at: /usr/src/linux-source-<version>.tar.xz
Notes
# Create a working directory
mkdir amnezia-build
cd amnezia-build
# Clone required repositories
git clone https://github.com/amnezia-vpn/amneziawg-linux-kernel-module.git
git clone https://github.com/amnezia-vpn/amneziawg-tools.git
# Prepare and extract kernel source
mkdir linux-source
tar xf /usr/src/linux-source-<version>.tar.xz -C linux-source
# Link kernel source to the AmneziaWG module
ln -s linux-source amneziawg-linux-kernel-module/src/kernel
# Build and install the kernel module
cd amneziawg-linux-kernel-module/src
make
sudo make install
# Build and install the AmneziaWG tools
cd ../../amneziawg-tools/src
make
sudo make install
# Return to the main directory
cd ../../ |
Here's what I used to install sudo apt -y install raspberrypi-kernel-headers # Required by amneziawg
sudo apt -y install resolvconf # Required by amneziawg
# Uncomment deb-src sources for amneziawg-dkms
sudo sed '/deb-src http/s/^#//g' -i /etc/apt/sources.list
sudo sed '/deb-src http/s/^#//g' -i /etc/apt/sources.list.d/raspi.list
sudo apt update
sudo apt -y install gnupg2. apt-transport-https ca-certificates
gpg --keyserver keyserver.ubuntu.com --recv-keys 75c9dd72c799870e310542e24166f2c257290828
gpg --export 75c9dd72c799870e310542e24166f2c257290828 | sudo tee /usr/share/keyrings/amnezia.gpg > /dev/null
echo "deb [signed-by=/usr/share/keyrings/amnezia.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list.d/amnezia.list
echo "deb-src [signed-by=/usr/share/keyrings/amnezia.gpg] https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list.d/amnezia.list
sudo apt update
sudo apt -y install amneziawg
The rest of the installation has been taken from #27, as the official installation instructions are flawed. |
The original issue is also related to |
The error itself is due to the fact that in Linux 6.4.10 The outdated sources (6.1) don't have that change, while RPi's kernel (6.6) has it. The mismatch between the two trigger the error. |
Can’t compile kernel module on Raspberry Pi - missing
net/gso.h
from sources, although it's in place.Operating System: Debian GNU/Linux 11 (bullseye)
Kernel: Linux 6.1.21-v8+
Architecture: arm64
Looking into the log file:
Attempted to build manually:
Of course
net/gso.h
is in its place inside the kernel source tree.Thank you!
The text was updated successfully, but these errors were encountered: