Swiflash issue

Hi,

I’m trying to flash a device with “swiflash” tool.

For constraints related to my need, I have to use swiflash with the “-p” option to specify a port.

This method works well unless the fx30 has not been flashed before.

Let me explain. If I execute this command :
"swiflash -p /dev/serial/by-path/pci-0000:00:14.0-usb-0:1:1.3-port0 -m wp77xx -i mySPK.spk", I get this error message:
"Detecting USB of the target. No device connected"

On the other hand, if I first do :

"swiflash -m wp77xx -i mySPK.spk", it works and then the first command: "swiflash -p /dev/serial/by-path/pci-0000:00:14.0-usb-0:1:1.3-port0 -m wp77xx -i mySPK.spk" also works.

Do you have any idea about this?

Regards,
Alban

how about you first do AT!BOOTHOLD to the fresh module?

HI,

This is the result of the command:

root@fx30s:~# microcom /dev/ttyAT 
AT!BOOTHOLD
OK

the it will reboot as download mode (only one DM port is enumerated)
can you do “swiflash -p /dev/serial/by-path/pci-0000:00:14.0-usb-0:1:1.3-port0 -m wp77xx -i mySPK.spk”?

Yes it true :

ls /dev/serial/by-path/
pci-0000:00:14.0-usb-0:1:1.0-port0

But when I tried to execute the command, I have the following result :

swiflash -p /dev/serial/by-path/pci-0000\:00\:14.0-usb-0\:1\:1.0-port0 -m wp77xx -i mySPK.spk
Detecting USB of the target
No device connected

But If a begin with this process :

swiflash -i mySPK.spk -m wp77xx, it will works

And then, swiflash -p /dev/serial/by-path/pci-0000\:00\:14.0-usb-0\:1\:1.0-port0 -m wp77xx -i mySPK.spk
will works too

so it only happens once for fresh module?

Yes only for fresh module.

Maybe there is something in configuration that block the process when trying to flash with port option

no problem is found on used module:


owner@ubuntu:~$ swiflash -p /dev/serial/by-path/pci-0000\:03\:00.0-usb-0\:2.1\:1.0-port0 -m wp76xx -i /home/owner/leaf/leaf-data/wp76/wp76-image/modem/9999999_9907152_SWI9X07Y_02.37.03.00_00_GENERIC_002.095_000.spk 
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
..............DONE
Downloading the firmware
..........DONE
Rebooting the module
..........DONE
Firmware Download SUCCESS

Maybe you did with AT!BOOTHOLD, after module reboots, check whether if there is a really port called “/dev/serial/by-path/pci-0000:00:14.0-usb-0:1:1.0-port0”

After reboot, I have just this port available : /dev/serial/by-path/pci-0000\:00\:14.0-usb-0\:1\:1.0-port0

But the command is not working :

swiflash -p /dev/serial/by-path/pci-0000\:00\:14.0-usb-0\:1\:1.0-port0 -m wp77xx -i mySPK.spk
Detecting USB of the target
No device connected

If I put a fresh module, then I execute the command without port option like : swiflash - m wp77xx -i mySPK.spk

and then, if I try with the port option again, it works, but not the first time

then which part of your mySPK.spk is correcting the situation?
Modem?
legato?
yocto?
bootloader?

You can take 4 fresh modules to verify this