With the new mkimage, I still could not get the instructions from Intel® Arria® 10 SoC UEFI Boot Loader User Guide to work correctly.
I tried the following steps:
$ mkimage -A arm -T firmware -C none -O u-boot -a 0 -e 0 -n "RBF" -d
ghrd_10as066n2.rbf ghrd_10as066n2.rbf.mkimage
$ quartus_hps -c1 -oP --addr=0x00720000 ghrd_10as066n2.rbf.mkimage
The boot code reported:
Programmed RBF is not peripheral
The length of the RBF was ~15MB and therefore failed the check against the max 512k size.
I've tried doing the following to program the periph and core RBFs separately and this has got me past this error:
$ mkimage -A arm -T firmware -C none -O u-boot -a 0 -e 0 -n "RBF" -d output_files/ghrd_10as066n2.periph.rbf ghrd_10as06
6n2.periph.rbf.mkimage
$ quartus_hps -c1 -oP --addr=0x00720000 ghrd_10as066n2.periph.rbf.mkimage
$ mkimage -A arm -T firmware -C none -O u-boot -a 0 -e 0 -n "RBF" -d output_files/ghrd_10as066n2.core.rbf ghrd_10as066n
2.core.rbf.mkimage
$ quartus_hps -c1 -oP --addr=0x00820000 ghrd_10as066n2.core.rbf.mkimage
Does this look correct ?
Is this related to the version of mkimage, or are the instructions in the doc wrong ?