Commit 8e0a787b authored by Fabio Utzig's avatar Fabio Utzig Committed by Fabio Utzig
Browse files

Add boot serial on Mynewt docs

Signed-off-by: default avatarFabio Utzig <utzig@apache.org>
parent 12f819fb
Loading
Loading
Loading
Loading
+14
Changes for docs/readme-mynewt.md: 14 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -36,3 +36,17 @@ different TLV structure, so images created by `newt` have to be generated
in this new format. That is done by passing the extra parameter `-2` as in:

`newt create-image <target> <version> <pubkey> -2`

# Boot serial functionality with Mynewt

Building with `BOOT_SERIAL: 1` enables some basic management functionality
like listing images and uploading a new image to `slot0`. The serial bootloader
requires that `mtu` is set to a value that is less than or equal to `256`.
This can be done either by editing `~/.newtmgr.cp.json` and setting the `mtu`
for the connection profile, or specifying you connection string manually as in:

```
newtmgr --conntype serial --connstring "dev=/dev/ttyUSB0,mtu=256" image upload -e blinky.img
```

where `/dev/ttyUSB0` is your serial port.