[Atrix 4G General] sylecn:
There are some noob tutorial around, but none of them specifically says

anything about 4.5.141 unless you dig quite some pages at the end of the

threads. This post is not going to be a complete guide or tutorial, nor it is

going to be a detailed how-to. It will be a breif how-to that tells you what

works on 4.5.141 and give you some confidence when rooting and unlocking

4.5.141.

Before flashing a new rom on your stock atrix, you should understand the risks

of losing data, voided warranty, malfunction of the new rom, or even get your

phone hard bricked. if you were worried, and still are worried after reading

many XDA threads, a new rom is not for you. The stock ROM is not that bad.

Enough talk, let's get to the point of how to get CM7.2RC2 running on your

phone.

Table of Contents

1 PRE-CONDITIONS

2 BRIEF PROCESS

3 DETAILS

1 PRE-CONDITIONS

Atrix phone.

Stock rom running 4.5.141, stock bootloader.

If you have rooted your phone, or have unlocked your bootloader, just skip

the corresponding step.

If you are running versions below 4.5.141, there are ready-made scripts to

do things.

I myself use an SD card, but I don't think it's necessary to flash

CM7.2RC2 or gapps. (Please correct me if I'm wrong.)

Windows OS.

Motorola only offers phone drivers to Windows OS.

Internet access.

You will need to download files from some file sharing websites.

USB Cable.

For connecting your phone to Windows PC and run commands.

Know how to run a command line application in Windows.

I won't tell you how to use unzip, cmd.exe, and cd commands. I won't tell

you about PATH, directorys and file names. If you are looking for a

word-by-word tutorial, stop now.

2 BRIEF PROCESS

Download CM7.2RC2 zip file and gapps.

Backup important user data.

Root your phone so that you can run Titan Backup.

Backup all your data, including app data that you wish to keep.

Unlock bootloader.

[Root again &] flash recovery. //read why I root again in details.

Flash rom and gapps.

Config CM7.2, restore app data.

3 DETAILS

Before I start, I need to say I only own an AT&T atrix, other atrix could have

some differences, please read the threads that I refer to to get more

information.

Download CM7.2RC2 zip file and gapps.

CM7.2RC2

http://download.cyanogenmod.com/?device=olympus

download update-cm-7.2.0-RC2-olympus-signed.zip

gapps

http://wiki.cyanogenmod.com/wiki/Latest_Version/Google_Apps

download the one for CyanogenMod 7.

Store CM7.2RC2 to your internal storage.

Store gapps to your SD card. [I don't know why.]

Store them to both place if you are unsure. [That's what I did.]

On stock rom, internal storage is mounted at mnt/sdcard, SD card is

mounted at mnt/sdcard-ext.

# Could someone tell me why where to store the zip file matters?

# I see Romracer's Recovery can flash zip file in either place.

Back up important user data.

Everyone has different things to back up.

My list includes:

Contacts.

App settings & data

if the app support "backup to SD card" alike function, do it.

if the app support syncing, do it.

this includes syncing all items on google account.

for other apps, you may use Titan Backup later to backup data.

bookmarks.

ssh keys stored on phone.

icons on Home screen.

a list of installed apps.

Photos/Camrecords.

Musics

PDFs

network and VPN settings

I purposely do not mention apps I am using to avoid advertising.

Root your phone so that you can run Titan Backup.

I don't think rooting your phone is necessary at this stage, but I did it

in order to use Titan Backup. If you have nothing worth backing up, you may

skip this. (Please tell me if I'm wrong here.)

[install Motorola USB drivers]

http://www.motorola.com/Support/US-EN/Support-Homepage/Software_and_Drivers/USB-and-PC-Charging-Drivers

download the all-in-one driver and install it.

[download the tools and preinstall.img file.]

http://hotfile.com/dl/147091460/bb5f4c5/moto-fastboot-win32.7z.html

download the 7z file, and unzip it using winrar or 7-zip.

7-zip is free software, google it for download.

boot to fastboot mode.

Power off your phone. hold Volume Down, press Power.

when the screen show fastboot, press Volume Up to enter fastboot mode.

(Press Volume Down will cycle all mode choices, press Volume Up selects the

mode that is shown on the screen.)

flash preinstall, reboot.

unzip the 7z file you downloaded, start cmd.exe and go to that dir.

connect phone to Windows PC using usb cable.

run these commands:

moto-fastboot flash preinstall preinstall.img
moto-fastboot reboot

replace /system/bin/su with /preinstall/su and set permission to 6755.

when phone is fully rebooted, enable USB debugging.

Settings > Application > Development > USB debugging

Disconnect and reconnect the cable if windows does not find your phone.

run these commands:

adb shell
/preinstall/dosu
/bin/mount /system -o remount,rw
cp /preinstall/su /system/bin/su
chmod 6755 /system/bin/su
PATH=/system/bin:$PATH pm install /preinstall/Superuser.apk
exit
exit

Notes:

If "adb shell" fails, try disconnect and reconnect cable.

On success, it shows "$" on a new line.

when running "/preinstall/dosu", you can ignore this error:

"bash: groups: command not found".

done.

now you are rooted, you can disconnect USB cable if you wish.

Backup all your data, including app data that you wish to keep.

More backups won't hurt. Now it's time to backup all your apps and files.

Now that you are rooted, you can install Titan Backup and backup the

non-system apps. Back up other apps as you wish. I'm completely new to

Titan Backup. I only used it to backup non-system apps, for the purpose of

restoring app data later.

Note that CM7.2RC2 is based on android 2.3.7, while 4.5.141 is based on

android 2.3.6. I did not try to restore 2.3.6 stock app data to 2.3.7

myself to avoid any possible error.

If for some reason, Titan Backup told you you are not rooted, just do the

root step again. It does no harm to your phone.

Unlock bootloader.

[install motorola USB drivers]

if you haven't done this. Do it now. see download link at step 3.

[download RSD, fastboot, and the small 1MB SBF file.]

moto-fastboot is included in the 7z file in step 3.

RSDLite and the 1MB SBF file download:

http://xdaforums.com/showthread.php?t=1136261

scroll to the "Unlock:" section.

"Unlocker only SBFs - These small 1mb SBF files will get your phone ready

to fasboot oem unlock. They are the files most people should use."

Notice that the 1MB SBF file is different for ATT and other atrix.

Choose the correct version.

Power off atrix. take out microSD card and sim card. [not sure why]

Flash the small SBF file using RSD Lite.

Unzip the downloaded small SBF file.

Install RSDLite.

Boot phone to RSD mode. Connect USB cable. Run RSD Lite on Windows PC,

select the unzipped .sbf file, press Start.

[I guess you know how to boot to different modes now. But just in case,

first Power off your phone, hold Volume Down and press Power, when screen

show "fastboot", press Volume Down to cycle between choices, when it show

"RSD", press Volume Up to confirm.]

The phone will disconnect and connect again and may goto other modes

automatically. Watch the progress shown in RSDLite window.

Here is a side story: while I'm flash this, the phone switch to fastboot

mode automatically, when RSDLite is waiting for the phone to go to BP

pass ?? mode, at progress 98%. I didn't notice it is still waiting for

the phone, when I see it goes to fastboot, I just run the fastboot oem

unlock command in the next step, and the phone get unlocked successfully,

then I reboot it with fastboot reboot. But when the reboot finished, the

phone asks me to setup moto blur and google account. apps and user

configs are gone. But I don't care, becaue I have all important things

backed up. I just skipped most of the setup because I'm going to flash a

new ROM. So it looks like the phone did a factory reset after the

unlock. I also lost root after this. Could someone tell me is this

expected behavior of a normal unlock, or is this a consequence that I

failed to let RSDLite work to the full 100% progress?

Do fastboot oem unlock.

Boot phone to fastboot mode. connect USB cable.

Switch to the dir that contains moto-fastboot, then run these commands:

moto-fastboot oem unlock //It will print your device ID.
moto-fastboot oem unlock <your-device-ID>
moto-fastboot reboot

Done.

When your phone reboot, you will notice the unlocked red text on motorola

screen.

I hope you did not get a factory reset. But if it did, don't panic.

[Root again &] flash recovery.

I definitely do not want to root again here, but my phone looks as if it

has got a factory reset when I was unlocking the bootloader. And I lose

root as a result. I could just go ahead and flash recovery, but it turns

out I need to delete a file in /system partition before I can boot into

Romracer's Recovery. To delete that file, I need root.

[download Romracer's Recovery]

http://xdaforums.com/showthread.php?t=1204500

You can download any of the recovery file listed there under "ALL USERS".

To root again, just redo step 3.

Rename (or delete) /system/etc/install-recovery.sh using a root file

manager.

When you are fully rebooted, install a root file manager (for example, ES

file explorer), and rename /system/etc/install-recovery.sh to

install-recovery.sh.bak

Until you rename or delete this file, you can't boot into the recovery

you are going to flash. Because the recovery file will be replaced when

the phone boots.

flash recovery.

If you downloaded zip file, unzip it.

Then copy img file to the dir that contains moto-fastboot.exe.

Boot phone to fastboot mode, connect phone to Windows PC, go to

moto-fastboot dir, run these commands:

moto-fastboot erase recovery
moto-fastboot flash recovery recovery-atrix5.img
moto-fastboot reboot

Flash rom and gapps.

Preparation

If your battery is low, replace battery now. There is no stop and resume

support when making a backup or flashing a new ROM.

If you have taken out microSD card and sim card when unlocking

bootloader, you should put it back now.

Boot into recovery mode.

Inside recovery, press Volume Up and Volume Down to go up and down.

Press Menu soft key to confirm.

Do a backup.

Go to Backup & Restore and create a backup.

You will be asked whether to include webtop in the backup.

If you do, expect the backup to take a long time. (~30 minutes)

Flash CM7.2RC2 and gapps.

In recovery menu, choose install zip file from SD card.

Locate the CM7.2 zip file, and confirm flash.

When done, you need to wipe some data/cache, confirm wipe in each step:

wipe data/factory reset

wipe cache partition

Advanced > wipe Dalvik Cache

When asked whether to include sdcard-ext, I chose yes.

Done.

You are ready to reboot the CM7.2RC2.

Config CM7.2, restore app data.

Some configs you may want to tweak:

Home Screen > Menu > More > Wallpaper

CM settings > Display Settings > Screen-off animation > off

Display > Brightness > [auto]

Display > Animation > none

Date & Time > Select time zone

Sound > Phone ringtone

Sound > Notification ringtone

Sound > Haptic feedback > off //vibrate when pressing soft keys

CM settings > Sounds > Mute camera shutter

CM settings > Input > Long-press menu > soft keyboard

Some first impressions of built-in apps and the CM7.2 ROM.

The Motorola stock quickoffice is gone. you might want to instal Adobe

Reader for PDFs.

Stock gallery is unusable, it's worse than Motorola stock Gallery. Just

use Quickpic and set your image/photo directories.

ADWLauncher has 3 icons in the stock, you can change it to 5 icons.

ADWLauncher > UI Settings > Main Dock Style > 5 Icons

Now you can go ahead and install apps you use from Market(Google Play).

You can restore user app backups from Titan Backup.

Enjoy CM7.2

All credit goes to XDA members, CyanogenMod team and Motorola Corp for the mod, tools, files and drivers that they developed and released. Without them this how-to won't be possible.

This code is translated from org-mode text to html then to BBCode, I'm sorry if the formatting looks a bit alien.