Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 35 additions & 3 deletions docs/01_Quick_start/02_install_os/rdk_s100/03_burn.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ description: 介绍使用 XBurn 烧录 RDK S100 系统镜像的步骤,包括

# 烧录镜像

```mdx-code-block
import DocScope from '@site/src/components/DocScope';
```

本页介绍 RDK S100 的系统烧录。烧录前先完成 [烧录准备](./02_preparation.md)。如需备份当前系统并恢复,见 [备份和恢复镜像](./04_backup.md)。烧录过程不依赖 PC、需要批量烧录或现场恢复时,见 [U 盘升级](./05_usb_upgrade.md)。

## 下载模式
Expand All @@ -16,6 +20,8 @@ RDK S100 通过 XBurn 烧录系统镜像前,先按设备状态选择下载模
| DFU+Fastboot | 空板或系统损坏导致设备变砖 | 需拨码使设备进入 DFU 引导模式 |
| Fastboot | 非空板状态更新系统 | 要求非空板且系统能进入 U-Boot |

<DocScope versions=">= 4.1.0">

:::warning 启动盘选择
启动盘由 [SW3 开关](../../01_hardware_introduction/01_rdk_s100/01_rdk_s100.md#系统启动盘选择-sw3) 决定,按需要启动的介质设置即可——烧录步骤只使用 SW1(电源)和 SW2(DOWNLOAD),不涉及 SW3。若通过 Fastboot 模式烧录,设备需能从当前启动盘进入 U-Boot;启动盘不可用时改用 DFU+Fastboot。

Expand All @@ -25,6 +31,16 @@ RDK S100 通过 XBurn 烧录系统镜像前,先按设备状态选择下载模
烧录 NVMe 需使用 NVMe 版本的镜像,D-Robotics 默认提供的镜像面向 eMMC,NVMe 镜像需自行编译(编译配置 `RDK_DISK_MEDIUM="nvme"`),见 [构建系统开发指南 · eMMC/UFS/NVMe 镜像编译须知](../../../07_Advanced_development/06_rdk_gen.md#emmcufsnvme-镜像编译须知)。NVMe 启动的硬件版本要求(V0P6 及以上)和 `miniboot_flash` 的编译模式约束,见同一节末尾的「NVMe 启动注意事项」。烧录 NVMe 镜像需使用 XBurn 1.1.10 及以上版本。
:::

</DocScope>

<DocScope versions="4.0.5">

:::warning 前置确认
目前需要将 [SW3 开关](../../01_hardware_introduction/01_rdk_s100/01_rdk_s100.md#系统启动盘选择-sw3) 拨至从板载 eMMC 启动,暂不支持从 M.2 NVMe 固态硬盘启动。
:::

</DocScope>

### 进入 DFU+Fastboot 模式

1. 将 [SW1](../../01_hardware_introduction/01_rdk_s100/01_rdk_s100.md#开关-sw1sw2) 拨码至 ↑,关闭电源。
Expand All @@ -45,11 +61,11 @@ RDK S100 通过 XBurn 烧录系统镜像前,先按设备状态选择下载模

## 烧录全镜像

适用于首次烧录或系统恢复,烧录完整系统镜像包,覆盖所选存储介质与 NOR Flash 上的 `miniboot_flash`。**存储介质** 按实际情况选 `eMMC`(板载)或 `NVMe`(M.2 扩展)。
适用于首次烧录或系统恢复,烧录完整系统镜像包,覆盖<DocScope versions=">= 4.1.0">所选存储介质</DocScope><DocScope versions="4.0.5">板载 eMMC</DocScope>与 NOR Flash 上的 `miniboot_flash`。<DocScope versions=">= 4.1.0">**存储介质** 按实际情况选 `eMMC`(板载)或 `NVMe`(M.2 扩展)。</DocScope>

1. **产品类型** 选择 `RDK S100`。
2. **连接类型** 选择 `USB`,**下载模式** 选择(`DFU+Fastboot` 或 `Fastboot`)。
3. **存储介质** 选择 `eMMC` 或 `NVMe`,**固件类型** 选择 `secure`。
3. **存储介质** 选择 <DocScope versions=">= 4.1.0">`eMMC` 或 `NVMe`</DocScope><DocScope versions="4.0.5">`eMMC`</DocScope>,**固件类型** 选择 `secure`。
4. 在 **镜像所在目录** 右侧,单击 **浏览**,选择固件所在的 product 文件夹。

<img src="https://rdk-doc.oss-cn-beijing.aliyuncs.com/doc/img/xburn/full-image-flash.jpg" alt="" style={{ width: '100%' }} />
Expand All @@ -76,6 +92,8 @@ RDK S100 通过 XBurn 烧录系统镜像前,先按设备状态选择下载模

## 烧录指定区域{#烧录指定区域}

<DocScope versions=">= 4.1.0">

按指定区域烧录,只烧录部分镜像,而非完整的全镜像包。**存储介质** 选 `eMMC` 或 `NVMe`。`miniboot_flash` 位于 NOR Flash,与所选介质无关,eMMC/NVMe 均可勾选;其余区域按「实际存储介质」列与所选介质对应。支持的区域如下:

| 区域 | 实际存储介质 | 固件内容 | 镜像 |
Expand All @@ -86,7 +104,21 @@ RDK S100 通过 XBurn 烧录系统镜像前,先按设备状态选择下载模
| miniboot_nvme | NVMe | NVMe 上的基础启动镜像,包括 BL31/U-Boot 等系统组件的镜像 | img_packages/disk/miniboot_nvme.img |
| nvme | NVMe | NVMe 完整镜像,已包含 miniboot_nvme | img_packages/disk/nvme_disk.simg |

在 [烧录全镜像](#烧录全镜像) 步骤基础上,展开 **高级配置**,勾选 **烧录指定区域**,勾选目标区域(如 `miniboot_flash` 和 `miniboot_emmc`;NVMe 介质则为 `miniboot_flash` 和 `miniboot_nvme`),完成烧录并启动验证。
</DocScope>

<DocScope versions="4.0.5">

按指定区域烧录,只烧录部分镜像,而非完整的全镜像包。**存储介质** 选 `eMMC`,支持的区域如下:

| 区域 | 实际存储介质 | 固件内容 | 镜像 |
| --- | --- | -------- | ---- |
| miniboot_flash | NOR Flash | NOR Flash 上的基础启动镜像,包括 HSM/MCU0 等系统组件的镜像 | img_packages/disk/miniboot_flash.img |
| miniboot_emmc | eMMC | eMMC 上的基础启动镜像,包括 BL31/U-Boot 等系统组件的镜像 | img_packages/disk/miniboot_emmc.img |
| emmc | eMMC | eMMC 完整镜像,已包含 miniboot_emmc | img_packages/disk/emmc_disk.simg |

</DocScope>

在 [烧录全镜像](#烧录全镜像) 步骤基础上,展开 **高级配置**,勾选 **烧录指定区域**,勾选目标区域(如 `miniboot_flash` 和 `miniboot_emmc`<DocScope versions=">= 4.1.0">;NVMe 介质则为 `miniboot_flash` 和 `miniboot_nvme`</DocScope>),完成烧录并启动验证。

<img src="https://rdk-doc.oss-cn-beijing.aliyuncs.com/doc/img/xburn/specify-region-flash.jpg" alt="" style={{ width: '100%' }} />

Expand Down
4 changes: 4 additions & 0 deletions docs/01_Quick_start/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ RDK S100 商业资料请切换至 **FTP下载** 选项,根据表格中的路

<br/><br/>

<DocScope versions=">= 4.1.0">

:::note NVMe 镜像
系统镜像默认面向 eMMC。如需烧录到 NVMe 并从 NVMe 启动,需自行编译 NVMe 镜像,见 [构建系统开发指南 · eMMC/UFS/NVMe 镜像编译须知](../07_Advanced_development/06_rdk_gen.md#emmcufsnvme-镜像编译须知)。
:::

</DocScope>

<!-- <DocScope products="RDK S600">

<div className="table-responsive">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ description: Describes how to flash the RDK S100 system image with XBurn, includ

# Flash the system image

```mdx-code-block
import DocScope from '@site/src/components/DocScope';
```

This page describes system flashing for the RDK S100. Complete [flashing preparation](./02_preparation.md) before you flash. To back up the current system and restore it, see [Back up and restore the image](./04_backup.md). To flash without a PC, for example in batch or on site, see [USB drive upgrade](./05_usb_upgrade.md).

## Download modes
Expand All @@ -16,6 +20,8 @@ Before you flash the system image to the RDK S100 with XBurn, select a download
| DFU+Fastboot | Blank board or system corruption that bricks the device | Set the DIP switches to put the device into DFU boot mode |
| Fastboot | Update the system on a non-blank board | Requires a non-blank board whose system can enter U-Boot |

<DocScope versions=">= 4.1.0">

:::warning Boot disk selection
The boot disk is determined by the [SW3 switch](../../01_hardware_introduction/01_rdk_s100/01_rdk_s100.md#boot-device-selection-sw3). Set SW3 for the medium you want to boot from. The flashing steps use only SW1 (power) and SW2 (DOWNLOAD) and do not involve SW3. If you flash in Fastboot mode, the device must be able to enter U-Boot from the current boot disk; if the boot disk is not usable, use DFU+Fastboot instead.

Expand All @@ -25,6 +31,16 @@ The boot disk is determined by the [SW3 switch](../../01_hardware_introduction/0
Flashing NVMe requires the NVMe version of the image. D-Robotics provides eMMC images by default, so build the NVMe image yourself (build config `RDK_DISK_MEDIUM="nvme"`); see [Build system development guide · eMMC/UFS/NVMe image build notes](../../../07_Advanced_development/06_rdk_gen.md#emmcufsnvme-image-build-notes). The hardware version requirement for NVMe boot (V0P6 and later) and the `miniboot_flash` mode constraint are described in "NVMe Boot Notes" at the end of the same section. Flashing an NVMe image requires XBurn 1.1.10 or later.
:::

</DocScope>

<DocScope versions="4.0.5">

:::warning Prerequisite check
Set the [SW3 switch](../../01_hardware_introduction/01_rdk_s100/01_rdk_s100.md#boot-device-selection-sw3) to boot from onboard eMMC. Booting from an M.2 NVMe SSD is not supported.
:::

</DocScope>

### Enter DFU+Fastboot mode

1. Set the [SW1](../../01_hardware_introduction/01_rdk_s100/01_rdk_s100.md#switches-sw1sw2) DIP switch to ↑, and power off.
Expand All @@ -45,11 +61,11 @@ Flashing NVMe requires the NVMe version of the image. D-Robotics provides eMMC i

## Flash the full image

Use this for a first-time flash or system recovery. It flashes the complete system image package and overwrites the selected storage medium and `miniboot_flash` on NOR Flash. For **Storage medium**, select `eMMC` (onboard) or `NVMe` (M.2 expansion) based on your setup.
Use this for a first-time flash or system recovery. It flashes the complete system image package and overwrites the <DocScope versions=">= 4.1.0">selected storage medium</DocScope><DocScope versions="4.0.5">onboard eMMC</DocScope> and `miniboot_flash` on NOR Flash.<DocScope versions=">= 4.1.0"> For **Storage medium**, select `eMMC` (onboard) or `NVMe` (M.2 expansion) based on your setup.</DocScope>

1. For **Product type**, select `RDK S100`.
2. For **Connection type**, select `USB`. For **Download mode**, select `DFU+Fastboot` or `Fastboot`.
3. For **Storage**, select `eMMC` or `NVMe`. For **Firmware type**, select `secure`.
3. For **Storage**, select <DocScope versions=">= 4.1.0">`eMMC` or `NVMe`</DocScope><DocScope versions="4.0.5">`eMMC`</DocScope>. For **Firmware type**, select `secure`.
4. To the right of **Image directory**, click **Browse** and select the product folder that contains the firmware.

<img src="https://rdk-doc.oss-cn-beijing.aliyuncs.com/doc/img/xburn/s100-full-image-flash-en.png" alt="Full image flashing" style={{ width: '100%' }} />
Expand All @@ -75,6 +91,8 @@ Use this for a first-time flash or system recovery. It flashes the complete syst

## Flash specific regions{#flashing-specific-regions}

<DocScope versions=">= 4.1.0">

Flash only part of the image by region, instead of the complete full-image package. For **Storage medium**, select `eMMC` or `NVMe`. `miniboot_flash` is on NOR Flash and is independent of the selected medium; both eMMC and NVMe can select it. Other regions correspond to the selected medium per the "Actual storage medium" column. The supported regions are:

| Region | Actual storage medium | Firmware content | Image |
Expand All @@ -85,7 +103,21 @@ Flash only part of the image by region, instead of the complete full-image packa
| miniboot_nvme | NVMe | Basic boot image on NVMe, including images for BL31/U-Boot and other system components | img_packages/disk/miniboot_nvme.img |
| nvme | NVMe | Complete NVMe image, already includes miniboot_nvme | img_packages/disk/nvme_disk.simg |

Starting from the steps in [Flash the full image](#flash-the-full-image), expand **Advanced configuration**, select **Flash specific regions**, and select the target regions (such as `miniboot_flash` and `miniboot_emmc`; for NVMe media, `miniboot_flash` and `miniboot_nvme`). Complete the flash and verify the boot.
</DocScope>

<DocScope versions="4.0.5">

Flash only part of the image by region, instead of the complete full-image package. For **Storage medium**, select `eMMC`. The supported regions are:

| Region | Actual storage medium | Firmware content | Image |
| --- | --- | -------- | ---- |
| miniboot_flash | NOR Flash | Basic boot image on NOR Flash, including images for HSM/MCU0 and other system components | img_packages/disk/miniboot_flash.img |
| miniboot_emmc | eMMC | Basic boot image on eMMC, including images for BL31/U-Boot and other system components | img_packages/disk/miniboot_emmc.img |
| emmc | eMMC | Complete eMMC image, already includes miniboot_emmc | img_packages/disk/emmc_disk.simg |

</DocScope>

Starting from the steps in [Flash the full image](#flash-the-full-image), expand **Advanced configuration**, select **Flash specific regions**, and select the target regions (such as `miniboot_flash` and `miniboot_emmc`<DocScope versions=">= 4.1.0">; for NVMe media, `miniboot_flash` and `miniboot_nvme`</DocScope>). Complete the flash and verify the boot.

<img src="https://rdk-doc.oss-cn-beijing.aliyuncs.com/doc/img/xburn/specify-region-flash-en.png" alt="Flash specific regions" style={{ width: '100%' }} />

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ For RDK S100 commercial materials, please switch to the **FTP Download** option

<br/><br/>

<DocScope versions=">= 4.1.0">

:::note NVMe image
System images are built for eMMC by default. To flash to NVMe and boot from it, build the NVMe image yourself; see [Build system development guide · eMMC/UFS/NVMe image build notes](../07_Advanced_development/06_rdk_gen.md#emmcufsnvme-image-build-notes).
:::

</DocScope>

<!-- <DocScope products="RDK S600">

<div className="table-responsive">
Expand Down