Adapted from https://openthread.io/codelabs/openthread-hardware.
Initial setup:
git clone --recursive https://github.com/openthread/openthread.git
cd openthread
sudo ./script/bootstrap
sudo ./bootstap
# build daemon & control cli
make -j4 -f src/posix/Makefile-posix DAEMON=1
sudo ./output/posix/bin/ot-daemon -v 'spinel+hdlc+uart:///dev/ttyACM0?uart-baudrate=115200'
# nrf52840 RCP
make -f examples/Makefile-nrf52840 clean
make -j4 -f examples/Makefile-nrf52840 JOINER=1 USB=1 BOOTLOADER=1
cd output/nrf52840/bin
arm-none-eabi-objcopy -O ihex ot-rcp ot-rcp.hex
Flash using nrfConnect application.
To understand the inner workings see here: https://openthread.io/platforms/co-processor
make -f examples/Makefile-nrf52840 clean
make -j4 -f examples/Makefile-nrf52840 COMMISSIONER=1 JOINER=1 BOOTLOADER=1 USB=1
cd output/nrf52840/bin
arm-none-eabi-objcopy -O ihex ot-cli-ftd ot-cli-ftd.hex
FLash using nrfConnect application.
Install docker.
Then:
docker pull openthread/otbr:latest
Building NCP:
make -f examples/Makefile-nrf52840 USB=1 BOOTLOADER=1 BORDER_ROUTER=1
https://openthread.io/guides/border-router/docker
https://openthread.io/guides/border-router/docker/run
Connect to device:
screen /dev/ttyACM0 115200
https://github.com/openthread/openthread/tree/master/examples/apps/cli
https://codelabs.developers.google.com/codelabs/openthread-hardware
Connect to Local IPv4 LAN:
https://groups.google.com/forum/#!msg/openthread-users/38ladIxYDs4/RyiwIO0QDAAJ