# Swiflash failure in custom board

**URL:** <https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293>\
**Category:** WP Series\
**Tags:** fw-upgrade\
**Created:** [July 19, 2021, 4:03pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293 "2021-07-19T16:03:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 19, 2021, 4:03pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/1 "2021-07-19T16:03:14Z")

</div>

Hi Jyijyi,  
I am trying to flash our custom WP7608 board by swiflash command from host. The board has Release 16 binaries. I am getting following errors:

raghavan@raghavan-HP-350-G2:~/wp7608$ sudo swiflash -m “WP76XX” -i custom-firmware.spk  
Detecting USB of the target  
DONE  
Communicating with the target  
DONE  
Switching to firmware download mode  
…ERROR: Failed to enter download mode  
raghavan@raghavan-HP-350-G2:~/wp7608$

```
Could you please tell me the reason for failure?. 

```

Logs from board:  
swi-mdm9x28-wp login: root  
Password:  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~#  
root@swi-mdm9x28-wp:~# [50.181132] gbam\_connect\_work: gbam\_connect\_work: Bam channel is not ready  
[65.811296] diag: download mode set, Rebooting SoC…  
[65.819538] reboot: Restarting system

Format: Log Type - Time(microsec) - Message - Optional Info  
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic  
S - QC\_IMAGE\_VERSION\_STRING=BOOT.BF.3.1.2-00089  
S - IMAGE\_VARIANT\_STRING=LAATANAZA  
S - OEM\_IMAGE\_VERSION\_STRING=jenkins  
S - Boot Config, 0x000002e1  
B - 1216 - PBL, Start  
B - 3720 - bootable\_media\_detect\_entry, Start  
B - 4400 - bootable\_media\_detect\_success, Start  
B - 4405 - elf\_loader\_entry, Start  
B - 7859 - auth\_hash\_seg\_entry, Start  
B - 31513 - auth\_hash\_seg\_exit, Start  
B - 82902 - elf\_segs\_hash\_verify\_entry, Start  
B - 129966 - PBL, End  
B - 138104 - SBL1, Start  
B - 195779 - pm\_device\_init, Start  
B - 215879 - PM\_SET\_VAL:Skip  
D - 18391 - pm\_device\_init, Delta  
B - 217221 - boot\_config\_data\_table\_init, Start  
D - 0 - boot\_config\_data\_table\_init, Delta - (0 Bytes)  
B - 225944 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129  
B - 232837 - sbl1\_ddr\_set\_params, Start  
B - 236680 - Pre\_DDR\_clock\_init, Start  
D - 213 - Pre\_DDR\_clock\_init, Delta  
D - 0 - sbl1\_ddr\_set\_params, Delta  
B - 249368 - pm\_driver\_init, Start  
D - 4483 - pm\_driver\_init, Delta  
B - 255651 - cpr\_init, Start  
D - 122 - cpr\_init, Delta  
B - 260317 - cpr\_cx\_mx\_apc\_vol\_update, Start  
D - 91 - cpr\_cx\_mx\_apc\_vol\_update, Delta  
B - 275506 - clock\_init, Start  
D - 152 - clock\_init, Delta  
B - 275720 - boot\_flash\_init, Start  
D - 40260 - boot\_flash\_init, Delta  
B - 777048 - boot\_flash\_swi\_ddr\_init, Start  
D - 28639 - boot\_flash\_swi\_ddr\_init, Delta  
B - 919971 - hw\_family:5, hw\_type:23, hw\_rev:40  
B - 921130 - SSMEM init OK  
B - 939095 - USB non-zero endpoint requirements: 9 in, 5 out  
B - 940864 - opening partition 0:SWIFOTA  
B - 942877 - error for readpage:0  
B - 959011 - Failed to read size: /swinv/item\_files/CUST\_IM\_SWITCH\_HIDE  
B - 964837 - Failed to read size: /swinv/item\_files/FOTA\_PARTITION  
B - 965965 - Failed to read size: /swinv/item\_files/CUST\_IM\_CONFIG  
B - 986675 - ssmem\_release: region 20 not exists  
B - 986736 - ssmem\_get: region 20 not exists  
B - 992592 - smart recovery counter cleared

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 19, 2021, 4:20pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/2 "2021-07-19T16:20:52Z")

</div>

how about typing “AT!boothold” before running the swiflash command?  
it should be forced to go into download mode.

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 19, 2021, 4:38pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/3 "2021-07-19T16:38:56Z")

</div>

Hi Jyijyi,  
I am running below command in WP7608 Linux command line. But i am getting some error:  
root@swi-mdm9x28-wp:~# microcom -E /dev/ttyAT  
microcom: invalid number ‘/dev/ttyAT’  
root@swi-mdm9x28-wp:~#

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 19, 2021, 8:16pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/4 "2021-07-19T20:16:11Z")

</div>

How about “microcom /dev/ttyAT”

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 21, 2021, 12:44pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/5 "2021-07-21T12:44:11Z")

</div>

Hi Jyijyi,  
The “microcom /dev/ttyAT” command works and “AT!BOOTHOLD” reboots the unit. But swiflash fails to detect the USB port.

raghavan@raghavan-HP-350-G2:~/WP7608 $ swiflash -f -m “WP76XX” -i custom-firmware.spk  
Detecting USB of the target  
No device connected

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 21, 2021, 1:02pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/6 "2021-07-21T13:02:57Z")

</div>

Are you able to find /dev/ttyUSBx on your linux PC after at!boothold ?

Another method is to transfer your spk file to /tmp folder of module by scp command ,and then use “fwupdate download xxx.spk” on module console to update firmware.

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 21, 2021, 1:57pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/7 "2021-07-21T13:57:27Z")

</div>

Hi Jyijyi,  
Unfortunately, i programmed a custom binary without legato.cwe. So fwupdate command is not available. How can i recover the board?

No I cannot find any /dev/ttyUSBx on Linux PC after issuing swiflash command or “at!boothold” command. These 2 commands reboot the board. So /dev/ttyUSBx disappears.

Before “at!boothold” in custom board, i can see below line in lsusb in host computer:  
Bus 001 Device 033: ID 1199:68c0 Sierra Wireless, Inc.

After “at!boothold” command in custom board “Sierra Wireless” is not appearing in lsusb output in Host computer.

**Board logs:**

root@swi-mdm9x28-wp:~# microcom /dev/ttyAT  
at!boothold  
OK  
rcK: Executing run\_K\_scripts…  
Stopping linkmon: no linkmon found; none killed  
done  
[60.914609] [RMNET:HI] rmnet\_config\_notify\_cb(): Kernel is trying to unregister ecm0  
[60.960294] [RMNET:HI] rmnet\_config\_notify\_cb(): Kernel is trying to unregister ecm0  
Stopping port\_bridge: no port\_bridge found; none killed  
Stopping qmi\_ip: no qmi\_ip\_multiclient found; none killed  
Stopping eMBMs\_TunnelingModule: no eMBMs\_TunnelingModule found; none killed  
Stopping netmgrd: stopped netmgrd (pid 1422)  
done  
Stopping qmuxd: stopped qmuxd (pid 1331)  
done  
no QCMAP\_ConnectionManager found; none killed  
Stopping fs-scrub-daemon: no fs-scrub-daemon found; none killed  
Stopping thermal-engine: stopped thermal-engine (pid 1371)  
done  
stopped qti (pid 1798)  
Stopping reboot daemon: stopped reboot-daemon (pid 1177)  
done  
Legato shutdown sequence  
umount: can’t unmount /etc/ld.so.conf: Invalid argument  
umount: can’t unmount /etc/ld.so.cache: Invalid argument  
umount: can’t unmount /etc/hosts: Invalid argument  
Finished Legato stop Sequence  
stopping time daemon  
Stopping time\_services: stopped time\_daemon (pid 1062)  
done  
stopping ntpd  
no ntpd found; none killed  
Stopping diagrebootapp: stopped diagrebootapp (pid 1038)  
done  
stopping DNS forwarder and DHCP server: dnsmasq… stopped /usr/bin/dnsmasq (pid 1116)  
done.  
Deconfiguring network interfaces… ifdown: interface eth0 not configured  
done.  
Stopping syslogd/klogd: stopped syslogd (pid 975)  
stopped klogd (pid 980)  
done  
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 1746)  
dropbear.  
K96mount\_unionfs: RO rootfs fudge allowed.  
Stopping system message bus: dbus.  
K98mount\_early: Executing mount\_early\_user\_stop…  
K98mount\_early: RO rootfs fudge allowed.  
K98mount\_early: ubidetach failed for device /dev/mtd16, rcK should take care of it.  
K98mount\_early: Executing mount\_early\_legato\_stop…  
K98mount\_early: Executing mount\_early\_userrw\_stop…  
K98mount\_early: Executing mount\_early\_unset\_timezone…  
rcK: Executing kill\_all\_proc…  
rcK: Executing umount\_fs\_generic…  
rcK: Executing print\_shutdown\_msg…  
\*\* SYSTEM SHUTDOWN COMPLETE \*\*  
The system is going down NOW!  
Sent SIGTERM to all processes  
sh: getcwd: No such file or directory  
root@swi-mdm9x28-wp:(unknown)# [63.017475] [RMNET:HI] rmnet\_config\_notify\_cb(): Kernel is trying to unregister bridge0  
[63.040661] [RMNET:HI] rmnet\_config\_notify\_cb(): Kernel is trying to unregister bridge0  
Sent SIGKILL to all processes  
Requesting system reboot  
[64.970797] reboot: Restarting system

Format: Log Type - Time(microsec) - Message - Optional Info  
Log Type: B - Since Boot(Power On Reset), D - Delta, S - Statistic  
S - QC\_IMAGE\_VERSION\_STRING=BOOT.BF.3.1.2-00089  
S - IMAGE\_VARIANT\_STRING=LAATANAZA  
S - OEM\_IMAGE\_VERSION\_STRING=jenkins  
S - Boot Config, 0x000002e1  
B - 1216 - PBL, Start  
B - 3720 - bootable\_media\_detect\_entry, Start  
B - 4400 - bootable\_media\_detect\_success, Start  
B - 4405 - elf\_loader\_entry, Start  
B - 7860 - auth\_hash\_seg\_entry, Start  
B - 31513 - auth\_hash\_seg\_exit, Start  
B - 82901 - elf\_segs\_hash\_verify\_entry, Start  
B - 129965 - PBL, End  
B - 138378 - SBL1, Start  
B - 196145 - pm\_device\_init, Start  
B - 216275 - PM\_SET\_VAL:Skip  
D - 18391 - pm\_device\_init, Delta  
B - 217617 - boot\_config\_data\_table\_init, Start  
D - 0 - boot\_config\_data\_table\_init, Delta - (0 Bytes)  
B - 226340 - CDT version:3,Platform ID:8,Major ID:1,Minor ID:0,Subtype:129  
B - 233233 - sbl1\_ddr\_set\_params, Start  
B - 237076 - Pre\_DDR\_clock\_init, Start  
D - 213 - Pre\_DDR\_clock\_init, Delta  
D - 0 - sbl1\_ddr\_set\_params, Delta  
B - 249764 - pm\_driver\_init, Start  
D - 4514 - pm\_driver\_init, Delta  
B - 256047 - cpr\_init, Start  
D - 122 - cpr\_init, Delta  
B - 260714 - cpr\_cx\_mx\_apc\_vol\_update, Start  
D - 61 - cpr\_cx\_mx\_apc\_vol\_update, Delta  
B - 275872 - clock\_init, Start  
D - 152 - clock\_init, Delta  
B - 276116 - boot\_flash\_init, Start  
D - 40046 - boot\_flash\_init, Delta  
B - 777201 - boot\_flash\_swi\_ddr\_init, Start  
D - 28639 - boot\_flash\_swi\_ddr\_init, Delta  
B - 966118 - hw\_family:5, hw\_type:23, hw\_rev:40  
B - 967246 - SSMEM init OK  
B - 985363 - USB non-zero endpoint requirements: 9 in, 5 out  
B - 987132 - opening partition 0:SWIFOTA  
B - 989176 - error for readpage:0  
B - 1005341 - Failed to read size: /swinv/item\_files/CUST\_IM\_SWITCH\_HIDE  
B - 1011197 - Failed to read size: /swinv/item\_files/FOTA\_PARTITION  
B - 1012325 - Failed to read size: /swinv/item\_files/CUST\_IM\_CONFIG  
B - 1033126 - ssmem\_release: region 20 not exists  
B - 1033187 - ssmem\_get: region 20 not exists  
B - 1039074 - smart recovery counter cleared

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 21, 2021, 2:07pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/8 "2021-07-21T14:07:10Z")

</div>

Did you install the GobiSerial driver in linux ?  
[https://source.sierrawireless.com/resources/airprime/software/usb-drivers-linux-qmi-software-s2,-d-,42n2,-d-,64/#sthash.EVthsMay.dpbs](https://source.sierrawireless.com/resources/airprime/software/usb-drivers-linux-qmi-software-s2,-d-,42n2,-d-,64/#sthash.EVthsMay.dpbs)

You can also plug the USB cable to Windows and use the exe to do official FW upgrade

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 21, 2021, 3:32pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/9 "2021-07-21T15:32:54Z")

</div>

Hi Jyijyi,

Could you please provide link for fwupdate from windows?.

I have compiled GobiSerial driver. Should I install by insmod command?. Even before this GobiSerial driver compilation, i could ping the 192.168.2.2 IP address. My linux PC got 192.168.2.3 ip address automatically after plugging USB cable.

```
 What is next step after GobiSerial compilation?.

```

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 21, 2021, 7:35pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/10 "2021-07-21T19:35:55Z")

</div>

You need to type “sudo make install” to install the driver

Windows platform is using exe file, not fwupdate

[https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-16/](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-16/)

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 22, 2021, 10:22pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/11 "2021-07-22T22:22:07Z")

</div>

Hi Jyijyi,  
I have done following steps:

1. Connect the board USB in Windows PC. And it is detected as Sierra Wireless
2. Run WP76xx\_Release16\_SIERRA exe file
3. Board is rebooting and stopped at same log messages in previous comments
4. Board is not detected at this time. So exe file gives error.

Before running exe file, the Windows Device Manager output shows “Sierra Wireless USB Composite Device”

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/9/99549c49d159f5160668774b6894e73cfa0c6130.png)

I am getting following output in Windows when I run WP76xx\_Release16\_SIERRA exe file.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/a/a7f669713024598aaef582ed54d171a318b7e1c7.png)

Board Logs:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/b/b3ad433e820578833c927ebbe721de9e27b1edad.png)

Windows Device Manager at this stage:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/d/def2f89dd2c246bbd119481857b66a1e17890cab.png)

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 22, 2021, 10:54pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/12 "2021-07-22T22:54:32Z")

</div>

Another way to update module FW is as follows:

1. download a WP76 FW EXE
2. use 7zip to extract it
3. there should be a fdt2.exe inside
4. there should be xxx.spk file inside
5. use command prompt to update by “fdt2.exe xxx.spk”

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 23, 2021, 11:26am UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/13 "2021-07-23T11:26:05Z")

</div>

Hi Jyijyi,

I ran below command:  
fdt2.exe WP76xx\_Release16\_SIERRA.spk

It failed. I got same logs as previous comment in this thread.

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 23, 2021, 11:47am UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/14 "2021-07-23T11:47:24Z")

</div>

What port do you have in device manager?

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 23, 2021, 12:12pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/15 "2021-07-23T12:12:07Z")

</div>

Hi Jyijyi,

1. Board is booted upto Linux
2. Connect USB cable between board and Windows PC.
3. Device Manager shows “Sierra Wireless USB Composite Device”
4. In “Terra Term” window, I can see some ports. Only COM3 was there before inserting the USB cable. Our board has separate RS232 port. But that is not connected during this test.

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/c/c1cdb368a4f605cf062d51a6d48981bd0387585d.png)

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 23, 2021, 12:39pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/16 "2021-07-23T12:39:54Z")

</div>

Can you use winscp to transfer the spk file to module /tmp folder?

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 23, 2021, 1:41pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/17 "2021-07-23T13:41:15Z")

</div>

Hi Jyijyi,  
Yes, I can do. But fwupdate and related libraries are not available in the board. So fwupdate command will not work.

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 23, 2021, 2:16pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/18 "2021-07-23T14:16:08Z")

</div>

You can use fwupdate on linux pc

[https://docs.legato.io/latest/toolsHost\_fwupdate.html](https://docs.legato.io/latest/toolsHost_fwupdate.html)

---

<div class="post-metadata">

**Author:** ![raghavankanagaraj](https://avatars.discourse-cdn.com/v4/letter/r/d78d45/32.png) [@raghavankanagaraj](https://forum.sierrawireless.com/u/raghavankanagaraj)\
**Post date:** [July 23, 2021, 3:38pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/19 "2021-07-23T15:38:33Z")

</div>

Hi Jyijyi,  
I cannot find out any fwupdate command in ubuntu 14.04. That command is not appearing in Linux PC even after “sudo apt-get install fwupdate”.

Thanks,  
Raghavan.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/jyijyi/32/4766_2.png) [@jyijyi](https://forum.sierrawireless.com/u/jyijyi)\
**Post date:** [July 23, 2021, 3:42pm UTC](https://forum.sierrawireless.com/t/swiflash-failure-in-custom-board/24293/20 "2021-07-23T15:42:12Z")

</div>

I did it in “leaf shell”

```auto

owner@owner-ThinkPad-X220:~/LEAF/wp77$ leaf shell
bash: export: `--': not a valid identifier
Leaf Shell /bin/bash started in Leaf environment.

(lsh:wp77) owner@owner-ThinkPad-X220:~/LEAF/wp77$ fwupdate -h

NAME
    fwupdate - download or query modem firmware

SYNOPSIS
    fwupdate help
    fwupdate downloadOnly FILE [TARGET_IP]
    fwupdate query [TARGET_IP]
    fwupdate install [TARGET_IP]
    fwupdate checkStatus [TARGET_IP]
    fwupdate markGood [TARGET_IP]
    fwupdate download FILE [TARGET_IP]

DESCRIPTION

    fwupdate help
      - Print this help message and exit
    
    fwupdate query [TARGET_IP]
      - Query the current firmware version. This includes the modem firmware version, the
        bootloader version, and the linux kernel version.
        This can be used after a download and modem reset, to confirm the firmware version.
    
    fwupdate downloadOnly FILE [TARGET_IP]
      - Download the given CWE file.
        Waits for another command after a successful download.
    
    fwupdate checkStatus [TARGET_IP]
      - Check the status of the downloaded package (DualSys platform only).
    
    fwupdate install [TARGET_IP]
      - Install the downloaded firmware.
        Single System: Trigger reset to initiate install.
        Dual System: Swap and reset to run the downloaded firmware or go back to the old system
        if the running system is not marked good.
    
    fwupdate markGood [TARGET_IP]
      - Mark good the current system (DualSys platform only).
    
    fwupdate download FILE [TARGET_IP]
      - do download, install and markGood in one time.
        After a successful download, the modem will reset.

ENVIRONMENT

    If the TARGET_IP value is not given and the environment variable DEST_IP
    is set then DEST_IP will be used as TARGET_IP

(lsh:wp77) owner@owner-ThinkPad-X220:~/LEAF/wp77$

```

BTW, it seems your module really has problem as it cannot FW upgrade through Linux PC and Windows PC…
