juhovh / xmm7360_usb

Kernel module for Fibocom L850-GL / Intel XMM7360 LTE modem
GNU General Public License v2.0
66 stars 17 forks source link

modprobe: FATAL: Module xmm7360_usb not found in directory /lib/modules/4.15.0-66- #6

Open bcallaughan opened 5 years ago

bcallaughan commented 5 years ago

Here is the complete output

`brett@HSVGTS:~$ git clone https://github.com/juhovh/xmm7360_usb.git Cloning into 'xmm7360_usb'... remote: Enumerating objects: 10, done. remote: Counting objects: 100% (10/10), done. remote: Compressing objects: 100% (8/8), done. remote: Total 10 (delta 2), reused 10 (delta 2), pack-reused 0 Unpacking objects: 100% (10/10), done. brett@HSVGTS:~$ ls Desktop Documents Downloads Music Pictures Public Templates Videos xmm7360_usb brett@HSVGTS:~$ cd xmm7360_usb/ brett@HSVGTS:~/xmm7360_usb$ ls LICENSE.txt Makefile README.md xmm7360_usb.c brett@HSVGTS:~/xmm7360_usb$ make make -C /lib/modules/4.15.0-66-generic/build M=/home/brett/xmm7360_usb modules make[1]: Entering directory '/usr/src/linux-headers-4.15.0-66-generic' CC [M] /home/brett/xmm7360_usb/xmm7360_usb.o Building modules, stage 2. MODPOST 1 modules CC /home/brett/xmm7360_usb/xmm7360_usb.mod.o LD [M] /home/brett/xmm7360_usb/xmm7360_usb.ko make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-66-generic' brett@HSVGTS:~/xmm7360_usb$ sudo make install [sudo] password for brett:
make -C /lib/modules/4.15.0-66-generic/build M=/home/brett/xmm7360_usb modules_install make[1]: Entering directory '/usr/src/linux-headers-4.15.0-66-generic' INSTALL /home/brett/xmm7360_usb/xmm7360_usb.ko At main.c:160:

`

_Originally posted by @bcallaughan in https://github.com/juhovh/xmm7360_usb/issues/4#issuecomment-552305340_

ndane commented 5 years ago

Maybe try using DKMS to build instead:

Create dkms.conf in the same directory as Makefile with this config:

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
REMAKE_INITRD=no
DEST_MODULE_LOCATION="/kernel/drivers/misc"
AUTOINSTALL="yes"

Add the following to the end of the Makefile:

dkms-add:
    /usr/sbin/dkms add $(CURDIR)

dkms-build:
    /usr/sbin/dkms build xmm7360_usb/1.0

dkms-remove:
    /usr/sbin/dkms remove xmm7360_usb/1.0 --all

Then try:

sudo make dkms-add && sudo make dkms-build

GaehwanCho commented 4 years ago

I have the same problem. Did you figure out how to solve?

maricn commented 3 years ago

Also if you're running a rolling distro and you updated the kernel, you have to reboot before using modem.