All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] armv8: ls1028ardb: Add sd and emmc related environments
@ 2019-05-14  8:53 Yuantian Tang
  2019-05-22 12:37 ` Prabhakar Kushwaha
  0 siblings, 1 reply; 4+ messages in thread
From: Yuantian Tang @ 2019-05-14  8:53 UTC (permalink / raw)
  To: u-boot

Add SD and EMMC environments to faciliate the boot.

Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
---
 include/configs/ls1028a_common.h | 17 +++++++++++++----
 1 file changed, 13 insertions(+), 4 deletions(-)

diff --git a/include/configs/ls1028a_common.h b/include/configs/ls1028a_common.h
index 10f2e88bfd..9531548184 100644
--- a/include/configs/ls1028a_common.h
+++ b/include/configs/ls1028a_common.h
@@ -127,15 +127,24 @@
 			"${scripthdraddr} ${prefix}${boot_script_hdr} " \
 			"&& esbc_validate ${scripthdraddr};"    \
 		"source ${scriptaddr}\0"	  \
-	"sd_bootcmd=echo Trying load from SD ..;"	\
+		"xspi_bootcmd=echo Trying load from FlexSPI flash ...;" \
+		"sf probe 0:0 && sf read $load_addr " \
+		"$kernel_start $kernel_size ; env exists secureboot &&" \
+		"sf read $kernelheader_addr_r $kernelheader_start " \
+		"$kernelheader_size && esbc_validate ${kernelheader_addr_r}; "\
+		" bootm $load_addr#$board\0" \
+	"sd_bootcmd=echo Trying load from SD ...;" \
 		"mmcinfo; mmc read $load_addr "		\
 		"$kernel_addr_sd $kernel_size_sd && "	\
 		"env exists secureboot && mmc read $kernelheader_addr_r " \
 		"$kernelhdr_addr_sd $kernelhdr_size_sd "		\
 		" && esbc_validate ${kernelheader_addr_r};"	\
 		"bootm $load_addr#$board\0"		\
-	"sd_hdploadcmd=echo Trying load HDP firmware from SD..;"      \
-		"mmcinfo;mmc read $load_addr 0x4800 0x200 "		\
+		"xspi_hdploadcmd=echo Trying load HDP firmware from FlexSPI...;" \
+		"sf probe 0:0 && sf read $load_addr 0x940000 0x30000 " \
+		"&& hdp load $load_addr 0x2000\0"			\
+	"sd_hdploadcmd=echo Trying load HDP firmware from SD..;"        \
+		"mmcinfo;mmc read $load_addr 0x4a00 0x200 "             \
 		"&& hdp load $load_addr 0x2000\0"	\
 	"emmc_bootcmd=echo Trying load from EMMC ..;"	\
 		"mmcinfo; mmc dev 1; mmc read $load_addr "		\
@@ -145,7 +154,7 @@
 		" && esbc_validate ${kernelheader_addr_r};"	\
 		"bootm $load_addr#$board\0"			\
 	"emmc_hdploadcmd=echo Trying load HDP firmware from EMMC..;"      \
-		"mmc dev 1;mmcinfo;mmc read $load_addr 0x4800 0x200 "	\
+		"mmc dev 1;mmcinfo;mmc read $load_addr 0x4a00 0x200 "	\
 		"&& hdp load $load_addr 0x2000\0"
 
 #undef CONFIG_BOOTCOMMAND
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] armv8: ls1028ardb: Add sd and emmc related environments
  2019-05-14  8:53 [U-Boot] [PATCH] armv8: ls1028ardb: Add sd and emmc related environments Yuantian Tang
@ 2019-05-22 12:37 ` Prabhakar Kushwaha
  2019-05-23  1:10   ` Prabhakar Kushwaha
  0 siblings, 1 reply; 4+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-22 12:37 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Yuantian Tang <andy.tang@nxp.com>
> Sent: Tuesday, May 14, 2019 2:24 PM
> To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Sudhanshu Gupta
> <sudhanshu.gupta@nxp.com>; Harninder Rai <harninder.rai@nxp.com>; Rajesh
> Bhagat <rajesh.bhagat@nxp.com>
> Cc: u-boot at lists.denx.de; Andy Tang <andy.tang@nxp.com>
> Subject: [PATCH] armv8: ls1028ardb: Add sd and emmc related environments
> 
> Add SD and EMMC environments to faciliate the boot.
> 
> Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
> ---

Please rebase after my pull request getting accepted

--pk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] armv8: ls1028ardb: Add sd and emmc related environments
  2019-05-22 12:37 ` Prabhakar Kushwaha
@ 2019-05-23  1:10   ` Prabhakar Kushwaha
  2019-05-23  1:33     ` Andy Tang
  0 siblings, 1 reply; 4+ messages in thread
From: Prabhakar Kushwaha @ 2019-05-23  1:10 UTC (permalink / raw)
  To: u-boot


> -----Original Message-----
> From: Prabhakar Kushwaha
> Sent: Wednesday, May 22, 2019 6:07 PM
> To: Yuantian Tang <andy.tang@nxp.com>; Sudhanshu Gupta
> <sudhanshu.gupta@nxp.com>; Harninder Rai <harninder.rai@nxp.com>; Rajesh
> Bhagat <rajesh.bhagat@nxp.com>
> Cc: u-boot at lists.denx.de; Andy Tang <andy.tang@nxp.com>
> Subject: RE: [PATCH] armv8: ls1028ardb: Add sd and emmc related environments
> 
> 
> > -----Original Message-----
> > From: Yuantian Tang <andy.tang@nxp.com>
> > Sent: Tuesday, May 14, 2019 2:24 PM
> > To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Sudhanshu Gupta
> > <sudhanshu.gupta@nxp.com>; Harninder Rai <harninder.rai@nxp.com>;
> > Rajesh Bhagat <rajesh.bhagat@nxp.com>
> > Cc: u-boot at lists.denx.de; Andy Tang <andy.tang@nxp.com>
> > Subject: [PATCH] armv8: ls1028ardb: Add sd and emmc related
> > environments
> >
> > Add SD and EMMC environments to faciliate the boot.
> >
> > Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
> > ---
> 
> Please rebase after my pull request getting accepted
> 

My pull request accepted. Please rebase it on top of the tree.

I am marking this patch as "change requested"

--pk

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] [PATCH] armv8: ls1028ardb: Add sd and emmc related environments
  2019-05-23  1:10   ` Prabhakar Kushwaha
@ 2019-05-23  1:33     ` Andy Tang
  0 siblings, 0 replies; 4+ messages in thread
From: Andy Tang @ 2019-05-23  1:33 UTC (permalink / raw)
  To: u-boot

No problem. Thanks Prabhakar,

BR,
Andy

> -----Original Message-----
> From: Prabhakar Kushwaha
> Sent: 2019年5月23日 9:11
> To: Andy Tang <andy.tang@nxp.com>; Sudhanshu Gupta
> <sudhanshu.gupta@nxp.com>; Harninder Rai <harninder.rai@nxp.com>;
> Rajesh Bhagat <rajesh.bhagat@nxp.com>
> Cc: u-boot at lists.denx.de; Andy Tang <andy.tang@nxp.com>
> Subject: RE: [PATCH] armv8: ls1028ardb: Add sd and emmc related
> environments
> 
> 
> > -----Original Message-----
> > From: Prabhakar Kushwaha
> > Sent: Wednesday, May 22, 2019 6:07 PM
> > To: Yuantian Tang <andy.tang@nxp.com>; Sudhanshu Gupta
> > <sudhanshu.gupta@nxp.com>; Harninder Rai <harninder.rai@nxp.com>;
> > Rajesh Bhagat <rajesh.bhagat@nxp.com>
> > Cc: u-boot at lists.denx.de; Andy Tang <andy.tang@nxp.com>
> > Subject: RE: [PATCH] armv8: ls1028ardb: Add sd and emmc related
> > environments
> >
> >
> > > -----Original Message-----
> > > From: Yuantian Tang <andy.tang@nxp.com>
> > > Sent: Tuesday, May 14, 2019 2:24 PM
> > > To: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>; Sudhanshu
> Gupta
> > > <sudhanshu.gupta@nxp.com>; Harninder Rai <harninder.rai@nxp.com>;
> > > Rajesh Bhagat <rajesh.bhagat@nxp.com>
> > > Cc: u-boot at lists.denx.de; Andy Tang <andy.tang@nxp.com>
> > > Subject: [PATCH] armv8: ls1028ardb: Add sd and emmc related
> > > environments
> > >
> > > Add SD and EMMC environments to faciliate the boot.
> > >
> > > Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
> > > ---
> >
> > Please rebase after my pull request getting accepted
> >
> 
> My pull request accepted. Please rebase it on top of the tree.
> 
> I am marking this patch as "change requested"
> 
> --pk

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-05-23  1:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-05-14  8:53 [U-Boot] [PATCH] armv8: ls1028ardb: Add sd and emmc related environments Yuantian Tang
2019-05-22 12:37 ` Prabhakar Kushwaha
2019-05-23  1:10   ` Prabhakar Kushwaha
2019-05-23  1:33     ` Andy Tang

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.