Igor Opaniuk 672abb1e81 qdl: add support for dry run execution
This mode assists in validating the `rawprogram_.xml` and `patch_.xml`
files, as well as the Firehose commands that are expected to be sent
to the Firehose programmer.

Dry run implementation is also expected to be extended for
the Digests Table generation required for Firehose Validated Image
Programming (VIP).

Example of usage:
$ qdl --dry-run --serial=0AA94EFD --debug prog_firehose_ddr.elf rawprogram*.xml patch*.xml
qdl version v2.1-24-g30ac3a8-dirty
This is a dry-run execution of QDL. No actual flashing has been performed
waiting for programmer...
FIREHOSE WRITE: <?xml version="1.0"?>
<data><configure MemoryName="ufs" MaxPayloadSizeToTargetInBytes="1048576"
verbose="0" ZLPAwareHost="1" SkipStorageInit="0"/></data>

FIREHOSE WRITE: <?xml version="1.0"?>
<data><configure MemoryName="ufs" MaxPayloadSizeToTargetInBytes="0"
verbose="0" ZLPAwareHost="1" SkipStorageInit="0"/></data>

accepted max payload size: 0
FIREHOSE WRITE: <?xml version="1.0"?>
<data><program SECTOR_SIZE_IN_BYTES="4096" num_partition_sectors="131072"
physical_partition_number="0" start_sector="6" filename="efi.bin"/></data>

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
2025-05-15 02:41:08 +02:00
2017-08-29 13:56:05 +02:00
2025-05-15 02:41:08 +02:00
2025-05-02 19:00:09 -04:00
2017-10-04 19:33:09 -07:00
2025-05-02 19:00:09 -04:00
2025-05-02 19:00:09 -04:00
2024-12-20 11:18:34 -06:00
2025-05-15 02:41:08 +02:00
2025-05-15 02:41:08 +02:00
2025-05-15 02:41:08 +02:00
2025-05-02 19:00:09 -04:00
2024-06-10 10:33:05 -05:00
2025-05-15 02:41:08 +02:00
2024-12-20 11:18:34 -06:00
2025-05-15 02:41:08 +02:00
2025-05-02 19:00:09 -04:00

Qualcomm Download
=================

This tool communicates with USB devices of id 05c6:9008 to upload a flash
loader and use this to flash images.

Usage:
  qdl <prog.mbn> [<program> <patch> ...]

Building
========
In order to build the project you need libxml2 and libusb-1.0 headers
and libraries, found in e.g. the libxml2-dev and libusb-1.0.0-dev packages

With these installed run:
  make
Description
No description provided
Readme BSD-3-Clause 928 KiB
Languages
C 96.8%
Makefile 1.7%
Shell 1.5%