text stringlengths 9 39.2M | dir stringlengths 25 226 | lang stringclasses 163 values | created_date timestamp[s] | updated_date timestamp[s] | repo_name stringclasses 751 values | repo_full_name stringclasses 752 values | star int64 1.01k 183k | len_tokens int64 1 18.5M |
|---|---|---|---|---|---|---|---|---|
```cmake
# Suppress "unique_unit_address_if_enabled" to handle the following overlaps:
# - power@40000000 & clock@40000000 & nrf-mpu@40000000
list(APPEND EXTRA_DTC_FLAGS "-Wno-unique_unit_address_if_enabled")
``` | /content/code_sandbox/boards/qemu/cortex_m0/pre_dt_board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 58 |
```unknown
# QEMU Cortex-M0 board configuration
if BOARD_QEMU_CORTEX_M0
config NRF_RTC_TIMER
default n if SYS_CLOCK_EXISTS
config SYS_CLOCK_HW_CYCLES_PER_SEC
default 1000000
config SYS_CLOCK_TICKS_PER_SEC
default 100
endif # BOARD_QEMU_CORTEX_M0
``` | /content/code_sandbox/boards/qemu/cortex_m0/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 69 |
```unknown
config BOARD_QEMU_CORTEX_M0
select QEMU_TARGET
config NRF_TIMER_TIMER
bool "nRF Timer Counter (NRF_TIMER0) Timer"
depends on CLOCK_CONTROL
depends on SOC_COMPATIBLE_NRF
depends on SYS_CLOCK_EXISTS
select TICKLESS_CAPABLE
default y
help
This module implements a kernel device driver for the nRF Timer
Counter NRF_TIMER0 and provides the standard "system clock driver"
interfaces.
``` | /content/code_sandbox/boards/qemu/cortex_m0/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 99 |
```cmake
#
#
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_ARCH xilinx-aarch64)
set(QEMU_CPU_TYPE_${ARCH} cortex-a9)
set(QEMU_FLAGS_${ARCH}
-nographic
-machine arm-generic-fdt-7series
-dtb ${CMAKE_CURRENT_LIST_DIR}/fdt-zynq7000s.dtb
)
set(QEMU_KERNEL_OPTION
"-device;loader,file=\$<TARGET_FILE:\${logical_target_for_zephyr_elf}>,cpu-num=0"
)
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/cortex_a9/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 127 |
```restructuredtext
.. _qemu_cortex_m0:
ARM Cortex-M0 Emulation (QEMU)
##############################
Overview
********
This board configuration will use QEMU to emulate the
BBC Microbit (Nordic nRF51822) platform.
This configuration provides support for an ARM Cortex-M0 CPU and these devices:
* Nested Vectored Interrupt Controller
* TIMER (nRF TIMER System Clock)
.. note::
This board configuration makes no claims about its suitability for use
with an actual nRF51 Microbit hardware system, or any other hardware system.
Hardware
********
Supported Features
==================
The following hardware features are supported:
+--------------+------------+----------------------+
| Interface | Controller | Driver/Component |
+==============+============+======================+
| NVIC | on-chip | nested vectored |
| | | interrupt controller |
+--------------+------------+----------------------+
| nRF | on-chip | serial port |
| UART | | |
+--------------+------------+----------------------+
| nRF TIMER | on-chip | system clock |
+--------------+------------+----------------------+
The kernel currently does not support other hardware features on this platform.
Devices
========
System Clock
------------
This board configuration uses a system clock frequency of 1 MHz.
Serial Port
-----------
This board configuration uses a single serial communication channel with the
CPU's UART0.
Known Problems or Limitations
==============================
The following platform features are unsupported:
* Writing to the hardware's flash memory
Programming and Debugging
*************************
Use this configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment, for example, with the :zephyr:code-sample:`synchronization` sample:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_cortex_m0
:goals: run
This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:
.. code-block:: console
***** BOOTING ZEPHYR OS v1.8.99 - BUILD: Jun 27 2017 13:09:26 *****
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
Networking
==========
References
**********
1. The Definitive Guide to the ARM Cortex-M0, Second Edition by Joseph Yiu (ISBN
978-0-12-803278-7)
2. ARMv6-M Architecture Technical Reference Manual (ARM DDI 0419D 0403D ID051917)
3. Procedure Call Standard for the ARM Architecture (ARM IHI 0042E, current
through ABI release 2.09, 2012/11/30)
4. Cortex-M0 Revision r2p1 Technical Reference Manual (ARM DDI 0432C ID113009)
5. Cortex-M0 Devices Generic User Guide (ARM DUI 0497A ID112109)
``` | /content/code_sandbox/boards/qemu/cortex_m0/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 751 |
```unknown
#
#
#
CONFIG_ARM_ARCH_TIMER=y
CONFIG_SERIAL=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_ARMV7_EXCEPTION_STACK_SIZE=8192
CONFIG_ARMV7_FIQ_STACK_SIZE=8192
CONFIG_ARMV7_SVC_STACK_SIZE=8192
CONFIG_ARMV7_SYS_STACK_SIZE=8192
CONFIG_IDLE_STACK_SIZE=8192
CONFIG_ISR_STACK_SIZE=8192
CONFIG_MAIN_STACK_SIZE=8192
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192
``` | /content/code_sandbox/boards/qemu/cortex_a9/qemu_cortex_a9_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 103 |
```unknown
#
# Kconfig - Cortex-A9 QEMU Emulation
#
#
config BOARD_QEMU_CORTEX_A9
select SOC_XILINX_XC7Z007S
``` | /content/code_sandbox/boards/qemu/cortex_a9/Kconfig.qemu_cortex_a9 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```yaml
board:
name: qemu_cortex_a9
vendor: qemu
socs:
- name: xc7z007s
``` | /content/code_sandbox/boards/qemu/cortex_a9/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```unknown
/*
*/
/dts-v1/;
#include <xilinx/zynq7000.dtsi>
#include <zephyr/dt-bindings/ethernet/xlnx_gem.h>
/ {
model = "QEMU Cortex-A9";
compatible = "xlnx,zynq7000s";
interrupt-parent = <&gic>;
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "arm,cortex-a9";
reg = <0>;
};
};
sram0: memory@100000 {
compatible = "mmio-sram";
reg = <0x00100000 DT_SIZE_M(512)>;
};
flash0: flash@0 {
reg = <0x00000000 DT_SIZE_M(256)>;
};
chosen {
zephyr,flash = &flash0;
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,ocm = &ocm_low;
zephyr,uart-pipe = &uart1;
};
};
&uart0 {
status = "okay";
current-speed = <115200>;
clock-frequency = <50000000>;
};
&uart1 {
status = "okay";
current-speed = <115200>;
clock-frequency = <50000000>;
};
&gem0 {
status = "okay";
clock-frequency = <1000000000>;
mdc-divider = <XLNX_GEM_MDC_DIVIDER_224>;
local-mac-address = [00 00 00 01 02 03];
};
``` | /content/code_sandbox/boards/qemu/cortex_a9/qemu_cortex_a9.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 380 |
```unknown
#
# Kconfig - Cortex-A9 QEMU Emulation
#
#
config BOARD_QEMU_CORTEX_A9
select QEMU_TARGET
``` | /content/code_sandbox/boards/qemu/cortex_a9/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 30 |
```unknown
#
# Kconfig - Cortex-A9 (Zynq-7000) QEMU Emulation
#
#
if BOARD_QEMU_CORTEX_A9
config BUILD_OUTPUT_BIN
default n
config SYS_CLOCK_HW_CYCLES_PER_SEC
int
default 111111111
config SYS_CLOCK_TICKS_PER_SEC
default 1000
if LOG_PROCESS_THREAD
config LOG_PROCESS_THREAD_STACK_SIZE
default 8192
endif # LOG_PROCESS_THREAD
if NETWORKING
config NET_L2_ETHERNET
default y
config NET_TX_STACK_SIZE
default 8192
config NET_RX_STACK_SIZE
default 8192
if NET_TCP
config NET_TCP_WORKQ_STACK_SIZE
default 8192
endif # NET_TCP
if NET_MGMT_EVENT
config NET_MGMT_EVENT_STACK_SIZE
default 8192
endif # NET_MGMT_EVENT
config TEST_RANDOM_GENERATOR
default y
endif # NETWORKING
if QEMU_ICOUNT
config QEMU_ICOUNT_SHIFT
default 3
config QEMU_ICOUNT_SLEEP
default y
endif # QEMU_ICOUNT
config SHELL_STACK_SIZE
default 8192 if SHELL
endif # BOARD_QEMU_CORTEX_A9
``` | /content/code_sandbox/boards/qemu/cortex_a9/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 252 |
```unknown
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=10000000
CONFIG_STACK_SENTINEL=y
CONFIG_GEN_ISR_TABLES=y
CONFIG_GEN_IRQ_VECTOR_TABLE=n
CONFIG_SIMULATOR_XTENSA=y
CONFIG_QEMU_ICOUNT_SHIFT=6
``` | /content/code_sandbox/boards/qemu/xtensa/qemu_xtensa_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```yaml
#
#
#
identifier: qemu_cortex_a9
name: QEMU Emulation for Cortex-A9
type: qemu
simulation: qemu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- net
- netif:eth
ram: 524288
flash: 262144
testing:
default: true
ignore_tags:
- bluetooth
- gpio
vendor: xlnx
``` | /content/code_sandbox/boards/qemu/cortex_a9/qemu_cortex_a9.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 106 |
```unknown
# XTENSA board configuration
config BOARD_QEMU_XTENSA
select SOC_XTENSA_DC233C
``` | /content/code_sandbox/boards/qemu/xtensa/Kconfig.qemu_xtensa | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 27 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
if(CONFIG_BOARD_QEMU_XTENSA)
set(QEMU_CPU_TYPE_${ARCH} dc233c)
set(QEMU_FLAGS_${ARCH}
-machine sim -semihosting -nographic -cpu dc233c
)
endif()
# TODO: Support debug
# board_set_debugger_ifnset(qemu)
# debugserver: QEMU_EXTRA_FLAGS += -s -S
# debugserver: qemu
``` | /content/code_sandbox/boards/qemu/xtensa/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```unknown
/*
*
*/
/dts-v1/;
#include "dc233c.dtsi"
/ {
model = "qemu_xtensa";
compatible = "cdns,xtensa-dc233c";
chosen {
zephyr,sram = &sram0;
};
};
&cpu0 {
clock-frequency = <10000000>;
};
``` | /content/code_sandbox/boards/qemu/xtensa/qemu_xtensa.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 74 |
```unknown
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=10000000
CONFIG_STACK_SENTINEL=y
CONFIG_GEN_ISR_TABLES=y
CONFIG_GEN_IRQ_VECTOR_TABLE=n
CONFIG_SIMULATOR_XTENSA=y
CONFIG_QEMU_ICOUNT_SHIFT=6
``` | /content/code_sandbox/boards/qemu/xtensa/qemu_xtensa_dc233c_mmu_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 67 |
```yaml
identifier: qemu_xtensa/dc233c/mmu
name: QEMU Emulation for Xtensa with MMU
type: qemu
simulation: qemu
arch: xtensa
toolchain:
- zephyr
- xtools
testing:
default: true
ignore_tags:
- net
- bluetooth
``` | /content/code_sandbox/boards/qemu/xtensa/qemu_xtensa_dc233c_mmu.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 71 |
```unknown
/*
*
*/
/dts-v1/;
#include "dc233c.dtsi"
/ {
model = "qemu_xtensa_mmu";
compatible = "cdns,xtensa-dc233c";
chosen {
zephyr,sram = &sram0;
};
};
&cpu0 {
clock-frequency = <10000000>;
};
``` | /content/code_sandbox/boards/qemu/xtensa/qemu_xtensa_dc233c_mmu.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 76 |
```yaml
board:
name: qemu_xtensa
vendor: cdns
socs:
- name: dc233c
variants:
- name: mmu
``` | /content/code_sandbox/boards/qemu/xtensa/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```unknown
if BOARD_QEMU_XTENSA
config BUILD_OUTPUT_BIN
default n
config IPM_CONSOLE_STACK_SIZE
default 2048 if IPM_CONSOLE_RECEIVER
endif # BOARD_QEMU_XTENSA
``` | /content/code_sandbox/boards/qemu/xtensa/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 47 |
```unknown
# XTENSA board configuration
config BOARD_QEMU_XTENSA
select QEMU_TARGET
select ARCH_SUPPORTS_COREDUMP
select XTENSA_MMU if BOARD_QEMU_XTENSA_DC233C_MMU
``` | /content/code_sandbox/boards/qemu/xtensa/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 50 |
```yaml
identifier: qemu_xtensa
name: QEMU Emulation for Xtensa
type: qemu
simulation: qemu
arch: xtensa
toolchain:
- zephyr
- xtools
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: cdns
``` | /content/code_sandbox/boards/qemu/xtensa/qemu_xtensa.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 68 |
```unknown
config BOARD_QEMU_KVM_ARM64
select SOC_QEMU_VIRT_ARM64
``` | /content/code_sandbox/boards/qemu/kvm_arm64/Kconfig.qemu_kvm_arm64 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_ARCH aarch64)
set(QEMU_MACH virt,gic-version=3,accel=kvm)
if(NOT CONFIG_ARMV8_A_NS)
set(QEMU_MACH ${QEMU_MACH},secure=on)
endif()
set(QEMU_FLAGS_${ARCH}
-cpu host
-nographic
-machine ${QEMU_MACH}
)
if(CONFIG_XIP)
# This should be equivalent to
# ... -drive if=pflash,file=build/zephyr/zephyr.bin,format=raw
# without having to pad the binary file to the FLASH size
set(QEMU_KERNEL_OPTION
-bios ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin
)
endif()
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/kvm_arm64/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 178 |
```restructuredtext
.. _qemu_xtensa:
Xtensa Emulation (QEMU)
#######################
Overview
********
The QEMU board configuration is used to emulate the Xtensa architecture. This board
configuration provides support for the Xtensa simulation environment.
Programming and Debugging
*************************
Use this configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment, for example, with the :zephyr:code-sample:`synchronization` sample:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_xtensa
:goals: run
This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:
.. code-block:: console
***** BOOTING ZEPHYR OS v1.8.99 - BUILD: Jun 27 2017 13:09:26 *****
threadA: Hello World from xtensa!
threadB: Hello World from xtensa!
threadA: Hello World from xtensa!
threadB: Hello World from xtensa!
threadA: Hello World from xtensa!
threadB: Hello World from xtensa!
threadA: Hello World from xtensa!
threadB: Hello World from xtensa!
threadA: Hello World from xtensa!
threadB: Hello World from xtensa!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
``` | /content/code_sandbox/boards/qemu/xtensa/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 335 |
```unknown
CONFIG_ARM_ARCH_TIMER=y
CONFIG_TIMER_READS_ITS_FREQUENCY_AT_RUNTIME=y
CONFIG_QEMU_ICOUNT=n
CONFIG_ARMV8_A_NS=y
# Cache management
CONFIG_CACHE_MANAGEMENT=y
# Enable UART driver
CONFIG_SERIAL=y
# Enable console
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
# Enable serial port
CONFIG_UART_INTERRUPT_DRIVEN=y
``` | /content/code_sandbox/boards/qemu/kvm_arm64/qemu_kvm_arm64_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```yaml
board:
name: qemu_kvm_arm64
vendor: arm
socs:
- name: qemu_virt_arm64
``` | /content/code_sandbox/boards/qemu/kvm_arm64/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 31 |
```unknown
/*
*
*
*/
/dts-v1/;
#include <arm64/qemu/qemu-virt-arm64.dtsi>
/ {
model = "QEMU AArch64 KVM";
compatible = "qemu,virt-arm64-kvm";
psci {
compatible = "arm,psci-0.2";
method = "hvc";
};
chosen {
zephyr,sram = &sram0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,flash = &flash0;
zephyr,pcie-controller = &pcie;
};
soc {
sram0: memory@40000000 {
compatible = "mmio-sram";
reg = <0x0 0x40000000 0x0 DT_SIZE_M(128)>;
};
};
};
&uart0 {
status = "okay";
current-speed = <115200>;
};
``` | /content/code_sandbox/boards/qemu/kvm_arm64/qemu_kvm_arm64.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 214 |
```unknown
if BOARD_QEMU_KVM_ARM64
config BUILD_OUTPUT_BIN
default y
endif # BOARD_QEMU_KVM_ARM64
``` | /content/code_sandbox/boards/qemu/kvm_arm64/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 29 |
```yaml
identifier: qemu_kvm_arm64
name: QEMU Virt Emulation for AArch64 KVM
type: qemu
arch: arm64
toolchain:
- zephyr
- cross-compile
ram: 128
testing:
ignore_tags:
- net
- bluetooth
vendor: qemu
``` | /content/code_sandbox/boards/qemu/kvm_arm64/qemu_kvm_arm64.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 70 |
```unknown
config BOARD_QEMU_KVM_ARM64
select ARM64
select QEMU_TARGET
``` | /content/code_sandbox/boards/qemu/kvm_arm64/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_CPU_TYPE_${ARCH} cortex-m3)
set(QEMU_FLAGS_${ARCH}
-cpu ${QEMU_CPU_TYPE_${ARCH}}
-machine lm3s6965evb
-nographic
-vga none
)
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/cortex_m3/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```restructuredtext
.. _qemu_kvm_arm64:
ARM AArch64 Virt KVM Emulation (QEMU)
#####################################
Overview
********
This board configuration will use QEMU to run a KVM guest on an AArch64
host.
This configuration provides support for an AArch64 Cortex-A CPU and these
devices:
* GICv3 interrupt controller
* ARM architected timer
* PL011 UART controller
Hardware
********
Supported Features
==================
The following hardware features are supported:
+--------------+------------+----------------------+
| Interface | Controller | Driver/Component |
+==============+============+======================+
| GIC | on-chip | interrupt controller |
+--------------+------------+----------------------+
| PL011 UART | on-chip | serial port |
+--------------+------------+----------------------+
| ARM TIMER | on-chip | system clock |
+--------------+------------+----------------------+
The kernel currently does not support other hardware features on this platform.
Devices
========
System Clock
------------
This board configuration uses the host system clock frequency.
Serial Port
-----------
This board configuration uses a single serial communication channel with the
CPU's UART0.
Programming and Debugging
*************************
Refer to the qemu_cortex_a53 board instructions for this part.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
``` | /content/code_sandbox/boards/qemu/kvm_arm64/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 289 |
```unknown
/dts-v1/;
#include <ti/lm3s6965.dtsi>
/ {
model = "QEMU Cortex-M3";
compatible = "ti,lm3s6965evb-qemu", "ti,lm3s6965";
aliases {
uart-0 = &uart0;
uart-1 = &uart1;
uart-2 = &uart2;
};
chosen {
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,bt-hci = &bt_hci_uart;
zephyr,uart-pipe = &uart1;
zephyr,bt-mon-uart = &uart2;
};
};
&uart0 {
status = "okay";
current-speed = <115200>;
};
&uart1 {
status = "okay";
current-speed = <115200>;
};
&uart2 {
status = "okay";
current-speed = <115200>;
bt_hci_uart: bt_hci_uart {
compatible = "zephyr,bt-hci-uart";
status = "okay";
};
};
ð {
status = "okay";
};
&gpio0 {
status = "okay";
};
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
&gpio3 {
status = "okay";
};
&gpio4 {
status = "okay";
};
&gpio5 {
status = "okay";
};
&gpio6 {
status = "okay";
};
``` | /content/code_sandbox/boards/qemu/cortex_m3/qemu_cortex_m3.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 350 |
```unknown
config BOARD_QEMU_CORTEX_M3
select SOC_TI_LM3S6965
help
Cortex-M3 Emulation (QEMU)
``` | /content/code_sandbox/boards/qemu/cortex_m3/Kconfig.qemu_cortex_m3 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 33 |
```unknown
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=12000000
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_SCHED_MULTIQ=y
CONFIG_QEMU_ICOUNT_SHIFT=6
``` | /content/code_sandbox/boards/qemu/cortex_m3/qemu_cortex_m3_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 44 |
```yaml
identifier: qemu_cortex_m3
name: QEMU Emulation for Cortex-M3
type: qemu
simulation: qemu
arch: arm
toolchain:
- zephyr
- gnuarmemb
- xtools
supported:
- netif:serial-net
- gpio
ram: 64
flash: 256
testing:
ignore_tags:
- net
vendor: ti
``` | /content/code_sandbox/boards/qemu/cortex_m3/qemu_cortex_m3.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```yaml
board:
name: qemu_cortex_m3
vendor: qemu
socs:
- name: ti_lm3s6965
``` | /content/code_sandbox/boards/qemu/cortex_m3/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 32 |
```unknown
config BOARD_QEMU_CORTEX_M3
select QEMU_TARGET
``` | /content/code_sandbox/boards/qemu/cortex_m3/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```unknown
if BOARD_QEMU_CORTEX_M3
config BUILD_OUTPUT_BIN
default n
# DWT is not properly emulated in QEMU
choice NULL_POINTER_EXCEPTION_DETECTION
bool
default NULL_POINTER_EXCEPTION_DETECTION_NONE
endchoice
endif # BOARD_QEMU_CORTEX_M3
``` | /content/code_sandbox/boards/qemu/cortex_m3/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 61 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_binary_suffix riscv32)
set(QEMU_CPU_TYPE_${ARCH} riscv32)
set(QEMU_FLAGS_${ARCH}
-nographic
-machine sifive_e
)
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/riscv32_xip/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```unknown
/*
*
*/
/dts-v1/;
#include <sifive/riscv32-fe310.dtsi>
#include "qemu_riscv32_xip-pinctrl.dtsi"
/ {
model = "SiFive HiFive 1";
compatible = "sifive,hifive1";
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &dtim;
zephyr,flash = &flash0;
};
};
&gpio0 {
status = "okay";
};
&uart0 {
status = "okay";
current-speed = <115200>;
pinctrl-0 = <&uart0_rx_default &uart0_tx_default>;
pinctrl-names = "default";
};
&spi0 {
status = "okay";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10014000 0x1000 0x20400000 0xc00000>;
flash0: flash@0 {
compatible = "issi,is25lp128", "jedec,spi-nor";
size = <134217728>;
jedec-id = [96 60 18];
reg = <0>;
// Dummy entry
spi-max-frequency = <0>;
};
};
``` | /content/code_sandbox/boards/qemu/riscv32_xip/qemu_riscv32_xip.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 295 |
```yaml
identifier: qemu_riscv32_xip
name: QEMU Emulation for RISC-V 32-bit in XIP mode
type: qemu
simulation: qemu
arch: riscv
ram: 16
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- xip
``` | /content/code_sandbox/boards/qemu/riscv32_xip/qemu_riscv32_xip.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```unknown
/*
*
*/
#include <zephyr/dt-bindings/pinctrl/sifive-pinctrl.h>
&pinctrl {
/* UART0 */
uart0_rx_default: uart0_rx_default {
pinmux = <16 SIFIVE_PINMUX_IOF0>;
};
uart0_tx_default: uart0_tx_default {
pinmux = <17 SIFIVE_PINMUX_IOF0>;
};
};
``` | /content/code_sandbox/boards/qemu/riscv32_xip/qemu_riscv32_xip-pinctrl.dtsi | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
config BOARD_QEMU_RISCV32_XIP
select SOC_SIFIVE_FREEDOM_FE310
``` | /content/code_sandbox/boards/qemu/riscv32_xip/Kconfig.qemu_riscv32_xip | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 24 |
```restructuredtext
.. _qemu_cortex_m3:
ARM Cortex-M3 Emulation (QEMU)
##############################
Overview
********
This board configuration will use QEMU to emulate the TI LM3S6965 platform.
This configuration provides support for an ARM Cortex-M3 CPU and these devices:
* Nested Vectored Interrupt Controller
* System Tick System Clock
* Stellaris UART
.. note::
This board configuration makes no claims about its suitability for use
with an actual ti_lm3s6965 hardware system, or any other hardware system.
Hardware
********
Supported Features
==================
The following hardware features are supported:
+--------------+------------+----------------------+
| Interface | Controller | Driver/Component |
+==============+============+======================+
| NVIC | on-chip | nested vectored |
| | | interrupt controller |
+--------------+------------+----------------------+
| Stellaris | on-chip | serial port |
| UART | | |
+--------------+------------+----------------------+
| SYSTICK | on-chip | system clock |
+--------------+------------+----------------------+
The kernel currently does not support other hardware features on this platform.
Devices
========
System Clock
------------
This board configuration uses a system clock frequency of 12 MHz.
Serial Port
-----------
This board configuration uses a single serial communication channel with the
CPU's UART0.
If SLIP networking is enabled (see below), an additional serial port will be
used for it.
Known Problems or Limitations
==============================
The following platform features are unsupported:
* Memory protection through optional MPU. However, using a XIP kernel
effectively provides TEXT/RODATA write protection in ROM.
* SRAM at addresses 0x1FFF0000-0x1FFFFFFF
* Writing to the hardware's flash memory
Programming and Debugging
*************************
Use this configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment, for example, with the :zephyr:code-sample:`synchronization` sample:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_cortex_m3
:goals: run
This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:
.. code-block:: console
***** BOOTING ZEPHYR OS v1.8.99 - BUILD: Jun 27 2017 13:09:26 *****
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
threadA: Hello World from arm!
threadB: Hello World from arm!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
Networking
==========
The board supports SLIP networking over an emulated serial port
(``CONFIG_NET_SLIP_TAP=y``). The detailed setup is described in
:ref:`networking_with_qemu`.
It is also possible to use the QEMU built-in Ethernet adapter to connect
to the host system. This is faster than using SLIP and is also the preferred
way. See :ref:`networking_with_eth_qemu` for details.
References
**********
1. The Definitive Guide to the ARM Cortex-M3, Second Edition by Joseph Yiu (ISBN
978-0-12-382090-7)
2. ARMv7-M Architecture Technical Reference Manual (ARM DDI 0403D ID021310)
3. Procedure Call Standard for the ARM Architecture (ARM IHI 0042E, current
through ABI release 2.09, 2012/11/30)
4. Cortex-M3 Revision r2p1 Technical Reference Manual (ARM DDI 0337I ID072410)
5. Cortex-M3 Devices Generic User Guide (ARM DUI 0052A ID121610)
``` | /content/code_sandbox/boards/qemu/cortex_m3/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 901 |
```yaml
board:
name: qemu_riscv32_xip
vendor: qemu
socs:
- name: fe310
``` | /content/code_sandbox/boards/qemu/riscv32_xip/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 30 |
```unknown
config BOARD_QEMU_RISCV32_XIP
select QEMU_TARGET
``` | /content/code_sandbox/boards/qemu/riscv32_xip/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 18 |
```unknown
if BOARD_QEMU_RISCV32_XIP
# Use thread local storage by default so that this feature gets more CI coverage.
config THREAD_LOCAL_STORAGE
default y
config BUILD_OUTPUT_BIN
default n
config HAS_COVERAGE_SUPPORT
default y
endif # BOARD_QEMU_RISCV32_XIP
``` | /content/code_sandbox/boards/qemu/riscv32_xip/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 66 |
```unknown
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_SIFIVE_PORT_0=y
CONFIG_UART_CONSOLE=y
CONFIG_PINCTRL=y
CONFIG_GPIO=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=10000000
CONFIG_QEMU_ICOUNT_SHIFT=6
``` | /content/code_sandbox/boards/qemu/riscv32_xip/qemu_riscv32_xip_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 57 |
```yaml
identifier: qemu_malta/qemu_malta/be
name: QEMU emulation for MIPS (big endian)
type: qemu
simulation: qemu
arch: mips
toolchain:
- zephyr
- xtools
ram: 1024
flash: 512
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: qemu
``` | /content/code_sandbox/boards/qemu/malta/qemu_malta_qemu_malta_be.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 84 |
```unknown
CONFIG_MIPS_CP0_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT=y
CONFIG_QEMU_ICOUNT_SHIFT=3
``` | /content/code_sandbox/boards/qemu/malta/qemu_malta_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_CPU_TYPE_${ARCH} 24Kc)
set(QEMU_FLAGS_${ARCH}
-machine malta
-nographic
-serial null
-serial null
)
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/malta/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```restructuredtext
.. _qemu_riscv32_xip:
RISCV32 XIP Emulation (QEMU)
############################
Overview
********
The RISCV32 XIP QEMU board configuration is used to emulate the RISCV32 architecture.
Programming and Debugging
*************************
Applications for the ``qemu_riscv32_xip`` board configuration can be built and run in
the usual way for emulated boards (see :ref:`build_an_application` and
:ref:`application_run` for more details).
Flashing
========
While this board is emulated and you can't "flash" it, you can use this
configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment. For example, with the :zephyr:code-sample:`synchronization` sample:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_riscv32_xip
:goals: run
This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:
.. code-block:: console
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
thread_b: Hello World from cpu 0 on qemu_riscv32_xip!
thread_a: Hello World from cpu 0 on qemu_riscv32_xip!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
``` | /content/code_sandbox/boards/qemu/riscv32_xip/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 528 |
```yaml
identifier: qemu_malta
name: QEMU emulation for MIPS (little endian)
type: qemu
simulation: qemu
arch: mips
toolchain:
- zephyr
- xtools
ram: 1024
flash: 512
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: qemu
``` | /content/code_sandbox/boards/qemu/malta/qemu_malta.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 79 |
```unknown
#
#
#
config BOARD_QEMU_MALTA
select SOC_QEMU_MALTA
``` | /content/code_sandbox/boards/qemu/malta/Kconfig.qemu_malta | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 20 |
```unknown
/*
*
*/
/dts-v1/;
#include "skeleton.dtsi"
/ {
model = "Qemu MIPS Malta";
compatible = "qemu,malta";
chosen {
zephyr,sram = &sram0;
zephyr,console = &uart2;
zephyr,shell-uart = &uart2;
};
cpus {
#address-cells = <1>;
#size-cells = <0>;
cpu@0 {
device_type = "cpu";
compatible = "mti,mips24Kc";
reg = <0>;
cpu_intc: interrupt-controller {
#interrupt-cells = <1>;
compatible = "mti,cpu-intc";
interrupt-controller;
};
};
};
sram0: memory@80200000 {
device_type = "memory";
compatible = "mmio-sram";
reg = <0x80200000 0x100000>;
};
uart2: serial@bf000900 {
compatible = "ns16550";
reg = <0xbf000900 0x40>;
reg-shift = <3>;
interrupt-parent = <&cpu_intc>;
interrupts = <4>;
/* no matter for emulated port */
clock-frequency = <1843200>;
current-speed = <115200>;
status = "okay";
};
};
``` | /content/code_sandbox/boards/qemu/malta/qemu_malta.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 313 |
```unknown
CONFIG_MIPS_CP0_TIMER=y
CONFIG_CONSOLE=y
CONFIG_UART_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_QEMU_ICOUNT=y
CONFIG_QEMU_ICOUNT_SHIFT=3
``` | /content/code_sandbox/boards/qemu/malta/qemu_malta_qemu_malta_be_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 38 |
```yaml
board:
name: qemu_malta
vendor: qemu
socs:
- name: qemu_malta
variants:
- name: 'be'
``` | /content/code_sandbox/boards/qemu/malta/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 37 |
```unknown
/*
*
*/
#include "qemu_malta.dts"
``` | /content/code_sandbox/boards/qemu/malta/qemu_malta_qemu_malta_be.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```unknown
#
#
#
if BOARD_QEMU_MALTA
config BUILD_OUTPUT_BIN
default n
endif # BOARD_QEMU_MALTA
``` | /content/code_sandbox/boards/qemu/malta/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 29 |
```unknown
#
#
#
config BOARD_QEMU_MALTA
select QEMU_TARGET
select BIG_ENDIAN if BOARD_QEMU_MALTA_QEMU_MALTA_BE
``` | /content/code_sandbox/boards/qemu/malta/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 34 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
set(QEMU_binary_suffix riscv32)
set(QEMU_CPU_TYPE_${ARCH} riscv32)
set(QEMU_FLAGS_${ARCH}
-nographic
-machine virt
-bios none
-m 256
)
board_set_debugger_ifnset(qemu)
``` | /content/code_sandbox/boards/qemu/riscv32/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```unknown
/dts-v1/;
#include <qemu/virt-riscv32.dtsi>
/ {
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &ram0;
};
};
&uart0 {
status = "okay";
};
``` | /content/code_sandbox/boards/qemu/riscv32/qemu_riscv32_qemu_virt_riscv32_smp.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
config BOARD_QEMU_RISCV32
select SOC_QEMU_VIRT_RISCV32
``` | /content/code_sandbox/boards/qemu/riscv32/Kconfig.qemu_riscv32 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 22 |
```unknown
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_STACK_SENTINEL=y
CONFIG_XIP=n
CONFIG_RISCV_PMP=y
``` | /content/code_sandbox/boards/qemu/riscv32/qemu_riscv32_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 35 |
```yaml
identifier: qemu_riscv32/qemu_virt_riscv32/smp
name: QEMU Emulation for RISC-V 32-bit SMP
type: qemu
simulation: qemu
arch: riscv
toolchain:
- zephyr
- xtools
supported:
- netif
- smp
testing:
default: true
ignore_tags:
- net
- bluetooth
``` | /content/code_sandbox/boards/qemu/riscv32/qemu_riscv32_qemu_virt_riscv32_smp.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```restructuredtext
.. _qemu_malta:
MIPS Malta Emulation (QEMU)
###########################
Overview
********
This board configuration will use QEMU to emulate the MIPS Malta platform.
This configuration provides support for an MIPS 4Kc/24Kc CPU cores and these devices:
* CP0 Interrupt Controller
* CP0 Core Timer
* NS16550 UART
.. note::
This board configuration makes no claims about its suitability for use
with an actual MIPS Malta hardware system, or any other hardware system.
Hardware
********
Supported Features
==================
The following hardware features are supported:
+----------------+------------+----------------------+
| Interface | Controller | Driver/Component |
+================+============+======================+
| CP0 IntC | on-chip | interrupt controller |
+----------------+------------+----------------------+
| CP0 Core Timer | on-chip | system clock |
+----------------+------------+----------------------+
| NS16550 | FPGA | serial port |
| UART | | |
+----------------+------------+----------------------+
The kernel currently does not support other hardware features on this platform.
Devices
========
System Clock
------------
Qemu CP0 timer uses a clock frequency of 200 MHz,
see target/mips/cp0_timer.c in Qemu source tree for details.
Serial Port
-----------
This board configuration uses a single serial communication channel
with the FPGA UART2.
Programming and Debugging
*************************
Use this configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment, for example, with the :zephyr:code-sample:`synchronization` sample:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_malta
:goals: run
This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:
.. code-block:: console
*** Booting Zephyr OS build v2.7.99-1627-g9bea7790d620 ***
thread_a: Hello World from cpu 0 on qemu_malta!
thread_b: Hello World from cpu 0 on qemu_malta!
thread_a: Hello World from cpu 0 on qemu_malta!
thread_b: Hello World from cpu 0 on qemu_malta!
thread_a: Hello World from cpu 0 on qemu_malta!
thread_b: Hello World from cpu 0 on qemu_malta!
thread_a: Hello World from cpu 0 on qemu_malta!
thread_b: Hello World from cpu 0 on qemu_malta!
thread_a: Hello World from cpu 0 on qemu_malta!
thread_b: Hello World from cpu 0 on qemu_malta!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Big-Endian
==========
Use this configuration to run :zephyr:code-sample:`synchronization` sample in big-endian mode:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_malta/qemu_malta/be
:goals: run
References
**********
path_to_url
path_to_url
``` | /content/code_sandbox/boards/qemu/malta/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 697 |
```unknown
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_STACK_SENTINEL=y
CONFIG_XIP=n
CONFIG_RISCV_PMP=y
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=2
CONFIG_IDLE_STACK_SIZE=1024
CONFIG_QEMU_ICOUNT=n
``` | /content/code_sandbox/boards/qemu/riscv32/qemu_riscv32_qemu_virt_riscv32_smp_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 64 |
```yaml
board:
name: qemu_riscv32
vendor: qemu
socs:
- name: qemu_virt_riscv32
variants:
- name: smp
``` | /content/code_sandbox/boards/qemu/riscv32/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 43 |
```yaml
identifier: qemu_riscv32
name: QEMU Emulation for RISC-V 32-bit
type: qemu
simulation: qemu
arch: riscv
toolchain:
- zephyr
- xtools
supported:
- netif
testing:
default: true
ignore_tags:
- net
- bluetooth
``` | /content/code_sandbox/boards/qemu/riscv32/qemu_riscv32.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 77 |
```unknown
/dts-v1/;
#include <qemu/virt-riscv32.dtsi>
/ {
chosen {
zephyr,console = &uart0;
zephyr,shell-uart = &uart0;
zephyr,sram = &ram0;
};
};
&uart0 {
status = "okay";
};
``` | /content/code_sandbox/boards/qemu/riscv32/qemu_riscv32.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 75 |
```unknown
if BOARD_QEMU_RISCV32
# Use thread local storage by default so that this feature gets more CI coverage.
config THREAD_LOCAL_STORAGE
default y
config BUILD_OUTPUT_BIN
default n
config HAS_COVERAGE_SUPPORT
default y
config QEMU_ICOUNT_SHIFT
default 6 if QEMU_ICOUNT
endif # BOARD_QEMU_RISCV32
``` | /content/code_sandbox/boards/qemu/riscv32/Kconfig.defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 78 |
```unknown
config BOARD_QEMU_RISCV32
select QEMU_TARGET
``` | /content/code_sandbox/boards/qemu/riscv32/Kconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 16 |
```yaml
identifier: qemu_x86/atom/virt
name: QEMU Emulation for X86 (Run in Virtual Address Space)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- kernel
- userspace
ignore_tags:
- benchmark
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_virt.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```unknown
/*
*
*/
#include "qemu_x86.dts"
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_virt.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```yaml
identifier: qemu_x86/atom/nopae
name: QEMU Emulation for X86 (32-bit page tables)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- kernel
- userspace
ignore_tags:
- benchmark
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nopae.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```restructuredtext
.. _qemu_riscv32:
RISCV32 Emulation (QEMU)
########################
Overview
********
The RISCV32 QEMU board configuration is used to emulate the RISCV32 architecture.
Programming and Debugging
*************************
Applications for the ``qemu_riscv32`` board configuration can be built and run in
the usual way for emulated boards (see :ref:`build_an_application` and
:ref:`application_run` for more details).
Flashing
========
While this board is emulated and you can't "flash" it, you can use this
configuration to run basic Zephyr applications and kernel tests in the QEMU
emulated environment. For example, with the :zephyr:code-sample:`synchronization` sample:
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_riscv32
:goals: run
This will build an image with the synchronization sample app, boot it using
QEMU, and display the following console output:
.. code-block:: console
***** BOOTING ZEPHYR OS v1.8.99 - BUILD: Jun 27 2017 13:09:26 *****
threadA: Hello World from riscv32!
threadB: Hello World from riscv32!
threadA: Hello World from riscv32!
threadB: Hello World from riscv32!
threadA: Hello World from riscv32!
threadB: Hello World from riscv32!
threadA: Hello World from riscv32!
threadB: Hello World from riscv32!
threadA: Hello World from riscv32!
threadB: Hello World from riscv32!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
``` | /content/code_sandbox/boards/qemu/riscv32/doc/index.rst | restructuredtext | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 423 |
```unknown
/*
*/
#include "qemu_x86.dts"
/ {
cpus {
cpu@1 {
device_type = "cpu";
compatible = "intel,x86";
d-cache-line-size = <64>;
reg = <1>;
};
};
};
&pcie0 {
smbus0: smbus0 {
compatible = "intel,pch-smbus";
#address-cells = <1>;
#size-cells = <0>;
vendor-id = <0x8086>;
device-id = <0x2930>;
interrupts = <PCIE_IRQ_DETECT IRQ_TYPE_LOWEST_LEVEL_LOW 3>;
interrupt-parent = <&intc>;
status = "okay";
};
};
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_64.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 164 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_DEBUG_INFO=y
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=2
CONFIG_X86_MMU=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_QEMU_ICOUNT=n
CONFIG_X86_KPTI=n
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_64_atom_nokpti_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 100 |
```unknown
#include "qemu_x86.dts"
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nommu.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 11 |
```yaml
identifier: qemu_x86
name: QEMU Emulation for X86
type: qemu
simulation: qemu
arch: x86
ram: 3000
toolchain:
- zephyr
- xtools
- llvm
supported:
- pci
- nvs
- netif:serial-net
- eeprom
- can
- rtc
testing:
default: true
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 97 |
```unknown
#
config BOARD_QEMU_X86
select SOC_ATOM
``` | /content/code_sandbox/boards/qemu/x86/Kconfig.qemu_x86 | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```cmake
set(SUPPORTED_EMU_PLATFORMS qemu)
if(NOT CONFIG_REBOOT)
set(REBOOT_FLAG -no-reboot)
endif()
if(CONFIG_X86_64)
set(QEMU_binary_suffix x86_64)
set(QEMU_CPU_TYPE_${ARCH} qemu64,+x2apic)
if("${CONFIG_MP_MAX_NUM_CPUS}" STREQUAL "1")
# icount works with 1 CPU so we can enable it here.
# FIXME: once this works across configs, remove this line and set
# CONFIG_QEMU_ICOUNT_SHIFT in defconfig instead.
list(APPEND QEMU_EXTRA_FLAGS -icount shift=5,align=off,sleep=off -rtc clock=vm)
endif()
else()
set(QEMU_CPU_TYPE_${ARCH} qemu32,+nx,+pae)
endif()
if(CONFIG_XIP)
# Extra 4MB to emulate flash area
math(EXPR QEMU_MEMORY_SIZE_MB "${CONFIG_SRAM_SIZE} / 1024 + 4")
elseif(CONFIG_BOARD_QEMU_X86_TINY AND CONFIG_DEMAND_PAGING
AND NOT CONFIG_LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT)
# Flash is at 4MB-8MB, so need this to be large enough
math(EXPR QEMU_MEMORY_SIZE_MB "8")
else()
math(EXPR QEMU_MEMORY_SIZE_MB "${CONFIG_SRAM_SIZE} / 1024")
endif()
set(QEMU_CPU_FLAGS "")
if(CONFIG_X86_MMX)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "mmx")
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "mmxext")
endif()
if(CONFIG_X86_SSE)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse")
endif()
if(CONFIG_X86_SSE2)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse2")
endif()
if(CONFIG_X86_SSE3)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "pni")
endif()
if(CONFIG_X86_SSSE3)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "ssse3")
endif()
if(CONFIG_X86_SSE41)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse4.1")
endif()
if(CONFIG_X86_SSE42)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse4.2")
endif()
if(CONFIG_X86_SSE4A)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "sse4a")
endif()
if(NOT CONFIG_X86_64 AND CONFIG_CACHE_MANAGEMENT)
string(JOIN "," QEMU_CPU_FLAGS "${QEMU_CPU_FLAGS}" "clflush")
endif()
set(QEMU_FLAGS_${ARCH}
-m ${QEMU_MEMORY_SIZE_MB}
-cpu ${QEMU_CPU_TYPE_${ARCH}}${QEMU_CPU_FLAGS}
-machine q35
-device isa-debug-exit,iobase=0xf4,iosize=0x04
${REBOOT_FLAG}
-nographic
)
if(NOT CONFIG_ACPI)
list(APPEND QEMU_FLAGS_${ARCH} -machine acpi=off)
endif()
# TODO: Support debug
# board_set_debugger_ifnset(qemu)
# debugserver: QEMU_EXTRA_FLAGS += -s -S
# debugserver: qemu
if(CONFIG_BOARD_QEMU_X86_TINY AND CONFIG_DEMAND_PAGING
AND NOT CONFIG_LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT)
# This is to map the flash so it is accessible.
math(EXPR QEMU_FLASH_SIZE_KB "${CONFIG_FLASH_SIZE} * 1024")
set(X86_EXTRA_GEN_MMU_ARGUMENTS
--map ${CONFIG_FLASH_BASE_ADDRESS},${QEMU_FLASH_SIZE_KB},W)
endif()
``` | /content/code_sandbox/boards/qemu/x86/board.cmake | cmake | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 836 |
```unknown
/*
*
*/
#include "qemu_x86.dts"
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nokpti.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 13 |
```yaml
identifier: qemu_x86_tiny
name: QEMU Emulation for X86 (small VM)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- kernel
- userspace
ignore_tags:
- benchmark
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_tiny.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 81 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=n
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_XIP=y
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_xip_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 91 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_X86_KPTI=n
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nokpti_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 94 |
```unknown
#
config BOARD_QEMU_X86_TINY
select SOC_ATOM
``` | /content/code_sandbox/boards/qemu/x86/Kconfig.qemu_x86_tiny | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 15 |
```yaml
identifier: qemu_x86/atom/nokpti
name: QEMU Emulation for X86 (KPTI disabled)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- kernel
- userspace
ignore_tags:
- benchmark
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nokpti.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 87 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_X86_PAE=n
CONFIG_X86_COMMON_PAGE_TABLE=y
CONFIG_X86_KPTI=n
CONFIG_KERNEL_VM_SIZE=0x400000
CONFIG_KERNEL_VM_BASE=0x40000000
CONFIG_KERNEL_VM_OFFSET=0x100000
CONFIG_SRAM_OFFSET=0
CONFIG_DEMAND_PAGING=y
CONFIG_BACKING_STORE_QEMU_X86_TINY_FLASH=y
CONFIG_LINKER_USE_BOOT_SECTION=y
CONFIG_LINKER_USE_PINNED_SECTION=y
CONFIG_LINKER_GENERIC_SECTIONS_PRESENT_AT_BOOT=n
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_tiny_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 196 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_X86_PAE=n
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_nopae_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 93 |
```yaml
identifier: qemu_x86_64
name: QEMU Emulation for X86_64
type: qemu
arch: x86
toolchain:
- zephyr
- xtools
simulation: qemu
supported:
- acpi
- can
- smp
- smbus
- rtc
testing:
default: true
ignore_tags:
- net
- bluetooth
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_64.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 96 |
```yaml
identifier: qemu_x86_64/atom/nokpti
name: QEMU Emulation for X86_64 (KPTI disabled)
type: qemu
arch: x86
toolchain:
- zephyr
- xtools
supported:
- smp
simulation: qemu
testing:
default: true
only_tags:
- kernel
- userspace
ignore_tags:
- benchmark
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_64_atom_nokpti.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 98 |
```unknown
/*
*/
#include "qemu_x86.dts"
/ {
cpus {
cpu@1 {
device_type = "cpu";
compatible = "intel,x86";
d-cache-line-size = <64>;
reg = <1>;
};
};
};
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_64_atom_nokpti.dts | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 59 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_DEBUG_INFO=y
CONFIG_SMP=y
CONFIG_MP_MAX_NUM_CPUS=2
CONFIG_X86_MMU=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
CONFIG_QEMU_ICOUNT=n
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_64_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 92 |
```unknown
CONFIG_PIC_DISABLE=y
CONFIG_LOAPIC=y
CONFIG_CONSOLE=y
CONFIG_SERIAL=y
CONFIG_UART_CONSOLE=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000
CONFIG_TEST_RANDOM_GENERATOR=y
CONFIG_X86_MMU=y
CONFIG_DEBUG_INFO=y
CONFIG_SCHED_SCALABLE=y
CONFIG_WAITQ_SCALABLE=y
CONFIG_X86_VERY_EARLY_CONSOLE=y
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_lakemont_defconfig | unknown | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 86 |
```yaml
identifier: qemu_x86/atom/xip
name: QEMU Emulation for X86 (XIP enabled)
type: qemu
arch: x86
simulation: qemu
toolchain:
- zephyr
- xtools
testing:
default: true
only_tags:
- xip
vendor: qemu
``` | /content/code_sandbox/boards/qemu/x86/qemu_x86_atom_xip.yaml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 72 |
```yaml
boards:
- name: qemu_x86
socs:
- name: atom
variants:
- name: 'nokpti'
- name: 'nommu'
- name: 'nopae'
- name: 'virt'
- name: 'xip'
- name: qemu_x86_lakemont
socs:
- name: lakemont
- name: qemu_x86_64
socs:
- name: atom
variants:
- name: 'nokpti'
- name: qemu_x86_tiny
socs:
- name: atom
``` | /content/code_sandbox/boards/qemu/x86/board.yml | yaml | 2016-05-26T17:54:19 | 2024-08-16T18:09:06 | zephyr | zephyrproject-rtos/zephyr | 10,307 | 142 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.