Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick to earlgrey_1.0.0: [opentitantool] Improvement to HyperDebug firmware upgrade #24893

Merged
merged 2 commits into from
Oct 28, 2024

Conversation

github-actions[bot]
Copy link

This is an automatic cherry-pick of #24678 to branch earlgrey_1.0.0.

Firmware upgrading of HyperDebug requires entering and leaving "DFU
mode", each of which involves resetting connection with the USB device.

Previous code waited one second for the device to reset after upgrading
concluded, before attempting to restablish USB connection with the newly
flashed firmware.  This turns out to be insufficient on some machines.

This patch will wait up to five seconds, checking twice a second if the
device is available, and terminating early if it is.

Change-Id: Ib59d7f5ebaf234a5c2508253236f6bc3ee96c83f
Signed-off-by: Jes B. Klinke <[email protected]>
(cherry picked from commit 888c828)
Require the `--force` switch in order to downgrade firmware with
`opentitantool transport update-firmware`.  Without it, the command will
emit a warning and terminate with success (as is currently the case when
the version matches exactly what is already running.)

Change-Id: I98833fc59026671542f54ba6272bae273c308ea9
Signed-off-by: Jes B. Klinke <[email protected]>
(cherry picked from commit 89a457c)
@github-actions github-actions bot requested a review from a team as a code owner October 25, 2024 17:02
@github-actions github-actions bot requested review from jwnrt and removed request for a team October 25, 2024 17:02
@cfrantz cfrantz removed the request for review from jwnrt October 25, 2024 17:03
@cfrantz cfrantz merged commit 74436b8 into earlgrey_1.0.0 Oct 28, 2024
26 checks passed
@a-will a-will deleted the backport-24678-to-earlgrey_1.0.0 branch October 28, 2024 16:25
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