[qmi-firmware-update] Flashing does not work properly with Sierra em9191 (5g modem)
Aleksander Morgado
aleksander at aleksander.es
Thu Feb 3 12:17:06 UTC 2022
Hey,
> My current status:
>
> Multiple hardware power off helped. All my 3 modems are ready to work.
>
Nice!
> The last problem, I still have the issue with "error: couldn't open QMI device: endpoint hangup". You requested verbose output:
>
> ./qmi-firmware-update -w /dev/cdc-wdm3 --update /home/support/adydychk/fws/atta/SWIX55C_01.07.13.00-005.cwe /home/support/adydychk//fws/atta/SWIX55C_01.07.13.00_ATT_012.007_002.nvu --verbose
> [03 Feb 2022, 05:54:47] [Debug] [qfu-udev] sysfs path for 'cdc-wdm3' found: /sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.3
> [03 Feb 2022, 05:54:47] [Debug] [qfu-utils] couldn't ping ModemManager: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.freedesktop.ModemManager1" does not exist
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] loading file info...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] opening file for reading...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] reading image headers...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [0,89222543]
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [400,788692]
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 400 is valid
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [788692,45628404]
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 788692 is valid
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [45628404,86807092]
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 45628404 is valid
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [86807092,89222543]
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 86807092 is valid
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] validating data size...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] preloading firmware/config/carrier...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] firmware version: 01.07.13.00
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] config version: unknown
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] carrier: unknown
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] loading file info...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] opening file for reading...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] reading image headers...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [0,80641]
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] validating data size...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] preloading firmware/config/carrier...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] firmware version: 01.07.13.00
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] config version: 012.007_002
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] carrier: ATT
> [03 Feb 2022, 05:54:47] [Debug] [qfu,device-selection] single cdc-wdm device requested in sysfs path '/sys/devices/pci0000:00/0000:00:14.0/usb1/1-6/1-6.3'
> [03 Feb 2022, 05:54:47] [Debug] [qfu,device-selection] device found: /dev/cdc-wdm3
> [03 Feb 2022, 05:54:47] [Debug] [qfu,device-selection] using preferred device: /dev/cdc-wdm3
> loading device information before the update...
> [03 Feb 2022, 05:54:47] [Debug] [qfu-updater] creating QMI DMS client...
> [03 Feb 2022, 05:54:47] [Debug] [qfu,utils] creating QMI device...
> [03 Feb 2022, 05:54:47] [Debug] [qfu,utils] QMI device created
> [03 Feb 2022, 05:54:47] [Debug] [qfu,utils] opening QMI device (without proxy, qmi mode)...
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Opening device with flags 'sync, auto'...
> [03 Feb 2022, 05:54:47] -Warning ** [/dev/cdc-wdm3] requested QMI mode but unexpected transport type found
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] created endpoint
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Running sync (10 retries)...
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Sent message...
> <<<<<< RAW:
> <<<<<< length = 12
> <<<<<< data = 01:0B:00:00:00:00:00:01:27:00:00:00
>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Sent generic request (translated)...
> <<<<<< QMUX:
> <<<<<< length = 11
> <<<<<< flags = 0x00
> <<<<<< service = "ctl"
> <<<<<< client = 0
> <<<<<< QMI:
> <<<<<< flags = "none"
> <<<<<< transaction = 1
> <<<<<< tlv_length = 0
> <<<<<< message = "Sync" (0x0027)
>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] QMI endpoint hangup: removed
> [03 Feb 2022, 05:54:47] -Warning ** [/dev/cdc-wdm3] QMI parsing error: QMI framing error detected
> error: couldn't open QMI device: endpoint hangup
>
> What do you think?
> In addition I see that my modems do not have ttyUSB* interfaces. I am not a very experienced guy with the modems but in my previous work with 4G SIerra modems I got ttyUSB* interfaces immediately after enabling the qmi open source driver.
>
Ahh, I think this modem is in MBIM mode, not in QMI mode. And
qmi-firmware-update can work with MBIM modems, but only if the QMI
over MBIM support was built in libqmi.
Can you rebuild your libqmi making sure you specify -Dmbim_qmux=true?
Also, when launching the qmi-firmware-update program, try to use the
additional "-p" option, so that the proxy is always used.
Could you try those 2 things?
--
Aleksander
https://aleksander.es
More information about the libqmi-devel
mailing list