You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to solve this problem during building process? Please give some idea to solve this problem. Is it possible to run a zephyr as Dom0 control OS? if it is possible then how to load generated zephyr.bin as boot time?
ubuntu@DESKTOP-S6K2F7V:~/zephyrproject$ west build -b rpi_4b -S xen_dom0 zephyr/samples/synchronization
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/ubuntu/zephyrproject/zephyr/samples/synchronization
-- CMake version: 3.22.1
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/ubuntu/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/ubuntu/zephyrproject/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: rpi_4b, qualifiers: bcm2711
-- Snippet(s): xen_dom0
-- Found host-tools: zephyr 0.16.8 (/home/ubuntu/zephyr-sdk-0.16.8)
-- Found toolchain: zephyr 0.16.8 (/home/ubuntu/zephyr-sdk-0.16.8)
-- Found Dtc: /home/ubuntu/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/ubuntu/zephyrproject/zephyr/boards/raspberrypi/rpi_4b/rpi_4b.dts
-- Found devicetree overlay: /home/ubuntu/zephyrproject/zephyr/snippets/xen_dom0/xen_dom0.overlay
-- Generated zephyr.dts: /home/ubuntu/zephyrproject/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/ubuntu/zephyrproject/build/zephyr/dts.cmake
CMake Warning at /home/ubuntu/zephyrproject/zephyr/cmake/modules/dts.cmake:403 (message):
dtc raised one or more warnings:
/home/ubuntu/zephyrproject/build/zephyr/zephyr.dts:21.3-10: Warning
(ranges_format): /soc:ranges: empty "ranges" property but its
#address-cells (1) differs from / (2)
/home/ubuntu/zephyrproject/build/zephyr/zephyr.dts:21.3-10: Warning
(ranges_format): /soc:ranges: empty "ranges" property but its #size-cells
(1) differs from / (2)
warning: XEN_DOM0 (defined at arch/arm64/core/xen/Kconfig:16) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: XEN (=n). See http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_XEN_DOM0 and/or look up XEN_DOM0 in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
Parsing /home/ubuntu/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/ubuntu/zephyrproject/zephyr/boards/raspberrypi/rpi_4b/rpi_4b_defconfig'
Merged configuration '/home/ubuntu/zephyrproject/zephyr/samples/synchronization/prj.conf'
Merged configuration '/home/ubuntu/zephyrproject/zephyr/snippets/xen_dom0/xen_dom0.conf'
Configuration saved to '/home/ubuntu/zephyrproject/build/zephyr/.config'
Kconfig header saved to '/home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/aarch64-zephyr-elf/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc
-- Using ccache: /usr/bin/ccache
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/zephyrproject/build
-- west build: building application
[1/106] Preparing syscall dependency handling
[2/106] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (/home/ubuntu/zephyrproject/zephyr), build: v3.7.0-1436-g4c16ec1fba56
[101/106] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/ubuntu/zephyrproject/build/zephyr/zephyr_pre0.map
: && ccache /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf zephyr/CMakeFiles/offsets.dir/./arch/arm64/core/offsets/offsets.c.obj -fuse-ld=bfd -T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/home/ubuntu/zephyrproject/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm64/core/libarch__arm64__core.a zephyr/lib/libc/picolibc/liblib__libc__picolibc.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/drivers/interrupt_controller/libdrivers__interrupt_controller.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0" -L/home/ubuntu/zephyrproject/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-a72 -mabi=lp64 -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie -DPICOLIBC_DOUBLE_PRINTF_SCANF --specs=picolibc.specs -lc -lgcc && cd /home/ubuntu/zephyrproject/build/zephyr && /usr/bin/cmake -E true
/home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function device_is_ready': /home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/syscalls/device.h:58: undefined reference to __device_dts_ord_3'
/home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: /home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/syscalls/device.h:58: undefined reference to __device_dts_ord_3' /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function console_out':
/home/ubuntu/zephyrproject/zephyr/drivers/console/uart_console.c:81: undefined reference to __device_dts_ord_3' /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: /home/ubuntu/zephyrproject/zephyr/drivers/console/uart_console.c:81: undefined reference to __device_dts_ord_3'
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/ubuntu/zephyrproject/build
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
How to solve this problem during building process? Please give some idea to solve this problem. Is it possible to run a zephyr as Dom0 control OS? if it is possible then how to load generated zephyr.bin as boot time?
ubuntu@DESKTOP-S6K2F7V:~/zephyrproject$ west build -b rpi_4b -S xen_dom0 zephyr/samples/synchronization
-- west build: generating a build system
Loading Zephyr default modules (Zephyr base).
-- Application: /home/ubuntu/zephyrproject/zephyr/samples/synchronization
-- CMake version: 3.22.1
-- Found Python3: /usr/bin/python3 (found suitable version "3.10.12", minimum required is "3.8") found components: Interpreter
-- Cache files will be written to: /home/ubuntu/.cache/zephyr
-- Zephyr version: 3.7.99 (/home/ubuntu/zephyrproject/zephyr)
-- Found west (found suitable version "1.2.0", minimum required is "0.14.0")
-- Board: rpi_4b, qualifiers: bcm2711
-- Snippet(s): xen_dom0
-- Found host-tools: zephyr 0.16.8 (/home/ubuntu/zephyr-sdk-0.16.8)
-- Found toolchain: zephyr 0.16.8 (/home/ubuntu/zephyr-sdk-0.16.8)
-- Found Dtc: /home/ubuntu/zephyr-sdk-0.16.8/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6")
-- Found BOARD.dts: /home/ubuntu/zephyrproject/zephyr/boards/raspberrypi/rpi_4b/rpi_4b.dts
-- Found devicetree overlay: /home/ubuntu/zephyrproject/zephyr/snippets/xen_dom0/xen_dom0.overlay
-- Generated zephyr.dts: /home/ubuntu/zephyrproject/build/zephyr/zephyr.dts
-- Generated devicetree_generated.h: /home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/devicetree_generated.h
-- Including generated dts.cmake file: /home/ubuntu/zephyrproject/build/zephyr/dts.cmake
CMake Warning at /home/ubuntu/zephyrproject/zephyr/cmake/modules/dts.cmake:403 (message):
dtc raised one or more warnings:
/home/ubuntu/zephyrproject/build/zephyr/zephyr.dts:21.3-10: Warning
(ranges_format): /soc:ranges: empty "ranges" property but its
#address-cells (1) differs from / (2)
/home/ubuntu/zephyrproject/build/zephyr/zephyr.dts:21.3-10: Warning
(ranges_format): /soc:ranges: empty "ranges" property but its #size-cells
(1) differs from / (2)
Call Stack (most recent call first):
/home/ubuntu/zephyrproject/zephyr/cmake/modules/zephyr_default.cmake:132 (include)
/home/ubuntu/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:66 (include)
/home/ubuntu/zephyrproject/zephyr/share/zephyr-package/cmake/ZephyrConfig.cmake:92 (include_boilerplate)
CMakeLists.txt:5 (find_package)
warning: XEN_DOM0 (defined at arch/arm64/core/xen/Kconfig:16) was assigned the value 'y' but got the
value 'n'. Check these unsatisfied dependencies: XEN (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_XEN_DOM0 and/or look up XEN_DOM0 in the
menuconfig/guiconfig interface. The Application Development Primer, Setting Configuration Values,
and Kconfig - Tips and Best Practices sections of the manual might be helpful too.
Parsing /home/ubuntu/zephyrproject/zephyr/Kconfig
Loaded configuration '/home/ubuntu/zephyrproject/zephyr/boards/raspberrypi/rpi_4b/rpi_4b_defconfig'
Merged configuration '/home/ubuntu/zephyrproject/zephyr/samples/synchronization/prj.conf'
Merged configuration '/home/ubuntu/zephyrproject/zephyr/snippets/xen_dom0/xen_dom0.conf'
Configuration saved to '/home/ubuntu/zephyrproject/build/zephyr/.config'
Kconfig header saved to '/home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/autoconf.h'
-- Found GnuLd: /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/aarch64-zephyr-elf/bin/ld.bfd (found version "2.38")
-- The C compiler identification is GNU 12.2.0
-- The CXX compiler identification is GNU 12.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc
-- Using ccache: /usr/bin/ccache
-- Configuring done
-- Generating done
-- Build files have been written to: /home/ubuntu/zephyrproject/build
-- west build: building application
[1/106] Preparing syscall dependency handling
[2/106] Generating include/generated/zephyr/version.h
-- Zephyr version: 3.7.99 (/home/ubuntu/zephyrproject/zephyr), build: v3.7.0-1436-g4c16ec1fba56
[101/106] Linking C executable zephyr/zephyr_pre0.elf
FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map /home/ubuntu/zephyrproject/build/zephyr/zephyr_pre0.map
: && ccache /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/aarch64-zephyr-elf-gcc -gdwarf-4 zephyr/CMakeFiles/zephyr_pre0.dir/misc/empty_file.c.obj -o zephyr/zephyr_pre0.elf zephyr/CMakeFiles/offsets.dir/./arch/arm64/core/offsets/offsets.c.obj -fuse-ld=bfd -T zephyr/linker_zephyr_pre0.cmd -Wl,-Map=/home/ubuntu/zephyrproject/build/zephyr/zephyr_pre0.map -Wl,--whole-archive app/libapp.a zephyr/libzephyr.a zephyr/arch/common/libarch__common.a zephyr/arch/arch/arm64/core/libarch__arm64__core.a zephyr/lib/libc/picolibc/liblib__libc__picolibc.a zephyr/lib/libc/common/liblib__libc__common.a zephyr/drivers/interrupt_controller/libdrivers__interrupt_controller.a zephyr/drivers/console/libdrivers__console.a zephyr/drivers/serial/libdrivers__serial.a zephyr/drivers/timer/libdrivers__timer.a -Wl,--no-whole-archive zephyr/kernel/libkernel.a -L"/home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0" -L/home/ubuntu/zephyrproject/build/zephyr -lgcc zephyr/arch/common/libisr_tables.a -mcpu=cortex-a72 -mabi=lp64 -Wl,--gc-sections -Wl,--build-id=none -Wl,--sort-common=descending -Wl,--sort-section=alignment -Wl,-u,_OffsetAbsSyms -Wl,-u,_ConfigAbsSyms -nostdlib -static -Wl,-X -Wl,-N -Wl,--orphan-handling=warn -Wl,-no-pie -DPICOLIBC_DOUBLE_PRINTF_SCANF --specs=picolibc.specs -lc -lgcc && cd /home/ubuntu/zephyrproject/build/zephyr && /usr/bin/cmake -E true
/home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function
device_is_ready': /home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/syscalls/device.h:58: undefined reference to
__device_dts_ord_3'/home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: /home/ubuntu/zephyrproject/build/zephyr/include/generated/zephyr/syscalls/device.h:58: undefined reference to
__device_dts_ord_3' /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: zephyr/drivers/console/libdrivers__console.a(uart_console.c.obj): in function
console_out':/home/ubuntu/zephyrproject/zephyr/drivers/console/uart_console.c:81: undefined reference to
__device_dts_ord_3' /home/ubuntu/zephyr-sdk-0.16.8/aarch64-zephyr-elf/bin/../lib/gcc/aarch64-zephyr-elf/12.2.0/../../../../aarch64-zephyr-elf/bin/ld.bfd: /home/ubuntu/zephyrproject/zephyr/drivers/console/uart_console.c:81: undefined reference to
__device_dts_ord_3'collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.
FATAL ERROR: command exited with status 1: /usr/bin/cmake --build /home/ubuntu/zephyrproject/build
Beta Was this translation helpful? Give feedback.
All reactions