Unable to reflash with swiflash

I am having some problems with flashing the mangOH Green using swiflash.
I am following the instructions from http://source.sierrawireless.com/resources/airprime/software/swiflash/

However, I never see a /dev/ttyUSBx device appear on my development machine, can you offer any suggestions?

I ssh into the mangOH Green then tell it to enter the bootloader.

root@swi-mdm9x15:~# microcom -E /dev/ttyAT
AT!BOOTHOLD 

This appears to work, as the ssh connection goes dead. I can also achieve the same thing by setting switch 7 on the microswitch array.

However, I never see the mangOH appear as a USB serial device and register with Linux.
I am connecting to the micro USB port on the mangOH (labelled PRIMARY CF3 USB).

On my development machine I see the following:

trj@dev:~$ lsusb
Bus 002 Device 030: ID 1199:68c0 Sierra Wireless, Inc.

trj@dev:~$ dmesg

[20795485.867906] usb 2-1.1: new high-speed USB device number 30 using ehci-pci
[20795485.961432] usb 2-1.1: New USB device found, idVendor=1199, idProduct=68c0
[20795485.961445] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[20795485.961452] usb 2-1.1: Product: WP8548
[20795485.961457] usb 2-1.1: Manufacturer: Sierra Wireless, Incorporated
[20795485.961463] usb 2-1.1: SerialNumber: 0123456789ABCDEF

I have setup the udev rule to stop the device being grabbed by other systems.

trj@dev:~$ sudo swiflash -m WP85XX -i ~/1102816_9905383_WP8548_07.10.04.00_00_Generic_001.006_000-field.spk
[ERROR]
No ttyUSB ports detected; please make sure your device is connected and the udev rule is enabled, or try to power cycle the device.

If it helps, these are the details of the board I am using:

root@swi-mdm9x15:~# microcom -E /dev/ttyAT
at!priid?
PRI Part Number: 9905383
Revision: 01.02

Carrier PRI: 	9999999_9904559_SWI9X15Y_07.08.02.00_00_GENERIC_001.018_000

OK
at!package?
1102816_9905383_WP8548_07.08.02.00_00_Generic_001.002_000

OK
ati
Manufacturer: Sierra Wireless, Incorporated
Model: WP8548
Revision: SWI9X15Y_07.08.02.00 r31088 CARMD-EV-FRMWR1 2016/02/05 23:29:29
IMEI: 359377060012704
IMEI SV: 41
FSN: LL542500141103
+GCAP: +CGSM

Thank you.

SOLVED

swiflash will not work on old Linux kernels as it relies on this patch, to detect a USB device with vid=0x1199,pid=0x68c0 as a serial device.

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/drivers/net/usb/qmi_wwan.c?id=e704059272aae2aaa5e5ce7a76e4c27c492e947e

Specifically, Linux kernel 3.13.0-24-generic as shipped with Ubuntu 14.04 does not work.

Ubuntu 16.04 does.

2 Likes