Originally Posted by geekmaster
Flashing with dd is potentially dangerous, because it can overwrite "write-only" locations in /dev/mmbblk0, if you do not get the offsets and sizes exactly correct. MUCH safer to use fastboot.
I need some sleep before I strip out any images. I tried one for the k4 but messed up. It is almost 5am here and I have work in the "morning". ;-(
These things take time and I already burned several hours making firmware images for people.
EDIT: 5.0.4 is mostly just a kernel update, and it provides a full kernel image (not patches). Very little change to the main partition. So if you install a 5.0.0 kernel and 5.0.0 main partition, it should upgrade to 5.0.4 fine.
In fact, 5.0.4 should upgrade fine even if the main partition and kernel are not matching versions (unless 5.0.1, 5.0.2, or 5.0.3, which contained patches and could potentially cause problems during an update). They *should* have done a CRC check though to prevent double patching, but perhaps that code was not well-tested (or according to your analysis, may not even have EXISTED)...
Just be patient and you will get your 5.0.0 kernel image (and perhaps a 5.0.4 kernel image too).
I flashed a 5.0.4 kernel into my device using dd but it cannot boot.