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

[ARM64][Warm-Reboot]: Get boot arguments from uboot environment #3613

Merged
merged 1 commit into from
Nov 20, 2024

Conversation

marvellparthiv
Copy link
Contributor

Fetch boot arguments from the next boot image by reading it from uboot environment variables.

What I did

In current scenario, during warm-reboot for arm64, boot arguments are fetched from device tree of the current image. This causes an issue during upgrade/downgrade with warm-reboot.

How I did it

With the change, boot arguments for arm64 is fetched from uboot environment variables. The logic relies on creation of
"sonic_bootargs" environment variable to fetch the right boot argument.

How to verify it

Tested by sonic to sonic install followed by warm-reboot.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

Fetch boot arguments from the next boot image by reading it from
uboot environment variables.

Signed-off-by: Parthiv Shah <parthiv@marvell.com>
@pavannaregundi
Copy link
Contributor

@saiarcot895 Can you please review this. PR has been rebased to latest code.

@saiarcot895 saiarcot895 merged commit 9bd37dc into sonic-net:master Nov 20, 2024
7 checks passed
@radha-danda
Copy link

@saiarcot895, kindly cherry-pick the patch to 202405 branch.

@pavannaregundi
Copy link
Contributor

@saiarcot895 before this is cherry picked, we need to cherry pick PR #3192 to resolve the conflict.

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.

5 participants