Skip to content

ASIC Firmware update control#3

Closed
fastiuk wants to merge 1 commit intomasterfrom
firmware-update-control
Closed

ASIC Firmware update control#3
fastiuk wants to merge 1 commit intomasterfrom
firmware-update-control

Conversation

@fastiuk
Copy link
Copy Markdown
Owner

@fastiuk fastiuk commented Jul 1, 2022

This PR depends on fastiuk/sonic-buildimage#5

Why I did it

  • Add an ability to control ASIC FW update
    • Ability to enable/disable FW update
    • Ability to choose FW source: image/user-defined

How to verify it

Build SONiC
or
When SONiC was already built:

rm -f target/python-wheels/bullseye/sonic_yang_models-1.0-py3-none-any.whl
BLDENV=bullseye make -f Makefile.work target/python-wheels/bullseye/sonic_yang_models-1.0-py3-none-any.whl
rm -f target/sonic-mellanox.bin
make target/sonic-mellanox.bin

Login into the switch.
Disable FW auto-update:

redis-cli -n 4 HSET "FIRMWARE|asic" "auto_update" "disable"
sudo reboot

See the results:
Screenshot 2022-07-03 at 02 20 43
Enable auto-update, change source to user-defined and copy FW image in place:

redis-cli -n 4 HSET "FIRMWARE|asic" "auto_update" "enable"
redis-cli -n 4 HSET "FIRMWARE|asic" "default" "user"
sudo mkdir -p /host/mlnx/asic/
sudo cp /tmp/fw-SPC2-rel-29_2010_2270-EVB.mfa /host/mlnx/asic/fw.mfa
sudo reboot

Screenshot 2022-07-03 at 03 42 37

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

  • Add an ability to control ASIC FW update

Link to config_db schema for YANG module changes

sonic-firmware.yang

Superproject PR :

PR title State
[Nvidia] Firmware update control GitHub issue/pull request detail

A picture of a cute animal

1-46

Signed-off-by: Yevhen Fastiuk <yfastiuk@nvidia.com>
@fastiuk
Copy link
Copy Markdown
Owner Author

fastiuk commented Jul 5, 2022

@stepanblyschak please review

@fastiuk fastiuk changed the title Firmware update control ASIC Firmware update control Nov 8, 2022
@fastiuk fastiuk closed this Mar 21, 2023
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