EM7411 download error when installing firmware

Receiving the following error when attempting to upgrade the firmware of EM7411:

fwdwl-litearm -d /dev/ttyUSB0 -p /dev/cdc-wdm0 -t 1 --modelfamily 4 --fwpath /var/tmp/modem-firmware --cwe SWI9X50C_01.14.03.00.cwe --nvu SWI9X50C_01.14.03.00_TMO_002.005_000.nvu
Application version: 1.0.2106.0
INFO: QDL Port  :  /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: FW  Path  :  /var/tmp/modem-firmware
Target image Info:
Carrier    :TMO
FW Version :01.14.03.00
Model ID   :SWI9X50C
Package ID :000
PRI Version:002.005
SKU        :9999999
Switching device into download mode ...
Modem Needs PRI
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: /var/tmp/modem-firmware/SWI9X30C_02.32.11.00_GENERIC_002.064_000.nvu
FW download failed: 121
Exiting Application!!!

What does the error code 121 mean? How can I solve it? Log is attached.

Thank you in advance!

fwdwl.txt (15.5 KB)

Hi leo,

App usage:
<appName> -f <FW path> -c <QMI/MBIM mode> -d <QDL Port> -p <QMI/MBIM device path> -P <USB device location path> -t <Download type> -w <FW image preference> -n <PRI image preference> -m <device family> -l <Log file path> -b <block size> -h -F -i -a

Here is example command to upgrade module firmware:
sudo ./fwdwl-litearm -m 4 -t 1 -d /dev/ttyUSB0 -c QMI -f /var/tmp/FW/SWI9X50C_01.14.03.00/ -p /dev/cdc-wdm0 -l fwdwl.txt

You can try it.

Please provide the output of the some commands as below , the output of the “dmesg” command and the file fwdwl.txt.
ATI3
AT!ENTERCND=“A710”
AT!IMPREF?
AT!USBCOMP?
AT!USBPID?

Hi Donald, thanks for the info.

Dmesg and fwdwl.txt are attached:

fwdwl.txt (29.1 KB)
dmesg.txt (30 KB)

Here is the result of the example command, with paths adapted:

root@atd1943:/home/leo/firmware# fwdwl-litearm -m 4 -t 1 -d /dev/ttyUSB0 -c QMI -f ./ -p /dev/cdc-wdm0 -l fwdwl.txt
Application version: 1.0.2106.0
INFO: QDL Port  :  /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: FW  Path  :  ./
Images preference is required for image switching when there are 2+ images to be downloaded.
Exiting Application!!!

Here is the same command with nvu and cwe specified:

fwdwl-litearm -m 4 -t 1 -d /dev/ttyUSB0 -c QMI -f ./ -p /dev/cdc-wdm0 -l fwdwl.txt --cwe SWI9X50C_01.14.03.00.cwe --nvu SWI9X50C_01.14.03.00_TMO_002.005_000.nvu
Application version: 1.0.2106.0
INFO: QDL Port  :  /dev/ttyUSB0
INFO: Device Path: /dev/cdc-wdm0
INFO: FW  Path  :  ./
Target image Info:
Carrier    :TMO
FW Version :01.14.03.00
Model ID   :SWI9X50C
Package ID :000
PRI Version:002.005
SKU        :9999999
Switching device into download mode ...
Modem Needs PRI
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: .//SWI9X50C_01.14.03.00_TMO_002.005_000.nvu
Downloading: .//SWI9X50C_01.14.03.00.cwe
FW download failed: 120
Exiting Application!!!

Here are the AT commands output:

ATI3
Manufacturer: Sierra Wireless, Incorporated
Model: EM7411
Revision: SWI9X50C_01.14.03.00 b06bd3 jenkins 2020/09/23 10:53:35
IMEI: 356280110273727
IMEI SV: 13
FSN: 8F1115718803B1
+GCAP: +CGSM


OK
AT!ENTERCND="A710"
OK
AT!IMPREF?
!IMPREF:
 preferred fw version:    01.14.03.00
 preferred carrier name:  TMO
 preferred config name:   TMO_002.005_000
 preferred subpri index:  000
 current fw version:      01.14.03.00
 current carrier name:    TMO
 current config name:     TMO_002.005_000
 current subpri index:    000

OK
AT!USBCOMP?
Config Index: 1
Config Type:  3 (Generic)
Interface bitmask: 0000010D (diag,nmea,modem,rmnet0)

OK
AT!USBPID?
!USBPID:
APP : 9091
BOOT: 9090

OK

Thanks!

Hi leo,

You put 2 files SWI9X50C_01.14.03.00_TMO_002.005_000.nvu and SWI9X50C_01.14.03.00.cwe into the folder SWI9X50C_01.14.03.00. Restart the module (AT!RESET). Then try using absolute firmware path.

Example:
sudo ./fwdwl-litearm -m 4 -t 1 -d /dev/ttyUSB0 -c QMI -f /home/user/Documents/FW/FW.14.03/ -p /dev/cdc-wdm0 -l fwdwl.txt

Thank you Donald. Your response led me to believe the problem was with the folder, and indeed it was.

For anyone else that stumbles into this: be aware that even when you specify --cwe and --nvu fwdwl will attempt to install the first image in the firmware folder.

In my case, I had firmware files for different devices on that folder, so fwdwl was uploading a firmware for a different modem. Deleting all other files and just keeping the images for EM7411 solved it.