From: Tom Rini Date: Wed, 29 May 2019 13:16:58 -0400 Subject: [U-Boot] [PATCH] board/BuR: invalidate ${dtbaddr} before cfgscr In-Reply-To: <1558020259-6064-1-git-send-email-oe5hpm@oevsv.at> References: <1558020259-6064-1-git-send-email-oe5hpm@oevsv.at> Message-ID: <20190529171658.GX20781@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 Thu, May 16, 2019 at 05:24:19PM +0200, Hannes Schmelzer wrote: > From: Hannes Schmelzer > > The first memory location of ${dtbaddr} may be still valid after a warm > restart of the machine and 'fdt addr ${dtbaddr}' doesn't recognize that > the cfgscript didn't run properly and fallback mechanism with copying > the internal fdt ${fdtcontroladdr} to ${dtbaddr} doesn't catch this. > > To get sure that we have proper failsafe behaviour we simply zero the > first memory location of ${dtbaddr} for getting sure that the fdt is > invalid if cfgscript didn't run. > > Signed-off-by: Hannes Schmelzer > > Signed-off-by: Hannes Schmelzer Applied to u-boot/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: not available URL: