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

# 启动您的设备

## 简介

介绍在设备烧录完成后如何访问设备。您可以使用以下两种连接方式之一：

* UART，用于低级串行控制台访问
* ADB，用于标准 shell 访问

## 使用 UART 连接

### 安装 Minicom

Minicom 是一款轻量级、基于终端的串行通信程序，在 Linux 系统上
用于通过 UART（串行）连接与设备交互。它允许您访问设备的
控制台、查看启动日志，并以底层方式直接向系统发送命令。

在主机系统上安装 Minicom：

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

### 连接

* 要建立调试 UART 连接并查看诊断消息，请使用相应的调试 UART 线缆将设备连接到 Linux 主机。

  <Tabs>
    <Tab title="QCS6490/QCS5430">
      <img src="https://mintcdn.com/qualcomm-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/micro_usb_port.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=4199044c7a06f27934c0b41f99c63b65" 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-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_ridesx.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=e3d86ba204b7c3e53a97815f43536461" 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-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq9075_evk.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=a59bc47ca45a17709a0ed9b4a361c3cb" 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-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_ridesx.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=e3d86ba204b7c3e53a97815f43536461" 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-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq9075_evk.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=a59bc47ca45a17709a0ed9b4a361c3cb" 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-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iq_615.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=9442f40382c590e7d93bf4757d850d61" 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-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iqx7181.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=78b84dc45145572ea3bcc6e4e6932b2e" alt="uart_iqx7181" width="697" height="674" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/uart_iqx7181.png" />
    </Tab>

    <Tab title="CQ-2390/IQ-2390">
      使用 USB-A 转 USB-C 线缆将 EVK 连接到主机计算机。

      在 IQ-2390 EVK 上，刷写完成后关闭 S1011-1 DIP 开关，然后在打开 UART 控制台后按 **SYS\_ON** 按钮启动引导过程。

      <img src="https://mintcdn.com/qualcomm-staging/bpPV96hxF3W6ng5f/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/iq2390_sys_on_power_button.png?fit=max&auto=format&n=bpPV96hxF3W6ng5f&q=85&s=41ff7cc16d7e003fce7a76ea7f807a81" alt="图：iq2390_sys_on_power_button" width="947" height="552" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/iq2390_sys_on_power_button.png" />
    </Tab>
  </Tabs>

* 检查是否检测到 USB 端口：

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

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

* 打开 Minicom：
  ```bash theme={null}
  sudo minicom -s
  ```

* 使用向下方向键选择 **Serial port setup** 选项。使用向上和向下方向键在菜单中导航。
  <img src="https://mintcdn.com/qualcomm-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_port_setup.jpg?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=2344831753d8363c563283fe342871d0" alt="serial_port_setup" width="300" height="228" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_port_setup.jpg" />

* 设置串行设备配置：
  * 在键盘上按 **A** 键设置串行设备名称，例如 `/dev/ttyUSB0`。
  * 按 **Enter** 保存更改。
  * 在键盘上按 **E** 键设置波特率和 8N1 配置：
    * 如果波特率未设置为 **115200**，请再次按 **E** 键。
    * 如果配置未设置为 **8N1**，请按 **Q** 键。
      <img src="https://mintcdn.com/qualcomm-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/option_Q.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=5ef3b1ad8a61806966f90221836d8355" alt="option_Q" width="514" height="509" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/option_Q.png" />
  * 按 **Enter** 保存更改。
  * 在键盘上按 **F** 键将 **Hardware Flow Control** 设置为 `No`。
    <img src="https://mintcdn.com/qualcomm-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_device_configuration.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=b89ac3e3533ebf9d9d9c4f6738964d1e" alt="serial_device_configuration" width="524" height="385" data-path="Key-Documents/Flash-Guide/media/k2c-qli-build-ga/serial_device_configuration.png" />
  * 按 **Enter** 保存更改。

* 选择 **Save setup as dfl** 选项，然后按 **Enter**。
  <img src="https://mintcdn.com/qualcomm-staging/uWQLnBcS9sxlZhgB/Key-Documents/Flash-Guide/media/k2c-qli-build-ga/save_setup_as_dfl.png?fit=max&auto=format&n=uWQLnBcS9sxlZhgB&q=85&s=e9917f0a4ad68ada15f5538c491b9dd9" 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" />

* 选择 **EXIT** 打开 UART 控制台，然后按 **Enter**。

* 登录 UART 控制台：
  * 登录名：`root`
  * 密码：`oelinux123`

<Note>
  如果登录控制台未按预期显示，请检查 USB 连接。如果问题仍然存在，请断开并重新连接 micro-USB。
</Note>

## 使用 ADB 连接

<Note>
  设备上的 `adbd` 默认处于禁用状态，使用前必须显式启用。
</Note>

### 安装 ADB

ADB 用于与正在运行的设备通信，并且是从操作系统触发重启
进入 EDL 模式所必需的。它提供了一种便捷的方式，无需手动干预
即可将设备切换到适合刷写的正确状态。

* 使用系统软件包管理器在主机系统上安装 `adb`：
  ```bash theme={null}
  sudo apt install android-tools-adb android-tools-fastboot
  ```

* 验证系统上是否已安装 `adb`：

  ```bash theme={null}
  adb --version
  ```

  ```text Sample output theme={null}
  Android Debug Bridge version 1.0.39
  Version 1:8.1.0+r23-5ubuntu2
  ```

* `adbd` 服务默认处于禁用状态。在使用 `adb` 之前，需要进行一次性设置来
  启用该服务。

  * 按照
    [通过 UART 连接](/zh/Key-Documents/Flash-Guide/boot-up#connect-via-uart)指南连接到设备。

  * 创建文件 `/etc/usb-debugging-enabled` 以启用 `adbd`。

    ```bash theme={null}
    touch /etc/usb-debugging-enabled
    ```

  * 配置 `adbd` 服务以自动启动。

  ```bash theme={null}
  systemctl enable --now android-tools-adbd
  ```

### 连接

* 使用 USB Type-C 线缆将设备连接到主机。

* 确保 `adb` 已将该设备识别为设备：

  ```bash theme={null}
  adb devices
  ```

  ```text Sample output theme={null}
  List of devices attached
  68f592a device
  ```

* 连接到 `adb` shell：
  ```bash theme={null}
  adb shell
  ```
