Originally Posted by drogon
when I do:
dd if=/dev/zero of=/dev/mmcblk0p3 bs=4K
dd:writing '/dev/mmcblk0p3':No space left on device
How should I deal with it?
And how to use fastboot to flash kernel-5.0.4.img?
Since you did not specify the count= number of blocks, that is the expected command result.
dd continues to output blocks until the destination runs out of room or the source is completely copied when you don't tell it how many blocks to copy.
And in the case given, with /dev/zero as the source, you will never reach the last block of the source.