Skip to contentSkip to conversation

configs: ls1088aqds.h: Update mc size in env

PATCH Superseded Priyanka Jain 1 participant 4 messages Jul 12, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/4 configs: ls1088aqds.h: Update mc size in env

Increase MC firmware size from 1MB to 2MB
in read commands in env.

---
 include/configs/ls1088aqds.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
include/configs/ls1088aqds.h +6 -6
index 4d04833c50..3d83b6715a 100644
@@ -387,7 +387,7 @@ unsigned long get_board_ddr_clk(void);
 	"kernel_start=0x1000000\0"		\
 	"kernel_load=0xa0000000\0"		\
 	"kernel_size=0x2800000\0"		\
-	"mcinitcmd=sf probe 0:0;sf read 0xa0a00000 0xa00000 0x100000;"	\
+	"mcinitcmd=sf probe 0:0;sf read 0xa0a00000 0xa00000 0x200000;"	\
 	"sf read 0xa0640000 0x640000 0x4000; esbc_validate 0xa0640000;"	\
 	"sf read 0xa0e00000 0xe00000 0x100000;"	\
 	"sf read 0xa0680000 0x680000 0x4000;esbc_validate 0xa0680000;"	\
@@ -396,11 +396,11 @@ unsigned long get_board_ddr_clk(void);
 #else /* if !(CONFIG_NXP_ESBC) */
 #ifdef CONFIG_TFABOOT
 #define QSPI_MC_INIT_CMD				\
-	"sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"	\
+	"sf probe 0:0;sf read 0x80000000 0xA00000 0x200000;"	\
 	"sf read 0x80100000 0xE00000 0x100000;" \
 	"fsl_mc start mc 0x80000000 0x80100000\0"
 #define SD_MC_INIT_CMD				\
-	"mmcinfo;mmc read 0x80000000 0x5000 0x800;"  \
+	"mmcinfo;mmc read 0x80000000 0x5000 0x1000;"  \
 	"mmc read 0x80100000 0x7000 0x800;" \
 	"fsl_mc start mc 0x80000000 0x80100000\0"
 #define IFC_MC_INIT_CMD				\
@@ -422,7 +422,7 @@ unsigned long get_board_ddr_clk(void);
 	"kernel_load=0xa0000000\0"		\
 	"kernel_size=0x2800000\0"		\
 	"kernel_size_sd=0x14000\0"               \
-	"mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"	\
+	"mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x200000;"	\
 	"sf read 0x80100000 0xE00000 0x100000;" \
 	"fsl_mc start mc 0x80000000 0x80100000\0"	\
 	"mcmemsize=0x70000000 \0"		\
@@ -481,7 +481,7 @@ unsigned long get_board_ddr_clk(void);
 	"kernel_start=0x1000000\0"		\
 	"kernel_load=0xa0000000\0"		\
 	"kernel_size=0x2800000\0"		\
-	"mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"	\
+	"mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x200000;"	\
 	"sf read 0x80100000 0xE00000 0x100000;" \
 	"fsl_mc start mc 0x80000000 0x80100000\0"	\
 	"mcmemsize=0x70000000 \0"
@@ -499,7 +499,7 @@ unsigned long get_board_ddr_clk(void);
 	"kernel_start=0x8000\0"              \
 	"kernel_load=0xa0000000\0"              \
 	"kernel_size=0x14000\0"               \
-	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x800;"  \
+	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x1000;"  \
 	"mmc read 0x80100000 0x7000 0x800;" \
 	"fsl_mc start mc 0x80000000 0x80100000\0"       \
 	"mcmemsize=0x70000000 \0"
Signature · 1 line
2.17.1
#1 lore raw

PATCH 2/4 configs: ls1088ardb.h: Update mc size in env

Increase MC firmware size from 1MB to 2MB
in read commands in env.

---
 include/configs/ls1088ardb.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/configs/ls1088ardb.h +4 -4
index 6f36dd417a..0df3b486e8 100644
@@ -261,7 +261,7 @@
 /* Initial environment variables */
 #ifdef CONFIG_TFABOOT
 #define QSPI_MC_INIT_CMD				\
-	"sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"	\
+	"sf probe 0:0;sf read 0x80000000 0xA00000 0x200000;"	\
 	"sf read 0x80100000 0xE00000 0x100000;"				\
 	"env exists secureboot && "			\
 	"sf read 0x80640000 0x640000 0x40000 && "	\
@@ -270,7 +270,7 @@
 	"esbc_validate 0x80680000 ;"			\
 	"fsl_mc start mc 0x80000000 0x80100000\0"
 #define SD_MC_INIT_CMD				\
-	"mmcinfo;mmc read 0x80000000 0x5000 0x800;"		\
+	"mmcinfo;mmc read 0x80000000 0x5000 0x1000;"		\
 	"mmc read 0x80100000 0x7000 0x800;"				\
 	"env exists secureboot && "			\
 	"mmc read 0x80640000 0x3200 0x20 && "		\
@@ -281,7 +281,7 @@
 #else
 #if defined(CONFIG_QSPI_BOOT)
 #define MC_INIT_CMD				\
-	"mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"	\
+	"mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x200000;"	\
 	"sf read 0x80100000 0xE00000 0x100000;"				\
 	"env exists secureboot && "			\
 	"sf read 0x80640000 0x640000 0x40000 && "	\
@@ -292,7 +292,7 @@
 	"mcmemsize=0x70000000\0"
 #elif defined(CONFIG_SD_BOOT)
 #define MC_INIT_CMD				\
-	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x800;"		\
+	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x1000;"		\
 	"mmc read 0x80100000 0x7000 0x800;"				\
 	"env exists secureboot && "			\
 	"mmc read 0x80640000 0x3200 0x20 && "		\
Signature · 1 line
2.17.1
#2 lore raw

PATCH 3/4 configs: ls2080aqds.h: Update mc size in env

In reply to Priyanka Jain

Set MC Firmware size in read commands in
env to 2MB.

---
 include/configs/ls2080aqds.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/configs/ls2080aqds.h +2 -2
index b3fce1b7f7..64b0c78aba 100644
@@ -345,7 +345,7 @@ unsigned long get_board_ddr_clk(void);
 #else
 #ifdef CONFIG_TFABOOT
 #define SD_MC_INIT_CMD				\
-	"mmcinfo;mmc read 0x80a00000 0x5000 0x1200;"  \
+	"mmcinfo;mmc read 0x80a00000 0x5000 0x1000;"  \
 	"mmc read 0x80e00000 0x7000 0x800;" \
 	"fsl_mc start mc 0x80a00000 0x80e00000\0"
 #define IFC_MC_INIT_CMD				\
@@ -418,7 +418,7 @@ unsigned long get_board_ddr_clk(void);
 	"kernel_start=0x8000\0"              \
 	"kernel_load=0xa0000000\0"              \
 	"kernel_size=0x14000\0"               \
-	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x800;"  \
+	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x1000;"  \
 	"mmc read 0x80100000 0x7000 0x800;" \
 	"fsl_mc start mc 0x80000000 0x80100000\0"       \
 	"mcmemsize=0x70000000 \0"
Signature · 1 line
2.17.1
#3 lore raw

PATCH 4/4 configs: ls2080ardb.h: Update mc size in env

In reply to Priyanka Jain

Set MC Firmware size in read commands in
env to 2MB.

---
 include/configs/ls2080ardb.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/configs/ls2080ardb.h +4 -4
index 8626a1d5e6..3cc3b44678 100644
@@ -319,11 +319,11 @@ unsigned long get_board_sys_clk(void);
 	"env exists secureboot && "			\
 	"esbc_validate 0x80640000 && "			\
 	"esbc_validate 0x80680000; "			\
-	"sf read 0x80a00000 0xa00000 0x300000; "	\
+	"sf read 0x80a00000 0xa00000 0x200000; "	\
 	"sf read 0x80e00000 0xe00000 0x100000; "	\
 	"fsl_mc start mc 0x80a00000 0x80e00000 \0"
 #define SD_MC_INIT_CMD				\
-	"mmcinfo;mmc read 0x80a00000 0x5000 0x1200;" \
+	"mmcinfo;mmc read 0x80a00000 0x5000 0x1000;" \
 	"mmc read 0x80e00000 0x7000 0x800;"	\
 	"env exists secureboot && "		\
 	"mmc read 0x80640000 0x3200 0x20 && "	\
@@ -344,12 +344,12 @@ unsigned long get_board_sys_clk(void);
 	"env exists secureboot && "			\
 	"esbc_validate 0x80640000 && "			\
 	"esbc_validate 0x80680000; "			\
-	"sf read 0x80a00000 0xa00000 0x300000; "	\
+	"sf read 0x80a00000 0xa00000 0x200000; "	\
 	"sf read 0x80e00000 0xe00000 0x100000; "	\
 	"fsl_mc start mc 0x80a00000 0x80e00000 \0"
 #elif defined(CONFIG_SD_BOOT)
 #define MC_INIT_CMD                             \
-	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x800;" \
+	"mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x1000;" \
 	"mmc read 0x80100000 0x7000 0x800;"	\
 	"env exists secureboot && "		\
 	"mmc read 0x80640000 0x3200 0x20 && "	\
Signature · 1 line
2.17.1