Open adrenalinedj opened 2 years ago
Same issue here using a Sierra Wireless EM7565 LTE card on OPNsense 22.7.6.
During my research, i've found that on freebsd bugtracker this issue was related to the fact that the interface was already attached when umb tries to attach it. I think that a way to fix this, is to add a check if the interface is already attached, is to detach it and attach it as umb device.
The link on FreeBSD bug tracker: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263783
Thank you for the input.
After some research I actually found a way to "detach" a device using the set_config 255
flag for usbconfig
:
The special value of 255 unconfigures the device, detaching the interface drivers and reducing the power consumption to minimum, but without going into power saving mode or detaching from the bus.
I'm now able to load the kernel module without a crash (kldload if_umb
) however no new network interface umb0
is created. show_ifdrv
also shows no driver attached.
usbconfig
also provides a detach_kernel_driver
flag:
Detach kernel driver for the selected interface and USB device.
Using this the kernel still crashes.
Hello, I've installed OPNsense 22.1 on an APU2 with a Quectel EC25-EUX and i've compiled and installed the kernel module. The modem was well detected and visible in PPP interfaces when it was in PPP/QMI mode. But when I've switched the modem from PPP/QMI to MBIM mode, I've encountered errors during startup. Here is the error log: