Part 1
요약·해설
지원 CPU 4종, interrupt·timer·UART, MPU와 Virtio Ethernet 제한을 설명합니다.
ARCv2 EM/HS3x · ARCv3 HS5x/HS6x
1 MHz
No MPU · no Virtio Ethernet
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
09DDA7434B4AE7BE92590FD60E1EEAC84010AE530D48E5E52F0578EB42C6FF6D
.. _qemu_arc:
ARCv2 & ARCv3 Emulation (QEMU)
###############################
Overview
********
This board configuration will use QEMU to emulate set of generic
ARCv2 and ARCv3 hardware platforms.
The following features of ARC ISA cores are currently supported:
* CPU:
* ARCv2 EM
* ARCv2 HS3x
* ARCv3 HS5x
* ARCv3 HS6x
* Only little-endian configurations
* Full 32 register set
* ARC core free-running timers/counters Timer0 & Timer1
* ARC core interrupt controller with multiple priority levels
* DW UART
* 5 slots for MMIO Virtio devices
Hardware
********
Supported Features
==================
The following hardware features are supported:
+--------------+------------+----------------------+
| Interface | Controller | Driver/Component |
+==============+============+======================+
| ARCv2 INTC | on-chip | interrupt controller |
+--------------+------------+----------------------+
| DW UART | on-chip | serial port |
+--------------+------------+----------------------+
| ARC TIMER0 | 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
DesignWare UART.
Known Problems or Limitations
==============================
The following platform features are unsupported:
* Memory-protection unit (MPU)
* MMIO Virtio Ethernet
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
(note you may use ``qemu_arc/qemu_em``, ``qemu_arc/qemu_hs``, ``qemu_arc/qemu_hs5x`` or
``qemu_arc/qemu_hs6x`` depending on target CPU):
.. zephyr-app-commands::
:zephyr-app: samples/synchronization
:host-os: unix
:board: qemu_arc/qemu_em
: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 zephyr-v2.2.0-2486-g7dbfcf4bab57 ***
threadA: Hello World from qemu_arc!
threadB: Hello World from qemu_arc!
threadA: Hello World from qemu_arc!
threadB: Hello World from qemu_arc!
Exit QEMU by pressing :kbd:`CTRL+A` :kbd:`x`.
Debugging
=========
Refer to the detailed overview about :ref:`application_debugging`.
References
**********
1.`Programmer’s Reference Manual for ARC HS
<https://www.synopsys.com/dw/doc.php/iip/dwc_arc_hs4xd/latest/doc/ARC_V2_PublicProgrammers_Reference.pdf>`_
Part 3
한국어 전문 번역
개요
이 board 구성은 QEMU로 generic ARCv2 및 ARCv3 hardware platform 집합을 emulation합니다.
현재 지원하는 ARC ISA core 기능:
- CPU: ARCv2 EM, ARCv2 HS3x, ARCv3 HS5x, ARCv3 HS6x
- Little-endian 구성만 지원
- Full 32-register set
- ARC core free-running timer/counter
Timer0과Timer1 - 여러 priority level을 가진 ARC core interrupt controller
- DW UART
- MMIO Virtio device slot 5개
지원 기능
| 인터페이스 | 컨트롤러 | 드라이버/컴포넌트 |
|---|---|---|
ARCv2 INTC | on-chip | interrupt controller |
DW UART | on-chip | serial port |
ARC TIMER0 | on-chip | system clock |
Kernel은 현재 이 platform의 다른 하드웨어 기능을 지원하지 않습니다.
장치
System clock
System clock frequency는 1 MHz입니다.
Serial port
DesignWare UART 하나를 serial communication channel로 사용합니다.
알려진 문제와 제한
- Memory-protection unit(MPU) 미지원
- MMIO Virtio Ethernet 미지원
프로그래밍과 디버깅
이 구성은 QEMU emulated environment에서 기본 Zephyr application과 kernel test를 실행할 때 사용합니다. 다음은 synchronization sample 예입니다.
# Unix host의 Zephyr 저장소 루트에서
west build -b qemu_arc/qemu_em samples/synchronization -t runImage를 build하고 QEMU로 boot하면 다음 console output이 표시됩니다.
*** Booting Zephyr OS build zephyr-v2.2.0-2486-g7dbfcf4bab57 ***
threadA: Hello World from qemu_arc!
threadB: Hello World from qemu_arc!
threadA: Hello World from qemu_arc!
threadB: Hello World from qemu_arc!Ctrl+A를 누른 뒤 x를 눌러 QEMU를 종료합니다.
Debug
일반 Zephyr application debugging 절차를 따릅니다.
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.