xref: /rk3399_ARM-atf/docs/plat/imx8m.rst (revision c948f77136c42a92d0bb660543a3600c36dcf7f1)
1Description
2===========
3
4The i.MX 8M family of applications processors based on Arm Corte-A53 and Cortex-M4
5cores provide high-performance computing, power efficiency, enhanced system
6reliability and embedded security needed to drive the growth of fast-growing
7edge node computing, streaming multimedia, and machine learning applications.
8
9Boot Sequence
10=============
11
12Bootrom --> SPL --> BL31 --> BL33(u-boot) --> Linux kernel
13
14How to build
15============
16
17Build Procedure
18---------------
19
20-  Prepare AARCH64 toolchain.
21
22-  Build spl and u-boot firstly, and get binary images: u-boot-spl.bin,
23   u-boot-nodtb.bin and dtb for the target board.
24
25-  Build TF-A
26
27   Build bl31:
28
29   .. code:: shell
30
31       CROSS_COMPILE=aarch64-linux-gnu- make PLAT=<Target_SoC> bl31
32
33   Target_SoC should be "imx8mq" for i.MX8MQ SoC.
34
35Deploy TF-A Images
36-----------------
37
38TF-A binary(bl31.bin), u-boot-spl.bin u-boot-nodtb.bin and dtb are combined
39together to generate a binary file called flash.bin, the imx-mkimage tool is
40used to generate flash.bin, and flash.bin needs to be flashed into SD card
41with certain offset for BOOT ROM. the u-boot and imx-mkimage will be upstreamed
42soon, this doc will be updated once they are ready, and the link will be posted.
43