What is the most direct way to program an eMMC chip on the HPS controller?
I am working on a project, based on a Cyclone V SoC. The HW is equipped with a QSPI FLASH and a eMMC chip, both connected to the HPS pins.
We want the system to configure/boot from the eMMC chip.
I have found two possible methods to program a eMMC chip:
- Load Preloader -> U-boot -> Linux, install tftp and mount the eMMC chip as drive
- Load Preloader -> U-boot, use the debugger to store a SD-card image in RAM and use U-boot to copy the image to the chip.
I find both methods unsuited for a production situation. We will have batch-sizes in order of 10 units, thus pre-programmed chips are not an option.
Is there a more direct way to program an eMMC chip, connected to the HPS controller?
We can use the QSPI FLASH as temporary boot-device, if that helps to program the eMMC chip.