imx8m.rst 1.98 KB
Newer Older
1
2
NXP i.MX 8M Series
==================
3
4
5
6
7
8

The i.MX 8M family of applications processors based on Arm Corte-A53 and Cortex-M4
cores provide high-performance computing, power efficiency, enhanced system
reliability and embedded security needed to drive the growth of fast-growing
edge node computing, streaming multimedia, and machine learning applications.

9
10
11
imx8mq is dropped in TF-A CI build due to the small OCRAM size, but still actively
maintained in NXP official release.

12
Boot Sequence
13
-------------
14
15
16
17

Bootrom --> SPL --> BL31 --> BL33(u-boot) --> Linux kernel

How to build
18
------------
19
20

Build Procedure
21
~~~~~~~~~~~~~~~
22
23
24
25
26
27
28
29
30
31
32
33

-  Prepare AARCH64 toolchain.

-  Build spl and u-boot firstly, and get binary images: u-boot-spl.bin,
   u-boot-nodtb.bin and dtb for the target board.

-  Build TF-A

   Build bl31:

   .. code:: shell

34
       CROSS_COMPILE=aarch64-linux-gnu- make PLAT=<Target_SoC> bl31
35
36

   Target_SoC should be "imx8mq" for i.MX8MQ SoC.
37
   Target_SoC should be "imx8mm" for i.MX8MM SoC.
38
   Target_SoC should be "imx8mn" for i.MX8MN SoC.
39
   Target_SoC should be "imx8mp" for i.MX8MP SoC.
40
41

Deploy TF-A Images
42
~~~~~~~~~~~~~~~~~~
43
44
45
46
47
48

TF-A binary(bl31.bin), u-boot-spl.bin u-boot-nodtb.bin and dtb are combined
together to generate a binary file called flash.bin, the imx-mkimage tool is
used to generate flash.bin, and flash.bin needs to be flashed into SD card
with certain offset for BOOT ROM. the u-boot and imx-mkimage will be upstreamed
soon, this doc will be updated once they are ready, and the link will be posted.
49
50
51
52
53
54
55
56
57
58
59
60
61
62

TBBR Boot Sequence
------------------

When setting NEED_BL2=1 on imx8mm. We support an alternative way of
boot sequence to support TBBR.

Bootrom --> SPL --> BL2 --> BL31 --> BL33(u-boot with UEFI) --> grub

This helps us to fulfill the SystemReady EBBR standard.
BL2 will be in the FIT image and SPL will verify it.
All of the BL3x will be put in the FIP image. BL2 will verify them.
In U-boot we turn on the UEFI secure boot features so it can verify
grub. And we use grub to verify linux kernel.