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

Faild to run the virtual simulator #6

Closed
allenlaitw opened this issue Jan 23, 2018 · 3 comments
Closed

Faild to run the virtual simulator #6

allenlaitw opened this issue Jan 23, 2018 · 3 comments

Comments

@allenlaitw
Copy link

http://nvdla.org/vp.html#running-kernel-image-in-the-virtual-simulator
I'm trying this step on the web,but i got the error below.

chi@chi:~/tools_for_cmod/vp$ ./build/bin/aarch64_toplevel -c conf/aarch64_nvdla.lua

         SystemC 2.3.0-ASI --- Jan 13 2018 00:30:21
    Copyright (c) 1996-2012 by all Contributors,
    ALL RIGHTS RESERVED

No sc_log specified, will use the default setting
verbosity_level = SC_MEDIUM
bridge: tlm2c_elaborate..
toplevel: -device virtio-9p-device,fsdev=r,mount_tag=r: 'virtio-9p-device' is not a valid device model name

I'm on ubuntu14.04.
How i shoud do to solve this problem?
Thanks

@HaiqingSun
Copy link
Contributor

Hi,

Please make sure all VirtFS dependencies(libattr1-dev and libcap-dev) installed in your environment.
You can install them by
sudo apt-get install libattr1-dev libcap-dev

And have a try again. Thanks a lot!

@allenlaitw
Copy link
Author

I follow the command and appear this

libattr1-dev is already the newest version.
libcap-dev is already the newest version.

But i got the same problem.
Have any suggestion? Thanks.

@jarodw0723
Copy link
Contributor

Hi @allenlaitw ,

Can you check if there is '#define CONFIG_VIRTFS 1" in the generated vp/libs/qbox.build/config-host.h? If not, then it means that the virtfs is not built with QEMU.

The QEMU build flow is supposed to check if cap and attr is available and enable this option. If you are sure they are all available, can you try remove the vp/libs/qbox.build and re-build the simulator. You can also use our docker image which includes the development environment and a prebuilt binary.

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

3 participants