imx: fix imx8mm_evk config
Subsystems (3)
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
@@ -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
@@ -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
@@ -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
Hi Ludwig,
Thanks for the patch.
Adding Peng on Cc.
Quoted 11 lines · Ludwig Nussel
Commit
364ba68ed1aadjustedKconfigforimx8mn_evkinstead ofimx8mm_evkfor 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_FILEis meant to point to the path of the dtb within the kernel install directory. Therefore adding freescale/ as subdir too.Signed-off-by Ludwig Nussel <[email protected]>
Fabio Estevam
reviewerHi Peng,
Quoted 2 lines · Ludwig Nussel
Commit
364ba68ed1aadjustedKconfigforimx8mn_evkinstead of
You haven't tested 364ba68ed1a, have you?
Quoted 11 lines
imx8mm_evkfor 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_FILEis 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
-0CONFIG_SYS_CBSIZE=2048 CONFIG_SYS_PBSIZE=2074 CONFIG_BOARD_LATE_INIT=yconfigs/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 +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.
Hi Fabio,
Quoted 10 lines
Subject: Re: [PATCH] imx: fix
imx8mm_evkconfigHi Peng,
Quoted 2 lines · Ludwig Nussel
Commit
364ba68ed1aadjustedKconfigforimx8mn_evkinstead ofYou 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_evkfor bootstd. Therefore mm is actually left buildingwithout
Quoted 10 lines
bootstd by default.
Also the name of the dtb referenced mp instead of mm. IIUC
CONFIG_DEFAULT_FDT_FILEis 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
-0CONFIG_SYS_CBSIZE=2048 CONFIG_SYS_PBSIZE=2074 CONFIG_BOARD_LATE_INIT=yconfigs/imx8mm_evk_fspi_defconfig +0
-0configs/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
364ba68ed1ais this hunk:configs/imx8mm_evk_fspi_defconfig +0
-0@@ -5,6 +5,7 @@ CONFIG_SYS_MALLOC_LEN=0x2000000
CONFIG_SPL_GPIO=yCONFIG_SPL_LIBCOMMON_SUPPORT=yCONFIG_SPL_LIBGENERIC_SUPPORT=y
+CONFIG_ENV_SOURCE_FILE="imx8mn_evk"You cannot use the environment for
imx8mn_evkonimx8mm_evk_fspi.Just remove this line, and the correct env will be used.
Fabio Estevam
reviewerHi 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