How to write preloader image to A2 partition on SD card without using a USB card reader?

Hi,

I’m building an application running on RTOS with Cyclone V SoC. Normally, to write the preloader image to the SD card, I need to connect to a USB card reader and using the “alt-boot-disk-util” command in SoC EDS like in these examples (https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/an/an709.pdf). However, now my SD card is fixed on the board and I’m unable to connect to the USB card reader anymore. Could anyone tell me if there is another way to write to the A2 partition ?

Is the card blank? Or are you trying to upgrade the preloader (i.e., is there a boot mechanism there already or do you need to enter via JTAG)?