Fastboot untuk flash ROM

From OnnoWiki
Jump to navigation Jump to search

Helpful Tip

On some GNU/Linux distributions, like Debian Sid, you can install fastboot just with this command:

sudo apt-get install android-tools-fastboot


Then ensure that your phone is in bootloader mode:

fastboot devices

NOTE: If you are on Linux or Windows, you must use the version of fastboot for that platform: fastboot-m is for Mac OS X.

fastboot-m boot go2.lol

The phone will reboot and stop on the Nexus X screen. Note (see above) the correct file may be named go33.lol or go35.lol rather than go2.lol

fastboot-m flash hboot hboot_blackrose.nb0

If this process freezes here, you have used the incorrect goXX.lol file. Find your HBOOT version at the top of the FastBoot screen, download the latest version of BlackRose, and do over with the correct goXX.lol file.

fastboot flash hboot hboot_220-16-200.nb0
fastboot reboot-bootloader

This will reboot into the bootloader. The top of the screen should now read *** BlackRose ***. Now we will have to reflash CWM.



You can use fastboot to install your recovery image to the device.

Installing ClockworkMod Recovery on the device

  • Connect the device to the computer via USB.
  • Make sure the fastboot binary is in your PATH or that you place the downloaded image in the same directory as fastboot.
  • Open a terminal on your PC and reboot the device into fastboot mode by typing
adb reboot bootloader

or by using the hardware key combination.

  • Once the device is in fastboot mode, verify your PC sees the device by typing
fastboot devices
  • If you don't see your device serial number, and instead see "<waiting for device>", fastboot is not configured properly on your machine. See fastboot documentation for more info.
  • Flash ClockworkMod Recovery onto your device by entering the following command:
fastboot flash recovery your_recovery_image.img

where the latter part is the name of the file you downloaded.

  • Once the flash completes successfully, reboot the device into recovery to verify the installation.
  • Note: Some ROMs overwrite recovery at boot time so if you do not plan to immediately boot into recovery to install CyanogenMod, please be aware that this may overwrite your custom recovery with the stock one.


Referensi