Swiflash PORT not found

swiflash (version 5.3) Ubuntu 20.04

mango@mango-OptiPlex-3050:~/GHS_Qt$ swiflash -f -m “wp77xx” -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if0 -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk
PORT not found: /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if0

I also tried with /dev/ttyUSB0
Invalid PORT: /dev/ttyUSB0
PORT must be a path in the /dev/serial/ folder OR an existing USB bus/port

how about just this ?

swiflash -m "wp77xx" -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk

That works,
But this is for production so we want to do multiple modules at the same time

will you consider to use windows for multiple devices download?

Maybe but there was issues with some other tools so swiched to linux.
I have not testes but what happens if multiple modules are connected and swiflash is started without -p ?

I don’t see problem to specify the port:


owner@ubuntu:~$ swiflash -m "wp76xx" -i /home/owner/Desktop/WP76xx_Release16.0.1_GENERIC.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7607_VN73048508010300-if00-port0 
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
......DONE
Downloading the firmware
........................DONE

Seems you miss the port0 at the last part when you specify the path

I added a second module, i could see i missed a "0-port0’ at the end,

swiflash -f -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_18f04b10-if00-port0 -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if00-port0
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
…ERROR: Failed to enter download mode

I also tried boot them with the BOOT pin tied to ground,
swiflash -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056071007-if00-port0 -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056151007-if00-port0
Detecting USB of the target
No device connected

have you tried to enter AT!BOOTHOLD first?

I just tried to enter AT!BOOTHOLD, after that it is OK to dowload FW by swiflash:


owner@ubuntu:~$ swiflash -m "wp76xx" -i /home/owner/Desktop/WP76xx_Release16.0.1_GENERIC.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7607_VN73048508010300-if00-port0 
Detecting USB of the target
DONE
Communicating with the target
DONE
Downloading the firmware
..........................DONE
Rebooting the module
..........DONE
Firmware Download SUCCESS

BTW, you can also try MBPL fwdwl application to download FW:

fwdwl application can be downloaded here:
https://source.sierrawireless.com/resources/airprime/software/mbpl/mbpl-software-latest/

Thanks! i will try and look at the MBPL

I tried the AT!BOOTHOLD on both devices, but same result.

swiflash -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056071007-if00-port0 -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056151007-if00-port0
Detecting USB of the target
No device connected

I also tried the.

sudo ./fwdwl-litehostx86_64 -f ~/GHS_Qt/ -s GHS_Full_firmware_001.spk
Application version: 1.0.2303.0
Device info unknown. Either no device or multiple devices are found. Application terminates.

i experimented with different -d -p settings one or both devices,
but all i get is “Unable to locate the device or determine device mode.”
does fwdwl-litehostx86_64 support multiple devices like swiflash ?

Does it work on single device?

Same response with only one device connected (still in BOOTHOLD mode)

sudo ./fwdwl-litehostx86_64 -f ~/GHS_Qt/ -s GHS_Full_firmware_001.spk
[sudo] password for mango:
Application version: 1.0.2303.0
Device info unknown. Either no device or multiple devices are found. Application terminates.

swiflash seems to be working
swiflash -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk
Detecting USB of the target
DONE
Communicating with the target
DONE
Downloading the firmware

Seems you did not follow the parameters here

Why no port is specified here

I installed the usb driver and got a different result

sudo ./fwdwl-litehostx86_64 -f ~/GHS_Qt/ -s GHS_Full_firmware_001.spk
Application version: 1.0.2303.0
INFO: QDL Port:
INFO: Device Path: /dev/cdc-wdm0
INFO: FW Path: /home/mango/GHS_Qt/
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/ttyUSB0
BOOT and HOLD Mode. Downloading firmware …
FW download failed: eSDP_FWDWL_ERR_SDP_TIMEOUT(112)

The device is mounted in boot mode,

I tried to add the parameters

sudo ./fwdwl-litehostx86_64 -m 4 -f ~/GHS_Qt/ -s GHS_Full_firmware_001.spk -t 1 -d /dev/ttyUSB0 -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056151007-if00-port0
Application version: 1.0.2303.0
info: option requires an argument – ‘p’
Unable to locate the device or determine device mode.

Not sure what it’s complaining about ?
I dont have a “-p /dev/cdc-wdm0”

I have tried the following to flash FW to two module connected to linux PC at the same time:

  1. here shows WP7608 and WP7607 are connected:
owner@ubuntu:~$ ls /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP760*
/dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7607_VN73048508010300-if00-port0
/dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7608_XG20743006031035-if00-port0
  1. open a terminal and type the following:
owner@ubuntu:~$ swiflash -m "wp76xx" -i /home/owner/Desktop/WP76xx_Release16.0.1_GENERIC.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7608_XG20743006031035-if00-port0 
Detecting USB of the target
DONE
Communicating with the target
DONE
Downloading the firmware

  1. open another terminal and enter the following:

owner@ubuntu:~$ swiflash -m "wp76xx" -i /home/owner/Desktop/WP76xx_Release16.0.1_GENERIC.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7607_VN73048508010300-if00-port0 
Detecting USB of the target
DONE
Communicating with the target
DONE
Downloading the firmware
......
  1. both module can successfully upgrade FW

If you are using fwdwl application in boot and hold mode, you need to add “-c QMI” parameter:



owner@ubuntu:~/QMI/MBPL/MBPL_SDK_R32_ENG2-fwdwl.bin/SampleApps/lite-fw-download$ sudo ./bin/fwdwl-litehostx86_64 -c QMI  -m 4 -d /dev/ttyUSB0 -f /home/owner/Desktop/FW_WP76/
Application version: 1.0.2303.0
INFO: QDL Port: /dev/ttyUSB0
INFO: Device Path: 
INFO: FW Path: /home/owner/Desktop/FW_WP76/
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/owner/Desktop/FW_WP76//WP76xx_Release16.0.1_GENERIC.spk
All image data was downloaded successfully.
Device is about to reset ...
Waiting for modem to come up in ONLINE mode ...

$ ll /dev/serial/by-id/
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_18f04b10-if00-port0 → …/…/ttyUSB3
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_18f04b10-if02-port0 → …/…/ttyUSB4
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_18f04b10-if03-port0 → …/…/ttyUSB5
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if00-port0 → …/…/ttyUSB0
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if02-port0 → …/…/ttyUSB1
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if03-port0 → …/…/ttyUSB2
terminal1:
swiflash -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_18f04b10-if00-port0
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
…ERROR: Failed to enter download mode

terminal2:

swiflash -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if00-port0
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
.ERROR: Firmware Download failed. Callback status 59399ERROR: Firmware Download failed. Callback status 59399.^[[A.^Cmango@mango-OptiPlex-3050:~$ swiflash -m “wp77xx” -i /home/mango/GHS_Qt/GHS_Full_firmware_001.spk -p /dev/serial/by-id/usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_a841eb8b-if00-port0
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
…ERROR: Failed to enter download mode

Afterwards (seems like both modules is in BOOTHOLD)
$ ll /dev/serial/by-id/
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056071007-if00-port0 → …/…/ttyUSB0
usb-Sierra_Wireless__Incorporated_Sierra_Wireless_WP7702_AT32365056151007-if00-port0 → …/…/ttyUSB3

I will try the -c QMI

my test is first entering AT!BOOTHOLD to let module go to download mode before using swiflash