mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 07:04:28 +00:00
rockchip: mkimage: fix wrong range of rc4 encoding for boot image
The rc4 encoding should cover spl header as well, and the file_size contains spl header too. Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
This commit is contained in:
parent
bcfb05cac8
commit
f43b0d49c0
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ static void rkimage_set_header(void *buf, struct stat *sbuf, int ifd,
|
|||
memcpy(buf, rkcommon_get_spl_hdr(params), RK_SPL_HDR_SIZE);
|
||||
|
||||
if (rkcommon_need_rc4_spl(params))
|
||||
rkcommon_rc4_encode_spl(buf, 4, params->file_size);
|
||||
rkcommon_rc4_encode_spl(buf, 0, params->file_size);
|
||||
}
|
||||
|
||||
static int rkimage_check_image_type(uint8_t type)
|
||||
|
|
Loading…
Reference in a new issue