Skip to content

base: u-boot-ostree-scr-fit: save fiovb.is_secondary_boot if changed#567

Merged
ricardosalveti merged 2 commits intofoundriesio:mainfrom
igoropaniuk:secondary_boot_val_rework
Apr 5, 2022
Merged

base: u-boot-ostree-scr-fit: save fiovb.is_secondary_boot if changed#567
ricardosalveti merged 2 commits intofoundriesio:mainfrom
igoropaniuk:secondary_boot_val_rework

Conversation

@igoropaniuk
Copy link
Copy Markdown
Contributor

Fix the issue, when rpmb/ubootenv contains obsolete value of
fiovb.is_secondary_boot.

This happens after update is triggered:
1. secondary path is booted, fiovb.is_secondary_boot == 1
2. update procedure is run
3. saveenv && reset
3. primary boot path is booted, fiovb.is_secondary_boot == 0,
however it is not updated in ubootenv/rpmb storage.
5. In Linux fw_printenv/fiovb_printenv shows is_secondary_boot == 1,
regardless the fact, that the primary boot path is booted.

Signed-off-by: Igor Opaniuk <[email protected]>

Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 left a comment

Choose a reason for hiding this comment

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

LGTM

@igoropaniuk igoropaniuk force-pushed the secondary_boot_val_rework branch from b3b5417 to 18afff0 Compare March 25, 2022 09:34
Copy link
Copy Markdown
Contributor

@Tim-Anderson Tim-Anderson left a comment

Choose a reason for hiding this comment

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

LGTM

@igoropaniuk igoropaniuk force-pushed the secondary_boot_val_rework branch 3 times, most recently from 6f2d835 to 18afff0 Compare March 28, 2022 10:24
Copy link
Copy Markdown
Contributor

@MrCry0 MrCry0 left a comment

Choose a reason for hiding this comment

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

LGTM

@ricardosalveti
Copy link
Copy Markdown
Member

@igoropaniuk can you either bump optee as part of this pr or have that merged proposed and merged first? So we can have a linear logic.

@igoropaniuk
Copy link
Copy Markdown
Contributor Author

@ricardosalveti done

Fix the issue, when rpmb/ubootenv contains obsolete value of
fiovb.is_secondary_boot.

This happens after update is triggered:
1. secondary path is booted, fiovb.is_secondary_boot == 1
2. update procedure is run
3. saveenv && reset
3. primary boot path is booted, fiovb.is_secondary_boot == 0,
however it is not updated in ubootenv/rpmb storage.
5. In Linux fw_printenv/fiovb_printenv shows is_secondary_boot == 1,
regardless the fact, that the primary boot path is booted.

Signed-off-by: Igor Opaniuk <[email protected]>
Relevant changes:
- 444d46a4d [FIO internal] ta: fiovb: add is_secondary_boot variable

Signed-off-by: Igor Opaniuk <[email protected]>
@igoropaniuk igoropaniuk force-pushed the secondary_boot_val_rework branch from 17b0778 to fbda47d Compare April 5, 2022 15:31
Copy link
Copy Markdown
Member

@ricardosalveti ricardosalveti left a comment

Choose a reason for hiding this comment

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

LGTM

@ricardosalveti ricardosalveti merged commit 77e4568 into foundriesio:main Apr 5, 2022
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.

5 participants