I've seen some tips on this forum to boot and load the BL2 stage from I2C.
Want we want to do is load the RCW from I2C, and load the remainder from FSPI NOR flash. (Question #1: Is this even possible?)
I tried using the following PBI part in the RCW on the LS1028ARDB:
/* Copy 64k image from FSPI NOR offset 0x9000 to OCRAM (at 0x100000) */
.pbi
blockcopy 0x0f,0x00100000,0x00100000,0x00009000
.end
flashed the resulting .bin into the EEPROM at 0x50.
The FSPI NOR is bootable by itself.
The reason is that we want to switch between low and high power modes (low power means PCIe limited to gen1 and platform bus at 300MHz, while high power runs PCIe at gen3 and platform at 400MHz), and the only way to do so is to change the RCW and reboot.
Doing this in FSPI is doable, but if something goes wrong writing to FSPI the board will be bricked. So we want to put the RCW in I2C EEPROM, so that if things fail, we can always revert to FSPI boot which would always have a working RCW.