Skip to content

feat: capsule-update: automate negative capsule generation on-device - #804

Merged
chetan-rathore merged 1 commit into
ARM-software:mainfrom
sathishas89:feature/dt/on_device_capsule_generation
Nov 16, 2026
Merged

chetan-rathore merged 1 commit into
ARM-software:mainfrom
sathishas89:feature/dt/on_device_capsule_generation

Conversation

@sathishas89

Copy link
Copy Markdown
Collaborator

Automate generation of unauthenticated and tampered capsule variants from the partner-provided signed capsule during ACS-DT execution.

  • Generate unauth.bin and tampered.bin using capsule-tool.py.
  • Validate input capsule, tool availability, memory, and storage before generation.
  • Reuse valid pre-generated negative capsules when already available.
  • Generate outputs through temporary files and publish them atomically.
  • Add a transaction marker to detect and recover from interrupted or partially published capsule generation.
  • Synchronize generated variants before completing the transaction to protect against unexpected reset or power loss.
  • Distinguish unsupported resource conditions from generation/setup failures using dedicated result flags.
  • Integrate generation status with the existing capsule update flow and reboot handling.
  • Add host-side behavioral coverage for success, failure, resource limits, interrupted generation, and partial-publication recovery.

Change-Id: I61613209177d446e0cafa1372355ef4899eb0c6c

Automate generation of unauthenticated and tampered capsule variants
from the partner-provided signed capsule during ACS-DT execution.

- Generate unauth.bin and tampered.bin using capsule-tool.py.
- Validate input capsule, tool availability, memory, and storage before
  generation.
- Reuse valid pre-generated negative capsules when already available.
- Generate outputs through temporary files and publish them atomically.
- Add a transaction marker to detect and recover from interrupted or
  partially published capsule generation.
- Synchronize generated variants before completing the transaction to
  protect against unexpected reset or power loss.
- Distinguish unsupported resource conditions from generation/setup
  failures using dedicated result flags.
- Integrate generation status with the existing capsule update flow and
  reboot handling.
- Add host-side behavioral coverage for success, failure, resource
  limits, interrupted generation, and partial-publication recovery.

Signed-off-by: Sathisha S <sathisha.shivaramappa@arm.com>
Change-Id: I61613209177d446e0cafa1372355ef4899eb0c6c
@chetan-rathore
chetan-rathore merged commit c91a76a into ARM-software:main Nov 16, 2026
4 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.

2 participants