-
Notifications
You must be signed in to change notification settings - Fork 279
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hpr: aei: Add support for updating AEI HPR PSUs
Summary: (1) Add config for HPR devices. This allows us to do different things for HPR (Example, HPR has different block sizes and binary embeds the block#) (2) Add timeouts everywhere. (3) Retry isp_enter. (4) Move isp_enter and isp_exit into an isp context manager. So, we always exit ISP mode when we fail. (5) If HPR do not prefix block# to the data. Assume its part of the 68b block. Also this implies we no longer validate the response. (6) wait_update_complete now checks if the PSU has rebooted before waiting for bit-changes. (7) Pass address to suppress_monitoring so it can pause PMM along with rackmon monitoring. Test Plan: Update AEI PSU: P1558749788 ``` psu-update-aei.py --addr 144 --device hpr ./AEI/PSU/ORV3_PSU_HPR_v02K_FW_TEST.bin ``` Reviewed By: doranand Differential Revision: D62052667 fbshipit-source-id: c702a3aa16db4c661b76417032f73f926bc366ec
- Loading branch information
1 parent
0b97d87
commit 37d941b
Showing
1 changed file
with
88 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters