Browse Source

bcm4908: include ATF in bootfs images

It's required for proper booting.

Signed-off-by: Rafał Miłecki <[email protected]>
Rafał Miłecki 4 years ago
parent
commit
65974aa18b
2 changed files with 16 additions and 0 deletions
  1. 1 0
      target/linux/bcm4908/image/Makefile
  2. 15 0
      target/linux/bcm4908/image/bootfs-generic.its

+ 1 - 0
target/linux/bcm4908/image/Makefile

@@ -9,6 +9,7 @@ DEVICE_VARS += PKGTB_ITS
 
 define Image/Prepare
 	cp bootfs-generic.its $(KDIR)/
+	sed -i "s=\$$$${images_dir}=$(STAGING_DIR_IMAGE)=" $(KDIR)/bootfs-generic.its
 	sed -i "s=\$$$${dts_dir}=$(DTS_DIR)=" $(KDIR)/bootfs-generic.its
 endef
 

+ 15 - 0
target/linux/bcm4908/image/bootfs-generic.its

@@ -7,6 +7,21 @@
 	#address-cells = <1>;
 
 	images {
+		atf {
+			description = "ATF";
+			data = /incbin/("${images_dir}/bl31.bin");
+			type = "firmware";
+			arch = "arm64";
+			os = "arm-trusted-firmware";
+			compression = "none";
+			load = <0x4000>;
+			entry = <0x4000>;
+
+			hash-1 {
+				algo = "sha256";
+			};
+		};
+
 		kernel {
 			description = "Linux kernel";
 			data = /incbin/("${kernel}");