Install riscv spike simulator'; Failed to run dtc: No such file or directory Child dtb process failed

1.1k Views Asked by At

I try to install the riscv tool to my Ubuntu 18.04.4 LTS server.

Use the following git repo and follow its build procedure:

  1. spike simulator

  2. GNU tool Installation (Newlib)

  3. riscv pk

Issue spike pk hello, gives me

Failed to run dtc: No such file or directory Child dtb process failed

I have already installed the device-tree-compiler through apt command. And checked with which dtc, outputs /usr/bin/dtc

What might be the problem?

Any help would be appreciated.

I run those commands on a command-line interface, not capable to run any graphic user interface. Not sure if that causes this problem.

The spike simulator is my first attempt to execute riscv code, I am also welcome to other recommendations.

1

There are 1 best solutions below

0
On

I figure it out by creating a symbolic link using ln -s $(which dtc) and the problem is solved.