Skip to main content

Introduction

Flash a prebuilt image onto a device. While Qualcomm hardware typically comes with a preloaded image, you can use this procedure to update to a newer software version or deploy images built from source. To flash a prebuilt image, the following steps are required:

Set up workspace

Open a PowerShell instance and navigate to preferred workspace path. This is where you’ll download and extract QDL, download the flashable image, and flash the image onto the device.

Download required packages

QDL is a software utility used to communicate with Qualcomm USB devices in Emergency Download (EDL) mode, enabling you to upload a flash loader and program software images onto the device. Follow these steps to download and setup QDL on your system:
  • Download the QDL binary from the Qualcomm Software Center using the following command:
  • Extract the downloaded archive:
  • Add the QDL executable to your user PATH:
    • Press Win + S, search for environment variables, and open Edit environment variables for your account.
    • Under User variables, select Path and click Edit.
    • Click New and add the full path to <unzipped-qdl-directory>.
    • Click OK on each open dialog to save the changes.
      Restart PowerShell for the updated PATH to take effect.
      Setup Environment Variables
  • Verify that the QDL executable is accessible:
  • Run install_driver.bat from the extracted QDL directory to install the QDL driver.
    • In File Explorer, navigate to <unzipped-qdl-directory>.
    • Right-click install_driver.bat and select Run as administrator. Check Device Manager

Obtain flashable image

Before flashing, you need a flashable image directory on your host machine. Depending on how you obtained your image, choose one of the following paths.
Prebuilt images are distributed as compressed archives. Download the archive for your device from the Obtain Prebuilt Images section, extract the archive, and go to the extracted directory.
  • Extract the archive:
  • Go to the extracted directory:
All subsequent instructions are expected to be run from this directory unless stated otherwise.

Identify storage configuration

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

Configure CDT

The configuration data table (CDT) contains device-specific information required for proper platform initialization. You need to select the correct CDT file based on your reference kit before flashing.
  • Multiple CDT binaries are provided as part of the qcomflash tarball. Choose the correct CDT binary for your kit and replace the default cdt.bin with the appropriate one.
  • After the entire flashing process succeeds, you can verify that the correct CDT is loaded by reviewing the UEFI serial logs. Use the Subtype field to identify the CDT loaded onto your device.
    Sample output

Switch device to EDL mode

The device must be in the EDL mode before you flash the software image. The Qualcomm supported device by default enters EDL mode if there is no image on the device after power up or if it’s corrupted. Follow these steps to force the device into EDL mode.
  • Press and hold the F_DL button. Figure: RB3Gen2_device
  • Connect the device to a +12 V wall power supply.
  • Connect the device to the host system through the USB Type-C connector.
  • Release the F_DL button. The device is now in EDL mode.
  • Unplug the power cable once the entire flashing process is complete to exit EDL mode.
Verify if the device is in EDL mode by opening Device Manager and confirming that a Qualcomm USB device appears. The device should not appear under COM Ports.

Provision UFS

Universal flash storage (UFS) provisioning helps to divide the storage into many LUNs, which stores different types of data separately. This improves access efficiency and system organization. UFS is provisioned by default. If there are any changes in LUNs, UFS must be re-provisioned. To check if UFS needs to be re-provisioned, see the table UFS Provision in the Release Specific Information document.
  • Download the provision file from Qualcomm’s artifacts server:
  • Extract the downloaded archive:
  • Go to the extracted directory:
  • Provision UFS:
After UFS provisioning completes, the device disconnects from USB. Toggle the power switch off and on to reboot it back into EDL mode before continuing.
  • Navigate back to the previous directory:

Flash SAIL

Safety Island (SAIL) image contains the isolated, safety‑critical firmware that runs on the dedicated safety island to ensure secure boot and reliable system operation are independent of the main processor.
Safety Island (SAIL) is applicable only for the Qualcomm Dragonwing™ IQ-9075 and the Qualcomm Dragonwing™ IQ-8275 development kits. If you’re not using one of these development kits, skip this section.
  • The SAIL artifacts are present under the sail_nor directory within the unpacked qcomflash directory. Go to the following directory:
  • Flash the SAIL:
  • Navigate back to the previous directory:

Flash software image

This section describes how to flash the image using QDL and verify a successful flashing process.
  • Flash the software image using QDL by selecting the appropriate storage option.
  • Flashing is successful if you see partition 1 is now bootable on the terminal window as shown in the following message:
    Sample output
  • If flashing fails, perform the following steps and retry the flashing procedure:
    • Power off the device
    • Disconnect from the host
    • Restart the host