layerscape: update u-boot to LSDK1712
[openwrt/openwrt.git] / package / boot / uboot-layerscape / patches / 0001-armv8-ls1043a-add-LEDE-boot-support-in-environment.patch
index 5973831665f351232bf4bdfc53213d121a54b0a7..b5adca6202fbc1112a375bd1b3dd89885d09f64e 100644 (file)
@@ -1,21 +1,21 @@
-From 74be1b50f96b3ada0a4fc18f0283659739edbadf Mon Sep 17 00:00:00 2001
+From d1b42455f62baefe7fb782d0d7100715b0fdb41f Mon Sep 17 00:00:00 2001
 From: Yangbo Lu <yangbo.lu@nxp.com>
-Date: Fri, 22 Sep 2017 11:00:12 +0800
-Subject: [PATCH 1/3] armv8: ls1043a: add LEDE boot support in environment
+Date: Fri, 19 Jan 2018 10:16:57 +0800
+Subject: [PATCH] armv8: ls1043a: add LEDE boot support in environment
 
 Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
 ---
- include/configs/ls1043a_common.h | 20 +++++++++++++++++++-
- 1 file changed, 19 insertions(+), 1 deletion(-)
+ include/configs/ls1043a_common.h |   20 +++++++++++++++++++-
+ 1 files changed, 19 insertions(+), 1 deletions(-)
 
 diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h
-index 0b3fb4e..5c01111 100644
+index c437ce5..48ecff5 100644
 --- a/include/configs/ls1043a_common.h
 +++ b/include/configs/ls1043a_common.h
-@@ -336,7 +336,19 @@
-       "sd_bootcmd=echo Trying load from SD ..;"   \
-               "mmcinfo; mmc read $load_addr "     \
-               "$kernel_addr_sd $kernel_size_sd ;" \
+@@ -341,7 +341,19 @@
+               "env exists secureboot && mmc read $kernelheader_addr_r "               \
+               "$kernelhdr_addr_sd $kernelhdr_size_sd "                \
+               " && esbc_validate ${kernelheader_addr_r};"     \
 -              " bootm $load_addr#$board\0"
 +              " bootm $load_addr#$board\0" \
 +      "lede_setenv=setenv loadaddr 82000000 && " \
@@ -33,7 +33,7 @@ index 0b3fb4e..5c01111 100644
  
  
  #undef CONFIG_BOOTCOMMAND
-@@ -351,6 +363,12 @@
+@@ -356,6 +368,12 @@
                           "env exists secureboot && esbc_halt;"
  #endif
  
@@ -47,5 +47,5 @@ index 0b3fb4e..5c01111 100644
                                        "earlycon=uart8250,mmio,0x21c0500 "    \
                                        MTDPARTS_DEFAULT
 -- 
-2.7.4
+1.7.1