<div dir="ltr">Aleksander, big thanks!<div>The flashing works now.</div><div><br></div><div>To sum up (for other devs who wants to work with Sierra em9191 and similar):</div><div>1) git clone latest main branch (at least version 1.31.2)</div><div>2) Build with parameter `-Dmbim_qmux=true`, example:</div><div>meson setup build --prefix=~/build -Dwerror=true -Dgtk_doc=false -Dintrospection=false -Dmbim_qmux=true -Dqrtr=false -Drmnet=false -Dcollection=basic<br></div><div>3) Get fw from: <a href="https://source.sierrawireless.com/resources/airprime/software/em919x/em9-approved-fw-packages/">https://source.sierrawireless.com/resources/airprime/software/em919x/em9-approved-fw-packages/</a></div><div>4) Try to flash :)</div><div><br></div><div>Here is the log:</div><div><font face="monospace">./qmi-firmware-update -w /dev/cdc-wdm2 --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<br>loading device information before the update...<br>setting firmware preference:<br> firmware version: '01.07.13.00'<br> config version: '012.007_002'<br> carrier: 'ATT'<br>rebooting in download mode...<br>download mode detected<br>downloading cwe image: SWIX55C_01.07.13.00-005.cwe (89.2 MB)...<br>finalizing download... (may take several minutes, be patient)<br>successfully downloaded in 27.96s (3.2 MB/s)<br>downloading cwe image: SWIX55C_01.07.13.00_ATT_012.007_002.nvu (80.6 kB)...<br>finalizing download... (may take several minutes, be patient)<br>successfully downloaded in 0.07s (1.1 MB/s)<br>rebooting in normal mode...<br>normal mode detected<br><br>------------------------------------------------------------------------<br> NOTE: in order to validate which is the firmware running in the<br> module, the program will wait for a complete boot; this process<br> may take some time and several retries.<br>------------------------------------------------------------------------<br><br>waiting some time for the device to boot...<br>loading device information after the update (1/12)...<br>waiting some time for the device to boot...<br>loading device information after the update (2/12)...<br><br>------------------------------------------------------------------------<br><br> original firmware revision was:<br> SWIX55C_01.07.19.00 000000 jenkins 2021/02/11 02:17:18<br> original running firmware details:<br> Model: EM9191<br> Boot version: SWIX55C_01.07.19.00<br> AMSS version: SWIX55C_01.07.19.00<br> SKU ID: 1104629<br> Carrier ID: 1<br> Config version: 016.010_000<br> original firmware preference details:<br> image 'modem': unique id '016.010_000', build id '01.07.19.00_GENERIC'<br> image 'pri': unique id '016.010_000', build id '01.07.19.00_GENERIC'</font><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 3 февр. 2022 г. в 15:26, Alexander Dydychkin <<a href="mailto:alexander.dydychkin@vicuesoft.com">alexander.dydychkin@vicuesoft.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sure. I will try today. Thanks!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">чт, 3 февр. 2022 г. в 15:17, Aleksander Morgado <<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey,<br>
<br>
> My current status:<br>
><br>
> Multiple hardware power off helped. All my 3 modems are ready to work.<br>
><br>
<br>
Nice!<br>
<br>
> The last problem, I still have the issue with "error: couldn't open QMI device: endpoint hangup". You requested verbose output:<br>
><br>
> ./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<br>
> [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<br>
> [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<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] loading file info...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] opening file for reading...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] reading image headers...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [0,89222543]<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [400,788692]<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 400 is valid<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [788692,45628404]<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 788692 is valid<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [45628404,86807092]<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 45628404 is valid<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [86807092,89222543]<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image at offset 86807092 is valid<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] validating data size...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] preloading firmware/config/carrier...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] firmware version: 01.07.13.00<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] config version: unknown<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] carrier: unknown<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] loading file info...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image] opening file for reading...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] reading image headers...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] image offset range: [0,80641]<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] validating data size...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] preloading firmware/config/carrier...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] firmware version: 01.07.13.00<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] config version: 012.007_002<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-image-cwe] carrier: ATT<br>
> [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'<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu,device-selection] device found: /dev/cdc-wdm3<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu,device-selection] using preferred device: /dev/cdc-wdm3<br>
> loading device information before the update...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu-updater] creating QMI DMS client...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu,utils] creating QMI device...<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu,utils] QMI device created<br>
> [03 Feb 2022, 05:54:47] [Debug] [qfu,utils] opening QMI device (without proxy, qmi mode)...<br>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Opening device with flags 'sync, auto'...<br>
> [03 Feb 2022, 05:54:47] -Warning ** [/dev/cdc-wdm3] requested QMI mode but unexpected transport type found<br>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] created endpoint<br>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Running sync (10 retries)...<br>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Sent message...<br>
> <<<<<< RAW:<br>
> <<<<<< length = 12<br>
> <<<<<< data = 01:0B:00:00:00:00:00:01:27:00:00:00<br>
><br>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] Sent generic request (translated)...<br>
> <<<<<< QMUX:<br>
> <<<<<< length = 11<br>
> <<<<<< flags = 0x00<br>
> <<<<<< service = "ctl"<br>
> <<<<<< client = 0<br>
> <<<<<< QMI:<br>
> <<<<<< flags = "none"<br>
> <<<<<< transaction = 1<br>
> <<<<<< tlv_length = 0<br>
> <<<<<< message = "Sync" (0x0027)<br>
><br>
> [03 Feb 2022, 05:54:47] [Debug] [/dev/cdc-wdm3] QMI endpoint hangup: removed<br>
> [03 Feb 2022, 05:54:47] -Warning ** [/dev/cdc-wdm3] QMI parsing error: QMI framing error detected<br>
> error: couldn't open QMI device: endpoint hangup<br>
><br>
> What do you think?<br>
> 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.<br>
><br>
<br>
Ahh, I think this modem is in MBIM mode, not in QMI mode. And<br>
qmi-firmware-update can work with MBIM modems, but only if the QMI<br>
over MBIM support was built in libqmi.<br>
Can you rebuild your libqmi making sure you specify -Dmbim_qmux=true?<br>
<br>
Also, when launching the qmi-firmware-update program, try to use the<br>
additional "-p" option, so that the proxy is always used.<br>
<br>
Could you try those 2 things?<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">With best regards,<div>Alexander</div></div></div>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With best regards,<div>Alexander</div></div></div>