Skip to content

Conversation

@igoropaniuk
Copy link
Contributor

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>

@igoropaniuk igoropaniuk force-pushed the dry_run_support branch 3 times, most recently from e3da70f to 2929f09 Compare March 27, 2025 23:13
@igoropaniuk igoropaniuk force-pushed the dry_run_support branch 4 times, most recently from 9ecd150 to d921829 Compare April 22, 2025 14:39
@igoropaniuk igoropaniuk requested a review from andersson April 22, 2025 14:39
@igoropaniuk igoropaniuk changed the title [RFC] qdl: add support for dry run execution qdl: add support for dry run execution Apr 22, 2025
@igoropaniuk
Copy link
Contributor Author

@andersson Thank you for your review. I have addressed all your recently posted comments. Please let me know if there's anything else I need to do.

@igoropaniuk
Copy link
Contributor Author

@konradybcio @lumag could you please take a look

Copy link
Contributor

@lumag lumag left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Commit message for the first patch doesn't answer on the main question: why are you decoupling it. Please update it to describe the reason for the changes.
  • Ideally all 'Why' questions should get some comment in the file.

@igoropaniuk
Copy link
Contributor Author

@lumag all comments addressed (to some extent), please let me know if you have additional comments/objections. Thanks!

@igoropaniuk igoropaniuk requested a review from lumag April 30, 2025 15:18
@igoropaniuk
Copy link
Contributor Author

igoropaniuk commented May 13, 2025

@lumag @andersson all comments addressed, please let me know if you have additional comments/objections. Thanks!

Rebased on the latest master branch.

@igoropaniuk igoropaniuk force-pushed the dry_run_support branch 3 times, most recently from 354c956 to 0ae99ca Compare May 13, 2025 12:32
@igoropaniuk
Copy link
Contributor Author

Rebased onto the latest master.

Decouple the flashing logic from the underlying type of communication.
This is needed for introducing simulation mode, where no real flashing is
performed, but firehose packets are used for other tasks, like
VIP table generation.

Signed-off-by: Igor Opaniuk <igor.opaniuk@oss.qualcomm.com>
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>
@lumag
Copy link
Contributor

lumag commented May 14, 2025

@andersson @konradybcio I have no remaining issues with this PR. I think we can merge it now. WDYT?

@lumag lumag requested a review from konradybcio May 14, 2025 18:42
@konradybcio konradybcio merged commit 672abb1 into linux-msm:master May 15, 2025
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants