Skip to contentSkip to conversation

imx: fix imx8mm_evk config

PATCH In review Ludwig Nussel 3 participants 5 messages Feb 13, 2025 – Feb 20, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 imx: fix imx8mm_evk config

Commit 364ba68ed1a adjusted Kconfig for imx8mn_evk instead of imx8mm_evk for bootstd. Therefore mm is actually left building without bootstd by default.

Also the name of the dtb referenced mp instead of mm. IIUC CONFIG_DEFAULT_FDT_FILE is meant to point to the path of the dtb within the kernel install directory. Therefore adding freescale/ as subdir too.

---
 arch/arm/mach-imx/imx8m/Kconfig   | 2 ++
 configs/imx8mm_evk_defconfig      | 2 +-
 configs/imx8mm_evk_fspi_defconfig | 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)
arch/arm/mach-imx/imx8m/Kconfig +2 -0
index 0fe9c46e499..f8d0fd5de36 100644
@@ -93,6 +93,8 @@ config TARGET_IMX8MM_EVK
 	select ARCH_MISC_INIT
 	select SPL_CRYPTO if SPL
 	imply OF_UPSTREAM
+	imply BOOTSTD_FULL
+	imply BOOTSTD_BOOTCOMMAND
 
 config TARGET_IMX8MM_ICORE_MX8MM
 	bool "Engicam i.Core MX8M Mini SOM"
configs/imx8mm_evk_defconfig +1 -1
index 659fc9ec039..0a7ceba68d3 100644
@@ -25,7 +25,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_DEFAULT_FDT_FILE="imx8mp-evk.dtb"
+CONFIG_DEFAULT_FDT_FILE="freescale/imx8mm-evk.dtb"
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2074
 CONFIG_BOARD_LATE_INIT=y
configs/imx8mm_evk_fspi_defconfig +1 -1
index 4a8d4994b80..a06b47ac3ba 100644
@@ -29,7 +29,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_DEFAULT_FDT_FILE="imx8mp-evk.dtb"
+CONFIG_DEFAULT_FDT_FILE="freescale/imx8mm-evk.dtb"
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2074
 CONFIG_BOARD_LATE_INIT=y
Signature · 1 line
2.34.1
reviewer Reviewed-by on v1 1/1
#1 lore raw

Hi Ludwig,

Thanks for the patch.

Adding Peng on Cc.

Quoted 11 lines · Ludwig Nussel

Commit 364ba68ed1a adjusted Kconfig for imx8mn_evk instead of imx8mm_evk for bootstd. Therefore mm is actually left building without bootstd by default.

Also the name of the dtb referenced mp instead of mm. IIUC CONFIG_DEFAULT_FDT_FILE is meant to point to the path of the dtb within the kernel install directory. Therefore adding freescale/ as subdir too.

reviewer
#2 lore raw
In reply to Ludwig Nussel

Hi Peng,

Quoted 2 lines · Ludwig Nussel

Commit 364ba68ed1a adjusted Kconfig for imx8mn_evk instead of

You haven't tested 364ba68ed1a, have you?

Quoted 11 lines

imx8mm_evk for bootstd. Therefore mm is actually left building without bootstd by default.

Also the name of the dtb referenced mp instead of mm. IIUC CONFIG_DEFAULT_FDT_FILE is meant to point to the path of the dtb within the kernel install directory. Therefore adding freescale/ as subdir too.

configs/imx8mm_evk_defconfig CONFIG_FIT=y · line 28

Quoted 5 lines
configs/imx8mm_evk_defconfig +1 -1
@@ -25,7 +25,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_DEFAULT_FDT_FILE="imx8mp-evk.dtb"
+CONFIG_DEFAULT_FDT_FILE="freescale/imx8mm-evk.dtb"

I think this could be CONFIG_DEFAULT_FDT_FILE="imx8mm-evk.dtb"

configs/imx8mm_evk_fspi_defconfig CONFIG_FIT=y · line 32

Quoted 13 lines
configs/imx8mm_evk_defconfig +0 -0
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2074
 CONFIG_BOARD_LATE_INIT=y
configs/imx8mm_evk_fspi_defconfig +1 -1
index 4a8d4994b80..a06b47ac3ba 100644
@@ -29,7 +29,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_DEFAULT_FDT_FILE="imx8mp-evk.dtb"
+CONFIG_DEFAULT_FDT_FILE="freescale/imx8mm-evk.dtb"

Ditto.

Another error I see with 364ba68ed1a is this hunk:

configs/imx8mm_evk_fspi_defconfig +1 -0
@@ -5,6 +5,7 @@ CONFIG_SYS_MALLOC_LEN=0x2000000
 CONFIG_SPL_GPIO=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_ENV_SOURCE_FILE="imx8mn_evk"
 

You cannot use the environment for imx8mn_evk on imx8mm_evk_fspi.

Just remove this line, and the correct env will be used.

#3 lore raw

Hi Fabio,

Quoted 10 lines

Subject: Re: [PATCH] imx: fix imx8mm_evk config

Hi Peng,

Quoted 2 lines · Ludwig Nussel

Commit 364ba68ed1a adjusted Kconfig for imx8mn_evk instead of

You haven't tested 364ba68ed1a, have you?

Not test all the targets, 93 and 8mp were tested.

Stupid issues, copy paste from one board to the other, but forgot me update the name. shame on me.

Sorry for this.

Would you expect a v2 from Ludwig or need me to address those in a separate patch?

Thanks,
Peng.

Quoted 51 lines
Quoted 2 lines

imx8mm_evk for bootstd. Therefore mm is actually left building

without

Quoted 10 lines

bootstd by default.

Also the name of the dtb referenced mp instead of mm. IIUC CONFIG_DEFAULT_FDT_FILE is meant to point to the path of the dtb within the kernel install directory. Therefore adding freescale/ as subdir too.

configs/imx8mm_evk_defconfig CONFIG_FIT=y · line 28

Quoted 5 lines
configs/imx8mm_evk_defconfig +1 -1
@@ -25,7 +25,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_DEFAULT_FDT_FILE="imx8mp-evk.dtb"
+CONFIG_DEFAULT_FDT_FILE="freescale/imx8mm-evk.dtb"

I think this could be CONFIG_DEFAULT_FDT_FILE="imx8mm-evk.dtb"

Quoted 9 lines
configs/imx8mm_evk_defconfig +0 -0
 CONFIG_SYS_CBSIZE=2048
 CONFIG_SYS_PBSIZE=2074
 CONFIG_BOARD_LATE_INIT=y
configs/imx8mm_evk_fspi_defconfig +0 -0
index 4a8d4994b80..a06b47ac3ba 100644

configs/imx8mm_evk_fspi_defconfig CONFIG_FIT=y · line 32

Quoted 5 lines
configs/imx8mm_evk_fspi_defconfig +1 -1
@@ -29,7 +29,7 @@ CONFIG_FIT=y
 CONFIG_FIT_EXTERNAL_OFFSET=0x3000
 CONFIG_SPL_LOAD_FIT=y
 CONFIG_OF_SYSTEM_SETUP=y
-CONFIG_DEFAULT_FDT_FILE="imx8mp-evk.dtb"
+CONFIG_DEFAULT_FDT_FILE="freescale/imx8mm-evk.dtb"

Ditto.

Another error I see with 364ba68ed1a is this hunk:

configs/imx8mm_evk_fspi_defconfig +0 -0
@@ -5,6 +5,7 @@ CONFIG_SYS_MALLOC_LEN=0x2000000

CONFIG_SPL_GPIO=y CONFIG_SPL_LIBCOMMON_SUPPORT=y
CONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_ENV_SOURCE_FILE="imx8mn_evk"

You cannot use the environment for imx8mn_evk on
imx8mm_evk_fspi.

Just remove this line, and the correct env will be used.

reviewer
#4 lore raw

Hi Peng,

Quoted 9 lines · Peng Fan

Not test all the targets, 93 and 8mp were tested.

Stupid issues, copy paste from one board to the other, but forgot me update the name. shame on me.

Sorry for this.

Would you expect a v2 from Ludwig or need me to address those in a separate patch?

Please address those issues in a separate patch, test it, and add a Reported-by tag from Ludwig.

Thanks