because you need the u-boot and u-boot fast boot running for flashing the emmc.
and the image flash.bin you built only has the m4. that is why flash gets fail.
if you look at the uuu help.
you will see arg0: _flash.bin bootloader and arg1: _image[Optional] image burn to emmc, default is the same as bootloader. it is optional.
So for you case, you need two arg0 and arg1. arg0 is the bootloader flash.bin has u-boot and arg1 is what you want to burn to emmc.
So you can use the binary release to burn the flash.bin you built.
uuu -b emmc imx-boot-imx8qxpc0mek-sd.bin-flash flash.bin
here imx-boot-imx8qxpc0mek-sd.bin-flash is the flash.bin with u-boot(running on A35 and has uboot fastboot). flash.bin here is you build with "make SOC=iMX8QX flash_cm4".
uuu [-d -m -v] -b[run] <emmc|emmc_all|fat_write|nand|qspi|sd|sd_all|spl> arg...
Run Built-in scripts
emmc burn boot loader to eMMC boot partition
arg0: _flash.bin bootloader
arg1: _image[Optional] image burn to emmc, default is the same as bootloader
emmc_all burn whole image to eMMC
arg0: _flash.bin
arg1: _rootfs.sdcard
fat_write update one file in fat partition, require uboot fastboot running in board