[Q] problems with fastboot flash boot boot.img - RAZR i Q&A, Help & Troubleshooting

Hi,
I'm trying to flash boot.img into my xt890 that I created following the Motorola instructions.
I compiled it and then created the boot.img using:
mkbootimg --kernel bzImage --ramdisk ramdisk.img --output boot.img
After that my boot.img size is 4.3M.
Then I run adb reboot-bootloader and I have my phone on AP fastboot flash mode (secure boot)
Then fastboot devices, works well.
But when I run fastboot flash boot boot.img I get
[email protected]:~/android/out/host/linux-x86/bin$ ./fastboot flash boot boot.img
sending 'boot' (4356 KB)...
OKAY [ 0.682s]
writing 'boot'...
FAILED (remote: Preflash validation failed)
finished. total time: 0.946s
and on the phone :
Downloading
Invalid image size for partition boot
Fastboot command failed
Any help would be greatly appreciated

Related

[Q] Unable to flash system.img, and thus unable to boot

I tried to update to 4.4 while keeping root, but messed up somewhere along the way. Now I can't flash system.img - fastboot says the buffer isn't big enough? - and so my phone won't boot past the opening Motorola logo.
Any suggestions? I'm on OSX, which is why I haven't been able to try RSD Lite.
EDIT: The speficic error info after running 'fastboot flash system.img system.img' is
sending 'system.img' (971855 KB)...
(bootloader) Data size exceeds download buffer
FAILED (remote failure)
finished. total time: 0.337s
EDIT 2: SOLVED! Turns out that the older fastboot files have issues with large file sizes. I used the new fastboot file from here (zip file) and instructions #2 from here, specifically the following fastboot instructions:
astboot erase cache
fastboot erase customize
fastboot erase clogo
fastboot flash partition gpt.bin
fastboot flash system system.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img

Can't flash system.img in fastboot mode on 2012 KFHD 7"

Please help. I had Omni rom running fine. One day I turned on the tablet and got stuck in a bootloop. I tried to boot into twrp and it just sits there on the teamwin logo and wont go into twrp. I have factory cable and can get into fastboot, but the system.img will not write to the tablet. I have tried KFFirstAide and KFHD System.img Restore Tool and it will not write the system.img. I've tried multiple system.img, so it's not a corrupt file as the MD5 matches. Do I have a failed internal SD? I cant understand why twrp hangs either. UHHHHGGGG!!!
Here is what I get:
C:\>fastboot -i 0x1949 flash system system.img
target reported max download size of 1006632960 bytes
sending 'system' (907264 KB)...
OKAY [312.408s]
writing 'system'...
FAILED (remote: : Write partition)
finished. total time: 315.015s
Any help would be appreciated.

Failed to write CM boot.img

Hello everyone! I am trying to install my xperia z CyanogenMod but i've come uppon a few troubles!
I have unlocked my bootloader! I am following this tutorial: wiki.cyanogen mod.org/w/Install_CM_for_yuga
I am typing the command
Code:
fastboot -i 0xfce flash boot boot.img
and this shows up in CMD. :
Code:
sending 'boot' <10676>...
OKAY [ 0.343s]
writing 'boot' ...
FAILED <remote: Command not allowed>
finished. total time: 0,346s
i.imgur.com/KOqs mTh.png
Try just: fastboot flash boot boot.img
Sent from my C6603 using Tapatalk

ROM Flashing - Image is too large - Partition

Motorola G XT1072 -
Recovery: Clockworkmod v6.0.4.7 -
Bootloader: Unlocked
Problem: Failed in flashing rom to device.
What I did:
1. Install "Minimal ADB and Fastboot".
2. Download "mfastboot-v2" and extract it to the same directory I installed "Minimal ADB and Fastboot".
3. Deleted "fastboot.exe" to avoid possible confusion with windows.
4. Extracted the stock rom for the phone to the same directory as "Minimal ADB and Fastboot".
5. Enter the phone in Fastboot Flash Mode
6. Open "Command Prompt" in the "Minimal ADB and Fastbook" folder when the "mfastboot" and extracted ROM files are.
7. In "Command Prompt" I typed "mfastboot flash partition gpt.bin"
I get this error in "Command Prompt"
-------------------------------------------------------------------------------------------------------------------
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>mfastboot flash
partition gpt.bin
target max-sparse-size: 256MB
sending 'partition' (32 KB)...
OKAY [ 0.043s]
writing 'partition'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.358s
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>
On my phone screen I get pink writing saying: VERSION DOWNGRADED FOR PRIMARY_GPT
-------------------------------------------------------------------------------------------------------------------
8. I typed "mfastboot flash motoboot motoboot.img" and get this error:
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>mfastboot flash
motoboot motoboot.img
target max-sparse-size: 256MB
sending 'motoboot' (2184 KB)...
OKAY [ 0.105s]
writing 'motoboot'...
(bootloader) Motoboot: Preflash validation for tz
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 0.388s
On my phone screen I get writing saying: VERSION DOWNGRADED FOR TZ
-------------------------------------------------------------------------------------------------------------------
9. I typed "mfastboot flash logo logo.bin" and it came back as OKAY.
10. I typed "mfastboot flash boot boot.img" and it again came back as OKAY.
11. I typed "mfastboot flash recovery recovery.img" and it again came back as OKAY.
12. I typed "mfastboot flash system system.img_sparsechunk.0" and got this error:
-----------------------------------------------------------------------------------------------------------------
C:\Users\MAWiggKTA\Desktop\Moto G Files\Minimal ADB and Fastboot>mfastboot flash
system system.img_sparsechunk.0
target max-sparse-size: 256MB
sending 'system' (261762 KB)...
OKAY [ 8.375s]
writing 'system'...
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.406s
On my phone screen it says: IMAGE IS TOO LARGE
-------------------------------------------------------------------------------------------------------------------
I think the partition maybe corrupted or something, possible suggestion please people.
Thanks in advanced
Please double check if you have downloaded the correct firmware zip corresponding to your phone model and region. Every region has a different firmware zip, so please verify it before downloading.
I'm positive its the right rom for my phone. I have also downloaded an EU one but get exactly the same errors. Thank you
Maybe try another custom recovery, twrp 2.8.5.0 worked perfectly for me.
thanks mate but ive tried that and still no good. Either recovery I get the same errors. Anyway to totally wipe the phone and redo the partitions?
I don´t know where but I read about the problem with too large images a few times in this forum lately....seems to be a new problem.

XT1095 - forgot to unlock before attempting to downgrade 5.1->5.0

I have an XT1095. I flashed the 23.1.28 leaked OTA a couple of months ago to get to 5.1, and now I'm attempting to get to the final 5.1 OTA. My phone was unrooted, and had the stock recovery.
I downloaded the nycgraffix 5.0 image. I followed this guide, but I forgot to unlock the bootloader. I got partway though flashing the files before I realized my mistake. Here's how it went, to the best of my memory:
Unzip the stock 5.0 image SUCCEEDED
Boot into fastboot SUCCEEDED
fastboot flash logo logo.bin SUCCEEDED
fastboot flash boot boot.img SUCCEEDED
fastboot flash recovery recovery.img SUCCEEDED
fastboot flash system system.img_sparsechunk.0 FAILED
Here's what happened on the failure:
Code:
C:\android\x\gnyc>fastboot flash system system.img_sparsechunk.0
target reported max download size of 536870912 bytes
sending 'system' (256598 KB)...
OKAY [ 8.081s]
writing 'system'...
(bootloader) Invalid signed image
(bootloader) Preflash validation failed
FAILED (remote failure)
finished. total time: 8.190s
At this point, I realized I forgot to unlock, so I issued the "fastboot oem unlock" command with the key I got from Motorola. Unfortunately, this now fails:
Code:
C:\android\x\gnyc>fastboot oem unlock JQ3QVNTEBxxxxxxxxxx
...
(bootloader) Check 'Enable OEM Unlock' in Developer Options.
FAILED (remote failure)
finished. total time: 0.016s
The phone now only boots into fastboot, saying "Fastboot Reason: Last time flashing failed".
I'd be grateful for any help bailing out of this.
I decided to try the stock image that Motorola posted (note: this image won't allow you to get the 5.1 OTA!). Using the fastboot from Android's SDK, I did this:
Code:
1. Make sure you have a Moto Pure Edition or a Developer Edition device.
2. Make sure you download the corresponding recovery image from the above portal.
3. To flash, put the phone in fastboot mode: Power OFF...then Power ON+Volume Down .Alternatively, you can reboot into fastboot mode if you have adb... adb reboot bootloader
4. Next flash the images using fastboot:
$ fastboot flash partition gpt.bin
$ fastboot flash motoboot motoboot.img
$ fastboot reboot-bootloader
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
All these succeeded except the boot.img. So I tried unlocking again:
Code:
C:\android\x\official\TMO_LXE22.46-11_22.21.11.victara_tmo.tmo.en.US\TMO_LXE22.4
6-11_22.21.11.victara_tmo.tmo.en.US>fastboot oem unlock JQ3QVxxxxxxxxxxxx
...
(bootloader) Unlock code = JQ3QVxxxxxxxxxxxx
(bootloader) Unlock completed! Wait to reboot
Since that succeeded, I tried again:
Code:
$ fastboot flash logo logo.bin
$ fastboot flash boot boot.img
$ fastboot flash recovery recovery.img
$ fastboot flash system system.img
$ fastboot flash modem NON-HLOS.bin
$ fastboot erase modemst1
$ fastboot erase modemst2
$ fastboot flash fsg fsg.mbn
$ fastboot reboot
These all succeeded and I'm booting to 5.0 again. Now I'll re-attempt the nycgraffix image so I can finally get the real 5.1 OTA.
I got the 5.1 OTA update as soon as I booted into the GraffixNYC image. I donated $20, since Motorola's own image is screwed up.
My next phone will be a Nexus. This phone has been a complete mess.

Categories

Resources