summaryrefslogtreecommitdiff
path: root/scripts/dtc/pylibfdt/setup.py
diff options
context:
space:
mode:
authorMikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>2025-06-10 12:56:31 +0300
committerTom Rini <trini@konsulko.com>2025-06-19 11:01:51 -0600
commit3eb43c54fadba457f22e415a2821145164efe662 (patch)
tree055bfb39d45abe615e9c7bccbac22b026f3c2f8e /scripts/dtc/pylibfdt/setup.py
parent3704b888a4cabac8daea20a4504d513bc47153ca (diff)
common/spl: handle properly images with bad checksum
load_simple_fit() returns -EPERM for the images with broken signatures. Unfortunately this may conflict with image loaging selection on the base of boot phase. See commit 873112db9ce68c38984ff25808dde726f8dd5573 ("spl: Support selecting images based on phase in simple FIT"). Thus loading of configurations { uboot { description = "u-boot"; firmware = "atf"; loadables = "atf", "tee", "uboot"; }; }; with damaged "tee" image may finish without errors. This may results in board bricking. This patch fixes commit 873112db9ce68c38984ff25808dde726f8dd5573 ("spl: Support selecting images based on phase in simple FIT") by replacing EPERM with EBADSLT places where it should be done. Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
Diffstat (limited to 'scripts/dtc/pylibfdt/setup.py')
0 files changed, 0 insertions, 0 deletions