-
Notifications
You must be signed in to change notification settings - Fork 39
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
Anti-rollback protection support #1072
Anti-rollback protection support #1072
Conversation
8d1c903
to
ed91539
Compare
the use of the |
meta-lmp-base/recipes-bsp/u-boot/u-boot-ostree-scr-fit/boot-common.cmd.in
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
ed91539
to
54f30f4
Compare
Introduce LMP_BOOT_FIRMWARE_VERSION variable, that can be set globally and can share boot firmware version across multiple recipes. Signed-off-by: Igor Opaniuk <[email protected]>
54f30f4
to
d63b622
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
meta-lmp-base/recipes-bsp/u-boot/u-boot-ostree-scr-fit/boot-common.cmd.in
Outdated
Show resolved
Hide resolved
Add LMP_BOOT_FIRMWARE_VERSION value to U-Boot device tree blob before final FIP creation. Example of a node (added to /firmware): bootloader { bootfirmware-version = "147"; compatible = "lmp,bootloader"; }; Signed-off-by: Igor Opaniuk <[email protected]>
Add LMP_BOOT_FIRMWARE_VERSION value to U-Boot device tree blob before final FIT creation. Example of a node (added to /firmware): bootloader { bootfirmware-version = "147"; compatible = "lmp,bootloader"; }; Signed-off-by: Igor Opaniuk <[email protected]>
39dffd1
to
9ad79fb
Compare
Add rollback protection support, which can be enabled by OTP variabled fiovb.rollback_protection. Signed-off-by: Igor Opaniuk <[email protected]>
9ad79fb
to
72dcaf7
Compare
meta-lmp-bsp/recipes-bsp/lmp-boot-firmware/lmp-boot-firmware.bbappend
Outdated
Show resolved
Hide resolved
Provide version in LMP_BOOT_FIRMWARE_VERSION instead of PV. Signed-off-by: Igor Opaniuk <[email protected]>
Relevant changes: - 4a353de ta: introduce support for rollback protection - e2853fb ta: refactor read/write/delete functions - c963a38 cmake: add initial CMakeLists.txt files - 9f3275e fiovb: host: check privileges at startup Signed-off-by: Igor Opaniuk <[email protected]>
Copy u-boot.dtb, if any adjustments are needed to be done additionally, and use that copy for a final FIP creation. Signed-off-by: Igor Opaniuk <[email protected]>
72dcaf7
to
c4320fc
Compare
@ricardosalveti @quaresmajose @MrCry0 this one also depends on foundriesio/u-boot#204 |
Relevant changes: - 08452551bf [FIO internal] common: introduce BOOTFIRMWARE_INFO_STRICT - 8a9e798bc8 [FIO internal] common: introduce bootfirmware info Signed-off-by: Igor Opaniuk <[email protected]>
Enable CONFIG_BOOTFIRMWARE_INFO=y for stm32mp15 targets. Signed-off-by: Igor Opaniuk <[email protected]>
Extend size of boot.scr file. Signed-off-by: Igor Opaniuk <[email protected]>
c4320fc
to
37b9c5c
Compare
@igoropaniuk can you please check if a change on This can be done building a target image with I have doubts if we don't have to add the variable |
Can you squash "base: fip-utils.bbclass: copy u-boot.dtb for adjustments" into "base: fip-utils.bbclass: add bootfirmware version to U-Boot DTB"? |
I have tested your patch locally on The steps to reproduce:
As we can see on the output of the last command [4] the variable
All of this using the latest lmp-manifest and also rebased your PR on on top of meta-lmp tip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also tested on IMX machines to check the uboot-fitimage
and it works as expected.
@quaresmajose @ricardosalveti all comments are addressed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.