ipq8064: SBL headers must have 4 byte aligned blob sizes
It turns out that for SBL3 to load the next phase, the sizes int the MBN header must be 4 byres aligned. This change makes sure that this requirement is enforced. BRANCH=None BUG=chrome-os-partner:28137 TEST=manual . examined the generated header, observed the size field aligned . the new image gets successfully started by the SBL3 on ap148 Change-Id: Ia64f04bb281ae772b060d2f7713c98dd348972ba Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/196167
This commit is contained in:
parent
c95d6fe798
commit
fa6a52a07c
1 changed files with 3 additions and 0 deletions
|
|
@ -17,6 +17,9 @@ def create_header(base, size):
|
|||
@returns: string, the MBN header
|
||||
"""
|
||||
|
||||
# SBLs require size to be 4 bytes aligned.
|
||||
size = (size + 3) & 0xfffffffc
|
||||
|
||||
# We currently do not support appending certificates. Signing GPL
|
||||
# code might violate the GPL. So U-Boot will never be signed. So
|
||||
# this is not required for U-Boot.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue