> ## 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.

# Configure the storage type for Yocto BSP build

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   |

To modify the default storage type for your machine, follow these steps

* Navigate to the `conf/machine` directory in the `meta-qcom` layer
  ```bash theme={null}
  cd meta-qcom/conf/machine
  ```

* Check the machine configuration to figure out which storage is currently
  enabled

  <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"
    ```
  </CodeGroup>

* Update the `QCOM_PARTITION_FILES_SUBDIR` variable in the machine.conf to set
  the correct storage type

  <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>
