commit | 7c0b1c0500d4e583118ae38b90477ee1f3e1ae0f | [log] [tgz] |
---|---|---|
author | Christopher Collins <ccollins@apache.org> | Wed Aug 07 17:11:54 2019 -0700 |
committer | Christopher Collins <ccollins@apache.org> | Fri Aug 09 16:54:44 2019 -0700 |
tree | fcc1e077c97985604377747890e5f7ebac0dee70 | |
parent | 13b828d6f85ffe2aab56dd61eed0759531988042 [diff] |
Include imghash in log show output The Mynewt log entry header optionally includes an "imghash" field. This field contains a truncated hash of the build that was running when the entry was logged. If an entry contains this hash, the Mynewt device includes it in a `log show` response. This commit changes newtmgr to print the image hash when it sees it in a `log show` response.
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
go build