Skip to content

[Arista] UEFI boot support for Arista platform#25067

Merged
StormLiangMS merged 4 commits intosonic-net:masterfrom
nobutomonakano-arista:master-arista-uefi
Mar 24, 2026
Merged

[Arista] UEFI boot support for Arista platform#25067
StormLiangMS merged 4 commits intosonic-net:masterfrom
nobutomonakano-arista:master-arista-uefi

Conversation

@nobutomonakano-arista
Copy link
Copy Markdown
Contributor

Why I did it

UEFI boot support for Arista platforms which support UEFI boot.

Work item tracking
  • Microsoft ADO (number only):

How I did it

Added Arista driver packages to ONIE image. Added required change in initramfs to create necessary partitions and extract binaries at the initial boot from Aboot.

How to verify it

verified that sonic booted up properly with Arista platform which support UEFI boot.

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

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

Tested branch (Please provide the tested image version)

Description for the changelog

Link to config_db schema for YANG module changes

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

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@nobutomonakano-arista nobutomonakano-arista marked this pull request as ready for review January 14, 2026 13:19
Staphylo
Staphylo previously approved these changes Jan 19, 2026
Copy link
Copy Markdown
Collaborator

@Staphylo Staphylo left a comment

Choose a reason for hiding this comment

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

@lguohan could you review or assign someone to this review?

@arlakshm
Copy link
Copy Markdown
Contributor

@nobutomonakano-arista, can you please resolve the conflict

@arlakshm arlakshm requested a review from saiarcot895 February 17, 2026 19:36
@arlakshm
Copy link
Copy Markdown
Contributor

@saiarcot895, can you review this PR

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

;;
esac

perform_swi2bin=false
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What's the purpose of this script? Is it to convert from using aboot to using UEFI directly?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes. At the initial setup of UEFI capable box, we need a special .swi image to boot from Aboot.
The special .swi image has special boot0 which sets up platform information and creates disk partitions required for UEFI boot.
The special boot0 also supplies "arista.swi2bin" kernel command line parameter, so that swi2bin script in the initramfs sets up grub and installs fs image to make box bootable with UEFI.

perform_swi2bin=true
verbose=true
;;
arista.swi2bin|arista.swi2bin=*)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

When/in what cases will this be set?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This is set by the boot0 included in the special .swi image for the initial setup.

@StormLiangMS
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm
Copy link
Copy Markdown
Contributor

@saiarcot895, can you please help signoff, if all the comments are resolved

Comment on lines +51 to +52
pyyaml \
bottle
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Please install these packages via apt instead, as python3-yaml and python3-bottle.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@nobutomonakano-arista, can you please help resolve this comment?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

modified as suggested. Thank you.

saiarcot895
saiarcot895 previously approved these changes Feb 27, 2026
Copy link
Copy Markdown
Contributor

@saiarcot895 saiarcot895 left a comment

Choose a reason for hiding this comment

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

One comment, but otherwise LGTM

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

arlakshm
arlakshm previously approved these changes Mar 7, 2026
@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines will not run the associated pipelines, because the pull request was updated after the run command was issued. Review the pull request again and issue a new run command.

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Copy Markdown
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@StormLiangMS
Copy link
Copy Markdown
Contributor

Friendly ping — this PR is blocked and needs approval for 202511 qualification. cc @lguohan @qiluo-msft @StormLiangMS

@StormLiangMS
Copy link
Copy Markdown
Contributor

hi @saiarcot895 would you review again?

@StormLiangMS StormLiangMS merged commit 177ede5 into sonic-net:master Mar 24, 2026
23 checks passed
@StormLiangMS
Copy link
Copy Markdown
Contributor

@nobutomonakano-arista — This PR is merged to master (3/24) but only has 'Request for 202511 Branch' label — not yet approved for backport. Could the branch maintainers please approve the 202511 backport? Tracked in aristanetworks/sonic-qual.msft#1042.

@mssonicbld
Copy link
Copy Markdown
Collaborator

Cherry-pick PR to 202511: #26419

@mssonicbld
Copy link
Copy Markdown
Collaborator

@nobutomonakano-arista cherry pick PR didn't pass PR checker. Please check!!!
#26419

arlakshm pushed a commit to arlakshm/sonic-buildimage that referenced this pull request Apr 1, 2026
Why I did it
UEFI boot support for Arista platforms which support UEFI boot.

Work item tracking
Microsoft ADO (number only):
How I did it
Added Arista driver packages to ONIE image. Added required change in initramfs to create necessary partitions and extract binaries at the initial boot from Aboot.

How to verify it
verified that sonic booted up properly with Arista platform which support UEFI boot.

Signed-off-by: Nobutomo Nakano <[email protected]>
Signed-off-by: arlakshm <[email protected]>
@nobutomonakano-arista
Copy link
Copy Markdown
Contributor Author

@nobutomonakano-arista cherry pick PR didn't pass PR checker. Please check!!!#26419

I've filed a new PR for 202511. #26532
There was one file which wasn't applicable to 202511.

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.

7 participants