Jump to content

Qualcomm Dragonwing EVK Flashing Image

From RidgeRun Developer Wiki


Follow us on: YouTube Twitter LinkedIn Email Share this page

Share This Page




Qualcomm Dragonwing EVK Flashing Image

Setting up the board in EDL Mode

  1. Turn on the S2-3 DIP switch by pushing it up
  2. Dragonwing S2-3 DIP switch.
  3. Connect the board to a 12 V power supply
  4. Connect the board to the host computer through a USB Type-C connector
  5. Verify if the board enter EDL mode successfully with the lsusb command. You should see a similar output to the following:
    Bus 002 Device 014: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)

Update the UDEV rules.

  1. Got to the udev configuration directory:
    cd /etc/udev/rules.d
  2. Verify the contents in the directory:
    • If the 51-qcom-usb.rules does not exist, create it:
      sudo vi 51-qcom-usb.rules
    • Add thhe following contents:
      SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9008", MODE="0664", GROUP="plugdev"
    • If it does exist, check the content to see if it matches with the previous line:
      cat 51-qcom-usb.rules
  3. Restart the udev service:
    sudo systemctl restart udev

Install QDL Tools

  1. Use the QDL tool to flash images into the board:
    1. Download the QDL tool and unzip the contents.
       mv ~/Downloads/QDL_2.7_Linux_x64.zip .
      unzip QDL_2.7_Linux_x64.zip
    2. Give executable permission:
      chmod +x $WORK_DIR/dw-ubuntu-images/QDL_2.5_Linux_x64
      Info
      Use the version name you just downloaded, this may change between versions. Within the unzipped directory, refer to the QDL_USER_GUIDE for more information on its usage.
  2. Set the $qdl_tool_path variable:
     export qdl_tool_path=$WORK_DIR/dw-ubuntu-images/QDL_2.5_Linux_x64/

Flash binaries

  1. Perform UFS provisioning on the board:
    1. Download the provision folder by running:
      wget https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/QCS9100/provision.zip
      unzip provision.zip
    2. Move the provision_1_2.xml file from the unzipped directory to the $WORK_DIR/dw-ubuntu-images/QLI.1.7-Ver.1.1-ubuntu-QCS9100-nhlos-bins/ directory:
      mv provision_1_2.xml ./QLI.1.7-Ver.1.1-ubuntu-QCS9100-nhlos-bins/
    3. Provision UFS by running the following command from the unzipped provision directory:
      cd QLI.1.7-Ver.1.1-ubuntu-QCS9100-nhlos-bins/
      $qdl_tool_path/qdl --storage ufs prog_firehose_ddr.elf provision_1_2.xml
  2. Perform CDT Flashing:
    1. Download the CDT binary by running:
      wget https://artifacts.codelinaro.org/artifactory/codelinaro-le/Qualcomm_Linux/QCS9100/cdt/rb8_core_kit.zip
      unzip rb8_core_kit.zip
    2. Flash the CDT by running the following command from the unzipped CDT directory:
      $qdl_tool_path/qdl prog_firehose_ddr.elf rawprogram3.xml patch3.xml
  3. Flash the Ubuntu software images:
    1. Go to $WORK_DIR/dw-ubuntu-images/QLI.1.7-Ver.1.1-ubuntu-QCS9100-nhlos-bins/sail_nor and flash RTSS:
      $qdl_tool_path/qdl --storage spinor prog_firehose_ddr.elf rawprogram0.xml patch0.xml
    2. Go to $WORK_DIR/dw-ubuntu-images/QLI.1.7-Ver.1.1-ubuntu-QCS9100-nhlos-bins/ and flash Ubuntu:
      $qdl_tool_path/qdl --storage ufs prog_firehose_ddr.elf rawprogram*.xml patch*.xml


Remember to take the device out of EDL mode and restart it.
It is recommended to connect the flashing USB-C cable directly to the host computer. Hubs and adapters might lead to issues when flashing.

Cookies help us deliver our services. By using our services, you agree to our use of cookies.