swicwe allows to manage firmware images for WP/AR products.
This tool is platform specific (only for WP/AR Series).
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
swicwe
tool archive from this link
unzip swicwe.zip -d $HOME/legato/swicwe
)
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, create concatenated images from unitary components, or split SPKG into separate components.
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
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