Friday, July 13, 2018

Flashing firmware to ZTE Blade Libra via windows

Flashing firmware to ZTE Blade Libra via windows


This guide is useful for flashing firmware to most GSM Blades where TPT is not available. TPT is not able to downgrade a phone with factory Gen2 firmware to Gen1 or to upgrade a factory gen1 phone to Gen3 or factory Gen2, so for these tasks you need to follow this guide. It is possible to flash any firmware to any Blade with this guide if you so desire (but do observe the warnings). This is not the same as flashing a ROM (Gen1|Gen2). If you are unsure about which Gen firmware your blade has, ask Mr PigFish. This method requires a Windows PC.

There is an easier way - TPT!
For most applications, it is possible to flash firmware via TPT. TPT is easier, faster, and safer than windows flashing, and does not require windows. Try these threads for TPT instructions first, then use this guide if they cant help you.
  • Gen1 to Gen2 TPT upgrade: TPTs to flash from Gen1 to Gen2, and from Gen2 to Gen1 if you upgraded to Gen2 with TPT. A number of different partition layouts are available, and fastboot is enabled. This is the easiest way to upgrade from Gen1 to Gen2.
  • Gen2 TPTs: TPTs to repartition and enable fastboot on stock Gen2 Blades.

Advantages of modified firmware
Windows upgraded/stock Gen2 Blades have a wasteful partition layout, no fastboot mode, and are incapable of flashing Gen1 compatible TPT images. Some are sold with 256MB of RAM hidden by software. Depending on which files you flash, you can:
  • Change the partition layout to something more optimal, and therefore have more space on the data partition for your apps (315MB instead of 162MB), as well as 15MB more space overall.
  • Enable fastboot mode. Fastboot can be useful for recovery if you make a mistake flashing ROMs and cannot boot your phone.
  • Add the ability to flash Gen1 compatible TPT images.
  • If your Blade was sold with 256MB of RAM and it has 512MB in hardware, then this process will unlock the full 512MB or RAM (Blades that have 512MB in hardware and can be unlocked include all known European GSM models and the Dell xcd35. Chinese models, the Indonesian N880, the Russian RTK v8, and any CDMA model cannot be unlocked and trying to do so will brick them. I dont know yet if the Brazilian model is unlockable).
  • Downgrade to Gen1. Optional, and not useful for most people.
  • Upgrade to Gen3. Also not useful for most people since most ROMs require Gen2.
  • If you flash stock firmware compatible with your phone form this thread, you can restore your phone to its factory state. I don�t believe this is ever necessary.
Warnings
The following process should be safe if you follow it carefully, but care should be taken to avoid bricking your phone. I cannot guarantee that it will work on all blades, and you must be aware that there is some risk of bricking
  • Do not use this guide for Chinese Blades, Russian RTK v8s, or CDMA Blades (v880, x880, u880, n880) as they are not compatible with these firmware packages.
  • This process will wipe all your internal memory - data, apps, ROM, etc, but not your SD card.
  • Nandroid backups can be restored after flashing, but only if their contents fit on the new partition layout and they correspond to the same Gen. If unsure, don�t rely on it. Backup all your data before flashing.
  • Do not mix and match files from different firmware packages. Some combinations will cause a permanent brick.
  • Do not use any firmware files from outside this post (e.g. other TPT files) with this method. Using these can result in a corrupt IMEI.
  • If you are trying to unlock extra RAM on your 256MB Blade, be aware that although all European GSM Blades I know about can be unlocked, your Blade might be the first one that can�t. If it can�t, you may end up with a brick.
Downloads
Before you begin, download these three files to your Blade�s SD card:

  • restore_stock_recovery.zip (md5:F7D1EA48A334E86A468A66B00A833E9A): This restores the stock recovery image if you have replaced it with clockworkmod. Stock recovery is necessary for the flashing process.
  • recovery-clockwork-5.0.2.0-blade-gen2-update_signed.zip (md5:17fbb1b404b4d6780fb799583ba90708): this re-flashes clockworkmod after the upgrade process so you can install a ROM. If you want to flash Gen1 firmware, you must use recovery-clockwork-4.0.0.5-blade-gen1-update_signed.zip (md5:3e8b9cd53c85697f8b9dd14643e896fa) instead. your current installation of clockworkmod will be overwritten in the flashing process.
  • A ROM to install from clockworkmod after flashing the firmware, so that you have a working phone. If you are unsure, use Swedish Spring, as it is compatible with Gen1 and Gen2.
Next, download one of the firmware packages from below and extract it to a folder on your computer. If want to use Gen2 ROMs, pick the first one, unless you have a good reason not to. All packages below will unlock hidden RAM.

Firmware packages

custom Gen2 160 v10 (md5:3bba5273f14dea9c971178f8f6fa4b2d) (Recommended)
  • Gen2 radio and memory layout
  • Partition layout: 2MB cache, 160 MB system, 294MB data
  • Fastboot enabled
  • Compatible with Gen1 TPTs
  • This partition layout is the most efficient for CM7 and most custom ROMs. 140MB is not quite enough for the latest releases.
custom Gen2 215 v10 (md5:dba6a95c0bc33333a6c04e87ca4b380e)
  • Gen2 radio and memory layout
  • Partition layout: 38MB cache, 215MB system, 204MB data
  • Fastboot enabled
  • Compatible with Gen1 TPTs
  • This partition layout is necessary for most stock ROMs and for early builds of ICS/CM9.
custom Gen2 v7b (md5:4630F7165EE331FD2EBFC2679D3AAAC1)
  • Gen2 radio and memory layout
  • Partition layout: 2MB cache, 140 MB system, 314MB data
  • Fastboot enabled
  • Compatible with Gen1 TPTs
  • If you flash this to a Gen2 Blade with a 136MB partition layout from the old windows flasher, you will be able to restore your nandroid backup afterwards (both firmwares are Gen2 and the system and data partition are both bigger)
Stock Gen2 (md5:85D7B01156C2E713FA927C78D2C39D53)
  • Gen2 radio and memory layout
  • Stock Gen2 Partition layout: 37.5MB cache, 220MB system, 162.5MB data.
  • Fastboot disabled
  • Compatible with Gen2 TPTs (image.bin)

Stock Gen3 (md5:3f3cc4b6b45fac19bdcbe3bd8b380445)
  • Gen3 radio and Gen2/Gen3 memory layout
  • Stock Gen3 Partition layout: 200MB system, 162MB Data, 57MB cache
  • Fastboot probably disabled
  • Compatible with Gen2 TPTs (image.bin)
Gen2 with 136MB system (md5:12F238321EDA5B5CB2F4569E1FD3C08B)
  • Gen2 radio and memory layout
  • Partition layout: 2MB cache, 136MB system, 303MB data.
  • Fastboot disabled
  • Compatible with Gen2 TPTs (image.bin)
Stock Gen1 (md5:27917857EFA40ADCECDD1B7793263229)
  • Gen1 radio and memory layout
  • Stock Gen1 partition Layout: 41MB cache, 207.5MB system, 208MB data
  • Fastboot enabled
  • Compatible with Gen1 TPTs
Gen1 with 128MB system (md5:64EEE62012A78231C9F5ECD475D72C84)
  • Gen1 radio and memory layout
  • Partition Layout: 41MB cache, 128MB system, 287.5MB data
  • Fastboot enabled
  • Compatible with Gen1 TPTs
How to Flash
  • If you intend to keep your ROM/Data, make a nandroid backup. Be aware that depending on which firmware you go from/to, it may not fit on your new partition layout and/or your ROM may not be compatible with your new memory layout.
  • Make sure you have saved the three files above to your SD card. The version (gen1/gen2) of clockworkmod and your new ROM should match the Gen you are flashing to. Make sure your Blade has plenty of battery.
  • Boot your phone into recovery mode by turning it on with volume down held. If the words FTM appear on the screen, go to the next step. If you find yourself in clockworkmod or AmonRa, flash restore_stock_recovery.zip and reboot with volume down held. The words FTM should now appear on the screen. Note that you have now removed clockworkmod - you can restore it after flashing.
  • Connect your phone to your PC via USB.
  • Unzip the contents of the firmware package you want to flash. Start the program called �download.exe� in the root folder. When the flasher window comes up, press the start button. If the start button is not clickable, use �driverinstaller.exe� to install ZTE drivers and make sure your phone is connected and in FTM mode.
  • Wait a few minutes for your phone to be flashed. The screen will turn black for a while. Do not interrupt this process. A message will inform you when flashing is complete.
  • Disconnect your phone and remove the battery. Reinsert the battery and turn on the phone (normally, with no buttons pressed). Your phone should boot into clockworkmod recovery.
  • IMPORTANT: clockworkmod is now installed to your phone�s boot partition. This means that if you install a ROM at this point you will overwrite clockworkmod. You must now flash the correct version of clockworkmod (recovery-clockwork 4.0.0.5-blade-genX-update_signed.zip) from your SD card. This will install clockworkmod to the recovery partition where it belongs.
  • Restart your phone with volume down held. It should boot into clockworkmod. If it boots into FTM mode or does not progress pass the green android, go back to step 7 and make sure you flashed the correct version of clockworkmod.
  • In clockworkmod, install the ROM you downloaded previously or restore your nandroid backup. Reboot and enjoy your new firmware. If you flashed a TPT compatible firmware, then use TPT if you ever want to repartition again.
Troubleshooting
If the flasher fails at 98% and your phone will only boot into FTM mode, or if your IMEI is lost in the process for any reason, then it can usually be fixed. The problem is that the flasher failed to restore NV memory after flashing your phone. Save "channel1.nvm" from the folder that you ran the flasher from (this file contains your IMEI and NV memory) and follow the instructions in this thread to restore it to your phone. If you already have that file then you can just restore it straight away without any hex editing or firmware flashing. This will make it boot properly and with the correct IMEI.

How this works
All the packages above contain the Gen2 flasher patched by mrradmir. They each contain a set of the usual .mbn firmware files in the files folder. The lost IMEI problem is avoided because the recovery.img in the firmware folders contains the appropriate stock recovery image rather than clockworkmod. The flasher automatically boots the phone into FTM mode near the end of the flashing process and restores the IMEI if necessary, with no user intervention. Clockworkmod is initially installed to the boot partition instead. All packages also contain blank system and userdata images to prevent problems caused by corrupt data after repartitioning, as well as a standard splash image, which is required if it is moved by a new partition layout. Thanks to The Soup Thief, hecatae, wbaw, mrradmir, and others for contributing to all this.


go to link download

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.