Created
April 2, 2025 03:48
-
-
Save paigeadelethompson/19e8e6d6e1219fbb0582e8755745992a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(nrf) ➜ hci_usb rm -rf build | |
(nrf) ➜ hci_usb west build --board=nrf52840dk/nrf52840 --no-sysbuild | |
-- west build: generating a build system | |
Loading Zephyr default modules (Zephyr base). | |
-- Application: /home/netcraveos/hci_usb | |
-- CMake version: 3.31.6 | |
-- Found Python3: /usr/bin/python3 (found suitable version "3.13.2", minimum required is "3.10") found components: Interpreter | |
-- Cache files will be written to: /home/netcraveos/.cache/zephyr | |
-- Zephyr version: 4.0.99 (/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr) | |
-- Found west (found suitable version "1.3.0", minimum required is "0.14.0") | |
-- Board: nrf52840dk, qualifiers: nrf52840 | |
CMake Error at /home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/cmake/modules/FindZephyr-sdk.cmake:159 (find_package): | |
Could not find a package configuration file provided by "Zephyr-sdk" | |
(requested version 0.16) with any of the following names: | |
Zephyr-sdkConfig.cmake | |
zephyr-sdk-config.cmake | |
Add the installation prefix of "Zephyr-sdk" to CMAKE_PREFIX_PATH or set | |
"Zephyr-sdk_DIR" to a directory containing one of the above files. If | |
"Zephyr-sdk" provides a separate development package or SDK, be sure it has | |
been installed. | |
Call Stack (most recent call first): | |
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/cmake/modules/FindHostTools.cmake:53 (find_package) | |
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/cmake/modules/dts.cmake:9 (find_package) | |
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/cmake/modules/zephyr_default.cmake:133 (include) | |
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include) | |
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate) | |
CMakeLists.txt:4 (find_package) | |
-- Configuring incomplete, errors occurred! | |
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/netcraveos/hci_usb/build -GNinja -DBOARD=nrf52840dk/nrf52840 -S/home/netcraveos/hci_usb | |
(nrf) ➜ hci_usb echo $ZEPHYR_BASE | |
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr | |
(nrf) ➜ hci_usb | |
Oh I was actually mistaken, I thought I had the zephyr-sdk but I guess that zephyr dir in nrf is something else (it just looks like the sdk) apparently I just needed to add a install zephyr sdk step to my oh-my-sdk bootstrap, which runs it's setup.sh with -c
which installs the necesarry Zephyr-sdk cmake files in ~/.cmake (OK)
(nrf) ➜ hci_usb west build --board=nrf52840dk/nrf52840 --pristine
-- west build: making build dir /home/netcraveos/hci_usb/build pristine
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/netcraveos/hci_usb/sysbuild
-- CMake version: 3.31.6
-- Found Python3: /usr/bin/python3 (found suitable version "3.13.2", minimum required is "3.10") found components: Interpreter
-- Cache files will be written to: /home/netcraveos/.cache/zephyr
-- Zephyr version: 4.0.99 (/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr)
-- Found west (found suitable version "1.3.0", minimum required is "0.14.0")
-- Board: nrf52840dk, qualifiers: nrf52840
-- Found host-tools: zephyr 0.17.0 (/home/netcraveos/.oh-my-sdk/dist/zephyr-sdk/zephyr-sdk-0.17.0)
-- Found toolchain: zephyr 0.17.0 (/home/netcraveos/.oh-my-sdk/dist/zephyr-sdk/zephyr-sdk-0.17.0)
-- Found Dtc: /usr/bin/dtc (found suitable version "1.7.2", minimum required is "1.4.6")
-- Found BOARD.dts: /home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840.dts
-- Generated zephyr.dts: /home/netcraveos/hci_usb/build/zephyr/zephyr.dts
-- Generated pickled edt: /home/netcraveos/hci_usb/build/zephyr/edt.pickle
-- Generated zephyr.dts: /home/netcraveos/hci_usb/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/netcraveos/hci_usb/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/netcraveos/hci_usb/build/zephyr/dts.cmake
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:4: warning: attempt to assign the value 'y' to the undefined symbol ARM_MPU
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:7: warning: attempt to assign the value 'y' to the undefined symbol HW_STACK_PROTECTION
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:10: warning: attempt to assign the value 'y' to the undefined symbol USE_SEGGER_RTT
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:13: warning: attempt to assign the value 'y' to the undefined symbol GPIO
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:16: warning: attempt to assign the value 'y' to the undefined symbol SERIAL
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:19: warning: attempt to assign the value 'y' to the undefined symbol CONSOLE
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig:20: warning: attempt to assign the value 'y' to the undefined symbol UART_CONSOLE
/home/netcraveos/hci_usb/sysbuild/prj.conf:1: warning: attempt to assign the value 'y' to the undefined symbol BT
/home/netcraveos/hci_usb/sysbuild/prj.conf:2: warning: attempt to assign the value 'y' to the undefined symbol BT_HCI_RAW
/home/netcraveos/hci_usb/sysbuild/prj.conf:4: warning: attempt to assign the value 'y' to the undefined symbol USB_DEVICE_STACK
/home/netcraveos/hci_usb/sysbuild/prj.conf:5: warning: attempt to assign the value '0x000B' to the undefined symbol USB_DEVICE_PID
/home/netcraveos/hci_usb/sysbuild/prj.conf:6: warning: attempt to assign the value 'y' to the undefined symbol USB_DEVICE_BLUETOOTH
/home/netcraveos/hci_usb/sysbuild/prj.conf:7: warning: attempt to assign the value 'n' to the undefined symbol USB_DEVICE_BLUETOOTH_VS_H4
/home/netcraveos/hci_usb/sysbuild/prj.conf:8: warning: attempt to assign the value 'n' to the undefined symbol USB_DEVICE_INITIALIZE_AT_BOOT
/home/netcraveos/hci_usb/sysbuild/prj.conf:11: warning: attempt to assign the value 'n' to the undefined symbol SERIAL
/home/netcraveos/hci_usb/sysbuild/prj.conf:12: warning: attempt to assign the value 'n' to the undefined symbol CONSOLE
/home/netcraveos/hci_usb/sysbuild/prj.conf:13: warning: attempt to assign the value 'n' to the undefined symbol UART_CONSOLE
/home/netcraveos/hci_usb/sysbuild/prj.conf:17: warning: attempt to assign the value '10' to the undefined symbol BT_BUF_CMD_TX_COUNT
error: Aborting due to Kconfig warnings
Parsing /home/netcraveos/hci_usb/sysbuild/Kconfig
Loaded configuration '/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/boards/nordic/nrf52840dk/nrf52840dk_nrf52840_defconfig'
Merged configuration '/home/netcraveos/hci_usb/sysbuild/prj.conf'
CMake Error at /home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/cmake/modules/kconfig.cmake:396 (message):
command failed with return code: 1
Call Stack (most recent call first):
/home/netcraveos/.oh-my-sdk/dist/nrf/nrf/cmake/modules/kconfig.cmake:36 (include)
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/cmake/modules/zephyr_default.cmake:133 (include)
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
/home/netcraveos/hci_usb/sysbuild/CMakeLists.txt:6 (find_package)
-- Configuring incomplete, errors occurred!
FATAL ERROR: command exited with status 1: /usr/bin/cmake -DWEST_PYTHON=/usr/bin/python3 -B/home/netcraveos/hci_usb/build -GNinja -DBOARD=nrf52840dk/nrf52840 -S/home/netcraveos/.oh-my-sdk/dist/nrf/zephyr/share/sysbuild -DAPP_DIR:PATH=/home/netcraveos/hci_usb
(nrf) ➜ hci_usb
this is definitely an improvement. I don't know if this is any help to the project but I made a whole zsh antigen plugin that installs / configures and manages shell environment to make this SDK work:
https://github.com/paigeadelethompson/oh-my-sdk
and its probably still not right but idk what other vendors use zephyr point them out to me and I'll add support for them ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
idk what this means
sysbuild... doesn't sound like something I want