]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: image: Add support for booting images in sandbox
authorSimon Glass <sjg@chromium.org>
Tue, 7 May 2013 06:12:03 +0000 (06:12 +0000)
committerTom Rini <trini@ti.com>
Tue, 14 May 2013 19:37:25 +0000 (15:37 -0400)
commit35e7b0f1790b5e620041348aec04c1e51d9d649b
treed621db0c21da91f9bef25dbfadd4497638cfa8b3
parentd8b75360eed3a117c0fc516e38a5ccc31df459eb
sandbox: image: Add support for booting images in sandbox

Much of the image code uses addresses as ulongs and pointers interchangeably,
casting between the two forms as needed.

This doesn't work with sandbox, which has a U-Boot RAM buffer which is
separate from the host machine's memory.

Adjust the cost so that translating from a U-Boot address to a pointer uses
map_sysmem(). This allows bootm to work correctly on sandbox.

Note that there are no exhaustive tests for this code on sandbox, so it is
possible that some dark corners remain.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Marek Vasut <marex@denx.de> (v1)
common/cmd_bootm.c
common/image.c
include/image.h