mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-05 22:31:36 +00:00
rockchip: mkimage: rksd: pad SD/MMC images to a full blocksize
Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com> Acked-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
ea3729e23b
commit
c25b8c3af1
1 changed files with 5 additions and 2 deletions
|
@ -62,8 +62,11 @@ static int rksd_check_image_type(uint8_t type)
|
||||||
static int rksd_vrec_header(struct image_tool_params *params,
|
static int rksd_vrec_header(struct image_tool_params *params,
|
||||||
struct image_type_params *tparams)
|
struct image_type_params *tparams)
|
||||||
{
|
{
|
||||||
/* We don't add any additional padding after the end of the image */
|
/*
|
||||||
return rkcommon_vrec_header(params, tparams, 1);
|
* Pad to the RK_BLK_SIZE (512 bytes) to be consistent with init_size
|
||||||
|
* being encoded in RK_BLK_SIZE units in header0 (see rkcommon.c).
|
||||||
|
*/
|
||||||
|
return rkcommon_vrec_header(params, tparams, RK_BLK_SIZE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue