]> git.baikalelectronics.ru Git - uboot.git/commit
tools: kwboot: Add check that kwbimage contains DDR init code
authorPali Rohár <pali@kernel.org>
Sun, 8 Jan 2023 12:46:14 +0000 (13:46 +0100)
committerStefan Roese <sr@denx.de>
Wed, 1 Mar 2023 05:39:17 +0000 (06:39 +0100)
commit71542ae264f91a5a893b99795dc6233e0d111aba
treea4442394a0b359fe58d2c0459faefeea54fc7b9c
parent544c371da8acaba55a7cd3532e4f3e61fd653bd2
tools: kwboot: Add check that kwbimage contains DDR init code

Some NOR images may be execute-in-place and do not contain DDR init code in
its kwbimage header. Such images cannot be booted over UART as BootROM
loads them to RAM. Add check that kwbimage contains DDR init code in its
header (either as binary code header or as the simple register-value set).

In some cases it is possible to load very small image into L2SRAM and when
DDR init code is not required. So check for L2SRAM load address and skip
DDR init code check in this case.

Signed-off-by: Pali Rohár <pali@kernel.org>
tools/kwboot.c