JFrye2
New Contributor
6 years agoCycloneV U-Boot FPGA Load Fails: Code -6
Hello, I am trying to program the FPGA of my CycloneV from U-Boot. It appears to be failing and I am not sure why. The exact u-boot commands are
echo --- Programming FPGA ---
echo -----Loading image------
# load rbf from FAT partition into memory
fatload mmc 0:1 ${fpgadata} socfpga.rbf;
# program FPGA
echo -----Print filesize-----
printenv filesize;
echo -----Program FPGA-------
fpga load 0 ${fpgadata} ${filesize};
# enable HPS-to-FPGA, FPGA-to-HPS, LWHPS-to-FPGA bridges
echo -----Enabling IFs--------
bridge enable;What I am seeing during boot is the following
Hit any key to stop autoboot: 0
449 bytes read in 3 ms (145.5 KiB/s)
## Executing script at 02000000
--- Programming FPGA ---
-----Loading image------
7007204 bytes read in 366 ms (18.3 MiB/s)
-----Print filesize-----
filesize=6aebe4
-----Program FPGA-------
Command 'load' failed: Error -6
-----Enabling IFs--------
switch to partitions #0, OK
mmc0 is current deviceWhat does the error code -6 mean? When I look at FPGA manager status in Linux, it prints the following.
root@cyclone5:~# cat /sys/class/fpga_manager/fpga0/state
write init