AgentSkillsCN

board-bringup

基于硬件模型 v2(HWMv2)的 Zephyr RTOS 自定义开发板启动流程。涵盖目录结构、board.yml 元数据、核心配置文件(Kconfig、defconfig、CMake),以及版本管理机制。在创建新开发板定义或将 Zephyr 移植到自定义硬件时,可触发此流程。

SKILL.md
--- frontmatter
name: board-bringup
description: Custom board bringup for Zephyr RTOS using Hardware Model v2 (HWMv2). Covers directory structure, board.yml metadata, core configuration files (Kconfig, defconfig, CMake), and revision management. Trigger when creating new board definitions or porting Zephyr to custom hardware.

Zephyr Board Bringup (HWMv2)

Bring your custom hardware into the Zephyr ecosystem using modern Hardware Model v2 standards.

Core Workflows

1. Planning the Structure

Organize your board files by vendor and board name.

2. Defining Configuration

Implement the essential Kconfig and CMake logic.

  • Reference: board_files.md
  • Key Tools: Kconfig.board, _defconfig, CMakeLists.txt.

3. Managing Revisions & Variants

Handle hardware iterations and SoC variants cleanly.

  • Reference: hwmv2_structure.md
  • Key Tools: Multi-revision board.yml, revision-specific overlays.

Best Practices

  • Use _common.dtsi: Share devicetree definitions across all board revisions.
  • Follow HWMv2: Avoid the legacy board structure (Kconfig.defconfig, etc.).
  • Keep it minimal: Only define what is unique to the board; let the SoC files handle chip-level configuration.

Resources

  • References:
    • hwmv2_structure.md: Directory layout and board.yml.
    • board_files.md: Kconfig, defconfig, and CMake configuration.