diff options
author | faqiang.zhu <faqiang.zhu@nxp.com> | 2020-01-06 18:02:16 +0800 |
---|---|---|
committer | faqiang.zhu <faqiang.zhu@nxp.com> | 2020-01-07 16:18:13 +0800 |
commit | ff771de759ba293006a4ee0af057cbc196ee882e (patch) | |
tree | b1bfa1cb0a8360d4a9d937976d2323615b26ee50 | |
parent | 1c2277b95ce59f5d0265f26fec522e2ac2581e59 (diff) |
MA-15300-2 boot with A72 to save boot time in Android Automotiveautomotive-10.0.0_1.1.0
change the parameter of "a53" to be "a72" when invoke mkimage_imx8
the rule for target "flash_b0_spl_container_m4_0_1_trusty" is a copy of
"flash_linux_m4", the target is renamed, and "a53" in the recipe is
modified to "a72".
leave the target for "mx8qm-ahab-container.img" to use "a53", spl won't
touch this parameter when load and execute the code in this file.
Change-Id: If302a8d6371193783890d6e198e56ba069737508
Signed-off-by: faqiang.zhu <faqiang.zhu@nxp.com>
-rw-r--r-- | iMX8QM/scripts/android.mak | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/iMX8QM/scripts/android.mak b/iMX8QM/scripts/android.mak index aa01977..f865d32 100644 --- a/iMX8QM/scripts/android.mak +++ b/iMX8QM/scripts/android.mak @@ -2,7 +2,7 @@ flash_b0_xen_uboot: u-boot-hash.bin ./$(MKIMG) -soc QM -rev B0 -c -ap u-boot-hash.bin a53 0x81080000 -out u-boot-xen-container.img \ flash_b0_spl_container_m4_1_trusty: $(MKIMG) mx8qm-ahab-container.img scfw_tcm.bin u-boot-atf-container.img m4_1_image.bin tee.bin u-boot-spl.bin - ./$(MKIMG) -soc QM -rev B0 -append mx8qm-ahab-container.img -c -flags 0x01200000 -scfw scfw_tcm.bin -p4 -m4 m4_1_image.bin 1 0x88800000 -ap u-boot-spl.bin a53 0x00100000 -out flash.bin + ./$(MKIMG) -soc QM -rev B0 -append mx8qm-ahab-container.img -c -flags 0x01200000 -scfw scfw_tcm.bin -p4 -m4 m4_1_image.bin 1 0x88800000 -ap u-boot-spl.bin a72 0x00100000 -out flash.bin cp flash.bin boot-spl-container.img @flashbin_size=`wc -c flash.bin | awk '{print $$1}'`; \ pad_cnt=$$(((flashbin_size + 0x400 - 1) / 0x400)); \ @@ -24,3 +24,12 @@ flash_b0_spl_container_trusty: $(MKIMG) mx8qm-ahab-container.img scfw_tcm.bin u- pad_cnt=$$(((flashbin_size + 0x400 - 1) / 0x400)); \ echo "append u-boot-atf-container.img at $$pad_cnt KB"; \ dd if=u-boot-atf-container.img of=flash.bin bs=1K seek=$$pad_cnt; \ + +flash_b0_spl_container_m4_0_1_trusty: $(MKIMG) mx8qm-ahab-container.img scfw_tcm.bin u-boot-spl.bin m4_image.bin m4_1_image.bin u-boot-atf-container.img + ./$(MKIMG) -soc QM -rev B0 -dcd skip -append mx8qm-ahab-container.img -c -flags 0x00200000 -scfw scfw_tcm.bin -ap u-boot-spl.bin a72 0x00100000 -p3 -m4 m4_image.bin 0 0x34FE0000 -p4 -m4 m4_1_image.bin 1 0x38FE0000 -out flash.bin + cp flash.bin boot-spl-container.img + @flashbin_size=`wc -c flash.bin | awk '{print $$1}'`; \ + pad_cnt=$$(((flashbin_size + 0x400 - 1) / 0x400)); \ + echo "append u-boot-atf-container.img at $$pad_cnt KB"; \ + dd if=u-boot-atf-container.img of=flash.bin bs=1K seek=$$pad_cnt; + |