On Wed, Sep 25, 2019 at 10:58 PM Simon Glass <sjg@chromium.org> wrote: > > The image-header currently sets it offset assuming that skip-at-start is > zero. This does not work on x86 where offsets end at 4GB. Add in this > value so that the offset is correct. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > > tools/binman/etype/image_header.py | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Bin Meng <bmeng.cn@gmail.com>
On Sat, Oct 5, 2019 at 10:42 PM Bin Meng <bmeng.cn@gmail.com> wrote: > > On Wed, Sep 25, 2019 at 10:58 PM Simon Glass <sjg@chromium.org> wrote: > > > > The image-header currently sets it offset assuming that skip-at-start is > > zero. This does not work on x86 where offsets end at 4GB. Add in this > > value so that the offset is correct. > > > > Signed-off-by: Simon Glass <sjg@chromium.org> > > --- > > > > tools/binman/etype/image_header.py | 1 + > > 1 file changed, 1 insertion(+) > > > > Acked-by: Bin Meng <bmeng.cn@gmail.com> applied to u-boot-x86/next, thanks!
diff --git a/tools/binman/etype/image_header.py b/tools/binman/etype/image_header.py index 4b69eda1a22..b9327dd799b 100644 --- a/tools/binman/etype/image_header.py +++ b/tools/binman/etype/image_header.py @@ -100,6 +100,7 @@ class Entry_image_header(Entry): offset = offset else: offset = image_size - IMAGE_HEADER_LEN + offset += self.section.GetStartOffset() return Entry.Pack(self, offset) def ProcessContents(self):
The image-header currently sets it offset assuming that skip-at-start is zero. This does not work on x86 where offsets end at 4GB. Add in this value so that the offset is correct. Signed-off-by: Simon Glass <sjg@chromium.org> --- tools/binman/etype/image_header.py | 1 + 1 file changed, 1 insertion(+)