Skip to content

Commit c555d8e

Browse files
committed
Add dkms guide for armhf
1 parent 68cbe6d commit c555d8e

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

recipes/dkms.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,25 @@ sudo apt-get install dkms git-core
2020

2121
## Install DKMS (armhf)
2222

23-
**This currently does not work due to missing `gcc-aarch64-linux-gnu`.**
23+
24+
You have to perform additional steps to prepare `aarch64` compilation environment:
25+
26+
```bash
27+
sudo apt-get update -y
28+
sudo apt-get install -y dkms git-core
29+
sudo apt-get install -y debootstrap binutils-aarch64-linux-gnu
30+
sudo debootstrap --arch=arm64 --variant=minbase --include=gcc bionic /opt/gcc-arm64 http://ports.ubuntu.com/ubuntu-ports/
31+
echo "export CROSS_COMPILE=/opt/gcc-arm64/usr/bin/aarch64-linux-gnu-" | sudo tee -a /etc/dkms/framework.conf
32+
echo "export LD_LIBRARY_PATH=/opt/gcc-arm64/usr/lib/aarch64-linux-gnu/:/opt/gcc-arm64/lib/aarch64-linux-gnu/:\$LD_LIBRARY_PATH" | sudo tee -a /etc/dkms/framework.conf
33+
```
2434

2535
## Wireguard
2636

2737
Installing Wireguard is very simple with DKMS and makes Wireguard to be auto-updated
2838
after kernel change.
2939

30-
Following the documentation from https://www.wireguard.com/install/:
40+
Following the documentation from https://www.wireguard.com/install/ Ubuntu,
41+
visit the wireguard webpage for Debian documentation:
3142

3243
```bash
3344
sudo add-apt-repository ppa:wireguard/wireguard

0 commit comments

Comments
 (0)