aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2019-03-26 13:04:00 +0100
committerTom Rini <trini@konsulko.com>2019-04-23 17:57:27 -0400
commit443b3ce5cf00995a12e0dcaab6d4963daefe511e (patch)
treed94e7937f9a392958b2892e217d004b6186cffdc /common
parentdef2fc05f6f47b883fa9de96275c0350bd31248e (diff)
downloadu-boot-443b3ce5cf00995a12e0dcaab6d4963daefe511e.zip
u-boot-443b3ce5cf00995a12e0dcaab6d4963daefe511e.tar.gz
u-boot-443b3ce5cf00995a12e0dcaab6d4963daefe511e.tar.bz2
spl: spl_nand.c: Add NAND loading message
This patch adds a short message to the SPL NAND loader, which displays the source and destinations addresses including the size of the loaded image, like this: U-Boot SPL 2019.04-rc3-00113-g486efd8aaf (Mar 15 2019 - 14:18:02 +0100) Trying to boot from NAND Loading U-Boot from 0x00040000 (size 0x000a0000) to 0x22900000 I find this message quite helpful - hopefully others do so as well. Signed-off-by: Stefan Roese <sr@denx.de> Cc: Heiko Schocher <hs@denx.de> Cc: Tom Rini <trini@konsulko.com> Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'common')
-rw-r--r--common/spl/spl_nand.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c
index 6eb190f..e2bcefb 100644
--- a/common/spl/spl_nand.c
+++ b/common/spl/spl_nand.c
@@ -17,6 +17,10 @@ static int spl_nand_load_image(struct spl_image_info *spl_image,
{
nand_init();
+ printf("Loading U-Boot from 0x%08x (size 0x%08x) to 0x%08x\n",
+ CONFIG_SYS_NAND_U_BOOT_OFFS, CONFIG_SYS_NAND_U_BOOT_SIZE,
+ CONFIG_SYS_NAND_U_BOOT_DST);
+
nand_spl_load_image(CONFIG_SYS_NAND_U_BOOT_OFFS,
CONFIG_SYS_NAND_U_BOOT_SIZE,
(void *)CONFIG_SYS_NAND_U_BOOT_DST);