124dba2b3SPaul BeesleyNXP i.MX 8M Series 224dba2b3SPaul Beesley================== 381136819SBai Ping 481136819SBai PingThe i.MX 8M family of applications processors based on Arm Corte-A53 and Cortex-M4 581136819SBai Pingcores provide high-performance computing, power efficiency, enhanced system 681136819SBai Pingreliability and embedded security needed to drive the growth of fast-growing 781136819SBai Pingedge node computing, streaming multimedia, and machine learning applications. 881136819SBai Ping 981136819SBai PingBoot Sequence 1024dba2b3SPaul Beesley------------- 1181136819SBai Ping 1281136819SBai PingBootrom --> SPL --> BL31 --> BL33(u-boot) --> Linux kernel 1381136819SBai Ping 1481136819SBai PingHow to build 1524dba2b3SPaul Beesley------------ 1681136819SBai Ping 1781136819SBai PingBuild Procedure 1824dba2b3SPaul Beesley~~~~~~~~~~~~~~~ 1981136819SBai Ping 2081136819SBai Ping- Prepare AARCH64 toolchain. 2181136819SBai Ping 2281136819SBai Ping- Build spl and u-boot firstly, and get binary images: u-boot-spl.bin, 2381136819SBai Ping u-boot-nodtb.bin and dtb for the target board. 2481136819SBai Ping 2581136819SBai Ping- Build TF-A 2681136819SBai Ping 2781136819SBai Ping Build bl31: 2881136819SBai Ping 2981136819SBai Ping .. code:: shell 3081136819SBai Ping 31650a435cSMark Dykes CROSS_COMPILE=aarch64-linux-gnu- make PLAT=<Target_SoC> bl31 3281136819SBai Ping 3381136819SBai Ping Target_SoC should be "imx8mq" for i.MX8MQ SoC. 34179f82a2SJacky Bai Target_SoC should be "imx8mm" for i.MX8MM SoC. 35*58fdd608SJacky Bai Target_SoC should be "imx8mn" for i.MX8MN SoC. 3681136819SBai Ping 3781136819SBai PingDeploy TF-A Images 3824dba2b3SPaul Beesley~~~~~~~~~~~~~~~~~~ 3981136819SBai Ping 4081136819SBai PingTF-A binary(bl31.bin), u-boot-spl.bin u-boot-nodtb.bin and dtb are combined 4181136819SBai Pingtogether to generate a binary file called flash.bin, the imx-mkimage tool is 4281136819SBai Pingused to generate flash.bin, and flash.bin needs to be flashed into SD card 4381136819SBai Pingwith certain offset for BOOT ROM. the u-boot and imx-mkimage will be upstreamed 4481136819SBai Pingsoon, this doc will be updated once they are ready, and the link will be posted. 45