boards/renode/riscv32_virtual/doc/index.html · boards/renode/riscv32_virtual/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Renode · RISC-V

Renode RISCV32 Virtual

Proprietary RISC-V hardware configuration을 upstream CI에서 재현하는 Renode virtual platform입니다.

Official pathboards/renode/riscv32_virtual/doc/index.html
Source fileboards/renode/riscv32_virtual/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

본문 기준: Zephyr 3.7.0 LTS3 · 이후 유지보수 패치는 별도입니다.

Part 1

요약·해설

QEMU와의 차이, repl/devicetree 수정, synchronization sample run과 console 출력을 설명합니다.

ISA

RISC-V 32-bit

Model

riscv32_virtual.repl · devicetree

Run

Renode · west build -t run

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 F3AC0BE0153B660B9DFA2251500D74191E2D6BCC1107D121F1EC4373BA050E41
.. _riscv32-virtual:

RISCV32 Virtual
###############

Overview
********

The RISCV32 Virtual board is a virtual platform made with Renode as an alternative to QEMU.
Contrary to QEMU, the peripherals of this platform can be easily configured by editing the
``riscv32_virtual.repl`` script and the devicetree files accordingly, this allows certain hardware
configurations that only exist in proprietary boards/SoCs to be tested in upstream CI.

Programming and debugging
*************************

Building
========

Applications for the ``riscv32_virtual`` board configuration can be built as usual
(see :ref:`build_an_application`):

.. zephyr-app-commands::
   :board: riscv32_virtual
   :goals: build

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 Renode
emulated environment. For example, with the :zephyr:code-sample:`synchronization` sample:

.. zephyr-app-commands::
   :zephyr-app: samples/synchronization
   :host-os: unix
   :board: riscv32_virtual
   :goals: run

This will build an image with the synchronization sample app, boot it using
Renode, and display the following console output:

.. code-block:: console

        *** Booting Zephyr OS build zephyr-v3.5.0-1511-g56f73bde0fb0 ***
        thread_a: Hello World from cpu 0 on riscv32_virtual!
        thread_b: Hello World from cpu 0 on riscv32_virtual!
        thread_a: Hello World from cpu 0 on riscv32_virtual!
        thread_b: Hello World from cpu 0 on riscv32_virtual!

Exit Renode by pressing :kbd:`CTRL+C`.

Debugging
=========

Refer to the detailed overview about :ref:`application_debugging`.

Part 3

한국어 전문 번역

개요

RISCV32 Virtual board는 QEMU의 대안으로 Renode를 사용해 만든 virtual platform입니다. QEMU와 달리 이 platform의 peripheral은 riscv32_virtual.repl script와 해당 devicetree file을 수정하여 쉽게 구성할 수 있습니다. 따라서 proprietary board/SoC에만 존재하는 특정 hardware configuration을 upstream CI에서 시험할 수 있습니다.

프로그래밍과 디버깅

빌드

riscv32_virtual board configuration용 application은 일반적인 방법으로 build할 수 있습니다.

west build -b riscv32_virtual <application-path>

플래시

이 보드는 emulation되므로 실제로 flash할 수는 없지만, Renode emulated environment에서 기본 Zephyr application과 kernel test를 실행할 수 있습니다. 예를 들어 synchronization sample은 다음과 같이 실행합니다.

west build -b riscv32_virtual samples/synchronization
west build -t run

이 명령은 synchronization sample application을 포함한 image를 build하고 Renode로 boot한 뒤 다음 console output을 표시합니다.

*** Booting Zephyr OS build zephyr-v3.5.0-1511-g56f73bde0fb0 ***
thread_a: Hello World from cpu 0 on riscv32_virtual!
thread_b: Hello World from cpu 0 on riscv32_virtual!
thread_a: Hello World from cpu 0 on riscv32_virtual!
thread_b: Hello World from cpu 0 on riscv32_virtual!

Ctrl+C를 눌러 Renode를 종료합니다.

디버깅

자세한 방법은 Zephyr의 application debugging overview를 참고합니다.

Source

출처

영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.