Re: mmcli not listing firmware images from modem

2019-09-16 Thread Aleksander Morgado
Hey,

>
> I’m using Solidrun’s clearfog-base plarform with Sierra Wireless EM7430 LTE 
> chipset. I’m running OpenWRT 18.06 with ModemManager feed from 
> https://gitlab.freedesktop.org/mobile-broadband/mobile-broadband-openwrt
>
>
>
> mmcli is not reporting stored firmware images but same can be retrieved using 
> qmicli. Can you please advise what is going wrong?
>
>
>
> root@OpenWrt:/# mmcli -m 0 --firmware-list
>
>   
>
>   Firmware | list: n/a
>
>
>
> root@OpenWrt:/# mmcli -m 0 --firmware-status
>
> error: firmware status unsupported
>
>
>
> root@OpenWrt:/# qmicli -d /dev/cdc-wdm0 -p --dms-list-firmware-images
>
> error: Unknown option --dms-list-firmware-images
>
> root@OpenWrt:/# qmicli -d /dev/cdc-wdm0 -p --dms-list-stored-images
>
> [/dev/cdc-wdm0] Device list of stored images retrieved:
>
>
>
> [0] Type:'modem'
>
> Maximum: '4'
>
>
>
> [modem0]
>
> Unique ID: '?_?'
>
> Build ID:  '02.23.00.00_?'
>
> Storage index: '1'
>
> Failure count: '0'
>
>
>
> >> [CURRENT] <<
>
> [modem1]
>
> Unique ID: '?_?'
>
> Build ID:  '02.20.03.01_?'
>
> Storage index: '2'
>
> Failure count: '0'
>
>
>
> [modem2]
>
> Unique ID: '?_?'
>
> Build ID:  '02.20.03.00_?'
>
> Storage index: '3'
>
> Failure count: '0'
>
>
>
> [1] Type:'pri'
>
> Maximum: '50'
>
>
>
> [pri0]
>
> Unique ID: '001.001_000'
>
> Build ID:  '02.20.03.00_DOCOMO'
>
>
>
> >> [CURRENT] <<
>
> [pri1]
>
> Unique ID: '002.018_000'
>
> Build ID:  '02.23.00.00_GENERIC'
>
>
>
> [pri2]
>
> Unique ID: '000.008_000'
>
> Build ID:  '02.20.03.00_KDDI'
>
>
>
> [pri3]
>
> Unique ID: '000.007_000'
>
> Build ID:  '02.20.03.00_Softbank'
>
>
>
> [pri4]
>
> Unique ID: '002.019_001'
>
> Build ID:  '02.20.03.01_TELSTRA'
>

The code listing the firmware images inside ModemManager was
attempting to run "DMS Get Stored Image Info" for all PRI images
found, in order to load the Boot version and PRI version reported;
but, turns out the Sierra modems don't support this method, so it was
all failing.

It should be fixed in the following MR:
https://gitlab.freedesktop.org/mobile-broadband/ModemManager/merge_requests/168

Please note that unlike qmicli, which shows all modem and PRI images
separately (and user needs to do the matching), in the case of
ModemManager, only the "correct" combinations will be shown as
possible images to select.

-- 
Aleksander
https://aleksander.es
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

mmcli not listing firmware images from modem

2019-08-26 Thread Amol Lad
Hi,

I'm using Solidrun's clearfog-base plarform with Sierra Wireless EM7430 LTE 
chipset. I'm running OpenWRT 18.06 with ModemManager feed from 
https://gitlab.freedesktop.org/mobile-broadband/mobile-broadband-openwrt

mmcli is not reporting stored firmware images but same can be retrieved using 
qmicli. Can you please advise what is going wrong?

root@OpenWrt:/# mmcli -m 0 --firmware-list
  
  Firmware | list: n/a

root@OpenWrt:/# mmcli -m 0 --firmware-status
error: firmware status unsupported

root@OpenWrt:/# qmicli -d /dev/cdc-wdm0 -p --dms-list-firmware-images
error: Unknown option --dms-list-firmware-images
root@OpenWrt:/# qmicli -d /dev/cdc-wdm0 -p --dms-list-stored-images
[/dev/cdc-wdm0] Device list of stored images retrieved:

[0] Type:'modem'
Maximum: '4'

[modem0]
Unique ID: '?_?'
Build ID:  '02.23.00.00_?'
Storage index: '1'
Failure count: '0'

>> [CURRENT] <<
[modem1]
Unique ID: '?_?'
Build ID:  '02.20.03.01_?'
Storage index: '2'
Failure count: '0'

[modem2]
Unique ID: '?_?'
Build ID:  '02.20.03.00_?'
Storage index: '3'
Failure count: '0'

[1] Type:'pri'
Maximum: '50'

[pri0]
Unique ID: '001.001_000'
Build ID:  '02.20.03.00_DOCOMO'

>> [CURRENT] <<
[pri1]
Unique ID: '002.018_000'
Build ID:  '02.23.00.00_GENERIC'

[pri2]
Unique ID: '000.008_000'
Build ID:  '02.20.03.00_KDDI'

[pri3]
Unique ID: '000.007_000'
Build ID:  '02.20.03.00_Softbank'

[pri4]
Unique ID: '002.019_001'
Build ID:  '02.20.03.01_TELSTRA'

Thanks
Amol

The information in this email communication (inclusive of attachments) is 
confidential to 4RF Limited and the intended recipient(s). If you are not the 
intended recipient(s), please note that any use, disclosure, distribution or 
copying of this information or any part thereof is strictly prohibited and that 
the author accepts no liability for the consequences of any action taken on the 
basis of the information provided. If you have received this email in error, 
please notify the sender immediately by return email and then delete all 
instances of this email from your system. 4RF Limited will not accept 
responsibility for any consequences associated with the use of this email 
(including, but not limited to, damages sustained as a result of any viruses 
and/or any action or lack of action taken in reliance on it).
___
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel