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
Connect to device:
screen /dev/ttyACM0 115200
Connect to Local IPv4 LAN: