swicwe - command line tool (linux host)
- Mar 16, 2018
- Author: Sierra Wireless
- Version: 1.15
Create one single firmware image from several unitary components for WP/AR modules
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.
Installation
Ubuntu/Debian Distributions
Follow these instructions for Ubuntu/Debian distributions
wget http://updatesite.sierrawireless.com/swicwe/swicwe_latest.deb -O /tmp/swicwe_latest.deb
sudo apt-get install /tmp/swicwe_latest.deb
Alternate Distributions
- Download
swicwetool 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 hostsecho 'export PATH=$HOME/legato/swicwe/linux32:$PATH' >> $HOME/.bashrc-- for 32 bits hosts
Usage
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>
or
swicwe -o|--output output.spk -c|--cat file1.cwe file2.cwe [fileN.cwe ...]
Options:
-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
Tags
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