跳到主要内容

使用 EDL 工具

介绍 Windows 和 Ubuntu 系统下安装高通设备驱动、设置 EDL 工具环境变量和使用 EDL 工具的方法。

安装驱动​

  • 下载驱动

在 Windows 平台,您需要访问 资源汇总下载 页面下载驱动文件。

  • 安装驱动

解压下载好的驱动文件,以管理员身份运行 Install.bat 文件安装驱动。

  • 设备识别

在 Windows 系统中,可以进入系统的 设备管理器 查看设备是否被正常识别。

使用 EDL 工具​

下载 EDL 工具​

您需要访问 资源汇总下载 页面下载 EDL 工具。

设置环境变量​

设置环境变量,可以简化后续的烧录操作,简化命令。

  1. 使用 Win + R 打开运行对话框,输入 sysdm.cpl,点击 确定。
  1. 在 System Properties 选项窗口中,点击 Advanced 选项卡,点击 Environment Variable ... 按钮。
  1. 在 Environment Variables 选项窗口中,双击 System variables 下的 Path 变量。
  1. 在 Edit Environment Variable 选项窗口中,点击 New 按钮,然后输入自己平台的 EDL 工具路径,点击 OK 按钮。
  1. 完成以上操作,重新打开终端,如果输入 edl-ng 命令可以查看到版本信息,说明设置成功。
Windows$
edl-ng

终端输出示例:

Description:
edl-ng - Qualcomm Emergency Download CLI

Usage:
edl-ng [command] [options]

Options:
-l, --loader <loader> Path to the Firehose programmer (e.g., prog_firehose_*.elf).
--vid <vid> Specify USB Vendor ID (hex).
--pid <pid> Specify USB Product ID (hex).
--memory <NAND|NVME|SDCC|SPINOR|UFS> Set memory type for Firehose operations (e.g., SDCC, SPINOR, UFS, NAND, NVME). Defaults typically to UFS.
--loglevel <Debug|Error|Info|Trace|Warning> Set the logging level. [default: Info]
--maxpayload <maxpayload> Set max payload size in bytes for Firehose configure command.
-s, --slot <slot> Specify the slot for operations (0 or 1). Defaults to 0.
This is useful when memory is sdcc. Slot 0 is typically eMMC, and slot 1 is typically sdcard. [default: 0]
--version Show version information
-?, -h, --help Show help and usage information

Commands:
upload-loader Connects in Sahara mode and uploads the specified Firehose loader (--loader). Does not proceed to Firehose
operations.
reset Resets or powers off the device using Firehose.
printgpt Reads and prints the GPT (GUID Partition Table) from the device.
read-part <partition_name> <filename> Reads a partition by name from the device, saving to a file.
read-sector <start_sector> <sectors> <filename> Reads a specified number of sectors from a given LUN and start LBA, saving to a file.
write-part <partition_name> <filename> Writes data from a file to a partition by name.
write-sector <start_sector> <filename> Writes data from a file to a specified number of sectors from a given LUN and start LBA.
erase-part <partition_name> Erases a partition by name from the device.
erase-sector <start_sector> <sectors> Erases a specified number of sectors from a given LUN and start LBA.
provision <xmlfile> Performs UFS provisioning using an XML file.
rawprogram <xmlfile_patterns> Processes rawprogramN.xml and patchN.xml files for flashing.

    您需要登录 GitHub 才能发表评论。如果您已登录,请忽略此消息。

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0