commit | dd010c4b1fb733418a95b496e75e5207b1dea895 | [log] [tgz] |
---|---|---|
author | Fabio Utzig <utzig@apache.org> | Fri Aug 23 11:47:57 2019 -0300 |
committer | Fabio Utzig <utzig@utzig.org> | Mon Sep 09 09:11:50 2019 -0300 |
tree | d0c60b76fd47efe9f2d851c079bed900bb423e9e | |
parent | d988f6d98990dbf14c505ae56732c25b9d8c4b11 [diff] |
Add basic multi-image support This makes `image list` and `image upload` compatible with MCUBoot's serial_boot when working in a multi-image setting. The image state CBOR packet and image upload were both update to carry an extra field called "image" whose number indicates which image set is being handled. If absent, image 0 is used for compatibility. The upload command got and extra parameter `-n` (or `--image`) to set which image is being sent, eg, `newtmgr image -n1 upload <fw.img>`. The image list command now prints "image=X slot=Y", eg: ``` Images: image=0 slot=0 version: 1.7.0.0 bootable: false flags: hash: Unavailable image=0 slot=1 version: 1.4.0.0 bootable: false flags: hash: Unavailable image=1 slot=0 version: 1.8.0.0 bootable: false flags: hash: Unavailable Split status: N/A (0) ```
Newt Manager (newtmgr) is the application tool that enables a user to communicate with and manage remote devices running the Mynewt OS. It uses a connection profile to establish a connection with a device and sends command requests to the device. The newtmgr tool documentation can be found under /docs which are published at http://mynewt.apache.org/latest/os/modules/devmgmt/newtmgr.html
Build the newtmgr tool as follows:
apache-mynewt-newtmgr-1.3.0
directory to $GOPATH/src/mynewt.apache.org/newtmgr
cd $GOPATH/src/mynewt.apache.org/newtmgr/newtmgr
GO111MODULE=on go build