nvdla / vp

Virtual Platform for NVDLA
Other
132 stars 81 forks source link

Faild to run the virtual simulator #6

Closed allenlaitw closed 6 years ago

allenlaitw commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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.