]> git.dujemihanovic.xyz Git - u-boot.git/commit
board/BuR: invalidate ${dtbaddr} before cfgscr
authorHannes Schmelzer <hannes.schmelzer@br-automation.com>
Thu, 16 May 2019 15:24:19 +0000 (17:24 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 28 May 2019 17:57:52 +0000 (13:57 -0400)
commit0ea4fc4dcf90ef0281ee413892ba3281de3f54c8
tree2bf8ba7f1d787a78fc201a2c7fc45d39a4e5fba5
parentd0cd30eb8137c0f14034aeb22c9f00cd70ccc98c
board/BuR: invalidate ${dtbaddr} before cfgscr

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@br-automation.com>
Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
include/configs/brppt1.h