summaryrefslogtreecommitdiff
path: root/cmd/spl.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/spl.c')
-rw-r--r--cmd/spl.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/cmd/spl.c b/cmd/spl.c
index 057764aa8d..1165b786d3 100644
--- a/cmd/spl.c
+++ b/cmd/spl.c
@@ -118,6 +118,11 @@ static int spl_export(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
case SPL_EXPORT_FDT:
printf("Argument image is now in RAM: 0x%p\n",
(void *)images.ft_addr);
+ env_set_addr("fdtargsaddr", images.ft_addr);
+ env_set_hex("fdtargslen", fdt_totalsize(images.ft_addr));
+ if (fdt_totalsize(images.ft_addr) >
+ CONFIG_CMD_SPL_WRITE_SIZE)
+ puts("WARN: FDT size > CMD_SPL_WRITE_SIZE\n");
break;
#endif
case SPL_EXPORT_ATAGS: