cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Observer
Observer
248 Views
Registered: ‎01-16-2020

Linux crash when bitstream loaded to FPGA

Hi, I acknowledge this issue has been asked with some solved solutions, but I am posting this new thread because I am newbie not familiar with all the terms, and believe my situation is a bit different.

I have a blinking LED bitstream in v language, with no IP.

The bitstream is scped into Ultrascale+'s Linux. and I load the bitstream with command

bash loadingscript.sh blinky.bit

where the loadingscript.sh is below

sudo sh -c "echo 0 > /sys/class/fpga_manager/fpga0/flags"
sudo mkdir -p /lib/firmware
sudo cp ${1}  /lib/firmware/
sudo sh -c "echo ${1} > /sys/class/fpga_manager/fpga0/firmware"

The Programming does light up the LED (although clock doesn't work somehow) but more importantly Linux crashes and I lose Linux connection via SSH.

What is exactly going on?

Thank you!

p.s. I would sincerely appreciate if it could be explained in a bit easier terms due to my short experience in FPGA world.

0 Kudos
1 Reply
Highlighted
Adventurer
Adventurer
239 Views
Registered: ‎05-23-2018

Are there any applications or drivers running that access anything in the PL-Section while you reload the bitstream?

If so, you need to stop those from accessing the FPGA until the reconfiguration is done. Quite likely, you need to also restart/reload those drivers, so that they reinitialize their cores properly.

0 Kudos