sld-columbia / esp

Embedded Scalable Platforms: Heterogeneous SoC architecture and IP integration made easy
Other
314 stars 102 forks source link

Bootloader hangs on ESP soc includes nvdla on VCU128 #220

Closed mahmed1986 closed 2 months ago

mahmed1986 commented 2 months ago

Describe the bug I am using fpga board vcu128. I want to build esp soc with nvdla. I followed that link (https://www.esp.cs.columbia.edu/docs/thirdparty_acc/thirdparty_acc-guide/). I know it is tested on vcu118. but I think it should be working with vcu128. linux doesn boot and stopped at bootloader

image

I tried to create hardware based on default config using make esp-defconfig and created bitstream + image. I can boot image succefully.

I tried to using the linux image created by default config with bitstream of nvdla config ( I know drivers and device tree is different). I tested reading read only HW version resgisters of nvdla cores using devmem. I can read it succeffuly as expected

My question, how to debug hang issue of linux doesn't boot. any suggestions. #

To Reproduce Steps to reproduce the behavior: following guide https://www.esp.cs.columbia.edu/docs/thirdparty_acc/thirdparty_acc-guide/ but on vcu128.

Expected behavior linux boots

Screenshots linux doesn't boot : image

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

jzuckerman commented 2 months ago

Based on the print at the top of your screen (random: crng init done). It seems like you were able to boot Linux before. Is this correct and you were not able to reboot? If this is the case, be sure to run make fpga-program before rerunning make fpga-run-linux. Only running make fpga-run-linux does not apply a full reset to the SoC, so the boot is not guaranteed to work without programming first.