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

# 为 Yocto BSP 构建配置存储类型

Machine configurations come with either UFS or eMMC storage enabled by default,
and these settings are reflected in the prebuilt images. If you need to modify
the storage type, you must update the configuration and rebuild the image, as
this cannot be changed in prebuilt binaries.

The default storage configurations for supported platforms are

| Machine | Storage Type |
| :- | :- |
| IQ-9075-EVK | UFS |
| IQ-8275-EVK | UFS |
| QCS6490 | UFS |
| IQ-615-EVK | EMMC |
| IQ-X7181-EVK | UFS/SPINOR |
| IQ-X5121-EVK | UFS/SPINOR |
| SHIKRA-EVK | EMMC |

要修改机器的默认存储类型，请按照以下步骤操作

* 进入 `meta-qcom` 层中的 `conf/machine` 目录
  ```bash theme={null}
  cd meta-qcom/conf/machine
  ```

* 检查机器配置以查看当前启用的是哪种存储

  <CodeGroup>
    ```bash IQ-9075-EVK theme={null}
    cat iq-9075-evk.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```

    ```bash IQ-8275-EVK theme={null}
    cat iq-8275-evk.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```

    ```bash IQ-615-EVK theme={null}
    cat iq-615-evk.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```

    ```bash QCS6490 theme={null}
    cat rb3gen2-core-kit.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```

    ```bash IQ-X7181 theme={null}
    cat iq-x7181-evk.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```

    ```bash IQ-X5121 theme={null}
    cat iq-x5121-evk.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```

    ```bash IQ2390 / CQ2390 theme={null}
    cat shikra-evk.conf | grep "QCOM_PARTITION_FILES_SUBDIR"
    ```
  </CodeGroup>

* 更新 machine.conf 中的 `QCOM_PARTITION_FILES_SUBDIR` 变量以设置
  正确的存储类型

  <CodeGroup>
    ```text EMMC theme={null}
    QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-615-evk/emmc"
    ```

    ```text UFS theme={null}
    QCOM_PARTITION_FILES_SUBDIR ?= "partitions/iq-615-evk/ufs"
    ```
  </CodeGroup>
