From: Tom Rini Date: Wed, 20 Mar 2019 09:45:52 -0400 Subject: [U-Boot] [PATCH] spl: spl_nand.c: Add NAND loading message In-Reply-To: <20190319155540.5413-1-sr@denx.de> References: <20190319155540.5413-1-sr@denx.de> Message-ID: <20190320134552.GF18421@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tue, Mar 19, 2019 at 04:55:40PM +0100, Stefan Roese wrote: > 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 > Cc: Heiko Schocher > Cc: Tom Rini > --- > common/spl/spl_nand.c | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/common/spl/spl_nand.c b/common/spl/spl_nand.c > index 6eb190f1ea..47eaddc002 100644 > --- a/common/spl/spl_nand.c > +++ b/common/spl/spl_nand.c > @@ -17,6 +17,11 @@ static int spl_nand_load_image(struct spl_image_info *spl_image, > { > nand_init(); > > +#if defined(CONFIG_SPL_SERIAL_SUPPORT) > + 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); > +#endif > nand_spl_load_image(CONFIG_SYS_NAND_U_BOOT_OFFS, > CONFIG_SYS_NAND_U_BOOT_SIZE, > (void *)CONFIG_SYS_NAND_U_BOOT_DST); Can we do it as debug() ? We're always super sensitive to size growth in SPL. -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: