-
Notifications
You must be signed in to change notification settings - Fork 686
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
execute work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf #1222
Comments
@Shuangxie0708 uses pk, @eyssartk as you are the closest person I know to the issue, I assigned it to you. Do not hesitate to forward the "hot potato" if you think somebody else could help. The objective is to find the right person to give feedback ! |
I try to booting Linux-64 CV64A6 using Verilator or Questa simulator. is this the command to use?(work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf) |
yes, you need use the command (work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf) |
Hey @Shuangxie0708 , I am having the same issue, is there any solution for the problem? work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf bbl loader If I remove the print statement from the hello.c file, it simulates successfully. I am not sure why it is not working with the print statement. Also it simulates with spike, so I am assuming that the proxy kernel environment is set correctly. |
I am wondering where this "FAILED" message comes from, which I have also got. Because when you pass another command -v hello.vcd in between to dump a vcd file, as below: It does generate a non-empty hello.vcd file, and open it you will see all the signals, which indicates that the programme has been actually running. Beware though! Notwithstanding a very tiny "hello" programme, the size of vcd file ends up more than 15 GB, I had to terminate the simulation halfway since it was completely running up my disk space. |
try to use puts() instread of printf(), that works for me. i guess the env or the core or maybe the pk can not support printf() well. int main() { wpf@ubuntu:~/Desktop/cva6$ riscv64-unknown-elf-gcc hello.c -o hello.elf wpf@ubuntu:~/Desktop/cva6$ work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1. Listening on port 40007 *** [rvf_tracer] WARNING: No valid address of 'tohost' (tohost == 0x00000000000000), termination possible only by timeout or Ctrl-C! bbl loader Hello CVA6!\n /opt/riscv/riscv64-unknown-elf/bin/pk *** SUCCESS *** (tohost = 0) after 1469420 cycles CPU time used: 44124.90 ms Wall clock time passed: 44530.56 ms wpf@ubuntu:~/Desktop/cva6$ |
Related to #1539 |
I run into the same problem; I think the issue is that the simulator won't simulate beyond 2000012 cycles, even after I set the max_cycles parameter in the makefile: |
Indeed, there is a RTL timeout implemented in rvfi_tracer.sv in SIM_FINISH variable. |
@0ena, did you manage to solve your issue ? If you did, could you close it ? |
As the discussion seems to be over, I will close the issue. |
Is there an existing CVA6 bug for this?
Bug Description
When I running User-Space Applications..I execute work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf There is below error that failed.
But I run work-ver/Variane_testharness rv64um-v-divuw, it is successful.
Could you help me solve this problem that why I failed when running user-space applications. Thanks!
root@samsung-Precision-5820-Tower-X-Series:/home/samsung/riscv/cva6# work-ver/Variane_testharness $RISCV/riscv64-unknown-elf/bin/pk hello.elf
This emulator compiled with JTAG Remote Bitbang client. To enable, use +jtag_rbb_enable=1.
Listening on port 38919
*** [rvf_tracer] WARNING: No valid address of 'tohost' (tohost == 0x00000000000000), termination possible only by timeout or Ctrl-C!
bbl loader
/home/samsung/riscv/install_riscv/riscv64-unknown-elf/bin/pk *** FAILED *** (tohost = 2147483647) after 2000012 cycles
CPU time used: 256327.08 ms
Wall clock time passed: 256427.19 ms
root@samsung-Precision-5820-Tower-X-Series:/home/samsung/riscv/cva6#
The text was updated successfully, but these errors were encountered: