Hello everyone,
I’m having trouble updating the Sierra Wireless EM7565 modem firmware and PRI files across Linux systems. Below is a detailed description of my process and the issues I encounter. Any help or suggestions would be greatly appreciated!
To start with, my EM7565 module contains the following images
at!image?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 EMPTY 0 0 0
FW 2 GOOD 6 0 0 ?_? 01.14.02.00_?
FW 3 EMPTY 0 0 0
FW 4 EMPTY 0 0 0
Max FW images: 4
Active FW image is at slot 2
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.035_003 01.14.02.00_GENERIC
Max PRI images: 50
OK
at!impref?
!IMPREF:
preferred fw version: 01.14.02.00
preferred carrier name: GENERIC
preferred config name: GENERIC_002.035_003
preferred subpri index: 000
current fw version: 01.14.02.00
current carrier name: GENERIC
current config name: GENERIC_002.035_003
current subpri index: 000
OK
Windows Setup:
On my Windows machine, I successfully upgraded the EM7565 module to firmware version 01.14.13 using the fdt2.exe
tool. Here’s the process I followed:
.\fdt2.exe -d g5k -f .\SWI9X50C_01.14.13.00.cwe .\SWI9X50C_01.14.13.00_GENERIC_002.048_000.nvu
FDT version: 2.0.2012.0
Awaiting adapter ...
Setting images preference ...
Disabling selective suspend ...
Resetting ...
Awaiting download port ...
Switching to streaming mode ...
Downloading images ...
Writing image D:\Projects\EM7565\Bin\x64\release\.\swi9x50c_01.14.13.00.cwe |
Flashing image -
Writing image D:\Projects\EM7565\Bin\x64\release\.\swi9x50c_01.14.13.00_generic_002.048_000.nvu -
Flashing image \
Enabling selective suspend ...
Awaiting adapter ...
Checking update status ...
Firmware image download succeeded.
Final Firmware update succeeded.
Preexisting images information:
Current:
Firmware:
ImageId: 002.035_003
BuildId: 01.14.02.00_GENERIC
Configuration:
ImageId: 002.035_003
BuildId: 01.14.02.00_GENERIC
Final images information:
Current:
Firmware:
ImageId: 002.048_000
BuildId: 01.14.13.00_GENERIC
Configuration:
ImageId: 002.048_000
BuildId: 01.14.13.00_GENERIC
OEM PRI: 9907344 002.001 Generic-M2M
IMEI: 359260080444141
Total time elapsed: 177234 ms.
Time to switch to boot mode: 25578 ms.
Images downloaded:
Image ID: ?_?
Build ID: 01.14.13.00_?
write time: 13328 ms
additional flash time: 109328 ms
Image ID: 002.048_000
Build ID: 01.14.13.00_GENERIC
write time: 219 ms
additional flash time: 109 ms
Time to reset to application mode: 24047 ms.
Press Enter to continue ...
The firmware and PRI files were successfully flashed. and the firmware image switched to 01.14.13.00 and the PRI to 002.048_000. The update was verified with the at!image?
and at!impref?
commands.
at!image?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 EMPTY 0 0 0
FW 2 GOOD 6 0 0 ?_? 01.14.02.00_?
FW 3 GOOD 7 0 0 ?_? 01.14.13.00_?
FW 4 EMPTY 0 0 0
Max FW images: 4
Active FW image is at slot 3
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.048_000 01.14.13.00_GENERIC
Max PRI images: 50
OK
at!impref?
!IMPREF:
preferred fw version: 01.14.13.00
preferred carrier name: GENERIC
preferred config name: GENERIC_002.048_000
preferred subpri index: 000
current fw version: 01.14.13.00
current carrier name: GENERIC
current config name: GENERIC_002.048_000
current subpri index: 000
OK
Linux Setup (Issue):
I ran into problems when attempting to perform the same update on an Ubuntu 18.04 machine.
Note: To be clear, I deleted the 01.14.13 firmware and related PRI file and re-flashed the module with 01.14.02 files before trying on Linux
sudo ./fwdwl-litehostx86_64 -m 4 --dmreset -c MBIM -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -f /home/rvl/EM7565/011413 -l /home/rvl/EM7565/upp.log
Modem Manager rules Tested
litefw version :lite-fwSLQS04.00.27
INFO: QDL Port : /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: FW Path : /home/rvl/EM7565/011413
Package Info:
Carrier :GENERIC
FW Version :01.14.13.00
Model ID :SWI9X50C
Package ID :000
PRI Version:002.048
SKU :9999999
Part Number:9907259
file_type : 6
Switch Modem to QDL mode by DM Reset Command.
Waiting for modem to come up in BOOT and HOLD mode ...
BOOT and HOLD Mode. Downloading firmware ...
litefw_DownloadFW succeeded.
Waiting for modem to come up in ONLINE mode ...
mbim open respons type error -2147480831
Firmware Download Process completed
Exiting Application!!!
The issue:
- Only the PRI file is updated to version 01.14.13.
- The firmware version remains stuck at 01.14.02.
- The
at!image?
command shows that the new firmware (01.14.13) is not written to the module.
at!image?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 EMPTY 0 0 0
FW 2 GOOD 6 0 0 ?_? 01.14.02.00_?
FW 3 EMPTY 0 0 0
FW 4 EMPTY 0 0 0
Max FW images: 4
Active FW image is at slot 2
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.048_000 01.14.13.00_GENERIC
Max PRI images: 50
OK
at!impref?
!IMPREF:
preferred fw version: 01.14.02.00
preferred carrier name: GENERIC
preferred config name: GENERIC_002.035_003
preferred subpri index: 000
current fw version: 01.14.02.00
current carrier name: GENERIC
current config name: GENERIC_002.035_003
current subpri index: 000
OK
I also tried just updating the cwe file using below command. But the result is same. No 01.14.13 firmware in the FW list slots.
sudo ./fwdwl-litehostx86_64 -m 4 --dmreset -c MBIM -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -f /home/rvl/EM7565/011413/SWI9X50C_01.14.13.00.cwe -l /home/rvl/EM7565/upp.log
I have also tried the lastest MBPL SDK, but getting the same result
sudo ./fw-download-toolhostx86_64 -F -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -w SWI9X50C_01.14.13.00.cwe -n SWI9X50C_01.14.13.00_GENERIC_002.048_000.nvu -f /home/rvl/EM7565/011413 -l /home/rvl/EM7565/upp2.log -m 4 -c MBIM -t 1
Questions:
- Has anyone experienced similar issues with updating the EM7565 on Linux?
- Are there any specific commands or settings that need to be configured for proper firmware updates on Linux?
- Is there a known workaround to ensure the firmware gets written alongside the PRI file?
Thank you in advance for any advice or help you can provide!