Part 1
요약·해설
Edge-V의 현재 Zephyr 지원 범위와 hello_world build, mkimage 포장, TFTP·U-Boot 실행 흐름을 다룹니다.
NON-SMP · CPU Core0
uart2 · DesignWare 8250
DDR · 0x10000000
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
D865453A5B78006E7F128EE7F010F6E8487B02166A4E01DF28289180D5579108
.. _khadas_edgev:
Khadas Edge-V
#################################
Overview
********
See <https://www.khadas.com/edge-v>
Hardware
********
See <https://docs.khadas.com/linux/edge/Hardware.html#Edge-V-1>
Supported Features
==================
Khadas Edge-V board default configuration supports the following
hardware features:
+-----------+------------+--------------------------------------+
| Interface | Controller | Driver/Component |
+===========+============+======================================+
| GIC-500 | on-chip | GICv3 interrupt controller |
+-----------+------------+--------------------------------------+
| ARM TIMER | on-chip | System Clock |
+-----------+------------+--------------------------------------+
| UART | on-chip | Synopsys DesignWare 8250 serial port |
+-----------+------------+--------------------------------------+
Other hardware features have not been enabled yet for this board.
The default configuration can be found in (NON-SMP)
:zephyr_file:`boards/khadas/edgev/khadas_edgev_defconfig`
There are multiple serial ports on the board: Zephyr is using
uart2 as serial console.
Programming and Debugging
*************************
Use the following configuration to run basic Zephyr applications and
kernel tests on Khadas Edge-V board. For example, with the :ref:`hello_world`:
1. Non-SMP mode
.. zephyr-app-commands::
:zephyr-app: samples/hello_world
:host-os: unix
:board: khadas_edgev
:goals: build
This will build an image with the synchronization sample app.
Build the zephyr image:
.. code-block:: console
mkimage -C none -A arm64 -O linux -a 0x10000000 -e 0x10000000 -d build/zephyr/zephyr.bin build/zephyr/zephyr.img
Use u-boot to load and kick Zephyr.bin to CPU Core0:
.. code-block:: console
tftpboot ${pxefile_addr_r} zephyr.img; bootm start ${pxefile_addr_r}; bootm loados; bootm go
It will display the following console output:
.. code-block:: console
*** Booting Zephyr OS build XXXXXXXXXXXX ***
Hello World! khadas_edgev
Flashing
========
Zephyr image can be loaded in DDR memory at address 0x10000000 from SD Card,
EMMC, QSPI Flash or downloaded from network in uboot.
References
==========
`Documentation: <https://docs.khadas.com/linux/edge/>`_
Part 3
한국어 전문 번역
개요
Khadas Edge-V board의 제품 정보는 Khadas Edge-V 제품 페이지에서 확인할 수 있습니다.
Hardware
Board hardware 정보는 Khadas Edge Hardware 문서의 Edge-V 절을 참고하십시오.
지원 기능
Khadas Edge-V board의 default configuration은 다음 hardware 기능을 지원합니다.
| Interface | Controller | Driver/Component |
|---|---|---|
| GIC-500 | on-chip | GICv3 interrupt controller |
| ARM TIMER | on-chip | System Clock |
| UART | on-chip | Synopsys DesignWare 8250 serial port |
그 밖의 hardware 기능은 이 board에서 아직 활성화되지 않았습니다.
NON-SMP default configuration은 boards/khadas/edgev/khadas_edgev_defconfig에서 확인할 수 있습니다.
Board에는 여러 serial port가 있으며 Zephyr는 uart2를 serial console로 사용합니다.
Programming과 Debugging
다음 configuration으로 Khadas Edge-V board에서 기본 Zephyr application과 kernel test를 실행할 수 있습니다. 여기서는 hello_world 예제를 사용합니다.
1. Non-SMP mode
west build -b khadas_edgev samples/hello_world이 명령은 synchronization sample app이 포함된 image를 build합니다.
Zephyr image를 U-Boot가 읽을 수 있는 image로 만듭니다.
mkimage -C none -A arm64 -O linux -a 0x10000000 -e 0x10000000 -d build/zephyr/zephyr.bin build/zephyr/zephyr.imgU-Boot를 사용해 zephyr.img를 load하고 CPU Core0에서 실행합니다.
tftpboot ${pxefile_addr_r} zephyr.img; bootm start ${pxefile_addr_r}; bootm loados; bootm goConsole에는 다음과 같은 output이 표시됩니다.
*** Booting Zephyr OS build XXXXXXXXXXXX ***
Hello World! khadas_edgev
Flashing
Zephyr image는 SD Card, EMMC 또는 QSPI Flash에서 DDR memory의 address 0x10000000으로 load할 수 있습니다. U-Boot에서 network를 통해 내려받는 방법도 사용할 수 있습니다.
참고 자료
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.