lowRISC / qemu

Fork of QEMU for development of lowRISC platforms (including OpenTitan)
http://www.qemu.org
Other
3 stars 8 forks source link

Sample vmem or hsjon input files for otptool #68

Closed stefanberger closed 3 months ago

stefanberger commented 4 months ago

I was looking around for a sample vmem file to pass to the otptool but couldn't find one that would work. Do you have an example input file somewhere? I tried this one here but it's not in the expected format:

https://github.com/lowRISC/opentitan/blob/master/sw/host/opentitanlib/src/otp/testdata/output.vmem

Also I could not find a hjson file I could pass as input.

loiclefort commented 4 months ago

Since you are using Darjeeling, you need to use OpenTitan integrated_dev branch. Using this branch, you can build OTP vmem files using bazel, for example for an OTP with a lifecycle in "prod" state:

./bazelisk.sh build //hw/ip/otp_ctrl/data:img_prod

(result in bazel-out/k8-fastbuild/bin/hw/ip/otp_ctrl/data/img_prod.24.vmem) Other images can be generated too, use ./bazelisk.sh query //hw/ip/otp_ctrl/data:* for other bazel img_* targets.

hjson file for Darjeeling OTP is there: otp_ctrl_mmap.hjson