fwupd/plugins/modem-manager
Ivan Mikhanchuk af5fb429c8 modem-manager: remove improper use of assert
FuSaharaLoader being NULL is normal for devices that only
support Firehose and don't use Sahara QDL port.
2023-01-24 20:54:43 -06:00
..
fu-firehose-updater.c modem-manager: Fix debug format string 2022-09-09 19:23:29 +01:00
fu-firehose-updater.h Be smarter and include less header files per source file 2022-06-14 14:36:52 -05:00
fu-mbim-qdu-updater.c trivial: Fix -Wunused-but-set-variable warning 2022-09-22 14:24:50 +01:00
fu-mbim-qdu-updater.h modem-manager: add get_mbim_device method for MbimQdu 2022-03-22 14:26:49 +00:00
fu-mm-device.c modem-manager: add firehose prog name quirk 2023-01-05 17:39:13 +00:00
fu-mm-device.h modem-manager: Remove the cache item and use a shadow device instead 2022-04-12 09:59:19 +01:00
fu-mm-plugin.c Rename the source file and private data of modular plugins 2022-09-30 15:20:23 +01:00
fu-mm-utils.c Be smarter and include less header files per source file 2022-06-14 14:36:52 -05:00
fu-mm-utils.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-qmi-pdc-updater.c trivial: Cast the g_signal_connect() object to allow static analysis 2022-01-03 22:46:23 +00:00
fu-qmi-pdc-updater.h trivial: reformat the whole tree to match new format 2021-08-24 11:18:40 -05:00
fu-sahara-loader.c modem-manager: remove improper use of assert 2023-01-24 20:54:43 -06:00
fu-sahara-loader.h modem-manager: add Sahara protocol 2022-03-22 14:26:49 +00:00
meson.build add an rpath to things not compiled into a library 2022-10-07 14:16:37 -05:00
modem-manager.quirk modem-manager: add quirk for Quectel RM520 modem 2023-01-05 17:39:13 +00:00
README.md Include the plugin README text in the generated docs 2023-01-10 14:58:30 +00:00

title: Plugin: ModemManager

Introduction

This plugin adds support for devices managed by ModemManager.

GUID Generation

These device use the ModemManager "Firmware Device IDs" as the GUID, e.g.

  • USB\VID_413C&PID_81D7&REV_0318&CARRIER_VODAFONE
  • USB\VID_413C&PID_81D7&REV_0318
  • USB\VID_413C&PID_81D7
  • USB\VID_413C
  • PCI\VID_105B&PID_E0AB&REV_0000&CARRIER_VODAFONE
  • PCI\VID_105B&PID_E0AB&REV_0000
  • PCI\VID_105B&PID_E0AB
  • PCI\VID_105B
  • PCI\VID_1EAC&PID_1001
  • PCI\VID_1EAC&PID_1002
  • PCI\VID_1EAC

Quirk Use

This plugin uses the following plugin-specific quirk:

ModemManagerBranchAtCommand

AT command to execute to determine the firmware branch currently installed on the modem.

Since: 1.7.4

ModemManagerFirehoseProgFile

Firehose program file to use during the switch to EDL (Emergency Download) mode.

Since: 1.8.10

Vendor ID Security

The vendor ID is set from the USB or PCI vendor, for example USB:0x413C PCI:0x105B

Update method: fastboot

If the device supports the 'fastboot' update method, it must also report which AT command should be used to trigger the modem reboot into fastboot mode.

Once the device is in fastboot mode, the firmware upgrade process will happen as defined e.g. in the 'flashfile.xml' file. Every file included in the CAB that is not listed in the associated 'flashfile.xml' will be totally ignored during the fastboot upgrade procedure.

Update Protocol: com.google.fastboot

For this reason the REPLUG_MATCH_GUID internal device flag is used so that the fastboot and runtime modes are treated as the same device.

Update method: qmi-pdc

If the device supports the 'qmi-pdc' update method, the contents of the CAB file should include files named as 'mcfg.*.mbn' which will be treated as MCFG configuration files to download into the device using the Persistent Device Configuration QMI service.

If a device supports both 'fastboot' and 'qmi-pdc' methods, the fastboot operation will always be run before the QMI operation, so that e.g. the full partition where the MCFG files are stored can be wiped out before installing the new ones.

Update protocol: com.qualcomm.qmi_pdc

For this reason the REPLUG_MATCH_GUID internal device flag is used so that the fastboot and runtime modes are treated as the same device.

Update method: mbim-qdu

If the device supports the 'mbim-qdu' update method, the contents of the CAB file should include a package named as 'Firmware_*.7z' which is a compressed ota.bin file that will be downloaded to the ota partition of the device.

Update protocol: com.qualcomm.mbim_qdu

Update method: firehose

If the device supports the 'firehose' update method, it should have QCDM port exposed and the contents of the CAB file should contain 'firehose-rawprogram.xml'. The device is then switched to the emergency download mode (EDL) and flashed with files described in 'firehose-rawprogram.xml'.

Update protocol: com.qualcomm.firehose

External Interface Access

This plugin requires read/write access to /dev/bus/usb and /dev/bus/pci.