aleksander/qmi-firmware-update v2: dms-list-stored-images on MC7430

Bjørn Mork bjorn at mork.no
Thu Jan 19 13:57:27 UTC 2017


Sebastian Sjoholm <sebastian.sjoholm at gmail.com> writes:

> root at mserver116:/opt/test# qmicli -d /dev/cdc-wdm0 --dms-list-stored-images
> [/dev/cdc-wdm0] Device list of stored images retrieved:
>
> [0] Type:    'modem'
>    Maximum: '4'
>
>>>>>>>>>>> [CURRENT] <<<<<<<<<<
> [modem0]
> Unique ID:     '?_?'
> Build ID:      '02.08.02.00_?'
> Storage index: '1'
> Failure count: '0'
>
> [modem1]
> Unique ID:     '?_?'
> Build ID:      '02.20.03.00_?'
> Storage index: '2'
> Failure count: '0'
>
> [1] Type:    'pri'
>    Maximum: '50'
>
>>>>>>>>>>> [CURRENT] <<<<<<<<<<
> [pri0]
> Unique ID:     '002.007_000'
> Build ID:      '02.08.02.00_GENERIC'
>
> root at mserver116:/opt/test# qmi-firmware-update --update -d 1199:9071
> SWI9X30C_02.20.03.00.cwe SWI9X30C_02.20.03.00_GENERIC_002.017_000.nvu
> loading device information before the update...
> setting firmware preference:
>   firmware version: '02.20.03.00'
>   config version:   '002.017_000'
>   carrier:          'GENERIC'
> rebooting in download mode...
> download mode detected
> downloading cwe image: SWI9X30C_02.20.03.00.cwe (64.4 MB)...
> finalizing download... (may take more than one minute, be patient)
> successfully downloaded in 57.23s (1.1 MB/s)
> downloading cwe image: SWI9X30C_02.20.03.00_GENERIC_002.017_000.nvu (3.1
> kB)...
> finalizing download... (may take more than one minute, be patient)
> successfully downloaded in 0.06s (54.9 kB/s)


It shouldn't really have needed to download the SWI9X30C_02.20.03.00.cwe
file in this case, since it was already there. Don't know if it matters
much, but the "set firmware preference" request should have requested
the "pri" file only here.

Will  qmi-firmware-update look at the returned list of images to
download, Aleksander?  Or will it just download everything on the
command line anyway?

After reading the docs Aleksander pointed to earlier today, I believe it
doesn't matter wrt flashing.  The bootloader will just drop the
redundant file.  But it takes some time to send a 64MB file to the
modem, so it might be worth it trying to avoid that.  At least for the
more common(?) operation of switching "carrier", while reusing the
running firmware version.


Bjørn


More information about the libqmi-devel mailing list