boards/raspberrypi/rpi_5/doc/index.html · boards/raspberrypi/rpi_5/doc/index.rst 공식 원문 ↗

Zephyr 3.7.0 · Boards · Raspberry Pi · Cortex-A76

Raspberry Pi 5

BCM2712 Cortex-A76 기반 Raspberry Pi 5에서 LED와 serial console sample을 실행합니다.

Official pathboards/raspberrypi/rpi_5/doc/index.html
Source fileboards/raspberrypi/rpi_5/doc/index.rst
Source versionZephyr 3.7.0
TranslationFull · reviewed

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

Part 1

요약·해설

공식 hardware 목록, Zephyr 지원 peripheral 3종, Micro SD 준비, Debug Probe UART wiring과 출력 확인을 설명합니다.

SoC

BCM2712 · 4× Cortex-A76 · 2.4 GHz

Boot

Micro SD · config.txt · zephyr.bin

Console

Raspberry Pi Debug Probe

Part 2

접을 수 있는 영어 원문 전체

영어 원문 전체 펼치기
원문 SHA-256 5CFFDF5C49A49369C070A4C013B21739C50173544E3C51F12E7DA9872CCDE4F2
.. _rpi_5:

Raspberry Pi 5 (Cortex-A76)
###########################

Overview
********

`Raspberry Pi 5 product-brief`_

Hardware
********

- Broadcom BCM2712 2.4GHz quad-core 64-bit Arm Cortex-A76 CPU, with cryptography extensions, 512KB per-core L2 caches and a 2MB shared L3 cache
- VideoCore VII GPU, supporting OpenGL ES 3.1, Vulkan 1.2
- Dual 4Kp60 HDMI® display output with HDR support
- 4Kp60 HEVC decoder
- LPDDR4X-4267 SDRAM (4GB and 8GB SKUs available at launch)
- Dual-band 802.11ac Wi-Fi®
- Bluetooth 5.0 / Bluetooth Low Energy (BLE)
- microSD card slot, with support for high-speed SDR104 mode
- 2 x USB 3.0 ports, supporting simultaneous 5Gbps operation
- 2 x USB 2.0 ports
- Gigabit Ethernet, with PoE+ support (requires separate PoE+ HAT)
- 2 x 4-lane MIPI camera/display transceivers
- PCIe 2.0 x1 interface for fast peripherals (requires separate M.2 HAT or other adapter)
- 5V/5A DC power via USB-C, with Power Delivery support
- Raspberry Pi standard 40-pin header
- Real-time clock (RTC), powered from external battery
- Power button

Supported Features
==================

The Raspberry Pi 5 board configuration supports the following hardware features:

.. list-table::
   :header-rows: 1

   * - Peripheral
     - Kconfig option
     - Devicetree compatible
   * - GIC-400
     - N/A
     - :dtcompatible:`arm,gic-v2`
   * - GPIO
     - :kconfig:option:`CONFIG_GPIO`
     - :dtcompatible:`brcm,brcmstb-gpio`
   * - UART
     - :kconfig:option:`CONFIG_SERIAL`
     - :dtcompatible:`arm,pl011`

Not all hardware features are supported yet. See `Raspberry Pi hardware`_ for the complete list of hardware features.

The default configuration can be found in
:zephyr_file:`boards/raspberrypi/rpi_5/rpi_5_defconfig`.

Programming and Debugging
*************************

Blinky
======

In brief,
    1. Format your Micro SD card with MBR and FAT32.
    2. Save three files below in the root directory.
        * config.txt
        * zephyr.bin
        * `bcm2712-rpi-5.dtb`_
    3. Insert the Micro SD card and power on the Raspberry Pi 5.

then, You will see the Raspberry Pi 5 running the `zephyr.bin`.

config.txt
----------

.. code-block:: text

   kernel=zephyr.bin
   arm_64bit=1


zephyr.bin
----------

Build an app `samples/basic/blinky`

.. zephyr-app-commands::
   :zephyr-app: samples/basic/blinky
   :board: rpi_5
   :goals: build

Copy `zephyr.bin` from `build/zephyr` directory to the root directory of the Micro SD card.

Insert the Micro SD card and power on the Raspberry Pi 5. And then, the STAT LED will start to blink.


Serial Communication
====================

wiring
------

You will need the following items:
   * `Raspberry Pi Debug Probe`_
   * JST cable: 3-pin JST connector to 3-pin JST connector cable
   * USB cable: USB A male - Micro USB B male

Use the JST cable to connect the Raspberry Pi Debug Probe UART port to the Raspberry Pi 5 UART port between the HDMI ports.

Then connect the Raspberry Pi Debug Probe to your computer with a USB cable.


config.txt
----------

.. code-block:: text

   kernel=zephyr.bin
   arm_64bit=1
   enable_uart=1
   uart_2ndstage=1


zephyr.bin
----------

Build an app `samples/hello_world`

.. zephyr-app-commands::
   :zephyr-app: samples/hello_world
   :board: rpi_5
   :goals: build

Copy `zephyr.bin` from `build/zephyr` directory to the root directory of the Micro SD card.

Insert the Micro SD card into your Raspberry Pi 5.


serial terminal emulator
------------------------

When you power on the Raspberry Pi 5, you will see the following output in the serial console:

.. code-block:: text

   *** Booting Zephyr OS build XXXXXXXXXXXX  ***
   Hello World! rpi_5/bcm2712


.. _Raspberry Pi 5 product-brief:
   https://datasheets.raspberrypi.com/rpi5/raspberry-pi-5-product-brief.pdf

.. _Raspberry Pi hardware:
   https://www.raspberrypi.com/documentation/computers/raspberry-pi.html

.. _bcm2712-rpi-5.dtb:
   https://github.com/raspberrypi/firmware/raw/master/boot/bcm2712-rpi-5-b.dtb

.. _Raspberry Pi Debug Probe:
   https://www.raspberrypi.com/products/debug-probe/

Part 3

한국어 전문 번역

개요

제품 전체 사양은 Raspberry Pi 5 product brief에서 확인할 수 있습니다.

하드웨어

  • Cryptography extension, core당 512 KB L2 cache, 공유 2 MB L3 cache를 갖춘 Broadcom BCM2712 2.4 GHz quad-core 64-bit Arm Cortex-A76 CPU
  • OpenGL ES 3.1과 Vulkan 1.2를 지원하는 VideoCore VII GPU
  • HDR을 지원하는 dual 4Kp60 HDMI® display output
  • 4Kp60 HEVC decoder
  • LPDDR4X-4267 SDRAM(출시 시 4 GB 및 8 GB SKU)
  • Dual-band 802.11ac Wi-Fi®
  • Bluetooth 5.0 / Bluetooth Low Energy(BLE)
  • 고속 SDR104 mode를 지원하는 microSD card slot
  • 동시 5 Gbps 동작을 지원하는 USB 3.0 port 2개
  • USB 2.0 port 2개
  • PoE+ 지원 Gigabit Ethernet(별도 PoE+ HAT 필요)
  • 4-lane MIPI camera/display transceiver 2개
  • 고속 peripheral용 PCIe 2.0 x1 interface(별도 M.2 HAT 또는 adapter 필요)
  • Power Delivery를 지원하는 USB-C 5 V/5 A DC 전원
  • Raspberry Pi 표준 40-pin header
  • 외부 battery로 구동되는 real-time clock(RTC)
  • Power button

지원 기능

Raspberry Pi 5 board configuration은 다음 hardware feature를 지원합니다.

주변장치Kconfig optionDevicetree compatible
GIC-400N/Aarm,gic-v2
GPIOCONFIG_GPIObrcm,brcmstb-gpio
UARTCONFIG_SERIALarm,pl011

아직 모든 hardware feature가 지원되는 것은 아닙니다. 전체 목록은 Raspberry Pi hardware 문서를 참고합니다. 기본 구성은 boards/raspberrypi/rpi_5/rpi_5_defconfig에 있습니다.

프로그래밍과 디버깅

Blinky

간단히 정리하면 다음 순서입니다.

  1. Micro SD card를 MBR과 FAT32로 format합니다.
  2. Root directory에 config.txt, zephyr.bin, bcm2712-rpi-5.dtb 세 파일을 저장합니다.
  3. Micro SD card를 넣고 Raspberry Pi 5의 전원을 켭니다.

그러면 Raspberry Pi 5가 zephyr.bin을 실행합니다.

config.txt

kernel=zephyr.bin
arm_64bit=1

zephyr.bin

samples/basic/blinky application을 build합니다.

west build -b rpi_5 samples/basic/blinky

build/zephyr directory의 zephyr.bin을 Micro SD card root directory로 복사합니다. Card를 넣고 전원을 켜면 STAT LED가 깜빡이기 시작합니다.

Serial 통신

배선

Raspberry Pi Debug Probe, 양쪽이 3-pin JST connector인 JST cable, USB A male-to-Micro USB B male cable이 필요합니다. JST cable로 Debug Probe의 UART port와 두 HDMI port 사이에 있는 Raspberry Pi 5 UART port를 연결합니다. 그런 다음 USB cable로 Debug Probe를 computer에 연결합니다.

config.txt

kernel=zephyr.bin
arm_64bit=1
enable_uart=1
uart_2ndstage=1

zephyr.bin

samples/hello_world application을 build합니다.

west build -b rpi_5 samples/hello_world

build/zephyr directory의 zephyr.bin을 Micro SD card root directory로 복사한 뒤 card를 Raspberry Pi 5에 넣습니다.

Serial terminal emulator

Raspberry Pi 5의 전원을 켜면 serial console에 다음 출력이 표시됩니다.

*** Booting Zephyr OS build XXXXXXXXXXXX  ***
Hello World! rpi_5/bcm2712

Source

출처

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