2019-03-05 02:32:49 +00:00
CONFIG_ARM=y
2019-05-26 18:45:25 +00:00
CONFIG_ARCH_IMX8=y
2022-10-21 00:22:39 +00:00
CONFIG_TEXT_BASE=0x80020000
2021-11-01 12:19:22 +00:00
CONFIG_SYS_MALLOC_LEN=0x2400000
CONFIG_SYS_MALLOC_F_LEN=0x8000
2021-07-11 03:14:30 +00:00
CONFIG_SPL_GPIO=y
2019-03-05 02:32:49 +00:00
CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
2020-08-10 19:31:07 +00:00
CONFIG_NR_DRAM_BANKS=3
2023-02-17 14:58:06 +00:00
CONFIG_HAS_CUSTOM_SYS_INIT_SP_ADDR=y
CONFIG_CUSTOM_SYS_INIT_SP_ADDR=0x80200000
2020-01-22 18:38:00 +00:00
CONFIG_ENV_SIZE=0x1000
CONFIG_ENV_OFFSET=0x400000
CONFIG_DM_GPIO=y
2021-06-28 14:17:29 +00:00
CONFIG_DEFAULT_DEVICE_TREE="fsl-imx8qm-mek"
2020-07-06 17:54:25 +00:00
CONFIG_SPL_TEXT_BASE=0x100000
2019-03-05 02:32:49 +00:00
CONFIG_TARGET_IMX8QM_MEK=y
2021-08-08 18:20:09 +00:00
CONFIG_SPL_MMC=y
2021-08-08 18:20:12 +00:00
CONFIG_SPL_SERIAL=y
2021-07-11 03:14:31 +00:00
CONFIG_SPL_DRIVERS_MISC=y
2023-02-17 14:58:06 +00:00
CONFIG_SPL_STACK=0x13e000
2019-05-26 18:45:25 +00:00
CONFIG_SPL=y
2021-08-10 19:08:46 +00:00
CONFIG_SPL_LOAD_IMX_CONTAINER=y
CONFIG_IMX_CONTAINER_CFG="board/freescale/imx8qm_mek/uboot-container.cfg"
2021-08-23 14:25:31 +00:00
CONFIG_SYS_LOAD_ADDR=0x80280000
2022-04-08 17:36:51 +00:00
CONFIG_REMAKE_ELF=y
2022-11-04 15:03:40 +00:00
CONFIG_FIT=y
CONFIG_FIT_EXTERNAL_OFFSET=0x3000
2023-10-02 17:58:20 +00:00
CONFIG_BOOTDELAY=3
2021-12-11 19:55:51 +00:00
CONFIG_OF_BOARD_SETUP=y
2019-08-26 08:12:00 +00:00
CONFIG_OF_SYSTEM_SETUP=y
2021-11-10 14:11:40 +00:00
CONFIG_USE_BOOTCOMMAND=y
CONFIG_BOOTCOMMAND="mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscript; then run bootscript; else if test ${sec_boot} = yes; then if run loadcntr; then run mmcboot; else run netboot; fi; else if run loadimage; then run mmcboot; else run netboot; fi; fi; fi; else booti ${loadaddr} - ${fdt_addr}; fi"
2019-03-05 02:32:49 +00:00
CONFIG_LOG=y
2020-06-16 23:06:11 +00:00
CONFIG_BOARD_EARLY_INIT_F=y
2022-05-16 21:20:26 +00:00
CONFIG_SPL_MAX_SIZE=0x1f000
2022-05-27 14:19:45 +00:00
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
CONFIG_SPL_BSS_START_ADDR=0x128000
2022-05-19 19:09:22 +00:00
CONFIG_SPL_BSS_MAX_SIZE=0x1000
2019-03-05 02:32:49 +00:00
CONFIG_SPL_BOARD_INIT=y
arm: imx: Check header before calling spl_load_imx_container
Make sure we have an IMX header before calling spl_load_imx_container,
since if we don't it will fail with -ENOENT. This allows us to fall back to
legacy/raw images if they are also enabled.
This is a functional change, one which likely should have been in place
from the start, but a functional change nonetheless. Previously, all
non-IMX8 images (except FITs without FIT_FULL) would be optimized out if
the only image load method enabled supported IMX8 images. With this change,
support for other image types now has an effect.
There are seven boards with SPL_LOAD_IMX_CONTAINER enabled: three with
SPL_BOOTROM_SUPPORT:
imx93_11x11_evk_ld imx93_11x11_evk imx8ulp_evk
and four with SPL_MMC:
deneb imx8qxp_mek giedi imx8qm_mek
All of these boards also have SPL_RAW_IMAGE_SUPPORT and
SPL_LEGACY_IMAGE_FORMAT enabled as well. However, none have FIT support
enabled. Of the six load methods affected by this patch, only SPL_MMC and
SPL_BOOTROM_SUPPORT are enabled with SPL_LOAD_IMX_CONTAINER.
spl_romapi_load_image_seekable does not support legacy or raw images, so
there is no growth. However, mmc_load_image_raw_sector does support loading
legacy/raw images. Since these images could not have been booted before, I
have disabled support for legacy/raw images on these four boards. This
reduces bloat from around 800 bytes to around 200.
There are no in-tree boards with SPL_LOAD_IMX_CONTAINER and AHAB_BOOT both
enabled, so we do not need to worry about potentially falling back to
legacy images in a secure boot scenario.
Future work could include merging imx_container.h with imx8image.h, since
they appear to define mostly the same structures.
Signed-off-by: Sean Anderson <seanga2@gmail.com>
2023-10-14 20:47:44 +00:00
# CONFIG_SPL_RAW_IMAGE_SUPPORT is not set
# CONFIG_SPL_LEGACY_IMAGE_FORMAT is not set
2019-08-22 07:42:46 +00:00
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
2022-05-26 17:13:21 +00:00
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
2023-09-26 14:14:16 +00:00
CONFIG_SPL_SYS_MALLOC=y
CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x120000
CONFIG_SPL_SYS_MALLOC_SIZE=0x3000
2021-12-11 19:55:51 +00:00
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR=y
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_SECTOR=0x800
2019-03-05 02:32:49 +00:00
CONFIG_SPL_POWER_DOMAIN=y
2021-07-11 03:14:28 +00:00
CONFIG_SPL_WATCHDOG=y
2019-08-22 07:42:46 +00:00
CONFIG_HUSH_PARSER=y
2022-05-11 22:01:06 +00:00
CONFIG_SYS_CBSIZE=256
2022-05-11 21:38:09 +00:00
CONFIG_SYS_PBSIZE=276
2019-03-05 02:32:49 +00:00
CONFIG_CMD_CPU=y
2019-09-20 21:36:50 +00:00
# CONFIG_BOOTM_NETBSD is not set
2020-05-26 19:06:18 +00:00
# CONFIG_CMD_EXPORTENV is not set
2019-03-05 02:32:49 +00:00
# CONFIG_CMD_IMPORTENV is not set
2020-05-26 19:06:18 +00:00
# CONFIG_CMD_CRC32 is not set
2019-03-05 02:32:49 +00:00
CONFIG_CMD_CLK=y
CONFIG_CMD_DM=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
CONFIG_CMD_MMC=y
CONFIG_CMD_DHCP=y
CONFIG_CMD_MII=y
CONFIG_CMD_PING=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_FAT=y
CONFIG_SPL_OF_CONTROL=y
2020-07-03 11:48:56 +00:00
CONFIG_ENV_OVERWRITE=y
2019-03-05 02:32:49 +00:00
CONFIG_ENV_IS_IN_MMC=y
2019-11-13 03:46:36 +00:00
CONFIG_SYS_RELOC_GD_ENV_ADDR=y
2020-07-24 21:14:47 +00:00
CONFIG_SYS_MMC_ENV_DEV=1
2021-08-30 13:16:28 +00:00
CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG=y
2019-03-05 02:32:49 +00:00
CONFIG_SPL_DM=y
CONFIG_SPL_CLK=y
CONFIG_CLK_IMX8=y
CONFIG_CPU=y
CONFIG_MXC_GPIO=y
CONFIG_DM_PCA953X=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_IMX_LPI2C=y
CONFIG_I2C_MUX=y
CONFIG_I2C_MUX_PCA954x=y
2021-10-31 03:03:51 +00:00
CONFIG_SUPPORT_EMMC_BOOT=y
2019-08-14 12:23:43 +00:00
CONFIG_FSL_USDHC=y
2019-03-05 02:32:49 +00:00
CONFIG_PHYLIB=y
CONFIG_PHY_ADDR_ENABLE=y
CONFIG_PHY_ATHEROS=y
CONFIG_PHY_GIGE=y
CONFIG_FEC_MXC_SHARE_MDIO=y
CONFIG_FEC_MXC_MDIO_BASE=0x5B040000
CONFIG_FEC_MXC=y
CONFIG_MII=y
CONFIG_PINCTRL=y
CONFIG_SPL_PINCTRL=y
CONFIG_PINCTRL_IMX8=y
CONFIG_POWER_DOMAIN=y
CONFIG_IMX8_POWER_DOMAIN=y
CONFIG_DM_REGULATOR=y
CONFIG_SPL_DM_REGULATOR=y
CONFIG_DM_REGULATOR_FIXED=y
CONFIG_DM_REGULATOR_GPIO=y
CONFIG_SPL_DM_REGULATOR_GPIO=y
CONFIG_DM_SERIAL=y
CONFIG_FSL_LPUART=y
CONFIG_SPL_TINY_MEMSET=y
# CONFIG_EFI_LOADER is not set