[U-Boot] [PATCH] board/BuR: invalidate ${dtbaddr} before cfgscr

Tom Rini trini at konsulko.com
Wed May 29 17:16:58 UTC 2019


On Thu, May 16, 2019 at 05:24:19PM +0200, Hannes Schmelzer wrote:

> From: Hannes Schmelzer <hannes.schmelzer at br-automation.com>
> 
> 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 <hannes.schmelzer at br-automation.com>
> 
> Signed-off-by: Hannes Schmelzer <oe5hpm at oevsv.at>

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: <http://lists.denx.de/pipermail/u-boot/attachments/20190529/5ba49633/attachment.sig>


More information about the U-Boot mailing list