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

# 下载预构建包

> 此信息描述如何下载 robotics 预构建包。

export function artifactUrls(machine, tag) {
  const base = 'https://artifacts.codelinaro.org/artifactory/qli-ci/flashable-binaries/meta-qcom-robotics/qcom-robotics-distro/' + machine + '/';
  return {
    roboticsImage: base + tag + '-qcom-robotics-image.zip',
    proprietaryImage: base + tag + '-qcom-robotics-proprietary-image.zip',
    sdkX86: base + 'x86-' + tag + '-robotics-sdk-artifacts.zip',
    sdkArm: base + 'arm-' + tag + '-robotics-sdk-artifacts.zip',
    esdkX86: base + 'x86-' + tag + '-esdk.zip',
    esdkArm: base + 'arm-' + tag + '-esdk.zip'
  };
}

export const QLI_TAG = 'qli-2.1';

export const DownloadTable = ({machine, caption}) => {
  const u = artifactUrls(machine, QLI_TAG);
  return <table>
    {caption ? <caption>{caption}</caption> : null}
    <thead>
      <tr>
        <th align="center">预构建组件</th>
        <th align="center">x86</th>
        <th align="center">Arm<sup>®</sup></th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td align="left">Robotics 镜像</td>
        <td align="left" colSpan={2}><code>wget {u.roboticsImage}</code></td>
      </tr>
      <tr>
        <td align="left">Robotics 专有镜像</td>
        <td align="left" colSpan={2}><code>wget {u.proprietaryImage}</code></td>
      </tr>
      <tr>
        <td align="left">QIR SDK</td>
        <td align="left"><code>wget {u.sdkX86}</code></td>
        <td align="left"><code>wget {u.sdkArm}</code></td>
      </tr>
      <tr>
        <td align="left">Robotics eSDK</td>
        <td align="left"><code>wget {u.esdkX86}</code></td>
        <td align="left"><code>wget {u.esdkArm}</code></td>
      </tr>
    </tbody>
  </table>;
};

QIR SDK 有以下预构建包：

* **Robotics 镜像**：一个基于 Qualcomm Linux 发布版的可刷写镜像，其中添加了 ROS 核心包，默认包含 QIR SDK。此镜像直接刷写到目标设备。你可以直接使用 robotics 镜像获得开箱即用的体验。
* **Robotics 专有镜像**：一个可刷写镜像，包含 Robotics 镜像的所有组件，并直接刷写到目标设备。它还提供依赖 Qualcomm 专有库的 qrb-ros 包，包括摄像头、视频、音频、色彩空间转换以及所有的 AI 示例应用。
* **QIR SDK**：一个在你的主机计算机上运行的包。它不仅提供带有开箱即用体验的运行时安装包，还提供交叉编译工具链。使用主机计算机上的该工具链，你可以为目标设备快速交叉编译应用 - 参见提供的示例。
* **Robotics eSDK**：安装在主机计算机上的包。它提供了完整的 Yocto 环境，使你可以同步、修改、编译和安装应用。有关详细信息，请参见 [使用预构建 robotics eSDK 构建 robotics 镜像](./build-the-robotics-image-with-the-prebuilt-robotics-esdk)。

<Note>
  **注意** 不确定使用哪个包？

  * 如果你想为目标设备开发和交叉编译应用，请使用 **QIR SDK**。参考提供的示例开始使用。
  * 如果你希望在 OS 或 Yocto 层级自定义或重建 robotics 系统镜像，请使用 **Robotics eSDK**。
  * Qualcomm Linux overlay 配置让你无需重新刷写设备即可在开源和 Qualcomm 专有特性之间切换。robotics 镜像是 Config #1；robotics 专有镜像是 Config #2。有关详细信息，请参见 [在 QIR SDK 上启用和评估 Qualcomm Linux overlays](./enable-and-evaluate-qualcomm-linux-overlays-on-QIR-SDK)。
</Note>

## 前提条件

有一台 [用于 QIR SDK 的主机计算机](./get-started-with-qir-sdk#host-computer-for-qir-sdk)。

## 下载各个开发套件的预构建包

以下示例适用于 Ubuntu 主机计算机。
如果你使用 Windows，可以直接点击第 1 步中的链接下载包，或者复制该链接并在浏览器中打开下载。

<Accordion title="试一试">
  <Tabs>
    <Tab title="IQ-9075 Evaluation Kit">
      1. 下载与你的设备型号和主机架构（x86/Arm<sup>®</sup>）匹配的预构建包。

               <DownloadTable machine="iq-9075-evk" caption="表：IQ-9075 Evaluation Kit 的预构建包" />

               <Note>
                 **注意**

                 * 要查看主机架构，请运行 `uname -m` 命令。
               </Note>
      2. 使用以下命令解压下载的 ZIP 文件：
         ```python theme={null}
         unzip <downloaded_file>.zip
         ```
         下表列出了内容及各自的位置：
         |               | **表：IQ-9075-EVK 预构建条目的内容和位置**                                                             |
         | ------------- | ----------------------------------------------------------------------------------------- |
         | **内容类型**      | **文件路径**                                                                                  |
         | Robotics 镜像   | `<decompressed_workspace>/images/iq-9075-evk/qcom-robotics-image-iq-9075-evk`             |
         | Robotics 专有镜像 | `<decompressed_workspace>/images/iq-9075-evk/qcom-robotics-proprietary-image-iq-9075-evk` |
         | QIR SDK       | `<decompressed_workspace>/images/iq-9075-evk/qirpsdk_artifacts/iq-9075-evk/`              |
         | Robotics eSDK | `<decompressed_workspace>/images/iq-9075-evk/sdk/`                                        |
      3. 使用 `tree` 命令检查目录结构：

         ```bash theme={null}
         cd <decompressed_workspace>
         tree images/ -L 2
         ```

         操作成功应产生类似以下示例的目录结构：

         ```bash theme={null}

           images
              └── iq-9075-evk
                  ├── NO.LOGIN.BINARY.LICENSE.QTI.pdf
                  ├── NOTICE
                  ├── qcom-robotics-image-iq-9075-evk
                  ├── qcom-robotics-proprietary-image-iq-9075-evk
                  ├── qirpsdk_artifacts
                  └── sdk
         ```
    </Tab>

    <Tab title="IQ-8275 Evaluation Kit">
      1. 下载与你的设备型号和主机架构（x86/Arm<sup>®</sup>）匹配的预构建包。

               <DownloadTable machine="iq-8275-evk" caption="表：IQ-8275 Evaluation Kit 的预构建包" />

               <Note>
                 **注意**

                 * 要查看主机架构，请运行 `uname -m` 命令。
               </Note>
      2. 使用以下命令解压下载的 ZIP 文件：
         ```python theme={null}
         unzip <downloaded_file>.zip
         ```
         下表列出了内容及各自的位置：
         |               | **表：IQ-8275-EVK 预构建条目的内容和位置**                                                             |
         | ------------- | ----------------------------------------------------------------------------------------- |
         | **内容类型**      | **文件路径**                                                                                  |
         | Robotics 镜像   | `<decompressed_workspace>/images/iq-8275-evk/qcom-robotics-image-iq-8275-evk`             |
         | Robotics 专有镜像 | `<decompressed_workspace>/images/iq-8275-evk/qcom-robotics-proprietary-image-iq-8275-evk` |
         | QIR SDK       | `<decompressed_workspace>/images/iq-8275-evk/qirpsdk_artifacts/iq-8275-evk/`              |
         | Robotics eSDK | `<decompressed_workspace>/images/iq-8275-evk/sdk/`                                        |
      3. 使用 `tree` 命令检查目录结构：

         ```bash theme={null}
         cd <decompressed_workspace>
         tree images/ -L 2
         ```

         操作成功应产生类似以下示例的目录结构：

         ```bash theme={null}

           images
              └── iq-8275-evk
                  ├── NO.LOGIN.BINARY.LICENSE.QTI.pdf
                  ├── NOTICE
                  ├── qcom-robotics-image-iq-8275-evk
                  ├── qcom-robotics-proprietary-image-iq-8275-evk
                  ├── qirpsdk_artifacts
                  └── sdk
         ```
    </Tab>
  </Tabs>
</Accordion>

## 后续步骤

[刷写 robotics 镜像](./flash-the-robotics-image)
