Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 1 | NXP i.MX 8M Series |
| 2 | ================== |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 3 | |
| 4 | The i.MX 8M family of applications processors based on Arm Corte-A53 and Cortex-M4 |
| 5 | cores provide high-performance computing, power efficiency, enhanced system |
| 6 | reliability and embedded security needed to drive the growth of fast-growing |
| 7 | edge node computing, streaming multimedia, and machine learning applications. |
| 8 | |
| 9 | Boot Sequence |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 10 | ------------- |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 11 | |
| 12 | Bootrom --> SPL --> BL31 --> BL33(u-boot) --> Linux kernel |
| 13 | |
| 14 | How to build |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 15 | ------------ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 16 | |
| 17 | Build Procedure |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 18 | ~~~~~~~~~~~~~~~ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 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 | |
Mark Dykes | ef3a456 | 2020-01-08 20:37:18 +0000 | [diff] [blame] | 31 | CROSS_COMPILE=aarch64-linux-gnu- make PLAT=<Target_SoC> bl31 |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 32 | |
| 33 | Target_SoC should be "imx8mq" for i.MX8MQ SoC. |
Jacky Bai | a617700 | 2019-03-06 17:15:06 +0800 | [diff] [blame] | 34 | Target_SoC should be "imx8mm" for i.MX8MM SoC. |
Jacky Bai | 9bd2f84 | 2019-11-28 13:16:33 +0800 | [diff] [blame] | 35 | Target_SoC should be "imx8mn" for i.MX8MN SoC. |
Jacky Bai | 07ed02c | 2020-06-03 14:28:45 +0800 | [diff] [blame] | 36 | Target_SoC should be "imx8mp" for i.MX8MP SoC. |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 37 | |
| 38 | Deploy TF-A Images |
Paul Beesley | f3653a6 | 2019-05-22 11:22:44 +0100 | [diff] [blame] | 39 | ~~~~~~~~~~~~~~~~~~ |
Bai Ping | 06e325e | 2018-10-28 00:12:34 +0800 | [diff] [blame] | 40 | |
| 41 | TF-A binary(bl31.bin), u-boot-spl.bin u-boot-nodtb.bin and dtb are combined |
| 42 | together to generate a binary file called flash.bin, the imx-mkimage tool is |
| 43 | used to generate flash.bin, and flash.bin needs to be flashed into SD card |
| 44 | with certain offset for BOOT ROM. the u-boot and imx-mkimage will be upstreamed |
| 45 | soon, this doc will be updated once they are ready, and the link will be posted. |