Skip to content

[nvidia] Place FW binaries under platform directory instead of squashfs#90

Closed
stepanblyschak wants to merge 4 commits intomasterfrom
fw-new-loc
Closed

[nvidia] Place FW binaries under platform directory instead of squashfs#90
stepanblyschak wants to merge 4 commits intomasterfrom
fw-new-loc

Conversation

@stepanblyschak
Copy link
Copy Markdown
Owner

@stepanblyschak stepanblyschak commented Feb 8, 2023

Upgrade from old image always requires squashfs mount to get the next image FW binary. This can be avoided if we put FW binary under platform directory which is easily accessible after installation:

admin@r-spider-05:~$ ls /host/image-fw-new-loc.0-dirty-20230208.193534/platform/fw-SPC.mfa
/host/image-fw-new-loc.0-dirty-20230208.193534/platform/fw-SPC.mfa
admin@r-spider-05:~$ ls -al /tmp/image-fw-new-loc.0-dirty-20230208.193534-fs/etc/mlnx/fw-SPC.mfa
lrwxrwxrwx 1 root root 66 Feb  8 17:57 /tmp/image-fw-new-loc.0-dirty-20230208.193534-fs/etc/mlnx/fw-SPC.mfa -> /host/image-fw-new-loc.0-dirty-20230208.193534/platform/fw-SPC.mfa

Signed-off-by: Stepan Blyschak [email protected]

Why I did it

202211 and above uses different squashfs compression type that 201911 kernel can not handle. Therefore, we avoid mounting squashfs altogather with this change.

How I did it

  • Place FW binary under /host/image-/platform/mlnx/, soft links in /etc/mlnx are created to avoid breaking existing scripts/automation.
  • /etc/mlnx/fw-SPCX.mfa is a soft link always pointing to the FW that should be used in current image
  • mlnx-fw-upgrade.sh is updated to prefer /host/image-/platform/mlnx location and fallback to /etc/mlnx in squashfs in case new location does not exist. This is neccessary to do image downgrade.

How to verify it

  • Upgrade from 201911 to master
  • master to 201911 downgrade
  • master -> master reboot
  • ONIE -> master boot (First FW burn)

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

Upgrade from old image always requires squashfs mount to get the next
image FW binary. This can be avoided if we put FW binary under platform
directory which is easily accessible after installation:

```
admin@r-spider-05:~$ ls /host/image-fw-new-loc.0-dirty-20230208.193534/platform/fw-SPC.mfa
/host/image-fw-new-loc.0-dirty-20230208.193534/platform/fw-SPC.mfa
admin@r-spider-05:~$ ls -al /tmp/image-fw-new-loc.0-dirty-20230208.193534-fs/etc/mlnx/fw-SPC.mfa
lrwxrwxrwx 1 root root 66 Feb  8 17:57 /tmp/image-fw-new-loc.0-dirty-20230208.193534-fs/etc/mlnx/fw-SPC.mfa -> /host/image-fw-new-loc.0-dirty-20230208.193534/platform/fw-SPC.mfa
```

Signed-off-by: Stepan Blyschak <[email protected]>
stepanblyschak pushed a commit that referenced this pull request Feb 13, 2023
[202012][sonic-linkmgrd] submodule update

a2367d0 Jing Zhang Fri Jun 24 09:10:12 2022 -0700 Remove exception throwing when initializing missing loopback interface #90

sign-off: Jing Zhang [email protected]
stepanblyschak and others added 2 commits February 16, 2023 16:17
Signed-off-by: Stepan Blyschak <[email protected]>
stepanblyschak pushed a commit that referenced this pull request Dec 2, 2024
…utomatically (sonic-net#20877)

#### Why I did it
src/sonic-host-services
```
* 89aead2 - (HEAD -> master, origin/master, origin/HEAD) DBUS API for Containerz.StopContainer (sonic-net#179) (5 hours ago) [Dawei Huang]
* c15aebc - [cisco|express-boot]: Add support for cisco express boot in sonic-host-services (#90) (2 days ago) [jhli-cisco]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stepanblyschak pushed a commit that referenced this pull request Aug 6, 2025
…ically (sonic-net#23472)

#### Why I did it
src/sonic-dash-ha
```
* 3d9b38f - (HEAD -> master, origin/master, origin/HEAD) Rename disable to disabled in ha_scope table (#93) (14 hours ago) [yue-fred-gao]
* 01f9bf5 - Add semgrep static analysis tool to find security vulnerabilities. (#90) (25 hours ago) [Mai Bui]
* 4121247 - Use vnet_name from DASH_HA_GLOBAL_CONFIG to create vnet route (#92) (30 hours ago) [yue-fred-gao]
```
#### How I did it
#### How to verify it
#### Description for the changelog
stepanblyschak pushed a commit that referenced this pull request Sep 24, 2025
…e latest HEAD automatically (sonic-net#23931)

#### Why I did it
src/wpasupplicant/sonic-wpa-supplicant
```
* 31c1c8db1 - (HEAD -> master, origin/master, origin/HEAD) Changes in HOSTAPD to Support PAC (#90) (67 minutes ago) [Vijaya Kumar Abbaraju]
* ed735fe67 - [CodeQL]: Failed CI on CodeQL (#98) (2 hours ago) [Ze Gan]
* d22c2f48e - [action] Fix codeQL github action issue. (#96) (14 hours ago) [Liu Shilong]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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