Skip to content

htool: add payload info target_watchdog - #308

Open
rkr35 wants to merge 2 commits into
google:mainfrom
rkr35:payload-info-target-watchdog
Open

rkr35 wants to merge 2 commits into
google:mainfrom
rkr35:payload-info-target-watchdog

Conversation

@rkr35

@rkr35 rkr35 commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator
$ htool payload info target_watchdog payload.bin
initial_delay_seconds=120
watchdog_timeout_seconds=30
hold_in_reset_microseconds=500000

Google-Bug-Id: 571192861

rkr35 added 2 commits October 7, 2026 14:32
```
$ htool payload info target_watchdog payload.bin
initial_delay_seconds=120
watchdog_timeout_seconds=30
hold_in_reset_microseconds=500000
```

Google-Bug-Id: 571192861
Comment thread examples/htool_payload.c
libhoth_payload_target_watchdog_config(img.image, img.size, &config);
int rv = htool_payload_image_close(&img);
if (status == IMAGE_BLOB_NOT_FOUND) {
fprintf(stderr, "Image has no target watchdog (TWCH) blob\n");

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should this be an informational message instead of error?

Comment thread protocol/payload_info.c

struct image_blob_header {
uint32_t blob_type;
uint32_t payload_size;

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

nit: Would it be a good idea to document if this size contains the header as well?

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.

3 participants