-
Notifications
You must be signed in to change notification settings - Fork 217
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
VCU118 hangs at loading Linux from SD Card #145
Comments
Sorry, this issue is redundant. |
This is the first week of our teaching quarter so I wasn't keeping up. Did you figure it out? |
Yes, it seems like the connection is not stable all the time, we need to reset the CPU several times until it can read data from SD card. |
That is frustrating. Unfortunately we don't have a vcu118 of our own. Ultimately I think Xilinx's decision to deprioritise low speed I/O on ultrascale+ seems to make this kind of issue inevitable. I do wonder whether further reducing the SD frequency might help? |
I will try reducing SD frequency and let you you the result asap. By the way, currently I also want to try the solution booting without SD card mentioned in https://groups.google.com/g/openpiton/c/STQLcZMDOeI/m/wZUfb2z3AgAJ as a work around solution. |
Hi @Jbalkind, I tried to reduce the clock frequency for SD but the result still remains the same. I wonder if you have any experience about this situation. Thank you, |
I would recommend against using UART for Linux boot. It's pretty likely that there could be a data corruption over the course of loading the whole bitstream. Perhaps you could try JTAG? There is a bscane2 config in the RTL that you could set up and try loading the kernel image using openocd and gdb. It's a lot faster and more reliable than UART. |
Thank you @Jbalkind , I will try it this week and let you know the result. |
Hi @Jbalkind , Now, I have been trying Openocd but the result is not optimistic. I checked the schematic and the Bscane2 module is already there. I want to confirm that whether it is necessary to connect our host machine to the FPGA board via GPIO pins or we can just use the micro-USB port labeled with JTAG. Thank you. |
I believe bscane2 is on the regular JTAG chain with the micro usb |
Hello! I have a similar issue. I would prefer to use only the UART and pitonstream instead of GDB. Thanks! |
hi @jimaandro |
Thanks for the reply! |
Hi @jimaandro , Actually you should set uart_boot_en =1 because we load the linux image in the same way as we do with baremetal image. Ahh, for this, you don't need to change the verilog file as well. Sorry for misinforming you, I just remember from now. |
Hello @khoatm98 |
Hello @khoatm98 |
Hi @jimaandro , |
Hello, I have managed to connect to Debug module with jtag using openOCD. I didn't used BSCANE2 module because this is already in the design. I am using VCU128. So I hust connected the jtag pins to uart0 like rocket-chip and for trst I used a VIO for manually reset. I can download the image without any issue, but when I examine the memory I see that some instructions where written in worng position. Is this a JTAG issue? |
My guess is this could just be an endianness issue. Usually when we are using PCIe-based DMA, we also end up changing the endianness of the file before performing the DMA. Can you see exactly how the bytes are misarranged? Two common issues:
|
Hi everyone,
I tried to get this project worked on VCU118.
I tried to implement the workaround solution in #65 but it still does not work. I also tried to modify the clock divider on sd card and modify the VADJ.
The system always get stuck at
sd initialized!
initializing SD...
sd initialized!
copying block 0 of 1 blocks (0 %)
Is there anything else that I need to check?
Thank you very much.
The text was updated successfully, but these errors were encountered: