* [U-Boot] [PATCH] armv8: ls1088a: change dpl load command from apply to lazyapply.
@ 2018-05-11 18:44 Jagdish Gediya
2018-05-29 18:27 ` York Sun
0 siblings, 1 reply; 2+ messages in thread
From: Jagdish Gediya @ 2018-05-11 18:44 UTC (permalink / raw)
To: u-boot
use "fsl_mc lazyapply dpl addr" instead of "fsl_mc apply dpl addr"
change dpl load addr to 0x80000000 from 0x80200000 because dpl gets
corrupted at 0x80200000 during bootm command excecution.
Signed-off-by: Jagdish Gediya <jagdish.gediya@nxp.com>
---
include/configs/ls1088a_common.h | 10 +++++-----
include/configs/ls1088ardb.h | 12 ++++++------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/include/configs/ls1088a_common.h b/include/configs/ls1088a_common.h
index 0df9016..978f798 100644
--- a/include/configs/ls1088a_common.h
+++ b/include/configs/ls1088a_common.h
@@ -201,17 +201,17 @@ unsigned long long get_qixis_addr(void);
" hugepagesz=2m hugepages=256"
#if defined(CONFIG_QSPI_BOOT)
#define CONFIG_BOOTCOMMAND "sf probe 0:0;" \
- "sf read 0x80200000 0xd00000 0x100000;"\
- " fsl_mc apply dpl 0x80200000 &&" \
+ "sf read 0x80000000 0xd00000 0x100000;"\
+ " fsl_mc lazyapply dpl 0x80000000 &&" \
" sf read $kernel_load $kernel_start" \
" $kernel_size && bootm $kernel_load"
#elif defined(CONFIG_SD_BOOT)
-#define CONFIG_BOOTCOMMAND "mmcinfo;mmc read 0x80200000 0x6800 0x800;"\
- " fsl_mc apply dpl 0x80200000 &&" \
+#define CONFIG_BOOTCOMMAND "mmcinfo;mmc read 0x80000000 0x6800 0x800;"\
+ " fsl_mc lazyapply dpl 0x80000000 &&" \
" mmc read $kernel_load $kernel_start" \
" $kernel_size && bootm $kernel_load"
#else /* NOR BOOT*/
-#define CONFIG_BOOTCOMMAND "fsl_mc apply dpl 0x580d00000 &&" \
+#define CONFIG_BOOTCOMMAND "fsl_mc lazyapply dpl 0x580d00000 &&" \
" cp.b $kernel_start $kernel_load" \
" $kernel_size && bootm $kernel_load"
#endif
diff --git a/include/configs/ls1088ardb.h b/include/configs/ls1088ardb.h
index 4459994..414c586 100644
--- a/include/configs/ls1088ardb.h
+++ b/include/configs/ls1088ardb.h
@@ -381,8 +381,8 @@
"installer=load mmc 0:2 $load_addr " \
"/flex_installer_arm64.itb; " \
"env exists mcinitcmd && run mcinitcmd && " \
- "mmc read 0x80200000 0x6800 0x800;" \
- "fsl_mc apply dpl 0x80200000;" \
+ "mmc read 0x80000000 0x6800 0x800;" \
+ "fsl_mc lazyapply dpl 0x80000000;" \
"bootm $load_addr#ls1088ardb\0" \
"qspi_bootcmd=echo Trying load from qspi..;" \
"sf probe && sf read $load_addr " \
@@ -402,11 +402,11 @@
#if defined(CONFIG_QSPI_BOOT)
/* Try to boot an on-QSPI kernel first, then do normal distro boot */
#define CONFIG_BOOTCOMMAND \
- "sf read 0x80200000 0xd00000 0x100000;" \
+ "sf read 0x80000000 0xd00000 0x100000;" \
"env exists mcinitcmd && env exists secureboot " \
" && sf read 0x80780000 0x780000 0x100000 " \
"&& esbc_validate 0x80780000;env exists mcinitcmd " \
- "&& fsl_mc apply dpl 0x80200000;" \
+ "&& fsl_mc lazyapply dpl 0x80000000;" \
"run distro_bootcmd;run qspi_bootcmd;" \
"env exists secureboot && esbc_halt;"
@@ -414,11 +414,11 @@
#elif defined(CONFIG_SD_BOOT)
#define CONFIG_BOOTCOMMAND \
"env exists mcinitcmd && mmcinfo; " \
- "mmc read 0x80200000 0x6800 0x800; " \
+ "mmc read 0x80000000 0x6800 0x800; " \
"env exists mcinitcmd && env exists secureboot " \
" && mmc read 0x80780000 0x3800 0x10 " \
"&& esbc_validate 0x80780000;env exists mcinitcmd " \
- "&& fsl_mc apply dpl 0x80200000;" \
+ "&& fsl_mc lazyapply dpl 0x80000000;" \
"run distro_bootcmd;run sd_bootcmd;" \
"env exists secureboot && esbc_halt;"
#endif
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH] armv8: ls1088a: change dpl load command from apply to lazyapply.
2018-05-11 18:44 [U-Boot] [PATCH] armv8: ls1088a: change dpl load command from apply to lazyapply Jagdish Gediya
@ 2018-05-29 18:27 ` York Sun
0 siblings, 0 replies; 2+ messages in thread
From: York Sun @ 2018-05-29 18:27 UTC (permalink / raw)
To: u-boot
On 05/11/2018 12:46 AM, Jagdish Gediya wrote:
> use "fsl_mc lazyapply dpl addr" instead of "fsl_mc apply dpl addr"
>
> change dpl load addr to 0x80000000 from 0x80200000 because dpl gets
> corrupted at 0x80200000 during bootm command excecution.
>
Do you expact dpl remains valid after running "fsl_mc lazyapply"
command? If you don't put the image into a reserved memory, I don't
think you can presume Linux won't use the memory.
York
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-29 18:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-11 18:44 [U-Boot] [PATCH] armv8: ls1088a: change dpl load command from apply to lazyapply Jagdish Gediya
2018-05-29 18:27 ` York Sun
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.