[Droid RAZR M Q&A, Help & Troubleshooting] phr00t:
Hey all,

I broke SystemUI.APK on my main install, and I was having trouble restoring it, so I decided to do an RSD Lite 5.7 fastboot flash back to Jelly Bean 4.1.1 (using http://xdaforums.com/showthread.php?p=34761468)

RSD Lite got to step 17/19 and failed during system.img -- just said "phone returned FAIL". This then made my phone always boot into fastboot immediately... and RSD Lite always failed at that same 17/19 step. I updated my Motorola USB drivers, no luck. I tried using the Ice Cream Sandwich fastboot, and it also fails while trying to write system.img.ext4... so, I tried using Linux to flash my phone (with JB 4.1.1), and I get these errors when trying to flash system.img:

> fastboot flash system system.img

target reported max download size of 31457280 bytes

Invalid sparse file format at header magi

error: write_sparse_skip_chunk: don't care size 792736988 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 761283804 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 729769180 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 698315996 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 666850524 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 635393244 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 603940060 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 574932188 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 543454428 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 512001244 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 480474332 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 452621532 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 421164252 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 389698780 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 358241500 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 326784220 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 295331036 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 263808220 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 232293596 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 200840412 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 169297116 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 137802972 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 106349788 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 74896604 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 43435228 is not a multiple of the block size 4096

error: write_sparse_skip_chunk: don't care size 11953372 is not a multiple of the block size 4096

fastboot: ../libsparse/sparse.c:143: write_all_blocks: Assertion `pad >= 0' failed.

Aborted (core dumped)

Fastboot continues to start immediately when starting the phone, with the reason "Sticky bit factory_fastboot"...

Any ideas? :( :( :(