Commit 1d36ce69 authored by Ye Li's avatar Ye Li

imx8qxp: add SPL NAND container build target

Support building image for SPL NAND booting using container for u-boot,
atf and optee.
Signed-off-by: default avatarYe Li <>
parent 5ab51311
......@@ -223,6 +223,13 @@ flash_nand_spl: $(MKIMG) mx8qx-ahab-container.img scfw_tcm.bin u-boot-atf.bin u-
echo "append u-boot-atf.bin at $$((pad_cnt * page)) a $$pad_cnt b $$page KB"; \
dd if=u-boot-atf.bin of=flash.bin bs=1K seek=$$((pad_cnt * page))
flash_spl_nand_container: $(MKIMG) mx8qx-ahab-container.img scfw_tcm.bin u-boot-spl.bin u-boot-atf-container.img
./$(MKIMG) -soc QX -rev B0 -dev nand 16K -dcd skip -append mx8qx-ahab-container.img -c -scfw scfw_tcm.bin -ap u-boot-spl.bin a35 0x00100000 -out flash.bin
@flashbin_size=`wc -c flash.bin | awk '{print $$1}'`; \
pad_cnt=$$(((flashbin_size + 0x4000 - 1) / 0x4000)); page=16;\
echo "append u-boot-atf-container.img at $$((pad_cnt * page)) a $$pad_cnt b $$page KB"; \
dd if=u-boot-atf-container.img of=flash.bin bs=1K seek=$$((pad_cnt * page))
flash_all flash_b0_all: $(MKIMG) mx8qx-ahab-container.img scfw_tcm.bin u-boot-atf.bin CM4.bin
./$(MKIMG) -soc QX -rev B0 -append mx8qx-ahab-container.img -c -scfw scfw_tcm.bin -ap u-boot-atf.bin a35 0x80000000 -m4 CM4.bin 0 0x34FE0000 -out flash.bin
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment