Using fwdwl to flash mangoh red

using fdt2, I can flash the device well

using :

sudo ./fwdwl-litehostx86_64 -f “./” -s yocto.cwe -d /dev/ttyUSB1 -c QMI

I get:

sudo ./fwdwl-litehostx86_64 -f “./” -s yocto.cwe -d /dev/ttyUSB2 -c QMI
Application version: 1.0.2307.1
INFO: QDL Port: /dev/ttyUSB2
INFO: Device Path:
INFO: FW Path: ./
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 …
FW download failed: eSDP_FWDWL_ERR_SAHARA_UNRESPONSIVE(122)
Device not responsive in download mode. Please power cycle device.

what am I doing wrong?

how about using /dev/ttyUSB0 port in fwdwl-litehostx86_64 ?
You can have a look here:

BTW, how about using swiflash tool?
https://source.sierrawireless.com/resources/airprime/software/swiflash/

the problem is that I need later to run it also on:

ARM Cortex A7

does swiflash have a precompiled ARM verion (or is open source and I can cross compile) ?

then you need to use fwdwl-lite for ARM

exactlly what I was thinking.

so first I must activate with X86

so also if I use /dev/ttyUSB0 I get same issue

did you follow the command here after typing “AT!BOOTHOLD”?

Other user also gets it work

so I got it to work using :

root@swi-mdm9x28-wp:~# microcom -s 115200 /dev/ttyAT
AT!BOOTHOLD

but it’s not a good option, since like FDT2 , I want to be able to flash the device even if OS do not start

then how about using the same command as here?

I managed to make it start downloading as such:

sudo ./fwdwl-litehostx86_64 -f /home/administrator/Downloads/notraffic/SampleApps/lite-fw-download/bin/yocto -P 1-4.4 -l log.txt

but I get error on the download:

sudo ./fwdwl-litehostx86_64 -f /home/administrator/Downloads/notraffic/SampleApps/lite-fw-download/bin/yocto -P 1-4.4 -l log.txt
[sudo] password for administrator:
Application version: 1.0.2307.1
INFO: QDL Port:
INFO: Device Path: /dev/cdc-wdm2
INFO: FW Path: /home/administrator/Downloads/notraffic/SampleApps/lite-fw-download/bin/yocto
Switching device into download mode …
Waiting for modem to disconnect from the host …
Modem disconnected from host.
Waiting for modem to come up in BOOT and HOLD mode …
QDL port found: /dev/ttyUSB1
BOOT and HOLD Mode. Downloading firmware …
Downloading: /home/administrator/Downloads/notraffic/SampleApps/lite-fw-download/bin/yocto/yocto.cwe
FW download failed: eSDP_FWDWL_ERR_FIREHOSE_STATE_ERR(120)

and my log is :

[09:26:26.325][7]read timeout
[09:26:26.325][7]Current mode: 7, previous max_reads_allowed: 0
[09:26:26.325][7]prev_mode (7) same as current mode, skip processing.
[09:26:26.825][7]read timeout
[09:26:26.826][7]Max allowed reads reached in Firehose on mode: 7, bail out

seems the parameter is not the same
maybe you try the AT!BOOTHOLD case first

it does not matter

AT!BOOTHOLD

and latest command work the same

I can see using the serial port that device enters OK to flash mode, however flash failed as I showed

no idea, i don’t see problem

are you using the latest MBPL fwdwl binary?

I found the issue , some more parameters are needed, this is a working referance:

sudo ./fwdwl-litehostx86_64 -f “./” -s yocto.cwe -d /dev/ttyUSB1 -p /dev/cdc-wdm1 -c QMI -m 4

Issue resolved