1*81136819SBai PingDescription 2*81136819SBai Ping=========== 3*81136819SBai Ping 4*81136819SBai PingThe i.MX 8M family of applications processors based on Arm Corte-A53 and Cortex-M4 5*81136819SBai Pingcores provide high-performance computing, power efficiency, enhanced system 6*81136819SBai Pingreliability and embedded security needed to drive the growth of fast-growing 7*81136819SBai Pingedge node computing, streaming multimedia, and machine learning applications. 8*81136819SBai Ping 9*81136819SBai PingBoot Sequence 10*81136819SBai Ping============= 11*81136819SBai Ping 12*81136819SBai PingBootrom --> SPL --> BL31 --> BL33(u-boot) --> Linux kernel 13*81136819SBai Ping 14*81136819SBai PingHow to build 15*81136819SBai Ping============ 16*81136819SBai Ping 17*81136819SBai PingBuild Procedure 18*81136819SBai Ping--------------- 19*81136819SBai Ping 20*81136819SBai Ping- Prepare AARCH64 toolchain. 21*81136819SBai Ping 22*81136819SBai Ping- Build spl and u-boot firstly, and get binary images: u-boot-spl.bin, 23*81136819SBai Ping u-boot-nodtb.bin and dtb for the target board. 24*81136819SBai Ping 25*81136819SBai Ping- Build TF-A 26*81136819SBai Ping 27*81136819SBai Ping Build bl31: 28*81136819SBai Ping 29*81136819SBai Ping .. code:: shell 30*81136819SBai Ping 31*81136819SBai Ping CROSS_COMPILE=aarch64-linux-gnu- make PLAT=<Target_SoC> bl31 32*81136819SBai Ping 33*81136819SBai Ping Target_SoC should be "imx8mq" for i.MX8MQ SoC. 34*81136819SBai Ping 35*81136819SBai PingDeploy TF-A Images 36*81136819SBai Ping----------------- 37*81136819SBai Ping 38*81136819SBai PingTF-A binary(bl31.bin), u-boot-spl.bin u-boot-nodtb.bin and dtb are combined 39*81136819SBai Pingtogether to generate a binary file called flash.bin, the imx-mkimage tool is 40*81136819SBai Pingused to generate flash.bin, and flash.bin needs to be flashed into SD card 41*81136819SBai Pingwith certain offset for BOOT ROM. the u-boot and imx-mkimage will be upstreamed 42*81136819SBai Pingsoon, this doc will be updated once they are ready, and the link will be posted. 43