arm64: zynqmp: Fix TEE loading address and add hash
authorMichal Simek <michal.simek@amd.com>
Tue, 4 Feb 2025 08:53:39 +0000 (09:53 +0100)
committerMichal Simek <michal.simek@amd.com>
Wed, 5 Feb 2025 15:22:55 +0000 (16:22 +0100)
There is incorrect loading address listed for TEE.
CONFIG_BL32_LOAD_ADDR should be used.
Also there is missing hash for this entry which is present for other nodes.

Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/4e7e3a7110acc050ea7c06ac661e5b5be46e8602.1738659214.git.michal.simek@amd.com
arch/arm/dts/zynqmp-binman-som.dts
arch/arm/dts/zynqmp-binman.dts

index 3ffa06f..a697c2c 100644 (file)
                                                arch = "arm64";
                                                compression = "none";
                                                os = "tee";
-                                               load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
-                                               entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
+                                               load = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
+                                               entry = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
+                                               hash {
+                                                       algo = "md5";
+                                               };
                                                tee-os {
                                                        optional;
                                                };
index bf3335a..4583871 100644 (file)
                                                arch = "arm64";
                                                compression = "none";
                                                os = "tee";
-                                               load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
-                                               entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
+                                               load = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
+                                               entry = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
+                                               hash {
+                                                       algo = "md5";
+                                               };
                                                tee-os {
                                                        optional;
                                                };
                                                arch = "arm64";
                                                compression = "none";
                                                os = "tee";
-                                               load = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
-                                               entry = /bits/ 64 <CONFIG_BL31_LOAD_ADDR>;
+                                               load = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
+                                               entry = /bits/ 64 <CONFIG_BL32_LOAD_ADDR>;
+                                               hash {
+                                                       algo = "md5";
+                                               };
                                                tee-os {
                                                        optional;
                                                };