diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-04-02 14:06:30 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-04-02 22:51:05 +0000 |
commit | 5e52d647e27bc0f50e3387cdc13bc28e37a6d8f3 (patch) | |
tree | 5ea849d322012b9f0323e7df328e28729b4f6e54 | |
parent | 6f27811ad1ec2f8e3e7a9edeed8579ccdff02332 (diff) | |
download | chrome-ec-5e52d647e27bc0f50e3387cdc13bc28e37a6d8f3.tar.gz |
zephyr: zmake: add FMAP entries using binman
Add expected FMAP structure (see bug) using binman.
You need crrev.com/c/2803414 to get the section types in FMAP. (Does
not need to be in CQ Dep though, as code works fine without it, you
just miss the WP_RO, EC_RO, and EC_RW entries).
BUG=b:184146709
BRANCH=none
TEST=dump_fmap -H zephyr.bin
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: I5c6bbc71732a4f2c16c963c5fbf3a5efd5ca7727
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2802838
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | zephyr/zmake/zmake/output_packers.py | 29 |
1 files changed, 24 insertions, 5 deletions
diff --git a/zephyr/zmake/zmake/output_packers.py b/zephyr/zmake/zmake/output_packers.py index 558f08f7ef..f33b0fb1c9 100644 --- a/zephyr/zmake/zmake/output_packers.py +++ b/zephyr/zmake/zmake/output_packers.py @@ -33,20 +33,39 @@ def _write_dts_file(dts_file, config_header, output_bin, ro_filename, rw_filenam binman {{ filename = "{output_bin}"; pad-byte = <0x1d>; - section@0 {{ + WP_RO {{ + type = "section"; read-only; offset = <CONFIG_PLATFORM_EC_PROTECTED_STORAGE_OFF>; size = <CONFIG_PLATFORM_EC_PROTECTED_STORAGE_SIZE>; - blob {{ - filename = "{ro_filename}"; + EC_RO {{ + type = "section"; + RO_FW {{ + type = "blob"; + filename = "{ro_filename}"; + }}; + fmap {{ + }}; + RO_FRID {{ + type = "text"; + size = <32>; + text = "RO_FRID (not implemented)"; + }}; }}; }}; - section@1 {{ + EC_RW {{ + type = "section"; offset = <CONFIG_PLATFORM_EC_WRITABLE_STORAGE_OFF>; size = <CONFIG_PLATFORM_EC_WRITABLE_STORAGE_SIZE>; - blob {{ + RW_FW {{ + type = "blob"; filename = "{rw_filename}"; }}; + RW_FWID {{ + type = "text"; + size = <32>; + text = "RW_FWID (not implemented)"; + }}; }}; }}; }};""".format( |