riscv-software-src / riscv-tools

RISC-V Tools (ISA Simulator and Tests)
1.13k stars 446 forks source link

Troubles compiling program for zedboard #166

Open Mpa123 opened 6 years ago

Mpa123 commented 6 years ago

Hi, we've been trying to cross-compile our own program to run on zedboard. Following the installation of the toolchain, and following this section (https://github.com/riscv/riscv-tools#-testing-your-toolchain) the problem we encountered is that even though the "Hello world" example works well with spike simulator, it does not work on the zedboard.

We try to run the program following these instructions (https://github.com/ucb-bar/fpga-zynq#38--booting-up-and-interacting-with-the-risc-v-rocket-core): ./fesvr-zynq pk hello where hello represent the "Hello world!" example from this git. The idea is to run the program through front end server (that runs on linux on arm) that provides interface to riscv, but with no success. We have tried all the combinations including 32/64 bit toolchain and 32/64 bit proxy kernel.

If anyone can provide some guidance it would be greatly appreciated.

Kind regards, Mpa123

adriaboliveira commented 5 years ago

Hi, I'm with the same problem. Did you solve it? I'll appreciate if you could share your solution.

Thank you.