From: Andreas Dannenberg <dannenberg@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 17/18] configs: am65x_evm: Add support for applying overlays
Date: Tue, 4 Jun 2019 18:08:27 -0500 [thread overview]
Message-ID: <20190604230828.12539-18-dannenberg@ti.com> (raw)
In-Reply-To: <20190604230828.12539-1-dannenberg@ti.com>
This will allow for downloading and applying overlays from an MMC/SD
boot media based on the overlay_files ENV variable containing a list
of overlay files.
Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>
---
configs/am65x_evm_a53_defconfig | 3 ++-
include/configs/am65x_evm.h | 9 +++++++++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/configs/am65x_evm_a53_defconfig b/configs/am65x_evm_a53_defconfig
index 8d90014778..b0c080ebf1 100644
--- a/configs/am65x_evm_a53_defconfig
+++ b/configs/am65x_evm_a53_defconfig
@@ -16,7 +16,7 @@ CONFIG_DISTRO_DEFAULTS=y
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
CONFIG_SPL_LOAD_FIT=y
CONFIG_OF_BOARD_SETUP=y
-CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run run_kern"
+CONFIG_BOOTCOMMAND="run findfdt; run envboot; run init_${boot}; run get_kern_${boot}; run get_fdt_${boot}; run get_overlay_${boot}; run run_kern"
# CONFIG_DISPLAY_CPUINFO is not set
CONFIG_SPL_TEXT_BASE=0x80080000
CONFIG_SPL_SYS_MALLOC_SIMPLE=y
@@ -83,3 +83,4 @@ CONFIG_SYSRESET=y
CONFIG_SPL_SYSRESET=y
CONFIG_SYSRESET_TI_SCI=y
CONFIG_FAT_WRITE=y
+CONFIG_OF_LIBFDT_OVERLAY=y
diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h
index 552ef780bd..1415bb1b15 100644
--- a/include/configs/am65x_evm.h
+++ b/include/configs/am65x_evm.h
@@ -70,6 +70,7 @@
"setenv overlay_files ${name_overlays}\0" \
"loadaddr=0x80080000\0" \
"fdtaddr=0x82000000\0" \
+ "overlayaddr=0x83000000\0" \
"name_kern=Image\0" \
"console=ttyS2,115200n8\0" \
"args_all=setenv optargs earlycon=ns16550a,mmio32,0x02800000\0" \
@@ -84,6 +85,14 @@
"rd_spec=-\0" \
"init_mmc=run args_all args_mmc\0" \
"get_fdt_mmc=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${name_fdt}\0" \
+ "get_overlay_mmc=" \
+ "fdt address ${fdtaddr};" \
+ "fdt resize 0x100000;" \
+ "for overlay in $overlay_files;" \
+ "do;" \
+ "load mmc ${bootpart} ${overlayaddr} ${bootdir}/${overlay};" \
+ "fdt apply ${overlayaddr};" \
+ "done;\0" \
"get_kern_mmc=load mmc ${bootpart} ${loadaddr} " \
"${bootdir}/${name_kern}\0" \
"partitions=" PARTS_DEFAULT
--
2.17.1
next prev parent reply other threads:[~2019-06-04 23:08 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-04 23:08 [U-Boot] [PATCH v3 00/18] Add EEPROM-based board detect support for TI K3 SoCs Andreas Dannenberg
2019-06-04 23:08 ` [U-Boot] [PATCH v3 01/18] i2c: omap24xx_i2c: Adapt driver to support K3 devices Andreas Dannenberg
2019-07-19 0:01 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 02/18] arm: omap_i2c: Remove unwanted header file inclusion Andreas Dannenberg
2019-07-19 0:01 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 03/18] arm: dts: k3-am65: Move pinctrl nodes out of U-Boot specific dtsi Andreas Dannenberg
2019-07-19 0:01 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 04/18] arm: dts: k3-am65: Add I2C nodes Andreas Dannenberg
2019-07-19 0:01 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 05/18] arm: dts: k3-am654-base-board: Enable wkup_i2c0 across all boot stages Andreas Dannenberg
2019-07-19 0:01 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 06/18] configs: am65x_evm_defconfig: Enable I2C support Andreas Dannenberg
2019-07-19 0:01 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 07/18] configs: am65x_hs_evm_defconfig: " Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 08/18] arm64: dts: k3-am654-base-board: Add I2C GPIO expander @ 0x38 Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 09/18] configs: am65x_evm_a53: Enable PCA953X-type GPIO driver Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 10/18] configs: am65x_hs_evm_a53: " Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 11/18] configs: am65x_evm_a53: Increase malloc pool before relocation Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 12/18] configs: am65x_hs_evm_a53: " Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 13/18] arm: K3: am654: Map common EEPROM data into SRAM scratch space Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 14/18] ti: common: am6: Add support for board description EEPROM Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 15/18] ti: common: am6: Add support for setting MAC addresses Andreas Dannenberg
2019-07-19 0:02 ` Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 16/18] board: ti: am654: Use EEPROM-based board detection Andreas Dannenberg
2019-07-19 0:03 ` Tom Rini
2019-06-04 23:08 ` Andreas Dannenberg [this message]
2019-07-19 0:03 ` [U-Boot] [PATCH v3 17/18] configs: am65x_evm: Add support for applying overlays Tom Rini
2019-06-04 23:08 ` [U-Boot] [PATCH v3 18/18] configs: am65x_hs_evm: " Andreas Dannenberg
2019-07-19 0:03 ` Tom Rini
2019-06-05 6:23 ` [U-Boot] [PATCH v3 00/18] Add EEPROM-based board detect support for TI K3 SoCs Lokesh Vutla
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190604230828.12539-18-dannenberg@ti.com \
--to=dannenberg@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox