Anti-rollback protection support#1072
Conversation
8d1c903 to
ed91539
Compare
|
the use of the |
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
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
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 |
quaresmajose
left a comment
There was a problem hiding this comment.
Also tested on IMX machines to check the uboot-fitimage and it works as expected.
|
@quaresmajose @ricardosalveti all comments are addressed |
No description provided.