diff options
author | Philipp Tomsich <philipp.tomsich@theobroma-systems.com> | 2017-05-30 23:32:09 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2017-06-07 07:29:22 -0600 |
commit | ad972ac3d948ae1e8b9e75ef96e9dbe8392a4678 (patch) | |
tree | 2cfe0fba450efa032e029d1f521115517f704e29 /tools/rkspi.c | |
parent | 2fb371ff6483227f9be74cbce17c088bec96b411 (diff) |
rockchip: mkimage: force 2KB alignment for init_size
The Rockchip BootROM relies on init_size being aligned to 2KB
(see https://lists.denx.de/pipermail/u-boot/2017-May/293268.html).
This pads the image to 2KB both for SD card images and SPI images
and uses a common symbolic constant for the alignment.
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/rkspi.c')
-rw-r--r-- | tools/rkspi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/rkspi.c b/tools/rkspi.c index f8a565d3126..4332ce17652 100644 --- a/tools/rkspi.c +++ b/tools/rkspi.c @@ -63,7 +63,7 @@ static int rkspi_check_image_type(uint8_t type) static int rkspi_vrec_header(struct image_tool_params *params, struct image_type_params *tparams) { - int padding = rkcommon_vrec_header(params, tparams, 2048); + int padding = rkcommon_vrec_header(params, tparams, RK_INIT_SIZE_ALIGN); /* * The file size has not been adjusted at this point (our caller will * eventually add the header/padding to the file_size), so we need to |