Part 1
요약·해설
Board placeholder, zephyr.bin dump와 native_sim의 zephyr.elf 대안을 설명합니다.
bindesc_define
west bindesc dump
BIN · ELF
Part 2
접을 수 있는 영어 원문 전체
영어 원문 전체 펼치기
2811D48EE218685C1CFD84917D8C1EDE0D07774CEF72A96F1FD0CB166AC58201
.. zephyr:code-sample:: hello-bindesc
:name: Binary descriptors "Hello World"
:relevant-api: bindesc_define
Set and access binary descriptors for a basic Zephyr application.
Overview
********
A simple sample of :ref:`binary descriptor <binary_descriptors>` definition and usage.
Building and Running
********************
Follow these steps to build the ``hello_bindesc`` sample application:
.. zephyr-app-commands::
:zephyr-app: samples/subsys/bindesc/hello_bindesc
:board: <board to use>
:goals: build
:compact:
To dump all binary descriptors in the image, run:
.. code-block:: bash
west bindesc dump build/zephyr/zephyr.bin
(Note: you can also dump the contents of ``zephyr.elf``, if your build system
does not produce a ``*.bin`` file, e.g. compiling for ``native_sim``.)
For more details see :ref:`binary_descriptors` and :ref:`west-bindesc`.
Part 3
한국어 전문 번역
개요
기본 Zephyr application에서 binary descriptor를 정의하고 사용하는 간단한 sample입니다. 관련 API는 bindesc_define이며, compile된 image 안에 descriptor를 넣고 build artifact에서 다시 조회하는 최소 흐름을 보여 줍니다.
빌드 및 실행
hello_bindesc sample을 build하려면 다음 command를 사용합니다. 공식 command의 <board to use>는 실제 사용할 board target으로 바꿔야 합니다.
west build -b <board to use> samples/subsys/bindesc/hello_bindesc
Image 안의 모든 binary descriptor를 출력하려면 build가 만든 zephyr.bin에 west bindesc dump를 실행합니다.
west bindesc dump build/zephyr/zephyr.bin
Build system이 *.bin file을 만들지 않는 경우에는 zephyr.elf 내용도 dump할 수 있습니다. 예를 들어 native_sim target이 이 경우에 해당합니다.
Descriptor 정의 format과 field의 자세한 의미는 Binary Descriptors 문서를, West command option은 west bindesc 문서를 참조하십시오.
Source
출처
영어 원문에는 문단, 문서 지시문, 표, 코드, 코드 심벌, 경로를 그대로 보존했습니다.