https://github.com/openthread/ot-b91
OpenThread on Telink B91 example.
https://github.com/openthread/ot-b91
openthread
Last synced: about 1 year ago
JSON representation
OpenThread on Telink B91 example.
- Host: GitHub
- URL: https://github.com/openthread/ot-b91
- Owner: openthread
- License: bsd-3-clause
- Created: 2021-06-09T20:09:55.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2025-04-22T14:39:22.000Z (about 1 year ago)
- Last Synced: 2025-04-22T15:44:18.289Z (about 1 year ago)
- Topics: openthread
- Language: C
- Homepage:
- Size: 908 KB
- Stars: 12
- Watchers: 17
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenThread on B91 Example
This directory contains example platform drivers for the Telink B91.
The example platform drivers are intended to present the minimal code necessary to support OpenThread. As a result, the example platform drivers do not necessarily highlight the platform's full capabilities.
This platform is intended for exprimentation and exploration of OpenThread, not a production ready environment.
## Build Environment
Building the examples for the b91 requires [CMake][cmake], [Ninja][ninja], and the [Telink risc-v toolchain][telink-toolchain].
[cmake]: https://cmake.org/
[ninja]: https://ninja-build.org/
[telink-toolchain]: http://wiki.telink-semi.cn/tools_and_sdk/Tools/IDE/telink_riscv_linux_toolchain.zip
After these tools are installed, follow the instruction below to install other necessary tools.
```bash
$ cd
$ ./script/bootstrap
```
## Building
In a Bash terminal, follow these instructions to build the b91 examples.
```bash
$ cd
$ ./script/build
```
## Flash Binaries
If the build completed successfully, the `elf` files may be found in `/build/bin`.
You can download the [BDT tool][bdt-tool] and refer to the [user guide][user-guide] provided by Telink to burn the images to the board, in order to load the images with the [BDT tool][bdt-tool], the images must be converted to `bin`. This is done using `riscv32-elf-objcopy`
```bash
$ cd /build/bin
$ riscv32-elf-objcopy -S -O binary ot-cli-ftd ot-cli-ftd.bin
```
[bdt-tool]: http://wiki.telink-semi.cn/tools_and_sdk/Tools/BDT/BDT.zip
[user-guide]: http://wiki.telink-semi.cn/tools_and_sdk/Tools/BDT/BDT%20%20User%20Guide.zip
## Interact
### CLI example
1. With a terminal client (putty, minicom, etc.) open the com port associated with the b91 UART. The serial port settings are:
- 115200 baud
- 8 data bits
- no parity bit
- 1 stop bit
2. Type `help` for a list of commands
3. See [OpenThread CLI Reference README.md][cli] to learn more.
[cli]: https://github.com/openthread/openthread/blob/main/src/cli/README.md
# Contributing
We would love for you to contribute to OpenThread and help make it even better than it is today! See our [Contributing Guidelines](https://github.com/openthread/openthread/blob/main/CONTRIBUTING.md) for more information.
Contributors are required to abide by our [Code of Conduct](https://github.com/openthread/openthread/blob/main/CODE_OF_CONDUCT.md) and [Coding Conventions and Style Guide](https://github.com/openthread/openthread/blob/main/STYLE_GUIDE.md).
# License
OpenThread is released under the [BSD 3-Clause license](https://github.com/openthread/ot-cc2538/blob/main/LICENSE). See the [`LICENSE`](https://github.com/openthread/ot-cc2538/blob/main/LICENSE) file for more information.
Please only use the OpenThread name and marks when accurately referencing this software distribution. Do not use the marks in a way that suggests you are endorsed by or otherwise affiliated with Nest, Google, or The Thread Group.
# Need help?
OpenThread support is available on GitHub:
- Bugs and feature requests pertaining to the OpenThread on B91 Example — [submit to the openthread/ot-b91 Issue Tracker](https://github.com/openthread/ot-b91/issues)
- OpenThread bugs and feature requests — [submit to the OpenThread Issue Tracker](https://github.com/openthread/openthread/issues)
- Community Discussion - [ask questions, share ideas, and engage with other community members](https://github.com/openthread/openthread/discussions)