Git Product home page Git Product logo

firemarshal-keystone's People

Contributors

cathylu10 avatar dayeol avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

firemarshal-keystone's Issues

Boot Keystone based on VCU118

`INIT
CMD0
CMD8
ACMD41
CMD58
CMD16
CMD18
LOADING 0x01e00000B PAYLOAD
LOADING
BOOT

OpenSBI v0.8


/ __ \ / | _ _ |
| | | |
__ ___ _ __ | (
| |
) || |
| | | | '_ \ / _ \ '_ \ ___ | _ < | |
| || | |) | __/ | | |) | |) || |
_
/| ./ _|| ||/|____/|
| |
|_|

Platform Name : freechips,rocketchip-unknown
Platform Features : timer,mfdeleg
Platform HART Count : 1
Firmware Base : 0x80000000
Firmware Size : 200 KB
Runtime SBI Version : 0.2

Domain0 Name : root
Domain0 Boot HART : 0
Domain0 HARTs : 0*
Domain0 Region00 : 0x0000000080000000-0x000000008003ffff ()
Domain0 Region01 : 0x0000000000000000-0xffffffffffffffff (R,W,X)
Domain0 Next Address : 0x0000000080200000
Domain0 Next Arg1 : 0x0000000082b00000
Domain0 Next Mode : S-mode
Domain0 SysReset : yes

[SM] Initializing ... hart [0]
[SM] Keystone security monitor has been initialized!
Boot HART ID : 0
Boot HART Domain : root
Boot HART ISA : rv64imafdcsux
Boot HART Features : scounteren,mcounteren
Boot HART PMP Count : 16
Boot HART PMP Granularity : 4
Boot HART PMP Address Bits: 30
Boot HART MHPM Count : 0
Boot HART MHPM Count : 0
Boot HART MIDELEG : 0x0000000000000222
Boot HART MEDELEG : 0x000000000000b109
`
SoC -> Chipyard, Core -> SonicBoom, img build -> firemarshal-keystone.
This program stop here, qemu and palladium z1 can boot it

Error building keystone with firemarshal

Hi,
I'm trying to build keystone with firemarshal following the tutorial on https://docs.keystone-enclave.org/en/latest/Getting-Started/Running-Keystone-with-FireSim.html#.

Firemarshal I'm using with the current Chipyard version 1.8.1 related to the current setup tutorial https://chipyard.readthedocs.io/en/stable/Chipyard-Basics/Initial-Repo-Setup.html

Building keystone for firesim with the command

cd <chipyard repo>
cd software/firemarshal
./marshal -v build <path/to/keystone.json>

Gives me the following error:

DEBUG:` make[3]: Leaving directory '/home/user/RISC_V/frameworks/firemarshal-keystone/keystone/build'
DEBUG: make  -f examples/attestation/CMakeFiles/attestor-package.dir/build.make examples/attestation/CMakeFiles/attestor-package.dir/build
DEBUG: make[3]: Entering directory '/home/user/RISC_V/frameworks/firemarshal-keystone/keystone/build'
DEBUG: make[3]: *** No rule to make target 'sm.build/platform/generic/firmware/fw_jump.bin', needed by 'examples/attestation/pkg/fw_jump.bin'.  Stop.
DEBUG: make[3]: Leaving directory '/home/user/RISC_V/frameworks/firemarshal-keystone/keystone/build'
DEBUG: make[2]: *** [CMakeFiles/Makefile2:1057: examples/attestation/CMakeFiles/attestor-package.dir/all] Error 2
DEBUG: make[2]: Leaving directory '/home/user/RISC_V/frameworks/firemarshal-keystone/keystone/build'
DEBUG: make[1]: *** [CMakeFiles/Makefile2:665: examples/CMakeFiles/examples.dir/rule] Error 2
DEBUG: make[1]: Leaving directory '/home/user/RISC_V/frameworks/firemarshal-keystone/keystone/build'
DEBUG: make: *** [Makefile:335: examples] Error 2
TaskError - taskid:/home/user/RISC_V/frameworks/firemarshal-keystone/host-init.sh 
PythonAction Error
Traceback (most recent call last):
  File "/home/user/RISC_V/frameworks/chipyard/.conda-env/lib/python3.9/site-packages/doit/action.py", line 437, in execute
    returned_value = self.py_callable(*self.args, **kwargs)
  File "/home/user/RISC_V/frameworks/chipyard/software/firemarshal/wlutil/build.py", line 51, in handleHostInit
    wlutil.run([config['host-init'].path] + config['host-init'].args, cwd=config['workdir'])
  File "/home/user/RISC_V/frameworks/chipyard/software/firemarshal/wlutil/wlutil.py", line 531, in run
    raise sp.CalledProcessError(p.returncode, prettyCmd)
subprocess.CalledProcessError: Command '/home/user/RISC_V/frameworks/firemarshal-keystone/host-init.sh' returned non-zero exit status 2.

ERROR: Failed to build workload keystone.json

Can you please help here? Thanks in advance!

Best regards
Christian

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.