Repository navigation
boards/sim: Add zblue configuration - #21479
Conversation
|
🔗 Cross-repo PR dependenciesThe 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
left a comment
There was a problem hiding this comment.
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.
|
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. |
|
@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>
🔗 Cross-repo PR dependenciesThe 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 |
Note: Please adhere to Contributing Guidelines.
Summary
Add
sim:zbluefor 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 withCONFIG_SIM_HCISOCKETand exposed as/dev/ttyHCI0throughCONFIG_UART_BTH4;zblue_peripheralis enabled.CONFIG_DEV_URANDOMgives entropy to the host cryptography,CONFIG_TLS_NELEMthe 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 runsim:zblue.tools/ci/testlist/sim-03.dat: buildsim:zbluewith CMake, and not on macOS (it needs the Linux HCI socket and ELF section start/stop symbols).Impact
sim-03; it downloads the Zephyr release during the build, likesim:nimbledownloads NimBLE.CONFIG_ZBLUEdoes 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 -Nwith/sim/*/*/*/zblueandCMake,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 -gpasses.sphinx-build -b htmlwith the packages ofDocumentation/Pipfile; no warning for the new or changed pages, and the sim page links to the zblue page.depends-on: apache/nuttx-apps/pull/3977