-
Notifications
You must be signed in to change notification settings - Fork 789
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add hello world imm rom ext #25274
Add hello world imm rom ext #25274
Conversation
My memory might be fuzzy but I think that Alternatively, you might want to use the |
bfd47a2
to
1fc69c6
Compare
I did some experiments, if I reuse the exec env
Actually I did found that the issues only happen when we use |
Ah yes, in retrospect this makes sense (although the error message is obscure and seems to point an underflow in the code).
That solution seems acceptable. |
296ea5b
to
e526c0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks! I think we just need to rebase this again and fix the CI failure, then we can merge.
opentitan_binary( | ||
name = "rom_ext_with_{}_imm_slot_virtual".format(name), | ||
testonly = True, | ||
# TODO(#22780): Integrate real keys for A1 flows. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can remove this todo, it is no longer relevant I think
e526c0c
to
e4988d5
Compare
* Add minimized C code, startup asm and linker script for a standalone IM_EXT build target. * Add a bazel rule `imm_rom_ext_section`, which will transform binaries into object files and turn it to a target that can be directly used as deps of ROM_EXT's bazel targets. * Add a map for all IM_EXT target that can be used and make the ROM_EXT targets iterate the map to generate multiple targets. * Update the ROM_EXT to use in e2e verified boot test. Test: String `Immutable` appears in the UART output of the test target `verified_boot:position_romext_virtual_a_with_hello_world_imm_romext_enabled_fpga_cw340_rom_ext`: ``` OpenTitan:4001-0002-01 ROM:0a7a997f bootstrap:1 OpenTitan:4001-0002-01 ROM:0a7a997f Immutable Starting ROM_EXT 0.1 ``` Signed-off-by: Chia-Wei Liu <[email protected]>
e4988d5
to
d5327e5
Compare
Hi @timothytrippel , Thanks for your review. I've removed those TODOs and rebased my commit. |
imm_rom_ext_section
, which will transform binaries into object files and turn it to a target that can be directly used as deps of ROM_EXT's bazel targets.opentitan_binary
to build IM_EXT and add a attribute to skip the signing stage to the rule. The manifest given as None will turn into the default manifest and keep the signing operation so we need to skip it explicitly.This PR partially addresses #24368.
The first commit is included in #25043. I will remove it after it is reviewed and merged.