[review] EM75xx firmware update using qmi-firmware-update

Bjørn Mork bjorn at mork.no
Thu Jun 27 17:52:22 UTC 2019


And I just went ahead and tried to upgrade from the pre-ancient

 SWI9X50C_01.02.01.00 e84ea4 jenkins 2017/11/01 19:34:14

to SWI9X50C_01.09.04.00.  The first attempt failed, as I pretty much
expected, due to something looking like a USB3 bug in that old
bootloader:

root at miraculix:/tmp# qmi-firmware-update -d 1199:9091 --update /tmp/SWI9X50C_01.09.04.00.cwe /tmp/SWI9X50C_01.09.04.00_GENERIC_002.019_000.nvu 
loading device information before the update...
setting firmware preference:
  firmware version: '01.09.04.00'
  config version:   '002.019_000'
  carrier:          'GENERIC'
rebooting in download mode...
download mode detected
downloading cwe image: SWI9X50C_01.09.04.00.cwe (79.7 MB)...
(--*---) 00.0%error: error downloading image: couldn't write in session: couldn't send transfer block 2timed out waiting to write



I then switched to a USB2 cable, and it went just fine (note that the
firmware preferences had already been updated by the previous attempt):

root at miraculix:/tmp# qmi-firmware-update -d 1199:9091 --update /tmp/SWI9X50C_01.09.04.00.cwe /tmp/SWI9X50C_01.09.04.00_GENERIC_002.019_000.nvu 
loading device information before the update...
setting firmware preference:
  firmware version: '01.09.04.00'
  config version:   '002.019_000'
  carrier:          'GENERIC'
rebooting in download mode...
download mode detected
downloading cwe image: SWI9X50C_01.09.04.00.cwe (79.7 MB)...
finalizing download... (may take several minutes, be patient)
successfully downloaded in 122.08s (652.5 kB/s)
downloading cwe image: SWI9X50C_01.09.04.00_GENERIC_002.019_000.nvu (10.1 kB)...
finalizing download... (may take several minutes, be patient)
successfully downloaded in 0.06s (177.1 kB/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:
      SWI9X50C_01.02.01.00 e84ea4 jenkins 2017/11/01 19:34:14
   original running firmware details:
      Model: EM7565
      Boot version: SWI9X50C_01.02.01.00
      AMSS version: SWI9X50C_01.02.01.00
      SKU ID: 1103520
      Carrier ID: 1
   original firmware preference details:
      image 'modem': unique id '002.019_000', build id '01.09.04.00_GENERIC'
      image 'pri': unique id '002.019_000', build id '01.09.04.00_GENERIC'

   new firmware revision is:
      SWI9X50C_01.09.04.00 6d3218 jenkins 2019/02/26 20:33:22
   new running firmware details:
      Model: EM7565
      Boot version: SWI9X50C_01.09.04.00
      AMSS version: SWI9X50C_01.09.04.00
      SKU ID: 1103520
      Carrier ID: 1
      Config version: 001.015_000
   new firmware preference details:
      image 'modem': unique id '002.019_000', build id '01.09.04.00_GENERIC'
      image 'pri': unique id '002.019_000', build id '01.09.04.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 modem complained about config preference mismatch, as the
documentation said it would when upgrading from a pre-10 release, so I
repeated the procedure as instructed.  This went just fine.


Then I got the bright idea to try to re-download using USB3 now that I
had a brand new bootloader.  The download completed just fine, but I got
a NAK:

root at miraculix:/tmp# qmi-firmware-update -d 1199:9091 --override-download --update /tmp/SWI9X50C_01.09.04.00.cwe /tmp/SWI9X50C_01.09.04.00_GENERIC_002.019_000.nvu 
loading device information before the update...
setting firmware preference:
  firmware version: '01.09.04.00'
  config version:   '002.019_000'
  carrier:          'GENERIC'
rebooting in download mode...
download mode detected
downloading cwe image: SWI9X50C_01.09.04.00.cwe (79.7 MB)...
finalizing download... (may take several minutes, be patient)
error: error downloading image: couldn't teardown download: unexpected firehose response received: value=NAK, rawmode=n/a


Maybe because the image was already current?


That's as far as I got today.  The modem is still booting fine, of
course.



Bjørn


More information about the libqmi-devel mailing list