armv8: ls1088a: Updates secure boot headers offset
authorPriyanka Singh <priyanka.singh@nxp.com>
Wed, 22 Jan 2020 10:32:34 +0000 (10:32 +0000)
committerPriyanka Jain <priyanka.jain@nxp.com>
Tue, 4 Feb 2020 10:50:25 +0000 (16:20 +0530)
Updates the secure boot headers offsets of Kernel and other
firmware images for SD and QSPI boot sources used by
esbc_validate command.

Signed-off-by: Priyanka Singh <priyanka.singh@nxp.com>
Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com>
include/configs/ls1088aqds.h
include/configs/ls1088ardb.h

index a5125c8f37fc4fc4f8a1e63cc6bf5da06f9a5c79..361c72fc8c96fd78130e56221e07c21884579c5f 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2017 NXP
+ * Copyright 2017, 2020 NXP
  */
 
 #ifndef __LS1088A_QDS_H
@@ -407,9 +407,9 @@ unsigned long get_board_ddr_clk(void);
        "kernel_load=0xa0000000\0"              \
        "kernel_size=0x2800000\0"               \
        "mcinitcmd=sf probe 0:0;sf read 0xa0a00000 0xa00000 0x100000;"  \
-       "sf read 0xa0700000 0x700000 0x4000; esbc_validate 0xa0700000;" \
+       "sf read 0xa0640000 0x640000 0x4000; esbc_validate 0xa0640000;" \
        "sf read 0xa0e00000 0xe00000 0x100000;" \
-       "sf read 0xa0740000 0x740000 0x4000;esbc_validate 0xa0740000;"  \
+       "sf read 0xa0680000 0x680000 0x4000;esbc_validate 0xa0680000;"  \
        "fsl_mc start mc 0xa0a00000 0xa0e00000\0"                       \
        "mcmemsize=0x70000000 \0"
 #else /* if !(CONFIG_NXP_ESBC) */
index d02ad083e86092ae066f3fcf2104b4e1b2bace28..b48efcc119f4fa701f5a0be3251e1d42417eacff 100644 (file)
@@ -1,6 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0+ */
 /*
- * Copyright 2017 NXP
+ * Copyright 2017, 2020 NXP
  */
 
 #ifndef __LS1088A_RDB_H
        "sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"    \
        "sf read 0x80100000 0xE00000 0x100000;"                         \
        "env exists secureboot && "                     \
-       "sf read 0x80700000 0x700000 0x40000 && "       \
-       "sf read 0x80740000 0x740000 0x40000 && "       \
-       "esbc_validate 0x80700000 && "                  \
-       "esbc_validate 0x80740000 ;"                    \
+       "sf read 0x80640000 0x640000 0x40000 && "       \
+       "sf read 0x80680000 0x680000 0x40000 && "       \
+       "esbc_validate 0x80640000 && "                  \
+       "esbc_validate 0x80680000 ;"                    \
        "fsl_mc start mc 0x80000000 0x80100000\0"
 #define SD_MC_INIT_CMD                         \
        "mmcinfo;mmc read 0x80000000 0x5000 0x800;"             \
        "mmc read 0x80100000 0x7000 0x800;"                             \
        "env exists secureboot && "                     \
-       "mmc read 0x80700000 0x3800 0x20 && "           \
-       "mmc read 0x80740000 0x3A00 0x20 && "           \
-       "esbc_validate 0x80700000 && "                  \
-       "esbc_validate 0x80740000 ;"                    \
+       "mmc read 0x80640000 0x3200 0x20 && "           \
+       "mmc read 0x80680000 0x3400 0x20 && "           \
+       "esbc_validate 0x80640000 && "                  \
+       "esbc_validate 0x80680000 ;"                    \
        "fsl_mc start mc 0x80000000 0x80100000\0"
 #else
 #if defined(CONFIG_QSPI_BOOT)
        "mcinitcmd=sf probe 0:0;sf read 0x80000000 0xA00000 0x100000;"  \
        "sf read 0x80100000 0xE00000 0x100000;"                         \
        "env exists secureboot && "                     \
-       "sf read 0x80700000 0x700000 0x40000 && "       \
-       "sf read 0x80740000 0x740000 0x40000 && "       \
-       "esbc_validate 0x80700000 && "                  \
-       "esbc_validate 0x80740000 ;"                    \
+       "sf read 0x80640000 0x640000 0x40000 && "       \
+       "sf read 0x80680000 0x680000 0x40000 && "       \
+       "esbc_validate 0x80640000 && "                  \
+       "esbc_validate 0x80680000 ;"                    \
        "fsl_mc start mc 0x80000000 0x80100000\0"       \
        "mcmemsize=0x70000000\0"
 #elif defined(CONFIG_SD_BOOT)
        "mcinitcmd=mmcinfo;mmc read 0x80000000 0x5000 0x800;"           \
        "mmc read 0x80100000 0x7000 0x800;"                             \
        "env exists secureboot && "                     \
-       "mmc read 0x80700000 0x3800 0x20 && "           \
-       "mmc read 0x80740000 0x3A00 0x20 && "           \
-       "esbc_validate 0x80700000 && "                  \
-       "esbc_validate 0x80740000 ;"                    \
+       "mmc read 0x80640000 0x3200 0x20 && "           \
+       "mmc read 0x80680000 0x3400 0x20 && "           \
+       "esbc_validate 0x80640000 && "                  \
+       "esbc_validate 0x80680000 ;"                    \
        "fsl_mc start mc 0x80000000 0x80100000\0"       \
        "mcmemsize=0x70000000\0"
 #endif
        "fdt_addr=0x64f00000\0"                 \
        "kernel_addr=0x1000000\0"               \
        "kernel_addr_sd=0x8000\0"               \
-       "kernelhdr_addr_sd=0x4000\0"            \
+       "kernelhdr_addr_sd=0x3000\0"            \
        "kernel_start=0x580100000\0"            \
-       "kernelheader_start=0x580800000\0"      \
+       "kernelheader_start=0x580600000\0"      \
        "scriptaddr=0x80000000\0"               \
        "scripthdraddr=0x80080000\0"            \
        "fdtheader_addr_r=0x80100000\0"         \
-       "kernelheader_addr=0x800000\0"          \
+       "kernelheader_addr=0x600000\0"          \
        "kernelheader_addr_r=0x80200000\0"      \
        "kernel_addr_r=0x81000000\0"            \
        "kernelheader_size=0x40000\0"           \
        "fdt_addr=0x64f00000\0"                 \
        "kernel_addr=0x1000000\0"               \
        "kernel_addr_sd=0x8000\0"               \
-       "kernelhdr_addr_sd=0x4000\0"            \
+       "kernelhdr_addr_sd=0x3000\0"            \
        "kernel_start=0x580100000\0"            \
        "kernelheader_start=0x580800000\0"      \
        "scriptaddr=0x80000000\0"               \
        "scripthdraddr=0x80080000\0"            \
        "fdtheader_addr_r=0x80100000\0"         \
-       "kernelheader_addr=0x800000\0"          \
+       "kernelheader_addr=0x600000\0"          \
        "kernelheader_addr_r=0x80200000\0"      \
        "kernel_addr_r=0x81000000\0"            \
        "kernelheader_size=0x40000\0"           \
 #define QSPI_NOR_BOOTCOMMAND                                   \
        "sf read 0x80001000 0xd00000 0x100000;"         \
                "env exists mcinitcmd && env exists secureboot "        \
-               " && sf read 0x80780000 0x780000 0x100000 "     \
-               "&& esbc_validate 0x80780000;env exists mcinitcmd "     \
+               " && sf read 0x806C0000 0x6C0000 0x100000 "     \
+               "&& esbc_validate 0x806C0000;env exists mcinitcmd "     \
                "&& fsl_mc lazyapply dpl 0x80001000;"           \
                "run distro_bootcmd;run qspi_bootcmd;"          \
                "env exists secureboot && esbc_halt;"
                "env exists mcinitcmd && mmcinfo; "             \
                "mmc read 0x80001000 0x6800 0x800; "            \
                "env exists mcinitcmd && env exists secureboot "        \
-               " && mmc read 0x80780000 0x3C00 0x20 "          \
-               "&& esbc_validate 0x80780000;env exists mcinitcmd "     \
+               " && mmc read 0x806C0000 0x3600 0x20 "          \
+               "&& esbc_validate 0x806C0000;env exists mcinitcmd "     \
                "&& fsl_mc lazyapply dpl 0x80001000;"           \
                "run distro_bootcmd;run sd_bootcmd;"            \
                "env exists secureboot && esbc_halt;"
 #define CONFIG_BOOTCOMMAND                                      \
                "sf read 0x80001000 0xd00000 0x100000;"         \
                "env exists mcinitcmd && env exists secureboot "        \
-               " && sf read 0x80780000 0x780000 0x100000 "     \
-               "&& esbc_validate 0x80780000;env exists mcinitcmd "     \
+               " && sf read 0x806C0000 0x6C0000 0x100000 "     \
+               "&& esbc_validate 0x806C0000;env exists mcinitcmd "     \
                "&& fsl_mc lazyapply dpl 0x80001000;"           \
                "run distro_bootcmd;run qspi_bootcmd;"          \
                "env exists secureboot && esbc_halt;"
                "env exists mcinitcmd && mmcinfo; "             \
                "mmc read 0x80001000 0x6800 0x800; "            \
                "env exists mcinitcmd && env exists secureboot "        \
-               " && mmc read 0x80780000 0x3C00 0x20 "          \
-               "&& esbc_validate 0x80780000;env exists mcinitcmd "     \
+               " && mmc read 0x806C0000 0x3600 0x20 "          \
+               "&& esbc_validate 0x806C0000;env exists mcinitcmd "     \
                "&& fsl_mc lazyapply dpl 0x80001000;"           \
                "run distro_bootcmd;run sd_bootcmd;"            \
                "env exists secureboot && esbc_halt;"