> ## Documentation Index
> Fetch the complete documentation index at: https://dragonwingdocs.qualcomm.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 修改存储类型

本文说明如何为不同的存储类型构建 meta-qcom。

设备可能支持多种存储类型，例如 UFS、eMMC 等。构建期间使用的存储类型由设备机器配置文件中所选的分区配置决定。

## **eMMC**

本节说明如何将设备配置为使用 eMMC 存储。

**前提条件**

在进行更改之前，请确保您已按照[使用 Yocto 构建 Qualcomm Linux](https://dragonwingdocs.qualcomm.com/Key-Documents/Yocto-Guide/build-qualcomm-linux.md#build-instructions) 中的说明操作，并已下载 Qualcomm 的 Yocto 层 `meta-qcom`。

## 为 eMMC 存储配置目标

### 支持的平台

| **平台** | **机器配置** | **开发套件** |
| - | - | - |
| Lemans | `iq-9075-evk` | Qualcomm Dragonwing™ IQ-9075 EVK (QCS9075) |
| Monaco | `iq-8275-evk` | Qualcomm Dragonwing™ IQ-8275 EVK (QCS8275) |

### 1. 更新机器配置中的 `QCOM_PARTITION_FILES_SUBDIR`

在 `meta-qcom` 代码仓库中，打开机器配置文件。

对于 `iq-9075-evk` 设备，打开：

```text theme={null}
conf/machine/iq-9075-evk.conf
```

将分区配置从 `UFS`：

```bitbake theme={null}
QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-9075-evk/ufs"
```

更改为 `eMMC`：

```bitbake theme={null}
QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-9075-evk/emmc"
```

最终的更改应如下所示：

```bash IQ-9075-EVK theme={null}
- QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-9075-evk/ufs"
+ QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-9075-evk/emmc"
```

```bash IQ-8275-EVK theme={null}
- QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-8275-evk/ufs"
+ QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-8275-evk/emmc"
```

此更改会指示构建使用与目标关联的 eMMC 分区配置。

### 2. 构建镜像

更新机器配置后，按照该目标使用的标准构建流程构建镜像，如[构建说明](https://dragonwingdocs.qualcomm.com/Key-Documents/Yocto-Guide/build-qualcomm-linux.md#build-instructions)所示。

无需额外的 eMMC 专用构建命令。请使用与该设备相同的机器和镜像配置。
