Skip to content

fix for firmware functions #243

Merged
prgeor merged 3 commits intosonic-net:masterfrom
qinchuanares:fix-firmware-functions
Nov 24, 2021
Merged

fix for firmware functions #243
prgeor merged 3 commits intosonic-net:masterfrom
qinchuanares:fix-firmware-functions

Conversation

@qinchuanares
Copy link
Contributor

@qinchuanares qinchuanares commented Nov 24, 2021

This PR aims to fix firmware related functions

Description

  1. report updated address, count and remaining bytes info in module_fw_download()
  2. remove additional 200 ms wait time in block_write_lpl() and block_write_epl()
  3. increase max wait time to 1 min in cdb1_chkstatus() if status is not 1. If status is password error (70) it will break the wait loop.
  4. add protection to failed_status_dict

Motivation and Context

This PR aims to resolve failures due to not enough wait time. It moves all the wait to CDB status check. When status = 1 , it means success and should not wait any longer. Therefore I remove 200 ms wait time in block_write_lpl() and block_write_epl().

It also adds extra protection when status is not defined in the failed_status_dict.

How Has This Been Tested?

Test functions are unchanged.

Additional Information (Optional)

…ning bytes info in module_fw_download() 2. remove additional 200 ms wait time in block_write_lpl() and block_write_epl() 3. increase max wait time to 1 min in cdb1_chkstatus() if status is not 1. If status is password error (70) it will break the wait loop. 4. add protection to failed_status_dict
@prgeor prgeor merged commit ec7335d into sonic-net:master Nov 24, 2021
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-platform-common that referenced this pull request Oct 25, 2024
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