configs: phycore-imx8mm, tauri-l: Enable crc32, mmc reg and overlay support
cover configs: phycore-imx8mm, tauri-l: Enable crc32, mmc reg and overlay support
Enable a few commands/features on the phyCORE-i.MX8MM based defconfigs (phyBOARD-Polis and phyGATE-Tauri-L) needed for PHYTEC's automated testing and for devicetree overlay support:
- CONFIG_CMD_CRC32, for verifying images loaded into memory
- CONFIG_CMD_MMC_REG, for reading eMMC card registers (e.g. EXT_CSD SEC_COUNT)
- CONFIG_OF_LIBFDT_OVERLAY, CONFIG_CMD_IMPORTENV/EXPORTENV, so bootm can apply devicetree overlays from FIT configurations and the boot script can import fit_overlay_conf from overlays.txt
This series is based on top of, and depends on, Thorsten Schmelzer's "[PATCH 0/4] board: phycore-imx8mm: Add support for flashing through UUU" [1], which is not yet merged. Patch 2/3 ("Enable mmc reg command") touches configs/phycore-imx8mm_defconfig immediately adjacent to the CONFIG_CMD_USB=y line that series adds, so please apply that series first, or hold this one until it lands.
Primoz Fiser (3):
configs: phycore-imx8mm, tauri-l: Enable overlay and overlays.txt
support
configs: phycore-imx8mm, tauri-l: Enable mmc reg command
configs: phycore-imx8mm, tauri-l: Enable crc32 command
configs/imx8mm-phygate-tauri-l_defconfig | 5 ++--- configs/phycore-imx8mm_defconfig | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-)
base-commit: b6f1fae674eb2d7c558f2ddbd885f7bba70eebde
Signature · 1 line
2.34.1
PATCH 1/3 configs: phycore-imx8mm, tauri-l: Enable overlay and overlays.txt support
Enable CONFIG_OF_LIBFDT_OVERLAY so that bootm can apply devicetree overlays from FIT configurations, and enable CONFIG_CMD_IMPORTENV and CONFIG_CMD_EXPORTENV so the boot script can import fit_overlay_conf from overlays.txt on the boot partition.
Do this for both phyCORE-i.MX8MM based defconfigs, phyBOARD-Polis and phyGATE-Tauri-L, similar to commit 0ff9141fb88e ("phycore-imx8mp: Add overlay and bootenv.txt support").
--- configs/imx8mm-phygate-tauri-l_defconfig | 3 +-- configs/phycore-imx8mm_defconfig | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-)
configs/imx8mm-phygate-tauri-l_defconfig +1 -2
@@ -10,6 +10,7 @@ CONFIG_ENV_OFFSET=0x3C0000 CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mm-phygate-tauri-l" CONFIG_TARGET_PHYCORE_IMX8MM=y +CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_SYS_MONITOR_LEN=524288 CONFIG_SPL_MMC=y CONFIG_SPL_SERIAL=y
@@ -43,8 +44,6 @@ CONFIG_SPL_I2C=y CONFIG_SPL_POWER=y CONFIG_SPL_WATCHDOG=y CONFIG_SYS_PROMPT="u-boot=> " -# CONFIG_CMD_EXPORTENV is not set -# CONFIG_CMD_IMPORTENV is not set CONFIG_CMD_ERASEENV=y # CONFIG_CMD_CRC32 is not set CONFIG_CMD_EEPROM=y
configs/phycore-imx8mm_defconfig +1 -2
@@ -12,6 +12,7 @@ CONFIG_DM_GPIO=y CONFIG_DEFAULT_DEVICE_TREE="freescale/imx8mm-phyboard-polis-rdk" CONFIG_IMX8M_OPTEE_LOAD_ADDR=0x7e000000 CONFIG_TARGET_PHYCORE_IMX8MM=y +CONFIG_OF_LIBFDT_OVERLAY=y CONFIG_DM_RESET=y CONFIG_SYS_MONITOR_LEN=524288 CONFIG_SPL_MMC=y
@@ -50,8 +51,6 @@ CONFIG_SPL_POWER=y CONFIG_SPL_SPI_FLASH_MTD=y CONFIG_SPL_WATCHDOG=y CONFIG_SYS_PROMPT="u-boot=> " -# CONFIG_CMD_EXPORTENV is not set -# CONFIG_CMD_IMPORTENV is not set CONFIG_CMD_ERASEENV=y # CONFIG_CMD_CRC32 is not set CONFIG_CMD_EEPROM=y
Signature · 1 line
2.34.1
PATCH 2/3 configs: phycore-imx8mm, tauri-l: Enable mmc reg command
In reply to Primoz FiserEnable CONFIG_CMD_MMC_REG to allow reading eMMC card registers, e.g. "mmc reg read extcsd 212" for EXT_CSD SEC_COUNT as required by the PHYTEC automated testing.
--- configs/imx8mm-phygate-tauri-l_defconfig | 1 + configs/phycore-imx8mm_defconfig | 1 + 2 files changed, 2 insertions(+)
configs/imx8mm-phygate-tauri-l_defconfig +1 -0
@@ -56,6 +56,7 @@ CONFIG_CMD_FUSE=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y +CONFIG_CMD_MMC_REG=y CONFIG_CMD_CACHE=y CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y
configs/phycore-imx8mm_defconfig +1 -0
@@ -64,6 +64,7 @@ CONFIG_CMD_FUSE=y CONFIG_CMD_GPIO=y CONFIG_CMD_I2C=y CONFIG_CMD_MMC=y +CONFIG_CMD_MMC_REG=y CONFIG_CMD_PCI=y CONFIG_CMD_SF_TEST=y CONFIG_CMD_USB=y
Signature · 1 line
2.34.1
PATCH 3/3 configs: phycore-imx8mm, tauri-l: Enable crc32 command
In reply to Primoz FiserStop disabling CONFIG_CMD_CRC32 (default y) so the "crc32" command is available, e.g. for verifying images loaded into memory and for the PHYTEC automated testing purposes.
--- configs/imx8mm-phygate-tauri-l_defconfig | 1 - configs/phycore-imx8mm_defconfig | 1 - 2 files changed, 2 deletions(-)
configs/imx8mm-phygate-tauri-l_defconfig +0 -1
@@ -45,7 +45,6 @@ CONFIG_SPL_POWER=y CONFIG_SPL_WATCHDOG=y CONFIG_SYS_PROMPT="u-boot=> " CONFIG_CMD_ERASEENV=y -# CONFIG_CMD_CRC32 is not set CONFIG_CMD_EEPROM=y CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2 CONFIG_SYS_EEPROM_SIZE=4096
configs/phycore-imx8mm_defconfig +0 -1
@@ -52,7 +52,6 @@ CONFIG_SPL_SPI_FLASH_MTD=y CONFIG_SPL_WATCHDOG=y CONFIG_SYS_PROMPT="u-boot=> " CONFIG_CMD_ERASEENV=y -# CONFIG_CMD_CRC32 is not set CONFIG_CMD_EEPROM=y CONFIG_SYS_I2C_EEPROM_ADDR_LEN=2 CONFIG_SYS_EEPROM_SIZE=4096
Signature · 1 line
2.34.1