diff options
author | Andrey Zhizhikin <andrey.z@gmail.com> | 2021-02-04 10:38:42 +0000 |
---|---|---|
committer | Otavio Salvador <otavio@ossystems.com.br> | 2021-03-17 10:53:42 -0300 |
commit | af1befc57af48bfd556a487487663cd3628433f5 (patch) | |
tree | 59b6cd88f911380cf57828ef201c5d439f0af9e3 | |
parent | ad48c133fa19aad480a27b7d3000f5e6401c8db0 (diff) | |
download | meta-freescale-af1befc57af48bfd556a487487663cd3628433f5.tar.gz |
conf: machine: mx8m[m,n,p]: use boot container class
Use the new boot container build on mainline BSP for mx8mm, mx8mn
and mx8mp machines.
Boot container serves as a replacement for imx-boot package present
in NXP BSP, and is created by U-Boot build system.
Define ATF machine name and required load address.
Define dependency on firmware package, as it provides DDR firmware
binaries needed to construct boot container.
Signed-off-by: Andrey Zhizhikin <andrey.z@gmail.com>
-rw-r--r-- | conf/machine/imx8mn-ddr4-evk.conf | 10 | ||||
-rw-r--r-- | conf/machine/imx8mp-evk.conf | 11 | ||||
-rw-r--r-- | conf/machine/include/imx8mm-evk.inc | 9 | ||||
-rw-r--r-- | conf/machine/include/imx8mn-evk.inc | 9 |
4 files changed, 28 insertions, 11 deletions
diff --git a/conf/machine/imx8mn-ddr4-evk.conf b/conf/machine/imx8mn-ddr4-evk.conf index c35f7e74..442afdbd 100644 --- a/conf/machine/imx8mn-ddr4-evk.conf +++ b/conf/machine/imx8mn-ddr4-evk.conf | |||
@@ -11,10 +11,12 @@ KERNEL_DEVICETREE_append_use-nxp-bsp = " \ | |||
11 | freescale/${KERNEL_DEVICETREE_BASENAME}-usd-wifi.dtb \ | 11 | freescale/${KERNEL_DEVICETREE_BASENAME}-usd-wifi.dtb \ |
12 | " | 12 | " |
13 | UBOOT_CONFIG_BASENAME = "imx8mn_ddr4_evk" | 13 | UBOOT_CONFIG_BASENAME = "imx8mn_ddr4_evk" |
14 | |||
15 | DDR_FIRMWARE_VERSION = "201810" | ||
14 | DDR_FIRMWARE_NAME = " \ | 16 | DDR_FIRMWARE_NAME = " \ |
15 | ddr4_imem_1d_201810.bin \ | 17 | ddr4_imem_1d_${DDR_FIRMWARE_VERSION}.bin \ |
16 | ddr4_dmem_1d_201810.bin \ | 18 | ddr4_dmem_1d_${DDR_FIRMWARE_VERSION}.bin \ |
17 | ddr4_imem_2d_201810.bin \ | 19 | ddr4_imem_2d_${DDR_FIRMWARE_VERSION}.bin \ |
18 | ddr4_dmem_2d_201810.bin \ | 20 | ddr4_dmem_2d_${DDR_FIRMWARE_VERSION}.bin \ |
19 | " | 21 | " |
20 | IMXBOOT_TARGETS_BASENAME = "flash_ddr4_evk" | 22 | IMXBOOT_TARGETS_BASENAME = "flash_ddr4_evk" |
diff --git a/conf/machine/imx8mp-evk.conf b/conf/machine/imx8mp-evk.conf index 7e55b93a..f790ffb4 100644 --- a/conf/machine/imx8mp-evk.conf +++ b/conf/machine/imx8mp-evk.conf | |||
@@ -4,7 +4,7 @@ | |||
4 | #@DESCRIPTION: Machine configuration for NXP i.MX 8M Plus Evaluation Kit | 4 | #@DESCRIPTION: Machine configuration for NXP i.MX 8M Plus Evaluation Kit |
5 | #@MAINTAINER: Jun Zhu <junzhu@nxp.com> | 5 | #@MAINTAINER: Jun Zhu <junzhu@nxp.com> |
6 | 6 | ||
7 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:" | 7 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mp:" |
8 | 8 | ||
9 | require conf/machine/include/imx-base.inc | 9 | require conf/machine/include/imx-base.inc |
10 | require conf/machine/include/tune-cortexa53.inc | 10 | require conf/machine/include/tune-cortexa53.inc |
@@ -59,8 +59,12 @@ DDR_FIRMWARE_NAME = " \ | |||
59 | # Set u-boot DTB | 59 | # Set u-boot DTB |
60 | UBOOT_DTB_NAME = "imx8mp-evk.dtb" | 60 | UBOOT_DTB_NAME = "imx8mp-evk.dtb" |
61 | 61 | ||
62 | # Set ATF platform name | 62 | # Set ATF platform name and load address |
63 | ATF_PLATFORM = "imx8mp" | 63 | ATF_PLATFORM = "imx8mp" |
64 | ATF_LOAD_ADDR = "0x970000" | ||
65 | |||
66 | # Extra firmware package name, that is required to build boot container for fslc bsp | ||
67 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | ||
64 | 68 | ||
65 | # Set imx-mkimage boot target | 69 | # Set imx-mkimage boot target |
66 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}" | 70 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', 'flash_evk_flexspi', 'flash_evk', d)}" |
@@ -71,10 +75,11 @@ SERIAL_CONSOLES = "115200;ttymxc1" | |||
71 | 75 | ||
72 | LOADADDR = "" | 76 | LOADADDR = "" |
73 | UBOOT_SUFFIX = "bin" | 77 | UBOOT_SUFFIX = "bin" |
74 | UBOOT_MAKE_TARGET = "" | 78 | UBOOT_MAKE_TARGET = "all" |
75 | IMX_BOOT_SEEK = "32" | 79 | IMX_BOOT_SEEK = "32" |
76 | 80 | ||
77 | OPTEE_BIN_EXT = "8mp" | 81 | OPTEE_BIN_EXT = "8mp" |
82 | TEE_LOAD_ADDR = "0x56000000" | ||
78 | 83 | ||
79 | # Add additional firmware | 84 | # Add additional firmware |
80 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 85 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" |
diff --git a/conf/machine/include/imx8mm-evk.inc b/conf/machine/include/imx8mm-evk.inc index 20bc9b77..6f21ce8e 100644 --- a/conf/machine/include/imx8mm-evk.inc +++ b/conf/machine/include/imx8mm-evk.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mm:" | 1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mm:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa53.inc | 4 | require conf/machine/include/tune-cortexa53.inc |
@@ -27,6 +27,10 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" | |||
27 | SPL_BINARY = "spl/u-boot-spl.bin" | 27 | SPL_BINARY = "spl/u-boot-spl.bin" |
28 | 28 | ||
29 | ATF_PLATFORM = "imx8mm" | 29 | ATF_PLATFORM = "imx8mm" |
30 | ATF_LOAD_ADDR = "0x920000" | ||
31 | |||
32 | # Extra firmware package name, that is required to build boot container for fslc bsp | ||
33 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | ||
30 | 34 | ||
31 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" | 35 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" |
32 | 36 | ||
@@ -36,10 +40,11 @@ SERIAL_CONSOLES = "115200;ttymxc1" | |||
36 | 40 | ||
37 | LOADADDR = "" | 41 | LOADADDR = "" |
38 | UBOOT_SUFFIX = "bin" | 42 | UBOOT_SUFFIX = "bin" |
39 | UBOOT_MAKE_TARGET = "" | 43 | UBOOT_MAKE_TARGET = "all" |
40 | IMX_BOOT_SEEK = "33" | 44 | IMX_BOOT_SEEK = "33" |
41 | 45 | ||
42 | OPTEE_BIN_EXT = "8mm" | 46 | OPTEE_BIN_EXT = "8mm" |
47 | TEE_LOAD_ADDR = "0xbe000000" | ||
43 | 48 | ||
44 | # Add additional firmware | 49 | # Add additional firmware |
45 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 50 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" |
diff --git a/conf/machine/include/imx8mn-evk.inc b/conf/machine/include/imx8mn-evk.inc index 8e68f2fe..265b594c 100644 --- a/conf/machine/include/imx8mn-evk.inc +++ b/conf/machine/include/imx8mn-evk.inc | |||
@@ -1,4 +1,4 @@ | |||
1 | MACHINEOVERRIDES =. "mx8:mx8m:mx8mn:" | 1 | MACHINEOVERRIDES =. "imx-boot-container:mx8:mx8m:mx8mn:" |
2 | 2 | ||
3 | require conf/machine/include/imx-base.inc | 3 | require conf/machine/include/imx-base.inc |
4 | require conf/machine/include/tune-cortexa53.inc | 4 | require conf/machine/include/tune-cortexa53.inc |
@@ -28,6 +28,10 @@ UBOOT_CONFIG[mfgtool] = "${UBOOT_CONFIG_BASENAME}_defconfig" | |||
28 | SPL_BINARY = "spl/u-boot-spl.bin" | 28 | SPL_BINARY = "spl/u-boot-spl.bin" |
29 | 29 | ||
30 | ATF_PLATFORM = "imx8mn" | 30 | ATF_PLATFORM = "imx8mn" |
31 | ATF_LOAD_ADDR = "0x960000" | ||
32 | |||
33 | # Extra firmware package name, that is required to build boot container for fslc bsp | ||
34 | IMX_EXTRA_FIRMWARE = "firmware-imx-8m" | ||
31 | 35 | ||
32 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" | 36 | IMXBOOT_TARGETS = "${@bb.utils.contains('UBOOT_CONFIG', 'fspi', '${IMXBOOT_TARGETS_BASENAME}_flexspi', '${IMXBOOT_TARGETS_BASENAME}', d)}" |
33 | 37 | ||
@@ -38,7 +42,7 @@ SERIAL_CONSOLES = "115200;ttymxc1" | |||
38 | BOOT_SPACE = "65536" | 42 | BOOT_SPACE = "65536" |
39 | LOADADDR = "" | 43 | LOADADDR = "" |
40 | UBOOT_SUFFIX = "bin" | 44 | UBOOT_SUFFIX = "bin" |
41 | UBOOT_MAKE_TARGET = "" | 45 | UBOOT_MAKE_TARGET = "all" |
42 | 46 | ||
43 | # Image boot offset as defined in section 6.1.6.1 "Primary image offset and IVT offset" of | 47 | # Image boot offset as defined in section 6.1.6.1 "Primary image offset and IVT offset" of |
44 | # i.MX 8M Nano Applications Processor Reference Manual, Rev. 0, 12/2019 | 48 | # i.MX 8M Nano Applications Processor Reference Manual, Rev. 0, 12/2019 |
@@ -46,6 +50,7 @@ UBOOT_MAKE_TARGET = "" | |||
46 | IMX_BOOT_SEEK = "32" | 50 | IMX_BOOT_SEEK = "32" |
47 | 51 | ||
48 | OPTEE_BIN_EXT = "8mn" | 52 | OPTEE_BIN_EXT = "8mn" |
53 | TEE_LOAD_ADDR = "0x56000000" | ||
49 | 54 | ||
50 | # Add additional firmware | 55 | # Add additional firmware |
51 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" | 56 | MACHINE_FIRMWARE_append = " linux-firmware-ath10k" |