swicwe - command line

swicwe allows to manage firmware images for WP/AR products.
This tool is platform specific (only for WP/AR Series).


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



Usage

This is a firmware image management tool, that can be used to either parse existing images for information, create concatenated images from unitary components, or split SPKG into separate 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 ...]
or
swicwe -!|--splitlevel1 <file.cwe|file.spk>
or
swicwe -@|--splitlevel2 <file.cwe|file.spk>

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

-!|--splitlevel1 <file.cwe|file.spk> Split SPKG into top level components in a new directory

-@|--splitlevel2 <file.cwe|file.spk> Split SPKG into individual images (level 2 components) in a new directory

-o|--output Output SPK file OR output directory


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

split SPKG into top level components based on image type

swicwe --splitlevel1 /tmp/image.spk -o output_directory

split SPKG into individual images (level 2 components)

swicwe --splitlevel2 /tmp/image.spk -o output_directory