[Motorola Photon 4G] tdhite:
THE PHOTON 4G INSTRUCTIONS FOR DEBIAN LINUX IN WEBTOP MODE

First -- the important legal stuff (repeated in the script files so you can read there instead)-- then the instructions:

# This work is based on the work by SystemR89 on the xda-developers forum.

# It therefore acknowledges that work, and carries all of the disclaimers

# also inherent in the body of work by SystemR89.

# See http://xdaforums.com/showthread.php?t=1093790 for more.

# LEGAL DISCLAIMERS AND ASSUMPTION OF THE RISK BY THE USER OF THIS PROGRAM

# Assumption of the Risk of Use

# You assume, and agree to assume, all the risk of harm by using this

# program. This program may void your warranty with a third party,

# it may improperly operate and damage your device, it may cause any

# myriad of harmful outcomes regarding your device. You acknowledge that

# you are aware of those risks, understand those risks, and voluntarily

# and intelligently elect to engage those risks by using the program.

#Disclaimer of Warranty.

# THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE

# LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR

# OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND,

# EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED

# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

# THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH

# YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL

# NECESSARY SERVICING, REPAIR OR CORRECTION.

#Limitation of Liability.

# IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL

# ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE

# PROGRAM, PERMITTED OR NOT, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY

# GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE

# USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS

# OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR

# THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER

# PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE

# POSSIBILITY OF SUCH DAMAGES.

Prerequisites:

Rooted Motorola Photon 4G Phone

BusyBox installed using the BusyBox Installer

In short, you should know how to, and have already rooted your phone. Second, you should be able to type: /system/xbin/busybox and not get an error.

Step by Steps:

Since you are installing a Linux mod on your phone, I'll assume you already have familiarity with Linux and therefore the instructions below discuss that. The same nature works for Windows, the only difference is the commands (you should know those, or you should not do this mod).

1) Read http://xdaforums.com/showthread.php?t=1093790. Particularly, look at the Prerequisites section -- the only difference here is where that discussion mentions "Atrix," you are using a "Photon";

2) On your computer: Make a working directory for the files and change to it:

mkdir photonmod
cd photonmod

3) On your computer: Download the Installer (a.k.a. easy-signed.zip) on that page into your working directory:

browse to: http://www.multiupload.com/C5GEIHDEM0

4) Download the files for this mod: photon_webtop_mod.zip:

wget http://www.4shared.com/zip/vkPYLVf7/photon_webtop_mod__1_.html

Notes:

I will move the file later, when I get a valid upload site for the Photon forum, but 'til then, you can use my server as per the above link.

The md5 hash for that file is as follows:

7df2fa818ddb15f1586695028b7024fd photon_webtop_mod.zip

At this point, in your working directory (photonmod), you should have two files, the two zips downloaded above.​

4) On your computer: unzip the easy-signed.zip file (downloaded in step 3 above):

unzip easy_v0.2.7-signed.zip

6) Remove uninteresting files (from the Photon's perspective) from the easy-signed.zip file:

rm -rf META-INF
rm -f webtopmod.sh

7) On your computer: unzip the photon photon_webtop_mod.zip file (downloaded in step 4 above):

unzip photon_webtop_mod.zip

Notes:

At this point, you should see the install.sh and webtopmod.sh files for the photon, and also the uninstall directory (which has uninstaller scripts for the photon) and the directories and files necessary from the easy-install.zip file from the Atrix forum.​

8) On your computer: Remove the downloads, zip up the webtopmod files and push it to your phone:

rm -f photon_webtop_mod.zip
rm -f easy_v0.2.7-signed.zip
zip -r ../photonmod.zip .
adb push ../photonmod.zip /mnt/sdcard/

9) Now open a shell on your phone and switch to super user:

adb shell

10) On your phone: Switch to the super user:

su

11) On your phone: Change directories to /data/local/tmp:

cd /data/local/tmp

12) On your phone: Make certain you did that correctly:

pwd

Notes:

Should return /data/local/tmp -- if not, to back to step 11 above.​

13) On your phone: Unzip the photonmod zip file into the /data/local/tmp directory:

/system/xbin/unzip /mnt/sdcard/photonmod.zip

14) On your phone: Set the execute bit on the install scripts:

/system/xbin/chmod +x install.sh
/system/xbin/chmod +x webtopmod.sh

15) On your phone: Run the installer in test mode and review the results:

./install.sh -m test

Notes:

That will show you exactly what commands the install script will execute. Review that very carefully and be sure you agree with it.​

16) On your phone: Run the installer in install mode and it will install the files necessary to start Debian Linux:

./install.sh -m install

17) After that -- go to the original Atrix post and get the disk image file and place it as that page describes (look for the text: "0) Download Debian disk - http://droid.makrit.net/WebTopMOD/WebTopMOD-20110707.7z").

Uninstalling the MOD:

The unpacked files in /data/local/tmp included an uninstaller script. To execute that:

1) On your computer: Open a shell on your phone:

adb shell

2) On your phone: become super user and change directories to the uninstaller:

cd /data/local/tmp/uninstall
su

3) On your phone: Set the execute bits on the restore scripts:

/system/xbin/chmod +x uninstall.sh
/system/xbin/chmod +x webtop_restore.sh

4) On your phone: Run the uninstaller for the commands it will execute:

./uninstall.sh -m test

Review that and if you agree, go ahead ...

5) On your phone: Run the uninstaller in 'restore' mode:

./uninstall.sh -m restore

As a final note -- this mod prepares your phone for running Debian Linux in a chroot-ed environment. You need the debian disk image. Rather than duplicate those instructions (essentially downloading and placing the disk image file in the correct place), please read the original Atrix thread at: http://xdaforums.com/showthread.php?t=1093790. You will download the http://droid.makrit.net/WebTopMOD/WebTopMOD-20110707.7z file to your computer, unpack it (it's a 7zip file) and thereafter copy it to your phone.

I'll try to keep up with folks responding for help requests, or otherwise.

-- Tom