After fwupd upgrade with mbim-qdu method, MM sometimes generate plugin failed with the regenerated MHI driver.
ModemManager/src/mm-port-mbim.c:
static void
mbim_device_new_ready (GObject *unused,
GAsyncResult *res,
GTask *task)
{
GError *error = NULL;
MMPortMbim *self;
self = g_task_get_source_object (task);
self->priv->mbim_device = mbim_device_new_finish (res, &error);
if (!self->priv->mbim_device) {
g_task_return_error (task, error);
g_object_unref (task);
return;
}
/* Now open the MBIM device */
mbim_device_open_full (self->priv->mbim_device,
MBIM_DEVICE_OPEN_FLAGS_PROXY,
- 30,
+ 34,
g_task_get_cancellable (task),
(GAsyncReadyCallback)mbim_device_open_ready,
task);
}
Steps:
mbim_device_open_full time_out=30
- sudo systemctl stop ModemManager
- sudo /usr/libexec/mbim-proxy --no-exit --verbose > mbim-proxy_failed_log 2>&1
- sudo ModemManager --debug > ModemManager_failed_log 2>&1
- sudo fwupdmgr install xxxxxx.cab
mbim_device_open_full time_out=34
- sudo systemctl stop ModemManager
- sudo /usr/libexec/mbim-proxy --no-exit --verbose > mbim-proxy_succeed_log 2>&1
- sudo ModemManager --debug > ModemManager_succeed_log 2>&1
- sudo fwupdmgr install xxxxxx.cab
Edited by Jarvis-Jiang-G