Skip to content

boards/sim: Add zblue configuration - #21479

Merged
GUIDINGLI merged 1 commit into
apache:masterfrom
chengkai15:zblue
Nov 24, 2026
Merged

GUIDINGLI merged 1 commit into
apache:masterfrom
chengkai15:zblue

Conversation

@chengkai15

@chengkai15 chengkai15 commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Note: Please adhere to Contributing Guidelines.

Summary

Add sim:zblue for the Zephyr Bluetooth host in nuttx-apps (wireless/bluetooth/zblue, apache/nuttx-apps#3977), and its documentation.

This is part of step 1 of option 1B in the [VOTE] on dev@ (https://lists.apache.org/thread/9fy6bog3dcw3do5d8wd0yyvlpkjrhxpn); the vote passed: https://lists.apache.org/thread/pbkljzzqh0zo3tc7xgdrvh6m86bvpl8v. The overall plan is in #21478. Previous discussion: #20686.

  • boards/sim/sim/sim/configs/zblue: a Bluetooth controller of the host is attached with CONFIG_SIM_HCISOCKET and exposed as /dev/ttyHCI0 through CONFIG_UART_BTH4; zblue_peripheral is enabled. CONFIG_DEV_URANDOM gives entropy to the host cryptography, CONFIG_TLS_NELEM the thread-specific data of the porting layer.
  • Documentation/applications/wireless/zblue: configuration, porting layer, how to update the Zephyr release.
  • Documentation/platforms/sim/sim/boards/sim: how to run sim:zblue.
  • tools/ci/testlist/sim-03.dat: build sim:zblue with CMake, and not on macOS (it needs the Linux HCI socket and ELF section start/stop symbols).

Impact

  • New board configuration and documentation only. No kernel code changes.
  • CI: one more sim configuration in sim-03; it downloads the Zephyr release during the build, like sim:nimble downloads NimBLE.
  • Depends on wireless/bluetooth/zblue: Add Zephyr Bluetooth host nuttx-apps#3977: without it CONFIG_ZBLUE does not exist and the configuration does not build the Bluetooth host.

Testing

Host: Ubuntu 22.04.5 x86_64, gcc 13.1.0, CMake 3.23.0, Python 3.10.12.

  • tools/testbuild.sh -N with /sim/*/*/*/zblue and CMake,sim:zblue, from clean trees of this branch and the apps branch.
  • ./tools/configure.sh -l sim:zblue && make, from clean trees.
  • tools/checkpatch.sh -g passes.
  • Documentation: sphinx-build -b html with the packages of Documentation/Pipfile; no warning for the new or changed pages, and the sim page links to the zblue page.
  • Run on hardware (CSR USB controller, BlueZ central on a second controller): advertising, connection, GATT discovery and read, disconnection and reconnection. Logs are in wireless/bluetooth/zblue: Add Zephyr Bluetooth host nuttx-apps#3977.

depends-on: apache/nuttx-apps/pull/3977

@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

MemBrowse Memory Report · Explore what changed →

No memory changes detected for:


Catch memory regressions in CI with MemBrowse. Free for open source.

@chengkai15
chengkai15 marked this pull request as ready for review November 5, 2026 09:34
@github-actions

github-actions Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx/actions/runs/42003433103

@casaroli casaroli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The body says "the vote is open until 9 November 2026, 00:00 UTC, so this PR is a draft until the result.", but the PR is not a draft, so it can merge before the vote closes.
Fix: convert the PR to a draft until the vote result.

@chengkai15

Copy link
Copy Markdown
Contributor Author

Thanks. The vote closed on 9 November, 00:00 UTC, and 1B passed: https://lists.apache.org/thread/pbkljzzqh0zo3tc7xgdrvh6m86bvpl8v. I have removed that sentence from the description.

@xiaoxiang781216

Copy link
Copy Markdown
Contributor

@chengkai15 please rebase to the latest master which fix the ci error.

Add sim:zblue for the Zephyr Bluetooth host in apps
(wireless/bluetooth/zblue): a Bluetooth controller of the host is
attached with CONFIG_SIM_HCISOCKET and exposed as /dev/ttyHCI0 through
CONFIG_UART_BTH4, and the zblue_peripheral example is enabled.
CONFIG_DEV_URANDOM provides the entropy for the host cryptography and
CONFIG_TLS_NELEM the thread-specific data used by the porting layer.

Document the application and the configuration.

Build it in CI with CMake, and not on macOS: it needs the Linux
HCI socket and ELF section start/stop symbols.

Signed-off-by: Kai Cheng <chengkai@xiaomi.com>
@github-actions

Copy link
Copy Markdown

🔗 Cross-repo PR dependencies

The read-only Build run reported the following dependent PR(s) and fetched head SHA(s):

CI run: https://github.com/apache/nuttx/actions/runs/43803544102

@GUIDINGLI
GUIDINGLI merged commit b5db91f into apache:master Nov 24, 2026
54 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: CI Board: simulator Size: M The size of the change in this PR is medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants