Skip to content
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

WIP: Getting Verilator working on Mac #2975

Closed
wants to merge 3 commits into from
Closed

Conversation

ppannuto
Copy link
Member

Pull Request Overview

Was trying to play around with verilator and OT some today, but ran into several x-platform issues :(. It's a pretty high priority for me to try to keep Tock as cross-platform-friendly as possible, and I think I'm pretty close to getting this working, but I need to step away for a bit.

Testing Strategy

Many many failed builds.

TODO or Help Wanted

I believe the only thing missing at this stage is a version of the riscv32 toolchain that can build the rest of the firmware (OT demands a riscv32-[...] toolchain, while homebrew's prebuilt images only ship a riscv64-[...] toolchain, and the riscv toolchain apparently doesn't build on Mac.

I think if I had a prebuilt test_rom_sim_verilator.scr.39.vmem and otp_img_sim_verilator.vmem, everything would be working.

Documentation Updated

  • Updated the relevant files in /docs, or no updates are required.

Formatting

  • Ran make prepush.

@github-actions github-actions bot added the WG-OpenTitan In the purview of the OpenTitan working group. label Feb 18, 2022
@ppannuto
Copy link
Member Author

Okay, so I get further now, but it bails out with this:

sw/device/silicon_creator/rom_ext/meson.build:153:6: ERROR: Program '/Volumes/code/external/opentitan/build-out/sw/host/rom_ext_image_tools/signer/rom_ext_signer' not found or not executable

The build-out/sw/host/rom_ext_image_tools/signer/ directory is empty, but it seems like this is a meson error somehow, as it looks like it's trying to run a build artifact before it's built it? @alistair23 do you have any insight into where I should look next to debug this?

meson-log.txt

@alistair23
Copy link
Contributor

alistair23 commented Feb 21, 2022

Hmmmm.... That's a strange error. I don't see anything like that when I build OT. The best bet is probably to raise an issue with github.com/lowrisc/opentitan for adding OS X support

You might be able to instead just use pre-built binaries though and not even worry about building the ROM signer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
WG-OpenTitan In the purview of the OpenTitan working group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants