Thursday, June 28, 2012

[copied]tutoriel: how using fastboot

Original Source: http://forum.geeksphone.com/index.php?topic=1981.0


i will explain how to use fastboot. fastboot is usefull if you want reflash original rom. if you have bootloop that can't be resolved in recovery( with wipe factory reset cache and reinstall cm no effect too on bootloop) the last remedy is fastboot.
but this tuto is for linux user because i haven't success to install nt-driver on xp or seven(maybe i'm a noob in windows  ;D )

 1) download platform-tools.zip it contain adb and fastboot. it is the simplified package from sdk android:
http://www.megaupload.com/?d=B320DBB2

2) dezip the package and copy adb and fastboot in /usr/bin (need to be root)
cp /path dezipped/adb /usr/bin
cp /path dezipped/fastboot /usr/bin

3)edit or create  if it don't exist : /etc/udev/rules.d/51-android.rules (need to be root)
you insert this line in:
SUBSYSTEMS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="9025", MODE="0666"

give permission:
chmod a+r /etc/udev/rules.d/51-android.rules

4) reboot the pc

5)now plug your zero to see if your pc detect it and type:
adb devices
this command must return the number of the device. if it the case you are right you can continue this tuto.

6)download the original rom and dezip it:
http://www.geeksphone.com/zerohome/ZERO_FINAL_Stock_Rom-zero-AP-20110314.zip

7) now we will enter in fastboot mode on your zero, type:
adb reboot bootloader

the phone will reboot in an empty screen black.don't be surprised it's normal(on htc phone it's a white screen the fastboot mode)

8)to be sure fastboot command work type:
fastboot devices
if it detect the phone it return "? ? ? ? ? ? ? ?" 

9)we will erase the contents of the userdata partition and erase the cache partition:
fastboot erase userdata
fastboot erase cache

10)now we will flash the original rom, with the file dezipped ZERO_FINAL_Stock_Rom-zero-AP-20110314.zip:

fastboot flash /path in your pc dezipped zero final stock rom/boot.img
fastboot flash /path in your pc  dezipped zero final stock rom/recovery.img
fastboot flash /path in your pc  dezipped zero final stock rom/system.img

yesterday this last line to flash system.img give me an error but it's not important because with the boot+recovery it's sufficient to reinstall CM7 with the new recovery flashed and that's worked for me and resolve my bootloop problem.

i forget to try this command maybe can working, flash directly the stock rom without dezipped in one command:
fastboot update /path to your/ZERO_FINAL_Stock_Rom-zero-AP-20110314.zip 

10)for more information about fastboot you can see:
http://developer.htc.com/adp.html
http://android-dls.com/wiki/index.php?title=Fastboot

No comments:

Post a Comment