The change-gateware.sh script is running perfectly, after that it will run the update-gateware.sh script and when it starts rebooting the board, it is stuck for so long, the DesignID and DesignVER is also different from the previous one, still it is not updating the gateware even after the manual reboot of the board.
Any solution?
I don’t think anyone is able to give you any solutions, based on what you have provided.
All I can say in general, is that it should take somewhere
between 6 to 8 seconds to do a proper reprogram cycle.
Anything shorter: Highly likely that your bitstream has same design version as current.
Anything longer: HSS has trouble booting, due to incompatible bitstream, for whatever reason.
Whenever the change-gateware.sh command is run, it will show
FPGA update ready. The board will reboot now.
Then the screen will stuck here until you manually boot the board. Anyways the gateware can be flashed using some extra steps using the U-Boot scan
Update Active Linux System Paths
sudo cp /home/debian/LinuxProgramming/mpfs_bitstream.spi /lib/firmware/
sudo cp /home/debian/LinuxProgramming/mpfs_dtbo.spi /lib/firmware/
# Update the exact partition (0:2) that U-Boot scans during boot
sudo cp /home/debian/LinuxProgramming/mpfs_bitstream.spi /boot/firmware/
sudo cp /home/debian/LinuxProgramming/mpfs_dtbo.spi /boot/firmware/
# Clear the 6.6 Operating System layout caches
sudo rm -rf /var/tmp/gateware-*
# Force Restart
sudo reboot
# In riscv# terminal
load mmc 0:2 ${scriptaddr} mpfs_bitstream.spi
env set hss_boot_status 0
reset
Ahh! The infamous “getty hang at restart” problem… @RobertCNelson
While this looks related to the FPGA reflash, please believe me; it is not.
Also, I don’t quite know what you’re trying to achieve with all of that copying.
Where did you get that from?
While very fancy-looking, loading the bitstream from u-boot does exactly nothing.
The real magic happens by presenting the bitstream to the kernel FPGA loader,
which is exactly what change-gateware.sh does; syscon doesn’t care at all about dram…
