swicwe - command line tool (linux host)

Apr 25, 2019 - Author: Sierra Wireless - Version 1.25 - 10826 Views

swicwe is used to manage firmware images for WP/AR products.
This tool is platform-specific (only for WP/AR Series).
Note: swicwe version 1.9 or newer is required to generate SPK files that are compatible for image switching.




Ubuntu/Debian Distributions

For Ubuntu (≥16.04)/Debian distributions, enter the following commands:

wget https://downloads.sierrawireless.com/tools/swicwe/swicwe_latest.deb -O /tmp/swicwe_latest.deb
sudo apt-get install /tmp/swicwe_latest.deb

For Ubuntu 14.04 LTS, enter the following commands:

wget https://downloads.sierrawireless.com/tools/swicwe/swicwe_latest.deb -O /tmp/swicwe_latest.deb
sudo dpkg -i /tmp/swicwe_latest.deb
sudo apt-get install -f

Alternate Distributions

  • Download swicwe tool archive from this link
  • Extract the archive to the location of your choice (e.g. unzip swicwe.zip -d $HOME/legato/swicwe)
  • Potentially add this location to your user's path:
    • echo 'export PATH=$HOME/legato/swicwe/linux64:$PATH' >> $HOME/.bashrc -- for 64 bits hosts
    • echo 'export PATH=$HOME/legato/swicwe/linux32:$PATH' >> $HOME/.bashrc -- for 32 bits hosts


This is a firmware image management tool, that can be used to either parse existing images for information, or create concatenated images from unitary components.

Command options

Run swicwe --help for complete usage details.

swicwe -P|--parse <file.cwe|file.spk>
swicwe -o|--output output.spk -c|--cat file1.cwe file2.cwe [fileN.cwe ...]


-h,--help Display help message

--full-help Display help for advanced options

-P|--parse <file.cwe|file.spk> Parse and display content of input CWE/SPK file

-c|--cat Generate a concatenated (SPK) file from input CWE files.
Input file names have to be specified at the end of the command line

-o|--output <output.spk> Output SPK file

Example commands

Build a concatenated image

swicwe --output /tmp/image.spk --cat boot.cwe modemz.cwe boot-yocto.cwe legatoz.cwe configFile.cwe

Parse and display image content

swicwe --parse /tmp/image.spk

Related items

Legato Application Development Kit - Linux

Installation procedures for Linux host to develop Legato Applications.

swiflash - command line tool (linux host)

Flash firmware into WP/AR module for recovery purpose

©2020 Sierra Wireless. All rights reserved.
You have been successfully unsubscribed to this product. To access your subscription click here.