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

# Switch to EDL mode using UART

## Introduction

Describes an alternative procedure to switch devices into EDL mode
using UART. This procedure is only applicable if the device has a preloaded build.

At a high level, the workflow includes the following:

* Set up the host system with the required tools (UART console access)
* Establish a UART connection to the device
* Trigger the device to enter EDL mode using UART commands

## Install required packages

Minicom is a lightweight, terminal-based serial communication program used on Linux systems
to interact with devices over a UART (serial) connection. It allows you to access the device’s
console, view boot logs, and send commands directly to the system at a low level.

Install Minicom on the host system:

```bash theme={null}
sudo apt install minicom
```

## Connect to a UART shell

* To set up the debug UART connection and view the diagnostic messages, connect the micro-USB cable from the micro-USB port on the device to the Linux host.

  <Tabs>
    <Tab title="QCS6490/QCS5430">
      <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/micro_usb_port.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=33d1ab836689e3ff4a259c77fecde598" alt="micro_usb_port" width="800" height="610" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/micro_usb_port.png" />
    </Tab>

    <Tab title="IQ-9075">
      <Tabs>
        <Tab title="IQ-9 Beta EVK">
          <img src="https://mintcdn.com/qualcomm-prod/Im5W2pUR5LdqxAI6/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_ridesx.png?fit=max&auto=format&n=Im5W2pUR5LdqxAI6&q=85&s=70aa35c3f9d03346fded1cf35c87696d" alt="uart_ridesx" width="598" height="549" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_ridesx.png" />
        </Tab>

        <Tab title="IQ-9075 EVK">
          <img src="https://mintcdn.com/qualcomm-prod/Im5W2pUR5LdqxAI6/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq9075_evk.png?fit=max&auto=format&n=Im5W2pUR5LdqxAI6&q=85&s=dab21179562e93eda50da2f2b1da6a2e" alt="uart_iq9075_evk" width="926" height="709" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq9075_evk.png" />
        </Tab>
      </Tabs>
    </Tab>

    <Tab title="IQ-8275">
      <Tabs>
        <Tab title="IQ-8 Beta EVK">
          <img src="https://mintcdn.com/qualcomm-prod/Im5W2pUR5LdqxAI6/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_ridesx.png?fit=max&auto=format&n=Im5W2pUR5LdqxAI6&q=85&s=70aa35c3f9d03346fded1cf35c87696d" alt="uart_ridesx" width="598" height="549" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_ridesx.png" />
        </Tab>

        <Tab title="IQ-8275 EVK">
          <img src="https://mintcdn.com/qualcomm-prod/Im5W2pUR5LdqxAI6/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq9075_evk.png?fit=max&auto=format&n=Im5W2pUR5LdqxAI6&q=85&s=dab21179562e93eda50da2f2b1da6a2e" alt="uart_iq9075_evk" width="926" height="709" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq9075_evk.png" />
        </Tab>
      </Tabs>
    </Tab>

    <Tab title="IQ-615">
      <img src="https://mintcdn.com/qualcomm-prod/Im5W2pUR5LdqxAI6/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq_615.png?fit=max&auto=format&n=Im5W2pUR5LdqxAI6&q=85&s=ca7e2b65e3da31639fb8f1160f3f2c6a" alt="uart_iq615_evk" width="1004" height="864" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq_615.png" />
    </Tab>

    <Tab title="IQ-X7181/IQ-X5121">
      <img src="https://mintcdn.com/qualcomm-prod/Im5W2pUR5LdqxAI6/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iqx7181.png?fit=max&auto=format&n=Im5W2pUR5LdqxAI6&q=85&s=46025a5f19a67845ecb4085c5a863e2e" alt="uart_iqx7181" width="697" height="674" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iqx7181.png" />
    </Tab>
  </Tabs>

* Check if the USB port is detected:

  ```bash theme={null}
  ls /dev/ttyUSB*
  ```

  ```text Sample output theme={null}
  /dev/ttyUSB0
  ```

* Open Minicom:
  ```bash theme={null}
  sudo minicom -s
  ```

* Use the Down arrow key to select the **Serial port setup** option. Use the Up and Down arrow keys to navigate through the menu.
  <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_port_setup.jpg?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=6a64f7b58bd29ee039a5e4ef2a7e1686" alt="serial_port_setup" width="300" height="228" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_port_setup.jpg" />

* Set up the serial device configuration:
  * Select **A** on your keyboard to set up the serial device name such as `/dev/ttyUSB0`.
  * Select **Enter** to save the changes.
  * Select **E** on your keyboard to set the baud rate and 8N1 configuration:
    * Select the **E** key again if the baud rate isn’t set to **115200**.
    * Select the **Q** key if the configuration isn’t set to **8N1**.
      <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/option_Q.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=d7fcf06cbd38c36f6cb7aab40e0598db" alt="option_Q" width="514" height="509" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/option_Q.png" />
  * Select **Enter** to save the changes.
  * Select **F** on your keyboard to set the **Hardware Flow Control** to `No`.
    <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_device_configuration.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=08f13a787b810197528656add5188562" alt="serial_device_configuration" width="524" height="385" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_device_configuration.png" />
  * Select **Enter** to save the changes.

* Select the **Save setup as dfl** option and then select **Enter**.
  <img src="https://mintcdn.com/qualcomm-prod/yUQ5Z3Vx_Ib3ymoN/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/save_setup_as_dfl.png?fit=max&auto=format&n=yUQ5Z3Vx_Ib3ymoN&q=85&s=1209f477fed0709fdf91d54ad8b2c128" alt="save_setup_as_dfl" width="250" height="189" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/save_setup_as_dfl.png" />

* Select **EXIT** to open the UART console and then select **Enter**.

* Sign in to the UART console:
  * Login: `root`
  * Password: `oelinux123`

<Note>
  If the sign in console doesn't display as expected, verify the USB connection. If the issue persists, disconnect and then reconnect the micro-USB.
</Note>

## Switch device to EDL mode

* In the UART shell, move the device into EDL mode:
  ```bash theme={null}
  reboot edl
  ```

* Verify if the device is in EDL mode:

  ```bash theme={null}
  lsusb
  ```

  ```text Sample output theme={null}
  Bus 002 Device 014: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)
  ```
