[U-Boot] [PATCH 08/34] binman: Add support for an x86 'reset' section

sjg at google.com sjg at google.com
Fri Sep 27 00:39:11 UTC 2019


At present binman has a single entry type for the 16-bit code code needed
to start up an x86 processor. This entry is intended to include both the
reset vector itself as well as the code to move to 32-bit mode.

However this is not very flexible since in some cases other data needs to
be included at the top of the SPI flash, in between these two pieces. For
example Intel requires that a FIT (Firmware Image Table) pointer be placed
0x40 bytes before the end of the ROM.

To deal with this, add a new reset entry for just the reset vector. A
subsequent change will adjust the existing 'start16' entry.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 tools/binman/README.entries               | 48 +++++++++++++++++++++++
 tools/binman/etype/x86_reset16.py         | 29 ++++++++++++++
 tools/binman/etype/x86_reset16_spl.py     | 29 ++++++++++++++
 tools/binman/etype/x86_reset16_tpl.py     | 29 ++++++++++++++
 tools/binman/ftest.py                     | 30 +++++++++++++-
 tools/binman/test/144_x86_reset16.dts     | 13 ++++++
 tools/binman/test/145_x86_reset16_spl.dts | 13 ++++++
 tools/binman/test/146_x86_reset16_tpl.dts | 13 ++++++
 8 files changed, 203 insertions(+), 1 deletion(-)
 create mode 100644 tools/binman/etype/x86_reset16.py
 create mode 100644 tools/binman/etype/x86_reset16_spl.py
 create mode 100644 tools/binman/etype/x86_reset16_tpl.py
 create mode 100644 tools/binman/test/144_x86_reset16.dts
 create mode 100644 tools/binman/test/145_x86_reset16_spl.dts
 create mode 100644 tools/binman/test/146_x86_reset16_tpl.dts

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list