qmi-firmware-update in openwrt with all features

Aleksander Morgado aleksander at aleksander.es
Thu Mar 10 14:34:21 UTC 2022


Hey!

I've merged in git "main" a branch that enables all the features of
qmi-firmware-update, even in systems without udev, like openwrt. The
MR was: https://gitlab.freedesktop.org/mobile-broadband/libqmi/-/merge_requests/317

This means that in openwrt there is no longer any need to use the
"manual" mode, where it's quite easy to make mistakes.

The "normal" mode allows the user to run the upgrade just providing a
device identification option, plus the images to download, e.g.:

$ sudo qmi-firmware-update -u -w /dev/cdc-wdm0 -p SWIX55C*
loading device information before the update...
setting firmware preference:
  firmware version: '03.04.03.00'
  config version:   '030.012_000'
  carrier:          'GENERIC'
rebooting in download mode...
download mode detected
downloading cwe image: SWIX55C_03.04.03.00-001.cwe (92,5 MB)...
finalizing download... (may take several minutes, be patient)
successfully downloaded in 44,36s (2,1 MB/s)
downloading cwe image: SWIX55C_03.04.03.00-001_GENERIC_030.012_000.nvu
(48,8 kB)...
finalizing download... (may take several minutes, be patient)
successfully downloaded in 0,03s (1,4 MB/s)
rebooting in normal mode...
normal mode detected

------------------------------------------------------------------------
    NOTE: in order to validate which is the firmware running in the
    module, the program will wait for a complete boot; this process
    may take some time and several retries.
------------------------------------------------------------------------

waiting some time for the device to boot...
loading device information after the update (1/12)...

------------------------------------------------------------------------

   original firmware revision was:
      SWIX55C_02.08.01.00 58f60e jenkins 2021/03/12 18:05:48
   original running firmware details:
      Model: EM9191
      Boot version: SWIX55C_02.08.01.00
      AMSS version: SWIX55C_02.08.01.00
      SKU ID: 1104629
      Carrier ID: 1
      Config version: 020.007_001
   original firmware preference details:
      image 'modem': unique id '020.007_001', build id '02.08.01.00_GENERIC'
      image 'pri': unique id '020.007_001', build id '02.08.01.00_GENERIC'

   new firmware revision is:
      SWIX55C_03.04.03.00 6b63ff jenkins 2021/08/16 19:24:41
   new running firmware details:
      Model: EM9191
      Boot version: SWIX55C_03.04.03.00
      AMSS version: SWIX55C_03.04.03.00
      SKU ID: 1104629
      Carrier ID: 1
      Config version: 030.012_000
   new firmware preference details:
      image 'modem': unique id '030.012_000', build id '03.04.03.00_GENERIC'
      image 'pri': unique id '030.012_000', build id '03.04.03.00_GENERIC'

   NOTE: this device supports stored image management
   with qmicli operations:
      --dms-list-stored-images
      --dms-select-stored-image
      --dms-delete-stored-image

   NOTE: this device supports firmware preference management
   with qmicli operations:
      --dms-get-firmware-preference
      --dms-set-firmware-preference

------------------------------------------------------------------------

firmware update operation finished successfully


The tool will take care of validating the images, requesting the
correct settings to download, waiting for the QDL device, performing
the upgrade, waiting for the device to reboot again and finally check
the version strings reported to see if the upgrade was successful or
not. Users of normal distributions with udev already knew about these
features, but they are totally new to openwrt users.

Please check qmi-firmware-update --help or --help-examples for more
info on how to use it.

Cheers!

--
Aleksander
https://aleksander.es


More information about the libqmi-devel mailing list