# Help with EM7565 Firmware and PRI File Update on Linux

**URL:** <https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761>\
**Category:** MC/EM Series\
**Tags:** fw-upgrade\
**Created:** [October 4, 2024, 10:44am UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761 "2024-10-04T10:44:34Z")\
**Posts on this page:** 13\
**Page:** 2

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 7, 2024, 4:24pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/21 "2024-10-07T16:24:27Z")

</div>

More than 10 minutes. Are you using Linux Virtual machine or a Linux PC?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 7, 2024, 4:28pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/22 "2024-10-07T16:28:58Z")

</div>

i used virtual machine

But i think both virtual machine or linux PC should work

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 7, 2024, 4:29pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/23 "2024-10-07T16:29:56Z")

</div>

Hi,  
I am also using a Linux VM

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 7, 2024, 4:37pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/24 "2024-10-07T16:37:26Z")

</div>

maybe you can directly test in your embedded linux device

Or you can test with a real linux PC

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 7, 2024, 4:38pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/25 "2024-10-07T16:38:15Z")

</div>

I am trying to build the USB drivers for the embedded device now. Will update how it goes.  
Thank you for support

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 14, 2024, 10:47am UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/26 "2024-10-14T10:47:14Z")

</div>

Hi,

A quick update on my attempts with embedded Linux. I’ve tried running the firmware update on two different builds:

- **Yocto Sumo** (kernel 4.9.88)
- **Yocto Krikstone** (kernel 5.15.71)

Unfortunately, both have encountered the same issues when trying to update the EM7565 module, even with the use of `./fwdwl-litearm` and the latest **MBPL** application.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 14, 2024, 11:57am UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/27 "2024-10-14T11:57:56Z")

</div>

I cannot explain this as I did not see problem:

> [@Help with EM7565 Firmware and PRI File Update on Linux](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/16):
>
> I just tried in Ubuntu 18 with EM7565, no problem is found for FW upgrade: owner@ubuntu:~/QMI/MBPL/MBPL\_SDK\_R39\_ENG2-fwdwl.bin/SampleApps/fw-download-tool$ sudo ./bin/fw-download-toolhostx86\_64 -l pcie\_mbim.log -f /home/owner/Desktop/EM75xx\_FW/SWI9X50C\_01.14.22.00\_GENERIC\_002.059\_001/ -m 4 -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 -w SWI9X50C\_01.14.22.00.cwe -n SWI9X50C\_01.14.22.00\_GENERIC\_002.059\_001.nvu Application version: 1.0.2402.1 INFO: QDL Port: /dev/ttyUSB0 INFO: Device Path: /dev/cdc-wdm0…

Maybe you can test with a real linux PC first

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 15, 2024, 1:39pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/28 "2024-10-15T13:39:23Z")

</div>

Hi,  
A quick update on the situation.  
Initially, I was connecting the modules via a USB hub. After some troubleshooting, I decided to connect the module directly to a PC USB port. This allowed me to move one step further, but the process still hasn’t completed.

The download seems to proceed without issues, as shown by the following log:

```auto
sudo ./fw-download-toolhostx86_64 -l pcie_mbim_1.log -f /home/rvl/EM7565/011402/ -m 4 -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 -c MBIM -w SWI9X50C_01.14.02.00.cwe -n SWI9X50C_01.14.02.00_GENERIC_002.035_003.nvu 
Application version: 1.0.2405.0
INFO: QDL Port: /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: Device Port: 0-0
INFO: FW Path: /home/rvl/EM7565/011402/
Target image Info:
Carrier :GENERIC
FW Version :01.14.02.00
Model ID :SWI9X50C
Package ID :003
PRI Version:002.035
SKU :9999999
Modem is already in QDL mode. Continuing FW download.
Waiting for modem to come up in BOOT and HOLD mode ...
BOOT and HOLD Mode. Downloading firmware ...
Downloading: /home/rvl/EM7565/011402//SWI9X50C_01.14.02.00_GENERIC_002.035_003.nvu
Downloading: /home/rvl/EM7565/011402//SWI9X50C_01.14.02.00.cwe
All image data was downloaded successfully.
Device is about to reset ...
Waiting for modem to come up in ONLINE mode ...
Modem is now in ONLINE mode ...

```

The process now stops at the line _“Modem is now in ONLINE mode…”_. Even though the data download appears successful, the new firmware does not show up in the list of installed images:

```auto
at!image?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 GOOD 2 0 0 ?_? 01.08.04.00_?
FW 2 GOOD 3 0 0 ?_? 01.07.02.00_?
FW 3 GOOD 1 0 0 ?_? 01.09.04.00_?
FW 4 EMPTY 0 0 0                  
Max FW images: 4
Active FW image is at slot 255

TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.008_004 01.07.02.00_ATT
PRI FF GOOD 0 0 0 002.015_000 01.09.04.00_DOCOMO
PRI FF GOOD 0 0 0 002.035_003 01.14.02.00_GENERIC
PRI FF GOOD 0 0 0 002.001_000 01.08.04.00_SIERRA
PRI FF GOOD 0 0 0 002.017_000 01.09.04.00_SOFTBANK
PRI FF GOOD 0 0 0 000.001_001 01.08.04.00_SPRINT
PRI FF GOOD 0 0 0 001.000_000 01.07.02.00_TELUS
PRI FF GOOD 0 0 0 002.015_001 01.08.04.00_VERIZON
Max PRI images: 50

```

But ati command shows the firmware 01.14.02 is used

```auto
ati
Manufacturer: Sierra Wireless, Incorporated
Model: EM7565
Revision: SWI9X50C_01.14.02.00 2e210b jenkins 2020/08/19 14:18:39
IMEI: ******************
IMEI SV: 12
FSN: ******************
+GCAP: +CGSM

OK
at!priid?
PRI Part Number: 9907344
Revision: 002.003
Customer: Generic-M2M

Carrier PRI: 9999999_9907259_SWI9X50C_01.14.02.00_00_GENERIC_002.035_003

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

```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 15, 2024, 1:45pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/29 "2024-10-15T13:45:41Z")

</div>

If you see my download, it shows “Switching device into download mode for image switch …”

But in your case, it shows "Modem is already in QDL mode. "

It seems your module is in boot mode when the beginning of download

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 15, 2024, 1:50pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/30 "2024-10-15T13:50:32Z")

</div>

Hi,

Yes. I put the module into Boot mode using **at!boothold** command.  
Also this is the case, as few of our modules are stuck in boot and hold mode in the field.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [October 15, 2024, 1:53pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/31 "2024-10-15T13:53:17Z")

</div>

No, you should not put it in boot mode

If it is downloaded during boot mode, it will not appear in at!image

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 15, 2024, 2:12pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/32 "2024-10-15T14:12:13Z")

</div>

Hi,

Great. The process now successfully completed.

```auto
sudo ./fw-download-toolhostx86_64 -l pcie_mbim_1.log -f /home/rvl/EM7565/011402/ -m 4 -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 -w SWI9X50C_01.14.02.00.cwe -n SWI9X50C_01.14.02.00_GENERIC_002.035_003.nvu
Application version: 1.0.2402.1
INFO: QDL Port: /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: Device Port: 0-0
INFO: FW Path: /home/rvl/EM7565/011402/
Target image Info:
Carrier :GENERIC
FW Version :01.14.02.00
Model ID :SWI9X50C
Package ID :003
PRI Version:002.035
SKU :9999999
Switching device into download mode for image switch ...
Modem Needs FW
Waiting for modem to disconnect from the host ...
Modem disconnected from host.
Waiting for modem to come up in BOOT and HOLD mode ...
BOOT and HOLD Mode. Downloading firmware ...
Downloading: /home/rvl/EM7565/011402//SWI9X50C_01.14.02.00.cwe
All image data was downloaded successfully.
Device is about to reset ...
Waiting for modem to come up in ONLINE mode ...
Modem is now in ONLINE mode ... 
FW update status: Successful
FW info from modem:
Model ID : EM7565
FW Version : SWI9X50C_01.14.02.00
Carrier Name : GENERIC
Carrier PRI Revision: 002.035_003
Firmware download process completed successfully.

```

```auto
at!image?
TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
FW 1 GOOD 2 0 0 ?_? 01.08.04.00_?
FW 2 GOOD 3 0 0 ?_? 01.07.02.00_?
FW 3 GOOD 1 0 0 ?_? 01.09.04.00_?
FW 4 GOOD 4 0 0 ?_? 01.14.02.00_?
Max FW images: 4
Active FW image is at slot 4

TYPE SLOT STATUS LRU FAILURES UNIQUE_ID BUILD_ID
PRI FF GOOD 0 0 0 002.008_004 01.07.02.00_ATT
PRI FF GOOD 0 0 0 002.015_000 01.09.04.00_DOCOMO
PRI FF GOOD 0 0 0 002.035_003 01.14.02.00_GENERIC
PRI FF GOOD 0 0 0 002.001_000 01.08.04.00_SIERRA
PRI FF GOOD 0 0 0 002.017_000 01.09.04.00_SOFTBANK
PRI FF GOOD 0 0 0 000.001_001 01.08.04.00_SPRINT
PRI FF GOOD 0 0 0 001.000_000 01.07.02.00_TELUS
PRI FF GOOD 0 0 0 002.015_001 01.08.04.00_VERIZON
Max PRI images: 50

OK

```

Thanks a lot.  
Now I need to find a way to get the modules which are stuck in Boot mode in field, to get out of that mode and then flash them with firmware.

---

<div class="post-metadata">

**Author:** ![subhan.mohammed](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@subhan.mohammed](https://forum.sierrawireless.com/u/subhan.mohammed)\
**Post date:** [October 21, 2024, 12:08pm UTC](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761/33 "2024-10-21T12:08:10Z")

</div>

Hi,

I successfully downloaded the firmware to EM7565 on the Embedded Linux using the fwdwl-lite application.

```auto
~/workspace/sda/Lite/SampleApps/lite-fw-download/bin # ./fwdwl-litearm -c MBIM -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -m 4 -f ~/wo
rkspace/sda/010904/
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/root/workspace/sda/010904/
Package Info:
Carrier :DOCOMO
FW Version :01.09.04.00
Model ID :SWI9X50C
Package ID :002
PRI Version:002.015
SKU :9999999
Part Number:9908609
file_type : 6
CWE+NVU
Set pref ImageTypesSize: 2
Modem Needs FW
Modem Needs PRI
Waiting for modem to disconnect from the host after reset command is issued ...
Modem disconnected from host.
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!!!

```

Thank you for help and support.

[Previous page](https://forum.sierrawireless.com/t/help-with-em7565-firmware-and-pri-file-update-on-linux/33761.md?page=1)
