FORUMS
Remove All Ads from XDA

[HOW TO][Unlocked Bootloaders]Install Fastboots, CWM, Tips & Ticks, and More

3,072 posts
Thanks Meter: 3,058
 
By skeevydude, Recognized Contributor on 8th April 2013, 08:05 PM
Post Reply Email Thread
Now that the bootloader is unlocked, everyone is asking "WTF do I do now?". Well, here's a bit of help to get you started. I'm assuming you already have adb and fastboot setup and working -- if not, quit reading and get that taken care of. Also, I only run Linux...so I'll try to be transparent and only list the fastboot commands.

I assume that you're not a complete moron and can Google what you don't understand.

Don't use the stock\SDK fastboot binary for flashing /system.
An updated fastboot binary for Lin\Win\Mac can be found here on the Batakang FTP from our local, neighborhood Mattlgroff.
Linux -- Rename the file to moto-fastboot and add it to a directory in your $PATH -- Ubuntu\Debian users can just add it to ~/bin (enabled by default)
Windows -- Rename the file to moto-fastboot and put it somewhere handy...that's on you to decide.

ROOT\ADMINISTRATOR INFO
On Linux, you might have to run as root in order to run some of the fastboot commands. If your system uses sudo for root commands, typing "sudo -i" will bring up an interactive sudo shell so you don't have to type sudo over and over again. If your system uses su for root, well, you already know the command.

On Windows, you have to enable Administrator Privileges to be able to run some of the fastboot commands.

Linux Terminal Hints
~/ means your home directory -- example -- "gedit ~/Documents/file.txt" would open file.txt in gedit easier than /home/yourusername/Documents/file.txt

You can add a * to file names and directories to not type as much -- example -- "gedit ~/Doc*/file.txt" is the same as the command above, only shortened. If two files have similar names, like Documents and Downloads, then you have to type the name up until the firs different character then add *.

Use the command "../" to go up\back one directory. The command is stackable so "../../" would go back 2 directories and so forth and so on.

Use "cd" to change directories. Is an example really needed for this...

Proper Apps to Use
For zip file editing, use 7-zip on Windows and Archive Manager (file-roller) on Linux
For editing text files on Windows use Notepad++ or any text editor that has unix line breaks -- do not use default Notepad or Wordpad -- you've been warned. Use what ever you prefer on Linux. I prefer Gedit myself.

Basic Fastboot Command Syntax
  • fastboot flash "partition" "image" -- flashes partition image where partition is where to write to and image is the path to the image being written.
    example -- fastboot flash system /path/to/system.img
  • fastboot -w -- does a factory reset; to expedite things, "-w" can be added to "fastboot flash system system.img -w"
  • fastboot continue -- continue with the boot process
  • fastboot devices -- list devices fastboot recoginzes
  • fastboot -s "device model number" -- set the device fastboot will write commands to; use "fastboot devices" to find model number
  • fastboot reboot bootloader -- reboot phone into fastboot mode (or restart fastboot mode while in fastboot); same as "adb reboot bootloader"
  • fastboot help -- list all of this & more

Command Info
Not all the fastboot commands work for us. Specifically, the "erase" commands. If a wipe command doesn't work, skip it. I'll mark them with a ! at the end if it might fail.

Install CWM Recovery by Epinter
  1. Read Epinter's RAZR HD CWM Thread
  2. Download the recovery image
  3. On stock rom, navigate to /system/etc and rename install-recovery.sh to install-recovery.sh.bak
  4. Reboot into fastboot -- use "adb reboot bootloader" from Terminal\Command Prompt
  5. Wipe the existing recovery -- "fastboot erase recovery" !
  6. Flash the recovery with "fastboot flash recovery cwmrecovery6028-xt925_20130219-epinter.img"
  7. That's it, CWM is installed.

Install Stock Fastboots JB
  1. Download the respective fastboot zip you want to use
  2. Extract the zip
  3. Open a terminal to the extracted zips directory
  4. Reboot into fastboot
  5. Type the following commands in this order
  6. fastboot flash boot boot.img
  7. fastboot flash devtree device_tree.bin
  8. fastboot erase system -w !
  9. fastboot flash system system.img
  10. fastboot -w
  11. fastboot erase cache !
  12. fastboot reboot

Install Stock Fastboots ICS
  1. Download the respective fastboot zip you want to use
  2. Extract the zip
  3. Open a terminal to the extracted zips directory
  4. Reboot into fastboot
  5. Type the following commands in this order
  6. fastboot flash boot boot.img
  7. fastboot flash devtree device_tree.bin
  8. fastboot erase system -w !
  9. fastboot flash system system.img.ext4
  10. fastboot erase cache !
  11. fastboot -w
  12. fastboot reboot

Install Alternate Radio
  1. Reboot into fastboot
  2. fastboot flash modem NON-HLOS.bin
  3. fastboot flash fsg fsg.mbn
  4. fastboot erase modemst1
  5. fastboot erase modemst2
NON-HLOS.bin is found inside a fastboot zip.

Easy Kernel Install
  1. Download kernel-flash.zip in the attachments[/URL]
  2. Open the zip
  3. Replace the zips current boot.img and device_tree.bin from the fastboot of your choice
  4. Install the zip with CWM
By default, kernel-flash.zip comes with Mex Retail kernel and devtree

Easy CWM Install
  1. Download recovery-flash.zip in the attachments[/URL]
  2. Install the zip with CWM
Not sure if its SS compatible, but it is CWM compatible (for the lazy Photon Q users).

Obtain root after installing a Stock Firmware
There are two choices for obtaining root after a stock flash. the closed source SuperSu by Chainfire & and the open source Superuser by Koush.
Download SuperSu zip from Chainfire (Closed Source)
Download Superuser from Koush (Open Source)
  1. Download the one of the root zips above.
  2. Reboot into CWM/TWRP -- adb reboot recovery
  3. Locate and flash the zip (see below for an alternative way)
  4. Reboot, that's it. Nice not having to run exploits\hacks\Linux just for root

Install Rom/Zip file with ADB + CWM
CWM has the awesome ability to install zip files without having to manually copy them to the phone first. All's necessary is a PC with working adb.
  • Reboot into recovery
  • Select "install zip from sideload"
  • On PC, type "adb sideload /path/to/zip" and press enter
  • The zip will now be copied to the phone's cache & install
  • Once installed, do any requirements you'd normally do like wipe caches, etc
Attached Files
File Type: zip kernel-flash.zip - [Click for QR Code] (5.55 MB, 1347 views)
File Type: zip recovery-flash.zip - [Click for QR Code] (6.62 MB, 2607 views)
The Following 39 Users Say Thank You to skeevydude For This Useful Post: [ View ] Gift skeevydude Ad-Free
 
 
8th April 2013, 08:15 PM |#2  
Junior Member
Thanks Meter: 3
 
More
I have done this numerous times and it still will not boot into recovery. I have read and followed epinter, yours, official cwm, and other various Google found instructions (none of them functionally different) and still the same result. It recognizes the phone, writes, completes, then if I reboot and select recovery it goes to the android with the open chest cover with the exclamation point....

Any ideas how I could be screwing this up?

Sent from my MB886 using Tapatalk 2
8th April 2013, 08:20 PM |#3  
worlddominatiin's Avatar
Senior Member
Flag Houston
Thanks Meter: 47
 
More
Quote:
Originally Posted by miketravis

I have done this numerous times and it still will not boot into recovery. I have read and followed epinter, yours, official cwm, and other various Google found instructions (none of them functionally different) and still the same result. It recognizes the phone, writes, completes, then if I reboot and select recovery it goes to the android with the open chest cover with the exclamation point....

Any ideas how I could be screwing this up?

Sent from my MB886 using Tapatalk 2

Unless you're not rooted with an unlocked BL, there's really no reason why it shouldn't work?

Sent from my N4'd Atrix HD
8th April 2013, 08:24 PM |#4  
Junior Member
Thanks Meter: 3
 
More
I was rooted before unlocking... shouldn't it still be rooted?

Sent from my MB886 using Tapatalk 2
8th April 2013, 08:26 PM |#5  
LeGenDz R3DeaDz's Avatar
Senior Member
Montreal
Thanks Meter: 15
 
More
Quote:
Originally Posted by miketravis

I have done this numerous times and it still will not boot into recovery. I have read and followed epinter, yours, official cwm, and other various Google found instructions (none of them functionally different) and still the same result. It recognizes the phone, writes, completes, then if I reboot and select recovery it goes to the android with the open chest cover with the exclamation point....

Any ideas how I could be screwing this up?

Sent from my MB886 using Tapatalk 2

Did you uninstall safestrap?
8th April 2013, 08:40 PM |#6  
Junior Member
Thanks Meter: 3
 
More
Yep. Should I reinstall it and try again?

Sent from my MB886 using Tapatalk 2

---------- Post added at 01:40 PM ---------- Previous post was at 01:30 PM ----------

reinstalled safestrap and tried again, success!!

Not sure why that made a difference but I got it so thank you very much.
8th April 2013, 08:54 PM |#7  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by miketravis

Yep. Should I reinstall it and try again?

Sent from my MB886 using Tapatalk 2

---------- Post added at 01:40 PM ---------- Previous post was at 01:30 PM ----------

reinstalled safestrap and tried again, success!!

Not sure why that made a difference but I got it so thank you very much.

Still did not work for me
8th April 2013, 09:03 PM |#8  
Junior Member
Thanks Meter: 3
 
More
Did you install recovery inside safestrap? Then fastboot cwm?

Sent from my MB886 using Tapatalk 2
8th April 2013, 09:12 PM |#9  
Senior Member
Thanks Meter: 55
 
More
Quote:
Originally Posted by miketravis

Did you install recovery inside safestrap? Then fastboot cwm?

Sent from my MB886 using Tapatalk 2

Yes, I did. After fastboot, I followed the OP instructions to uninstalling the SS recovery and SS app. Boot into recovery and got the open android.
8th April 2013, 09:20 PM |#10  
Senior Member
Thanks Meter: 69
 
More
Quote:
Originally Posted by tvd0405

Yes, I did. After fastboot, I followed the OP instructions to uninstalling the SS recovery and SS app. Boot into recovery and got the open android.

same here.
8th April 2013, 09:27 PM |#11  
Junior Member
Thanks Meter: 1
 
More
I have the same problem. I was able to flash cwm, uninstall the SS recovery, and uninstall the app. The first time I got the dead android symbol. I restored SS via Titanium Backup, reinstalled the SS recovery, and flashed cwm again. I tried rebooting into recovery and was able to get cwm working. As soon I uninstalled SS and rebooted, I got another dead android.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes