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
I've tried to install CM11 on xperia V (rooted) with T4.3_PhilZCWM_6.0.4.7_LB_v1.7 but I got error 7 and when reboot my device dont boot I tired to going to costume recovery but can't do it (broken recovery) so I can't install recovery flash-able .zip file again. and can't find *.img file in it!
How I can get stock or costume recovery file as .img for use flash in fastboot? or Can I flash custom recovery .zip file via fastboot?
and tried: fastboot flash recovery T4.3_PhilZCWM_6.0.4.7_LB_v1.7.zip
Get:
sending 'recovery' (3201 KB)...
(bootloader) USB download speed was 16392kB/s
OKAY [ 0.218s]
writing 'recovery'...
(bootloader) Flash of partition 'recovery' requested
FAILED (remote: Partition not found)
thank you for help
Answer is:
Sony phones doesn't have separate recovery partition. Its recovery is incorporated to the boot.img, which contains also the kernel.
Custom kernels normally comes with the recovery. You only need to "fastboot flash boot boot.img"
source: http://forum.xda-developers.com/member.php?u=4023029
So: extract boot.img from CM11.zip file and fastboot flash boot.img and recovery will accessible
Guys i have bricked MY mi3 16gb.
I was using Bitti opticancro build with extended partitiion.
as i want to go to miui v6. i flashed stock partition zip
Then i flashed miui stock recovery and tried to flash the miui latest rom
i forgot to rename the rom zip to update .zip so i couldnt insatll the miui rom.
the i tried to flash using fast fastboot mode but it is showing error as remote size too large.
now i am stuck with miui recovery and fastboot error.
pls help me to get back my phone.
If you can enter fastboot mode, then you can flash miui rom manually.
First unzip miui fastboot rom, place adb and fastboot files into the folder you just extracted. (ex. located in cancro_global_images_V6.4.3.0.KXDMICB_4.4_global\images)
And then press shift while in this folder to open terminal, type these one by one.
Code:
fastboot devices
fastboot flash tz tz.mbn
fastboot flash dbi sdi.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash rpm rpm.mbn
fastboot flash aboot emmc_appsboot.mbn
fastboot erase boot
fastboot flash misc misc.img
fastboot flash modem NON-HLOS.bin
fastboot flash modem1 NON-HLOS.bin
fastboot flash system system.img
fastboot flash system1 system.img
fastboot flash cache cache.img
fastboot flash recovery recovery.img
fastboot flash boot boot.img
fastboot flash boot1 boot.img
fastboot flash userdata userdata.img[B] (optional, need backup first, but I recommended to flash this if you want to use gapps)[/B]
fastboot reboot
You're done!
Android ADB Fastboot files is given if you don't have one.https://www.dropbox.com/s/ndud98a4ek3fvxg/Android_ADB_FASTBOOT.zip?dl=0
Or you can just fastboot flash TWRP recovery and then flash whatever you want from USB or something...
1)Install CWM recovery
2) Download restore-stock partition zip file from here http://www.htcmania.com/showpost.php?p=17750021&postcount=144
3) Flash it.
4) Now get in fastboot mode.
5) Get fasboot images from MIUI Forums
6) Flash it via MiFlash or use command line given by 2nd comment
7) Grab a coffee and you will be on miui in no time
8) use miui
Edit: http://xiaomi.eu/community/threads/5-5-8.27542/page-8#post-246332
There is modified flash_all.bat for Mi2, i beleive same works for cancro.
Code:
fastboot %* flash partition "%~dp0images\gpt_both0.bin" || @echo "Flash partition" && exit /B 1
Add this line after getvar and before flash lines in flash_all.bat and then MiFlash it like usually.
Flash cwm via fastboot, use "fastboot flash recovery recoveryname.img" and don't use this title, its not completely bricked.
Never run stock recovery until u manage to flash a stockrom.. Better remember that.. Save twrp or cwm.. In my case, on last monday, on twrp, i've accidentally wipe internal storage.. Luckily got 6 type of rom in usb-otg..
It would seem that for me Flashing the TWRP Recovery (or any other, tried Orangefox too) doesn't work. I would really appreciate some input on this.
Here's some info:
- Redmi 4
- MIUI 10.2 | Stable // 10.2.2.0(MBECNXM)
- Android version 6.0.1
- Android Security Patch level 2018-04-01
- Unlocked the Phone (Successfully)
- Booted into fastboot
- used "fastboot flash recovery <filename>.img" to flash the twrp image (also tried older versions of the twrp image; also tried the orange fox recovery image)
It gives me the following output:
Code:
C:\Minimal ADB and Fastboot> fastboot flash recovery twrp.img
Sending 'recovery' (36040 KB) OKAY [ 1.002s]
Writing 'recovery' OKAY [ 0.977s]
Finished. Total time: 2.046s
- I proceed to use "fastboot boot twrp.img"
It gives me the following output:
Code:
C:\Minimal ADB and Fastboot> fastboot boot twrp.img
Sending 'boot.img' (36040 KB) OKAY [ 1.001s]
Booting FAILED (remote: 'dtb not found')
fastboot: error: Command failed
Now unto the errors / things I've tried:
- If I try to just use "fastboot reboot" -> it proceeds to eternally get stuck on the "mi.com" loading screen
- If I try to use the "standard" power off > Power + Vol Up -> The phone boots into the Chinese interface which is not TWRP (yellow big buttons, bottom button is blue) -> I change the language to english, hit "Recovery" and it yet again either stays stuck or boots into Mi 3.0 Recovery
I have tried all TWRP Santoni versions currently officially available on the official TWRP site.
All give me the same error if I try to boot the recovery direclty through fastboot as seen above: "(remote: dtb not found)"
can anyone please help me with this?
Flash latest stock ROM with fastboot first without re locking bootloader, boot into it, and then flash twrp 3.2.3-1 official from fastboot again, and then disconnect the phone and reboot into recovery with vol up + down + power button and ensure that you have downloaded lazyflasher into your phone storage, and after booting twrp, flash lazyflasher, clear cache and reboot system. Done!
Prerequisite
1. Unlocked Bootloader
2. TWRP Recovery or OrangeFox Recovery
3. Latest adb & fastboot files
4. Stock ROM ZIP files
5. Stock Recovery [OPTIONAL]
Custom Recovery Method:
1. Enable USB-Debugging: adb reboot recovery or hold the volume up while rebooting or hold the volume down to enter bootloader & choose Reboot to Recovery by volume buttons, power key to enter.
2. Copy the Stock ROM zip to your device via adb push RMX1901_flashable_*.zip /sdcard or MTP
3. Wipe data, cache & dalvik (format data if stuck at boot animation)
4. Locate the zip file & Install
5. Flashing all the partitions with stock files takes time. Hold for a while.
6. After successful install of the zip. Your device will have Stock Recovery with Stock ROM. Finally Reboot.
Fastboot Method:
Note: Following process formats internal storage, so backup the internal storage files. If your device is in Stock ROM & somehow system partition is messed up just flash only system.
1. Download required Fastboot files
2. If downloaded 7z files, extract system.img file.
3. Enter
Code:
fastboot -w && fastboot erase system && fastboot flash recovery recovery.img && fastboot flash boot boot.img && fastboot flash vbmeta vbmeta.img && fastboot flash dtbo dtbo.img && fastboot flash system system.img && fastboot reboot
4. It takes a while to flash System partition, have patience.
5. Device reboots to system if everything is flashed successfully.
Stock Recovery Method:
1. Download Stock ROM OZIP Files & Stock Recovery
2. Copy *.ozip to sdcard or internal storage.
2. Goto fastboot & enter fastboot flash recovery recovery.img
3. Reboot to recovery, wipe (1st option). Then go back to main menu Install from storage locate the *.ozip file & install.
Can i install the A.06 zip file into my realme x china?
taolatao123 said:
Can i install the A.06 zip file into my realme x china?
Click to expand...
Click to collapse
Nope.
It looks like the CN variant is using a different key for signing (?) or verifying the boot.img.
I have tried india version boot.img and unofficial LOS16 boot.img, they all fail to boot.
Only the boot.img extracted from CN updates (ozip) can pass the verification.
Unless we get an idea how the f**king verification of boot.img is done, CN variant is pretty hard to crack.
BTW, although the failure screen shows boot/recovery is corrupted when verification fails, the verification doesn't apply to recovery at all.
You can easily install TWRP and boot into recovery.
The TWRP problem is, its model is still considered as global model (1901) not (1901CN), thus it can't apply the converted zip from CN official ozip.
If you want a flashable stock zip, you need to remove the compatible.zip (pretty common for treble rom), then remove the model checking code in update-script.
Can I install Fastboot Method files to Realme X CN (RMX1901CN)?
Is there any way to go Global rom on CN Realme X?
Can't flash system.
I am unable to flash system.img and get error
error: write_sparse_skip_chunk: don't care size 1664534048 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1134061088 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 597009952 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 75220512 is not a multiple of the block size 4096
Sending sparse 'system' 1/5 (524284 KB) error: write_sparse_skip_chunk: don't care size 1664534048 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1664534048 is not a multiple of the block size 4096
OKAY [ 11.870s]
Writing 'system' OKAY [ 0.001s]
Sending sparse 'system' 2/5 (517881 KB) error: write_sparse_skip_chunk: don't care size 1134061088 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1134061088 is not a multiple of the block size 4096
OKAY [ 11.889s]
Writing 'system' FAILED (remote: 'Error: Last flash failed : Bad Buffer Size')
fastboot: error: Command failed
Please help.
@4j17h
Is there any way to flash stock ROM but keep TWRP Recovery.
Maybe, by deleting the recovery.img from zip file???
Please add RMX1901EX_11_A.09 updated TWRP flashable zip file. Global (indian) version.?
ihr3.1416 said:
Can I install Fastboot Method files to Realme X CN (RMX1901CN)?
Is there any way to go Global rom on CN Realme X?
Click to expand...
Click to collapse
Right now there isn't any. Chinese variant users should figure out the way.
Thejayyadav said:
@4j17h
Is there any way to flash stock ROM but keep TWRP Recovery.
Maybe, by deleting the recovery.img from zip file???
Click to expand...
Click to collapse
Sure you can delete recovery.img from zip & flash but still twrp will get replaced with stock recovery once colorOS is booted.
Workaround is
Flash ROM
Flash twrp
Flash vbmeta (use ofox or reboot to fastboot)
Reboot recovery
Flash debloater (https://forum.xda-developers.com/realme-3-pro/how-to/guide-debloater-bootloader-locked-t3965506)
Wipe data or format data if you haven't done already
Reboot System
Follow these steps, don't miss any.
farhantahir said:
I am unable to flash system.img and get error
error: write_sparse_skip_chunk: don't care size 1664534048 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1134061088 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 597009952 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 75220512 is not a multiple of the block size 4096
Sending sparse 'system' 1/5 (524284 KB) error: write_sparse_skip_chunk: don't care size 1664534048 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1664534048 is not a multiple of the block size 4096
OKAY [ 11.870s]
Writing 'system' OKAY [ 0.001s]
Sending sparse 'system' 2/5 (517881 KB) error: write_sparse_skip_chunk: don't care size 1134061088 is not a multiple of the block size 4096
error: write_sparse_skip_chunk: don't care size 1134061088 is not a multiple of the block size 4096
OKAY [ 11.889s]
Writing 'system' FAILED (remote: 'Error: Last flash failed : Bad Buffer Size')
fastboot: error: Command failed
Please help.
Click to expand...
Click to collapse
Try to flash System.img to System Image in recovery or else install flashable ROM.
4j17h said:
Sure you can delete recovery.img from zip & flash but still twrp will get replaced with stock recovery once colorOS is booted.
Workaround is
Flash ROM
Flash twrp
Flash vbmeta (use ofox or reboot to fastboot)
Reboot recovery
Flash debloater (https://forum.xda-developers.com/realme-3-pro/how-to/guide-debloater-bootloader-locked-t3965506)
Wipe data or format data if you haven't done already
Reboot System
Follow these steps, don't miss any.
Click to expand...
Click to collapse
Which vbmeta to flash, one i used after flashing TWRP for first time or stock??
Thejayyadav said:
Which vbmeta to flash, one i used after flashing TWRP for first time or stock??
Click to expand...
Click to collapse
Yes which is around 1kb used after flashing twrp
Stock recovery method:
Does it require unlocked bootlaoder too?
Any one please..
seebani said:
Stock recovery method:
Does it require unlocked bootlaoder too?
Any one please..
Click to expand...
Click to collapse
Yes without unlocked bootloader you can't flash any recovery from fastboot. It's in OP the very first section plus when you want to go back to stock ROM it's understood you have a unlocked bootloader through which you switched ROM
---------- Post added at 05:06 PM ---------- Previous post was at 05:05 PM ----------
@4j17h , you are a life saver! Thanks so much for this ?
4j17h said:
Try to flash System.img to System Image in recovery or else install flashable ROM.
Click to expand...
Click to collapse
hey I am facing the same issue but my phone is stuck in a bootloop and i am not able to boot into recovery mode all i can do is Go into fastboot mode
ANY SOLUTIONS ??? :crying::crying::crying:
kjdirectioner said:
hey I am facing the same issue but my phone is stuck in a bootloop and i am not able to boot into recovery mode all i can do is Go into fastboot mode
ANY SOLUTIONS ??? :crying::crying::crying:
Click to expand...
Click to collapse
Flash vbmeta & twrp
Boot into twrp
Flash ROM ZIP
Format & reboot
4j17h said:
Flash vbmeta & twrp
Boot into twrp
Flash ROM ZIP
Format & reboot
Click to expand...
Click to collapse
Ya i already did that but after flashing every time it automatically restores to its stock recovery
kjdirectioner said:
Ya i already did that but after flashing every time it automatically restores to its stock recovery
Click to expand...
Click to collapse
Flash twrp
Flash debloat zip (get it from 3 Pro guide section)
4j17h said:
Flash twrp
Flash debloat zip (get it from 3 Pro guide section)
Click to expand...
Click to collapse
Ok I'll try Thanks for the help ?
4j17h said:
Prerequisite
1. Unlocked Bootloader
2. TWRP Recovery or OrangeFox Recovery
3. Latest adb & fastboot files
4. Stock ROM ZIP files
5. Stock Recovery [OPTIONAL]
Custom Recovery Method:
1. Enable USB-Debugging: adb reboot recovery or hold the volume up while rebooting or hold the volume down to enter bootloader & choose Reboot to Recovery by volume buttons, power key to enter.
2. Copy the Stock ROM zip to your device via adb push RMX1901_flashable_*.zip /sdcard or MTP
3. Wipe data, cache & dalvik (format data if stuck at boot animation)
4. Locate the zip file & Install
5. Flashing all the partitions with stock files takes time. Hold for a while.
6. After successful install of the zip. Your device will have Stock Recovery with Stock ROM. Finally Reboot.
Fastboot Method:
Note: Following process formats internal storage, so backup the internal storage files. If your device is in Stock ROM & somehow system partition is messed up just flash only system.
1. Download required Fastboot files
2. If downloaded 7z files, extract system.img file.
3. Enter
4. It takes a while to flash System partition, have patience.
5. Device reboots to system if everything is flashed successfully.
Stock Recovery Method:
1. Download Stock ROM OZIP Files & Stock Recovery
2. Copy *.ozip to sdcard or internal storage.
2. Goto fastboot & enter fastboot flash recovery recovery.img
3. Reboot to recovery, wipe (1st option). Then go back to main menu Install from storage locate the *.ozip file & install.
Click to expand...
Click to collapse
Is the stock recovery method file for all device ? I mean i m using Indian variant can i flash it ?
---------- Post added at 12:35 PM ---------- Previous post was at 11:37 AM ----------
4j17h said:
Prerequisite
1. Unlocked Bootloader
2. TWRP Recovery or OrangeFox Recovery
3. Latest adb & fastboot files
4. Stock ROM ZIP files
5. Stock Recovery [OPTIONAL]
Custom Recovery Method:
1. Enable USB-Debugging: adb reboot recovery or hold the volume up while rebooting or hold the volume down to enter bootloader & choose Reboot to Recovery by volume buttons, power key to enter.
2. Copy the Stock ROM zip to your device via adb push RMX1901_flashable_*.zip /sdcard or MTP
3. Wipe data, cache & dalvik (format data if stuck at boot animation)
4. Locate the zip file & Install
5. Flashing all the partitions with stock files takes time. Hold for a while.
6. After successful install of the zip. Your device will have Stock Recovery with Stock ROM. Finally Reboot.
Fastboot Method:
Note: Following process formats internal storage, so backup the internal storage files. If your device is in Stock ROM & somehow system partition is messed up just flash only system.
1. Download required Fastboot files
2. If downloaded 7z files, extract system.img file.
3. Enter
4. It takes a while to flash System partition, have patience.
5. Device reboots to system if everything is flashed successfully.
Stock Recovery Method:
1. Download Stock ROM OZIP Files & Stock Recovery
2. Copy *.ozip to sdcard or internal storage.
2. Goto fastboot & enter fastboot flash recovery recovery.img
3. Reboot to recovery, wipe (1st option). Then go back to main menu Install from storage locate the *.ozip file & install.
Click to expand...
Click to collapse
After flashing using stock recovery method phone again boot to stock recovery any way to fix this ?