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 /conf/machine/include | |
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>
Diffstat (limited to 'conf/machine/include')
-rw-r--r-- | conf/machine/include/imx8mm-evk.inc | 9 | ||||
-rw-r--r-- | conf/machine/include/imx8mn-evk.inc | 9 |
2 files changed, 14 insertions, 4 deletions
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" |