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

Issue with QEMU Test #16

Open
jctullos opened this issue Jan 25, 2021 · 1 comment
Open

Issue with QEMU Test #16

jctullos opened this issue Jan 25, 2021 · 1 comment

Comments

@jctullos
Copy link

I'm not sure if I'm running the demo correctly, but trying to test the demo on QEMU.

It stops each time at this location:
image

In the code, it's this location:
image

This is after trying either the instructions to run as they're listed for QEMU in the docs, and trying to getandsethash. I'm using an older build of Keystone and the SDK that's common between the older commits, but I did try with up to date Master on the Keystone and SDK repos, with the dev-new-sdk branch of the demo. And it had the same issue.

If I press CTRL+C, it moves forward partially:
image

Any thoughts?

Thank you!

@jctullos
Copy link
Author

jctullos commented Feb 4, 2021

Alright, for anyone else that has this issue, I believe I found the problem. In the cmakelists, there were two issues. The first one is that the "add_keystone_package(package" and cmake lists "package" as reserved. I just changed this to "packagedemo", and changed it in the "add_dependencies" line right below as well.

For the second issue, the host_bin name, package_name, and package_script were listed as demo-server.ke or ./demo-server.riscv. I changed those to enclave-host.riscv, and the package_script to "./enclave-host.riscv" and it doesn't hang anymore.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant