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

# 安全工具

要在使用 TrustZone 和安全启动的 Qualcomm 设备上构建安全软件，所需的关键工具是 SecTools v2 和面向 Snapdragon<sup>®</sup> 设备的 Arm<sup>®</sup> LLVM 编译器。

SecTools v2 是一套 Qualcomm 安全工具，旨在支持 Qualcomm 片上系统（SoC）上的安全启动、镜像认证、调试策略创建和熔丝编程。用于 Qualcomm<sup>®</sup> 可信执行环境（Qualcomm TEE）的 LLVM 编译器是一个专用工具链，用于在 Qualcomm 设备上为 TEE 构建安全软件组件。

## **SecTools v2**

1. 进入 SecTools v2 文件夹。
   SecTools 可执行文件位于以下路径。
   > `<Metabuild>/<chipset>.LE.X.x/common/sectoolsv2/ext/<host_machine>`
   > 此文件夹包含安全启动、镜像签名和其他安全操作所需的二进制文件和脚本。
2. 找到安全配置文件 XML。
   > `<chipset>.LE.X.x/common/sectoolsv2/<chipset>_security_profile.xml` 文件定义了 SecTools 使用的安全配置。

> <Note>
>   所需的最低 SecTools 版本为 1.43 或更高。
> </Note>

下表列出了 SecTools v2 的文档。

**表：SecTools v2**

|                                                                                     **文档**                                                                                    |                **说明**                |
| :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------: | :----------------------------------: |
| [SecTools V2: Metabuild Secure Image User Guide](https://docs.qualcomm.com/bundle/80-NM248-17/resource/80-NM248-17_REV_AB_SecTools_V2__Metabuild_Secure_Image_User_Guide.pdf) |       对 metabuild 软件镜像执行安全镜像操作。      |
|             [SecTools V2: Fuse Blower User Guide](https://docs.qualcomm.com/bundle/80-NM248-9/resource/80-NM248-9_REV_AB_SecTools_V2__Fuse_Blower_User_Guide.pdf)             |  创建并签名熔丝熔断镜像。当设备使用熔丝熔断镜像时，会熔断指定的熔丝。  |
|               [SecTools V2: ELF Tool User Guide](https://docs.qualcomm.com/bundle/80-NM248-18/resource/80-NM248-18_REV_AD_SecTools_V2__ELF_Tool_User_Guide.pdf)               |          生成、添加段并合并 ELF 软件镜像。         |
|               [SecTools V2: MBN Tool User Guide](https://docs.qualcomm.com/bundle/80-NM248-19/resource/80-NM248-19_REV_AB_SecTools_V2__MBN_Tool_User_Guide.pdf)               |      将调制解调器配置二进制（MBN）头添加到二进制镜像。      |
|       [SecTools V2: ELF Consolidator User Guide](https://docs.qualcomm.com/bundle/80-NM248-20/resource/80-NM248-20_REV_AA_SecTools_V2__ELF_Consolidator_User_Guide.pdf)       | 创建合并的 ELF 软件镜像。合并的 ELF 包含多个子系统镜像的内容。 |
|                                [SecTools V2: Secure Image User Guide](https://docs.qualcomm.com/doc/80-NM248-12/topic/secure-image-usage.html)                                |        签名、加密和检查 Qualcomm 软件镜像。       |
|           [SecTools V2: Secure Debug User Guide](https://docs.qualcomm.com/bundle/80-NM248-23/resource/80-NM248-23_REV_AA_SecTools_v2__Secure_Debug_User_Guide.pdf)           |        生成并签名调试策略镜像，以启用设备调试和认证。       |

<Note>
  *SecTools* 指南仅面向具有授权访问权限的许可用户。
</Note>

## **后续步骤**

* 要初始化并配置硬件以在 Linux 上安全运行，请参阅[验证安全配置](./verify-the-security-configurations-of-qualcomm-linux)。
* 要配置 Qualcomm TEE 以保护处理敏感数据并运行可信应用程序的设备，请参阅[配置安全服务](./configure)。
