[U-Boot] [PATCH] ARM: socfpga: Add boot0 hook to prevent SPL corruption

Anatolij Gustschin agust at denx.de
Fri Nov 18 20:47:36 CET 2016


On Wed, 16 Nov 2016 17:54:14 +0100
Marek Vasut marex at denx.de wrote:
...
> Add BOOT0 hook which reserves the area at offset 0x40..0x5f and
> populates offset 0x50 with jump to the entry point. This way, the
> preloader signature is stored in reserved space and can not corrupt
> the SPL code.
> 
> Signed-off-by: Marek Vasut <marex at denx.de>
> Cc: Chin Liang See <clsee at altera.com>
> Cc: Dinh Nguyen <dinguyen at opensource.altera.com>
> Cc: Stefan Roese <sr at denx.de>
> ---
>  arch/arm/Kconfig                           |  1 +
>  arch/arm/mach-socfpga/include/mach/boot0.h | 28 ++++++++++++++++++++++++++++
>  2 files changed, 29 insertions(+)
>  create mode 100644 arch/arm/mach-socfpga/include/mach/boot0.h

Tested-by: Anatolij Gustschin <agust at denx.de>


More information about the U-Boot mailing list