services/device_mgmt/ota.html · services/device_mgmt/ota.rst 공식 원문 ↗

Zephyr 3.7.0 · Device Management

Over-the-Air Update

Network로 firmware를 내려받아 빈 slot에 저장하고 MCUboot가 signature를 검증한 뒤 upgrade합니다.

Official pathservices/device_mgmt/ota.html
Source fileservices/device_mgmt/ota.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

OTA의 server·signing 요구사항과 Zephyr에서 선택할 수 있는 다섯 가지 update 경로를 비교합니다.

Download

slot1_partition

Verification

Signed image + MCUboot

Delivery

Cloud · REST · SMP · LwM2M

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 AA88EEC30BAA2D9017BE5EE47AC1C86807B5BA403505502047891098110D20A6
.. _ota:

Over-the-Air Update
###################

Overview
********

Over-the-Air (OTA) Update is a method for delivering firmware updates to remote
devices using a network connection. Although the name implies a wireless
connection, updates received over a wired connection (such as Ethernet)
are still commonly referred to as OTA updates. This approach requires server
infrastructure to host the firmware binary and implement a method of signaling
when an update is available. Security is a concern with OTA updates; firmware
binaries should be cryptographically signed and verified before upgrading.

The :ref:`dfu` section discusses upgrading Zephyr firmware using MCUboot. The
same method can be used as part of OTA. The binary is first downloaded
into an unoccupied code partition, usually named ``slot1_partition``, then
upgraded using the :ref:`mcuboot` process.

Examples of OTA
***************

Golioth
=======

`Golioth`_ is an IoT management platform that includes OTA updates. Devices are
configured to observe your available firmware revisions on the Golioth Cloud.
When a new version is available, the device downloads and flashes the binary. In
this implementation, the connection between cloud and device is secured using
TLS/DTLS, and the signed firmware binary is confirmed by MCUboot before the
upgrade occurs.

1. A working sample can be found on the `Golioth Firmware SDK repository`_
2. The `Golioth OTA documentation`_ includes complete information about the
   versioning process

Eclipse hawkBit |trade|
=======================

`Eclipse hawkBit`_ |trade| is an update server framework that uses polling on a
REST api to detect firmware updates. When a new update is detected, the binary
is downloaded and installed. MCUboot can be used to verify the signature before
upgrading the firmware.

There is a :zephyr:code-sample:`hawkbit-api` sample included in the
Zephyr :ref:`mgmt-samples` section.

UpdateHub
=========

`UpdateHub`_ is a platform for remotely updating embedded devices. Updates can
be manually triggered or monitored via polling. When a new update is detected,
the binary is downloaded and installed. MCUboot can be used to verify the
signature before upgrading the firmware.

There is an :zephyr:code-sample:`updatehub-fota` sample included in the Zephyr
:ref:`mgmt-samples` section.

SMP Server
==========

A Simple Management Protocol (SMP) server can be used to update firmware via
Bluetooth Low Energy (BLE) or UDP. :ref:`mcu_mgr` is used to send a signed
firmware binary to the remote device where it is verified by MCUboot before the
upgrade occurs.

There is an :zephyr:code-sample:`smp-svr` sample included in the Zephyr :ref:`mgmt-samples`
section.

Lightweight M2M (LWM2M)
=======================

The :ref:`lwm2m_interface` protocol includes support for firmware update via
:kconfig:option:`CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT`. Devices securely
connect to an LwM2M server using DTLS. A :zephyr:code-sample:`lwm2m-client` sample is
available but it does not demonstrate the firmware update feature.

.. _MCUboot bootloader: https://mcuboot.com/
.. _Golioth: https://golioth.io/
.. _Golioth Firmware SDK repository: https://github.com/golioth/golioth-firmware-sdk/tree/main/examples/zephyr/fw_update
.. _Golioth OTA documentation: https://docs.golioth.io/device-management/ota
.. _Eclipse hawkBit: https://www.eclipse.org/hawkbit/
.. _UpdateHub: https://updatehub.io/

Part 3

한국어 전문 번역

개요

Over-the-Air(OTA) update는 network connection을 이용해 원격 device에 firmware update를 전달하는 방법입니다. 이름에는 무선 연결이라는 뜻이 들어 있지만 Ethernet 같은 유선 연결로 받는 update도 일반적으로 OTA update라고 부릅니다.

이 방식에는 firmware binary를 host하고 update가 준비됐음을 알리는 방법을 구현할 server infrastructure가 필요합니다. OTA update에서는 security가 중요하므로 firmware binary에 암호학적 signature를 넣고 upgrade 전에 검증해야 합니다.

Device Firmware Upgrade 절은 MCUboot를 이용한 Zephyr firmware upgrade를 설명합니다. 같은 방법을 OTA의 일부로 사용할 수 있습니다. 먼저 binary를 보통 slot1_partition이라는 비어 있는 code partition에 download한 다음 MCUboot process로 upgrade합니다.

OTA 예

Golioth

Golioth는 OTA update를 포함한 IoT management platform입니다. Device는 Golioth Cloud에서 사용 가능한 firmware revision을 관찰하도록 설정됩니다. 새 version이 준비되면 device가 binary를 download하고 flash합니다. 이 구현에서 cloud와 device 사이 connection은 TLS/DTLS로 보호되고, MCUboot가 서명된 firmware binary를 확인한 뒤 upgrade합니다.

  1. 동작하는 sample은 Golioth Firmware SDK repository에서 찾을 수 있습니다.
  2. Golioth OTA documentation에는 versioning process의 전체 정보가 있습니다.

Eclipse hawkBit™

Eclipse hawkBit은 REST API를 polling해 firmware update를 감지하는 update server framework입니다. 새 update를 감지하면 binary를 download해 설치합니다. MCUboot를 사용하면 firmware를 upgrade하기 전에 signature를 검증할 수 있습니다.

Zephyr의 management sample에는 Eclipse hawkBit Direct Device Integration API sample이 포함되어 있습니다.

UpdateHub

UpdateHub는 embedded device를 원격 update하는 platform입니다. Update를 수동으로 trigger하거나 polling으로 감시할 수 있습니다. 새 update를 감지하면 binary를 download해 설치합니다. MCUboot를 사용하면 firmware upgrade 전에 signature를 검증할 수 있습니다.

Zephyr management sample에는 UpdateHub embedded Firmware Over-The-Air update sample이 포함되어 있습니다.

SMP server

Simple Management Protocol(SMP) server를 사용하면 Bluetooth Low Energy(BLE) 또는 UDP를 통해 firmware를 update할 수 있습니다. MCUmgr로 서명된 firmware binary를 원격 device에 보내며, MCUboot가 binary를 검증한 다음 upgrade합니다.

Zephyr management sample에는 SMP server sample이 포함되어 있습니다.

Lightweight M2M(LwM2M)

Lightweight M2M(LwM2M) protocol은 CONFIG_LWM2M_FIRMWARE_UPDATE_OBJ_SUPPORT를 통해 firmware update를 지원합니다. Device는 DTLS를 사용해 LwM2M server에 안전하게 연결합니다. LwM2M client sample을 사용할 수 있지만 이 sample은 firmware update 기능을 시연하지는 않습니다.

Source

출처

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