cva6 icon indicating copy to clipboard operation
cva6 copied to clipboard

copy boot image stuck on fpga

Open hhhsiang opened this issue 1 year ago • 8 comments

Is there an existing CVA6 bug for this?

  • [X] I have searched the existing bug issues

Bug Description

I utilize the "make fpga" command to generate .mcs file and subsequently flash it onto the FPGA (Genesys2) using Vivado 2018.2. However, upon completion of the flashing process and subsequent reboot of the FPGA board, it becomes unresponsive, displaying the message "copying boot image done!" as shown in the accompanying images: image image

I have also employed the "make fpga" command with an older version of CVA6-Ariane 4.2, and it worked successfully: image

How could I fixed it? Thanks in advance!

hhhsiang avatar Sep 26 '23 09:09 hhhsiang

Hello @zchamski I see you have pushed something to fix this PR. What is the status, does it fix the issue ?

JeanRochCoulon avatar Oct 02 '23 05:10 JeanRochCoulon

This task should be assigned to @Gchauvon as I'm not involved with the FPGA (except for Spike build interactions).

zchamski avatar Oct 02 '23 07:10 zchamski

Hello @hhhsiang

Could you please tell us exactly which commit worked and which didn’t so that we can investigate?

This issue is maybe related to #1485

cathales avatar Oct 02 '23 08:10 cathales

A small observation: The log of the gpt partition header clearly indicates that the SD card is not correctly set up. The partition table just reads all 0s.

Did you follow all the steps in the cva6-sdk to write to the sd card?

Moschn avatar Oct 02 '23 08:10 Moschn

@Moschn , Yes, I followed the steps. I think the SD card should be ok because CVA6-Ariane 4.2 can correctly work on fpga, as following: image image image image

hhhsiang avatar Oct 02 '23 09:10 hhhsiang

Hmm ok. Still very confusing to me that the GPT partitions print all zeros. It was not like this in the past. But maybe something changed in the bootloader in the mean time.

Moschn avatar Oct 02 '23 09:10 Moschn

@Moschn, I'm uncertain about this. If the SD card hasn't been correctly set up, it shouldn't display the information I mentioned in my previous comment, right?

hhhsiang avatar Oct 02 '23 10:10 hhhsiang

@cathales ,I did not try other commit. I just use make fpga command, and flashed it onto FPGA board. It can work correcly with CVA6-Ariane 4.2, but not with the latest version.

hhhsiang avatar Oct 02 '23 10:10 hhhsiang