Failed Android M Install on Nexus 6

So I got this error output (tried twice and re-downloaded the factory image)

ScorpioPro:shamu-MPZ44Q markbyrn$ ./
target reported max download size of 536870912 bytes
sending 'bootloader' (3807 KB)...
OKAY [ 0.120s]
writing 'bootloader'...
(bootloader) flashing partition ...
(bootloader) This may take a few seconds if a
(bootloader) different partition table is being
(bootloader) flashed since we need to backup
(bootloader) and restore a few partitions
(bootloader) Flashing primary GPT image...
(bootloader) Flashing backup GPT image...
(bootloader) flashing aboot ...
(bootloader) flashing sbl1 ...
(bootloader) flashing rpm ...
(bootloader) flashing tz ...
(bootloader) flashing sdi ...
(bootloader) flashing logo ...
OKAY [ 0.603s]
finished. total time: 0.723s
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
target reported max download size of 536870912 bytes
sending 'radio' (67556 KB)...
OKAY [ 2.116s]
writing 'radio'...
(bootloader) flashing modem ...
(bootloader) flashing mdm1m9kefs1 ...
(bootloader) flashing mdm1m9kefs2 ...
(bootloader) flashing mdm1m9kefs3 ...
(bootloader) flashing versions ...
OKAY [ 0.954s]
finished. total time: 3.070s
rebooting into bootloader...
OKAY [ 0.001s]
finished. total time: 0.001s
target reported max download size of 536870912 bytes
archive does not contain 'boot.sig'
archive does not contain 'recovery.sig'
fastboot(2641,0xa08c01d4) malloc: *** mach_vm_map(size=1981542400) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
failed to allocate 1979559444 bytes
error: update package missing system.img
ScorpioPro:shamu-MPZ44Q markbyrn$ fastboot flash recovery recovery.img
error: cannot open 'recovery.img'

Any suggested fixes?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

When updating or flashing the firmware ROM fails during the process and if it has not "Bricked" you can try to reflash the ROM
Read more on this at


It cannot be recovered.
Get it serviced or if cheaper replace it.
markbyrnAuthor Commented:
The failed flash didn't brick the phone; just unable to install Android M.
Miss-understood  your question :)

Before you can install the Android M Preview to Nexus 6, you will need to install ADB and Fastboot to your computer.
This is a program that runs on your PC/Mac to connect to your Android device through a USB cable and flash the Android software to your Nexus 6.

Read more with screen shots, by Cory Gunther at

markbyrnAuthor Commented:
yes, I had already installed ADB & Fastboot but it seems isn't fully working and on the XDA forum, I found a solution to manually flash each of the required images as follows:

fastboot flash system system.img
fastboot flash boot boot.img
fastboot flash recovery recovery.img
fastboot flash cache cache.img
fastboot flash userdata userdata.img

Doing that completed the install and for better or worse, I got Android M up and running on my Nexus 6.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
markbyrnAuthor Commented:
According to information found on a developer forum, flash-all does not work fully on later model nexus devices and a manual flash of individual images is required.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.