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

[sonic-buildimage] create and mount firmware directory on PMON for firmware upgrade support on muxcable #8283

Merged
merged 3 commits into from
Aug 3, 2021

Conversation

vdahiya12
Copy link
Contributor

@vdahiya12 vdahiya12 commented Jul 29, 2021

Signed-off-by: vaibhav-dahiya vdahiya@microsoft.com

This PR creates a directory firmware on the HOST with the path /usr/share/sonic/firmware, as well as this is mounted on PMON
container with the same path /usr/share/sonic/firmware. This is required for firmware upgrade support for muxcable as currently
by design all Y-Cable API's are called by xcvrd. As such if CLI has to transfer a file to PMON we need to mount a directory
from host to PMON just for getting the firmware files. Hence we require this change.

Why I did it

Required to transfer firmware files/binaries from host to PMON for upgrading firmware on Y-Cables.

How I did it

Made the changes inside
files/build_templates/sonic_debian_extension.j2
files/build_templates/docker_image_ctl.j2

How to verify it

Build an image and find the PMON conatiner instance has the required mount.

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

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106

Required for upgrading cables

Description for the changelog

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

firmware upgrade support on PMON

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@vdahiya12 vdahiya12 requested a review from lguohan as a code owner July 29, 2021 00:55
@vdahiya12 vdahiya12 changed the title [sonic-buildimage] create and mount fwfiles directory on pmon for firmware upgrade support on PMON [sonic-buildimage] create and mount fwfiles directory on PMON for firmware upgrade support on muxcable Jul 29, 2021
lguohan
lguohan previously approved these changes Jul 29, 2021
@@ -50,6 +50,7 @@ FILESYSTEM_ROOT_USR_SHARE="$FILESYSTEM_ROOT_USR/share"
FILESYSTEM_ROOT_USR_SHARE_SONIC="$FILESYSTEM_ROOT_USR_SHARE/sonic"
FILESYSTEM_ROOT_USR_SHARE_SONIC_SCRIPTS="$FILESYSTEM_ROOT_USR_SHARE_SONIC/scripts"
FILESYSTEM_ROOT_USR_SHARE_SONIC_TEMPLATES="$FILESYSTEM_ROOT_USR_SHARE_SONIC/templates"
FILESYSTEM_ROOT_USR_SHARE_SONIC_FWFILES="$FILESYSTEM_ROOT_USR_SHARE_SONIC/fwfiles"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor comments, can you rename it /usr/share/sonic/firmware/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
@vdahiya12 vdahiya12 changed the title [sonic-buildimage] create and mount fwfiles directory on PMON for firmware upgrade support on muxcable [sonic-buildimage] create and mount firmware directory on PMON for firmware upgrade support on muxcable Aug 2, 2021
@lguohan lguohan merged commit 4984229 into sonic-net:master Aug 3, 2021
qiluo-msft pushed a commit that referenced this pull request Aug 5, 2021
…de support on muxcable (#8283)

This PR creates a directory firmware on the HOST with the path /usr/share/sonic/firmware, as well as this is 
mounted on PMON container with the same path /usr/share/sonic/firmware. This is required for firmware 
upgrade support for muxcable as currently by design all Y-Cable API's are called by xcvrd. As such if CLI has 
to transfer a file to PMON we need to mount a directory from host to PMON just for getting the firmware files. 
Hence we require this change.

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
carl-nokia pushed a commit to carl-nokia/sonic-buildimage that referenced this pull request Aug 7, 2021
…de support on muxcable (sonic-net#8283)

This PR creates a directory firmware on the HOST with the path /usr/share/sonic/firmware, as well as this is 
mounted on PMON container with the same path /usr/share/sonic/firmware. This is required for firmware 
upgrade support for muxcable as currently by design all Y-Cable API's are called by xcvrd. As such if CLI has 
to transfer a file to PMON we need to mount a directory from host to PMON just for getting the firmware files. 
Hence we require this change.

Signed-off-by: vaibhav-dahiya <vdahiya@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants