What is the proper way to flash to EMMC for roc-rk3328-cc

I would also add that even if I used the image on SD card only, the setup procedure got stuck at
“Waiting for unattended-upgr to exit”