samples/sysbuild/with_mcuboot/README.html · samples/sysbuild/with_mcuboot/README.rst 공식 원문 ↗

Zephyr 3.7.0 · Samples · Sysbuild

Sysbuild와 MCUboot

Bootloader 추가, downgrade 방지와 upgrade-only 설정을 한 build에 적용합니다.

Official pathsamples/sysbuild/with_mcuboot/README.html
Source filesamples/sysbuild/with_mcuboot/README.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

sysbuild.conf·mcuboot.conf의 역할과 flash address 출력을 설명합니다.

Bootloader

MCUboot

Enable

SB_CONFIG_BOOTLOADER_MCUBOOT

Policy

No downgrade · Upgrade-only

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 C5026CDBE631092A541809F9CF4AB2BF5C95604676AC57183F0208C53D629374
.. _with_mcuboot:

Sample with MCUboot
###################

Overview
********
A simple example that demonstrates how building a sample using sysbuild can
automatically include MCUboot as the bootloader.
It showcases how the sample can adjust the configuration of extra image by
creating a image specific Kconfig fragment.

Sysbuild specific settings
**************************

This sample automatically includes MCUboot as bootloader when built using
sysbuild.

This is achieved with a sysbuild specific Kconfig configuration,
:file:`sysbuild.conf`.

The `SB_CONFIG_BOOTLOADER_MCUBOOT=y` setting in the sysbuild Kconfig file
enables the bootloader when building with sysbuild.

The :file:`sysbuild/mcuboot.conf` file will be used as an extra fragment that
is merged together with the default configuration files used by MCUboot.

:file:`sysbuild/mcuboot.conf` adjusts the log level in MCUboot, as well as
configures MCUboot to prevent downgrades and operate in upgrade-only mode.

To build both the sample and MCUboot with ``west`` for the ``reel_board``, run:

.. zephyr-app-commands::
   :tool: west
   :app: samples/application_development/sysbuild/with_mcuboot
   :board: reel_board
   :goals: build
   :west-args: --sysbuild
   :compact:

Execution output:

.. code-block:: console

   *** Booting Zephyr OS build v3.2.0-rc3-209-gdcf4201d3573  ***
   *** Booting Zephyr OS build v3.2.0-rc3-209-gdcf4201d3573  ***
   Address of sample 0xc000
   Hello sysbuild with mcuboot! nrf52840dk

The first ``Booting Zephyr OS build`` is printed by MCUboot itself and the
following lines are printed by the ``with_mcuboot`` sample.
This sample also prints its flash location.

Part 3

한국어 전문 번역

개요

Sysbuild로 sample을 build할 때 MCUboot를 bootloader image로 자동 포함하는 방법을 보여 주는 간단한 예입니다. 또한 image별 Kconfig fragment를 만들어 추가 image의 configuration을 조정하는 방법도 보여 줍니다.

Sysbuild 전용 설정

이 sample을 Sysbuild로 build하면 MCUboot가 bootloader로 자동 포함됩니다. 이 동작은 Sysbuild 전용 Kconfig configuration인 sysbuild.conf로 설정합니다.

Sysbuild Kconfig file의 SB_CONFIG_BOOTLOADER_MCUBOOT=y 설정이 Sysbuild build에서 bootloader를 활성화합니다.

sysbuild/mcuboot.conf는 MCUboot의 기본 configuration file과 함께 merge되는 추가 fragment입니다. 이 file은 MCUboot log level을 조정하고, downgrade를 방지하며 upgrade-only mode로 동작하도록 MCUboot를 구성합니다.

reel_board에서 west로 sample과 MCUboot를 함께 build하려면 다음 command를 실행합니다.

west build -b reel_board --sysbuild samples/application_development/sysbuild/with_mcuboot

실행 출력은 다음과 같습니다.

*** Booting Zephyr OS build v3.2.0-rc3-209-gdcf4201d3573  ***
*** Booting Zephyr OS build v3.2.0-rc3-209-gdcf4201d3573  ***
Address of sample 0xc000
Hello sysbuild with mcuboot! nrf52840dk

첫 번째 Booting Zephyr OS build 줄은 MCUboot 자체가 출력합니다. 그 뒤의 줄은 with_mcuboot sample이 출력하며, sample이 놓인 flash address도 함께 표시합니다.

Source

출처

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