Skip to content
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

Add DKMS module configuration to circumvent signing issue in Ubuntu 20.04 #17

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,35 @@ AT+CFUN=15

Everything simply worked on my machine from that onwards, and the automatically
loaded module makes sure that the modem stays in USB mode even through reboots.

## DKMS Module

If you encounter something like following while executing `sudo make install`, you may try installing by DKMS module.

```
At main.c:160:
- SSL error:02001002:system library:fopen:No such file or directory: ../crypto/bio/bss_file.c:69
- SSL error:2006D080:BIO routines:BIO_new_file:no such file: ../crypto/bio/bss_file.c:76
sign-file: certs/signing_key.pem: No such file or directory
DEPMOD 5.4.0-40-generic
```

1. Install dkms

```
sudo apt install dkms
```

2. Install xmm7360 module by dkms

```
./install_dkms.sh
```

3. Load xmm7360 module

```
sudo modprobe xmm7360_usb
```

If you want to remove this module from dkms tree, use `sudo dkms remove -m xmm7360_usb -v 0.1 --all`
8 changes: 8 additions & 0 deletions dkms.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
MAKE="make -C ./ KERNELDIR=/lib/modules/${kernelver}/build"
CLEAN="make -C ./ clean"
BUILT_MODULE_NAME=xmm7360_usb
BUILT_MODULE_LOCATION=./
PACKAGE_NAME=xmm7360_usb
PACKAGE_VERSION=1.0
DEST_MODULE_LOCATION=/kernel/drivers/other
AUTOINSTALL=yes
5 changes: 5 additions & 0 deletions install_dkms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sudo mkdir /usr/src/xmm7360_usb-0.1
sudo cp -r . /usr/src/xmm7360_usb-0.1
sudo dkms add -m xmm7360_usb/0.1
sudo dkms build -m xmm7360_usb -v 0.1
sudo dkms install -m xmm7360_usb -v 0.1
2 changes: 2 additions & 0 deletions uninstall_dkms.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sudo dkms remove -m xmm7360_usb -v 0.1 --all
sudo rm -rf /usr/src/xmm7360_usb-0.1