mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-14 21:10:27 +01:00
sysupgrade: Consider minimum metadata size as 0x1000
When we use root certificate count as four, then metadata is generated with size as 0x4000, but for single root certificate, metadata size will be less than 0x4000, hence consider minimum metadata size as 0x1000 Change-Id: Ib713e5fd4bcfe493cf482efda54d20ca1604939b Signed-off-by: Ram Chandra Jangir <quic_rjangir@quicinc.com>
This commit is contained in:
parent
7c4046429b
commit
46352bfda4
1 changed files with 1 additions and 1 deletions
|
|
@ -1235,7 +1235,7 @@ int parse_elf_image_phdr(struct image_section *section)
|
|||
phdr->p_paddr, phdr->p_offset, phdr->p_filesz, phdr->p_type);
|
||||
|
||||
int size = sb.st_size - (phdr->p_offset + phdr->p_filesz );
|
||||
if (size < 0x4000) {
|
||||
if (size < 0x1000) {
|
||||
printf("rootfs metada is not available\n");
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue