bcm4908: include ATF in bootfs images
authorRafał Miłecki <rafal@milecki.pl>
Fri, 24 Dec 2021 22:07:39 +0000 (23:07 +0100)
committerRafał Miłecki <rafal@milecki.pl>
Fri, 24 Dec 2021 22:07:39 +0000 (23:07 +0100)
It's required for proper booting.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
target/linux/bcm4908/image/Makefile
target/linux/bcm4908/image/bootfs-generic.its

index 17b5ba960dc1a817a0a97bb319099f1e0e46d0a6..91b48291bc3a1b56c3ef123c59c28da7cdb07115 100644 (file)
@@ -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
 
index 6d8b3394ae1184cc2b3fa5466b3f395241c2e097..3cde532d7265d029ce6e54f63fef10636858fd96 100644 (file)
@@ -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}");