Moto G XT1033 Invalid boot image size

kirantambe

Member
Sep 10, 2016
6
0
0
I have tried to update my bootloader
downloaded XT1033_Bootloader_v41.18.zip from http://forum.xda-developers.com/moto-g/general/falcon-bootloader-upgrader-tool-t3093793
Extracted motoboot.img from the zip and used twrp to flash boot image.
But now I get this error invalid boot image size failed to validate boot image.
The reason I flashed the image using twrp is because my usb does not work it works only for charging. so no adb and fastboot. I cant get any new files in my phone because the otg is dead as well.
I also tried to flash the boot image from the terminal inside twrp using
flash_image boot /sdcard/motoboot.img
this return error: -1
 
Last edited:

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
What you are doing is extremely dangerous. Don't mess around with Bootloaders. The motoboot.img can only be flashed via fastboot.

Alternatively, flash the Android 5.0.1 Stock ROM from here: (and accept the OTA Update to Android 5.1)

Note: The OTA Update will require the ROM to be unrooted (remove supersu from zip before flashing) and Stock Recovery installed. You can also search XDA for the 5.1 OTA Update zip.

This will also update your Bootloader to v41.18.
 
Last edited:
  • Like
Reactions: kirantambe

kirantambe

Member
Sep 10, 2016
6
0
0
What you are doing is extremely dangerous. Don't mess around with Bootloaders. The motoboot.img can only be flashed via fastboot.

Alternatively, flash the Android 5.0.1 Stock ROM from here: (and accept the OTA Update to Android 5.1)

Note: The OTA Update will require the ROM to be unrooted (remove supersu from zip before flashing) and Stock Recovery installed. You can also search XDA for the 5.1 OTA Update zip.

This will also update your Bootloader to v41.18.
The problem is that my usb does not work. So I cant use fastboot and can't even get anything into the phone. So I guess getting the usb repaired is the first thing i need to do. Also when I cd into the /boot folder from the terminal inside twrp I dont see anything. The folder is empty. I have a cm12.1 zip in the memory when I flash it I get
This package supports bootloader 0x4118, 0x4119, 0x411A; This device has bootloader 0x4113.
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
The problem is that my usb does not work. So I cant use fastboot and can't even get anything into the phone. So I guess getting the usb repaired is the first thing i need to do. Also when I cd into the /boot folder from the terminal inside twrp I dont see anything. The folder is empty. I have a cm12.1 zip in the memory when I flash it I get
This package supports bootloader 0x4118, 0x4119, 0x411A; This device has bootloader 0x4113.
You flash the ROM zip via TWRP.
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
The problem is my usb does not work so I cannot get the ROM into the internal memory. Tried OTG as well but that too is dead
If you are running Windows on PC, try a Linux LiveCD (Ubuntu) - no need to install, simply boot from CD / USB.

In Ubuntu Terminal:
sudo apt-get install android-tools-adb android-tools-fastboot​

Test Fastboot:
sudo fastboot devices​

Test ADB:
sudo adb devices​
 
Last edited:

kirantambe

Member
Sep 10, 2016
6
0
0
If you are running Windows on PC, try a Linux LiveCD (Ubuntu) - no need to install, simply boot from CD / USB.

In Ubuntu Terminal:
sudo apt-get install android-tools-adb android-tools-fastboot​

Test Fastboot:
sudo fastboot devices​

Test ADB:
sudo adb devices​
yes i have ubuntu. I have fastboot and adb as well. but it does not show up in devices. And this problem has been there even when my moto g was working. So I guess there must be some hardware problem with the usb port. Even when Im in bootloader and if I connect usb cable it still says 'Connect USB Data Cable'
 

lost101

Inactive Recognized Contributor
May 30, 2008
7,434
9,328
0
yes i have ubuntu. I have fastboot and adb as well. but it does not show up in devices. And this problem has been there even when my moto g was working. So I guess there must be some hardware problem with the usb port. Even when Im in bootloader and if I connect usb cable it still says 'Connect USB Data Cable'
Make sure to always use the 'sudo' command before any fastboot or ADB command.

It could be the USB Cable, or the port as you say.
 

thiagocv

New member
Nov 27, 2016
3
0
0
Same here in Moto G XT1040 when trying to access Recovery option (from bootloader): "Invalid boot image size! failed to validate recovery image. Boot up failed".
It happened after I tried to upgrade CM (13 > 14) from their recovery mode.
Although I had the same error message of you, my USB was working fine and could enter in Android (although lots of "failed" popup messages).
From Linux I noted that "adb devices" command showed my mobile, but "fastboot devices" not.
After I installed drivers on Windows also "fastboot devices" worked.
It worked like a charm!
How I solved:
1. Windows: install Android SDK (to provide adb and fastboot commands), install drivers, download TWRP (for my specific device model), download CM custom ROM (for my specific device model) and copy to device (adb push);
2. Device: enter in bootloader, connect USB cable;
3. Windows: fastboot flash recovery twrp_image_filename_downloaded.img
4. Windows: fastboot reboot
5. Device: install CM from the TWRP recovery mode.
 
Last edited:

POWBlock

Member
Feb 1, 2014
16
1
0
What you are doing is extremely dangerous. Don't mess around with Bootloaders. The motoboot.img can only be flashed via fastboot.

Alternatively, flash the Android 5.0.1 Stock ROM from here: (and accept the OTA Update to Android 5.1)

Note: The OTA Update will require the ROM to be unrooted (remove supersu from zip before flashing) and Stock Recovery installed. You can also search XDA for the 5.1 OTA Update zip.

This will also update your Bootloader to v41.18.
Hey lost101, I got the same problem as OP and I tried to do what you suggested here, but how do I install stock recovery via adb ? After flashing the 5.0.2 untouched version to my phone, I got the OTA update notification to 5.1, i tried to run it then the phone booted to twrp. If I reboot the phone, the system loads but after a few seconds it reboots again to twrp. What do you suggest?

You can also search XDA for the 5.1 OTA Update zip.
Is that what you meant? Can I install it thru twrp? https://forum.xda-developers.com/moto-g/general/ota-xt1033-5-1-brazilian-lollipop-t3196328

Thanks :)
 
Last edited:

POWBlock

Member
Feb 1, 2014
16
1
0
@POWBlock - Don't mess around with OTA Updates. They can make your phone buggy and slow. Best advice is the flash Optimized 5.1 from thread above or Identity Crisis 6 (Stock 6.0):
Yeah, I was actually trying to flash Cyanogen to this phone, but I couldnt do it since bootloader wasnt updated, so, instead of updating to 5.1 thru OTA, I flashed the whole firmware doing this method: https://forum.xda-developers.com/showthread.php?t=2542219 , but I got the file from another forum.

Then I installed TWRP again, then finally installed Cyanogen. But thanks for answering! :D
 

Kermitsalon

Member
Oct 22, 2015
14
3
0
Madrid
xt1032 flash problems

I was recently struggling with out of the blue flash problems. Recovery or boot flash didn't work. Size mismatch error. Recovery on phone was corrupted. System didn't start. Only remote boot recovery using fastboot worked. Eventually I extracted boot.img from the last official lineage 14.1 zip and flashed that to boot. After that all was working again. Hope this is useful to others.