Skip to content

Boot firmware bootcmd#351

Merged
igoropaniuk merged 10 commits intofoundriesio:masterfrom
igoropaniuk:boot_firmware_bootcmd
Jun 9, 2021
Merged

Boot firmware bootcmd#351
igoropaniuk merged 10 commits intofoundriesio:masterfrom
igoropaniuk:boot_firmware_bootcmd

Conversation

@igoropaniuk
Copy link
Copy Markdown
Contributor

No description provided.

Comment thread meta-lmp-base/recipes-bsp/u-boot/u-boot-ostree-scr-fit/boot-common.cmd.in Outdated
@igoropaniuk igoropaniuk force-pushed the boot_firmware_bootcmd branch from ad64c3c to d13f21f Compare June 3, 2021 19:48
@igoropaniuk igoropaniuk requested a review from mike-scott June 3, 2021 19:48
Comment thread meta-lmp-bsp/recipes-bsp/u-boot/u-boot-ostree-scr-fit/imx6ullevk/boot.cmd Outdated
@ricardosalveti
Copy link
Copy Markdown
Member

Please add at least one line at the patch body explaining why bootcount was disabled (just for reference).

Comment thread meta-lmp-base/recipes-bsp/u-boot/u-boot-ostree-scr-fit/boot-common.cmd.in Outdated
Comment thread meta-lmp-base/recipes-bsp/u-boot/u-boot-ostree-scr-fit/boot-common.cmd.in Outdated
Add support for boot firmware update handling.
Bootcount is handled manually in boot.cmd script as we don't want
double incrementing of counter when we boot secondary boot path
for image validation.

Signed-off-by: Igor Opaniuk <[email protected]>
@igoropaniuk igoropaniuk force-pushed the boot_firmware_bootcmd branch from d13f21f to 019736e Compare June 8, 2021 16:16
@igoropaniuk igoropaniuk force-pushed the boot_firmware_bootcmd branch 2 times, most recently from f0ca113 to 4ef7790 Compare June 8, 2021 16:22
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

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.

One minor comment but LGTM, feel free to merge once you're happy with it, then we can start doing a wider testing.

Also, do we need foundriesio/u-boot#68?

1. Set bootcount to 0 if it is not defined
2. Handle the case if boot firmware update image doesn't exist
3. Move common prefix in all printed messages to a separate variable
4. Save ubootenv after update of bootcount
5. Use ubootenv that doesn't use eMMC for booting and that are closed

Signed-off-by: Igor Opaniuk <[email protected]>
@igoropaniuk igoropaniuk force-pushed the boot_firmware_bootcmd branch from 4ef7790 to 7b8455c Compare June 9, 2021 07:28
@igoropaniuk igoropaniuk merged commit 3075687 into foundriesio:master Jun 9, 2021
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.

4 participants