summaryrefslogtreecommitdiff
path: root/include/configs/lx2160ardb.h
diff options
context:
space:
mode:
authorPriyanka Jain <priyanka.jain@nxp.com>2019-01-24 05:22:18 +0000
committerPrabhakar Kushwaha <prabhakar.kushwaha@nxp.com>2019-02-19 10:26:44 +0530
commit3e1a9b5c772af8d80d75a80fe91d3d02c63fa173 (patch)
tree9999ab1a8f3caeb406ae6e28bb998c9f8350c33c /include/configs/lx2160ardb.h
parent938e35e58f98ff2db46b4f40964a1c3b242b1295 (diff)
downloadu-boot-3e1a9b5c772af8d80d75a80fe91d3d02c63fa173.tar.gz
board/lx2160ardb: Add distro boot support
Add u-boot enviroments to support distro boot which scan boot.scr from external storage devices (e.g. SD/USB/SCSI disk) and execute autoboot script Signed-off-by: Priyanka Jain <priyanka.jain@nxp.com> Reviewed-by: Prabhakar Kushwaha <prabhakar.kushwaha@nxp.com>
Diffstat (limited to 'include/configs/lx2160ardb.h')
-rw-r--r--include/configs/lx2160ardb.h29
1 files changed, 15 insertions, 14 deletions
diff --git a/include/configs/lx2160ardb.h b/include/configs/lx2160ardb.h
index 818aa3856e..972bb5e102 100644
--- a/include/configs/lx2160ardb.h
+++ b/include/configs/lx2160ardb.h
@@ -87,21 +87,22 @@
/* Initial environment variables */
#define CONFIG_EXTRA_ENV_SETTINGS \
- "hwconfig=fsl_ddr:bank_intlv=auto\0" \
- "scriptaddr=0x80800000\0" \
- "kernel_addr_r=0x81000000\0" \
- "pxefile_addr_r=0x81000000\0" \
- "fdt_addr_r=0x88000000\0" \
- "ramdisk_addr_r=0x89000000\0" \
- "loadaddr=0x80100000\0" \
- "kernel_addr=0x100000\0" \
- "ramdisk_addr=0x800000\0" \
- "ramdisk_size=0x2000000\0" \
- "fdt_high=0xa0000000\0" \
- "initrd_high=0xffffffffffffffff\0" \
- "kernel_start=0x21000000\0" \
+ EXTRA_ENV_SETTINGS \
"lx2160ardb_vdd_mv=800\0" \
- "mcmemsize=0x40000000\0"
+ "BOARD=lx2160ardb\0" \
+ "xspi_bootcmd=echo Trying load from flexspi..;" \
+ "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 card..;" \
+ "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"
#include <asm/fsl_secure_boot.h>