I followed this guide to get the source code and compile the image. However, during the flashing process, it got stuck at the U-Boot phase with the message erasing mmc0 <waiting for any device>. It seems the image I built is for an eMMC-based device. My development board model is the Genio 1200 NIO 12L, which uses UFS storage. How can I compile an image for UFS?
It is a limitation for the log display from tools.
The storage type detection is detected by BROM with polling mode.
If you are using UFS on Genio 1200 EVK, you must keep EMMC partition (especially mmc0boot0, mmc0boot1) keeps empty. Once the BROM sees the partitions on EMMC were empty, it will try to load binary from UFS automatically.
There is some log display limitation for the tools. Once you’re flashing the UFS0 (or SCSI0) storage, the log still show mmc0.
To enable UFS as main storage, you’ll need to use the project ‘genio-1200-evk-ufs’ with IOT Yocto.
However, MediaTek dosen’t have any NIO 12L board. If you have further issue, please contact the manufacture of NIO 12L board for help.