[EVO 4G Android Development] lithid-cm:
For anyone having issues with running this in linux.

I used zikronix guide and modified it for use in a linux support thread. The original thread can be found here:

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

This is my setup:

-I made sure to show my .bashrc profile and path to my tools folder if you needed help getting that setup as well... If not please ignore.

lithid@Da-De-Do:~$ cat .bashrc | grep adb
alias start-adb='sudo /usr/local/android-sdk/tools/./adb start-server'
alias kill-adb='sudo /usr/local/android-sdk/tools/./adb kill-server'
lithid@Da-De-Do:~$ cat .bashrc | grep android-sdk
export PATH="/usr/local/android-sdk/tools/:${PATH}"
lithid@Da-De-Do:~$ $PATH
bash: /usr/local/android-sdk/tools/:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:

Download: http://www.wackynoodle.com/hboot202-s_off-V6.2.zip

Download (Mirror): http://sdx-downloads.com/EVO/devs/jerdog/fixes/hboot202-s_off-V6.2.zip

Now This might make things easier.

-I have this so that you are in the same enviroment that i was in so that the paths will be the same.

wget http://www.wackynoodle.com/hboot202-s_off-V6.2.zip
mkdir Evo-root
mv hboot202-s_off-V6.2.zip
cd Evo-root
unzip hboot202-s_off-V6.2.zip

- This step I just made sure that adb devices showed my device. If not get it working.

- Once adb devices showed my device properly, I simply ran the following commands.

adb push root/unrevoked-forever.zip /sdcard/
adb push root/mtd-eng.img /sdcard/
adb push pc36img/PC36IMG-ENG.zip /sdcard/PC36IMG.zip
adb push root/flash_image /data/local/
adb push root/rageagainstthecage /data/local/tmp
adb push root/amon_ra.img /sdcard/

- Then this is just changing permissions. Pretty straight forward.

adb shell
chmod 0755 /data/local/tmp/rageagainstthecage
chmod 0755 /data/local/flash_image

- Running the script. Should kick you out of adb... If not after 5 min kill the adb server and restart.

adb shell
./data/local/tmp/rageagainstthecage

- Now you should see a "#", if you do proceed. If not then run the script above again till it works.

adb shell

- If you saw that "#" run this. This can only be ran as root "#" means root.

./data/local/flash_image misc /sdcard/mtd-eng.img

Now you are going to want to reboot into the bootloader. Make sure once you do that you selet bootloader and let the PC36IMG.zip load.

reboot bootloader

After that is done reboot into the new rooted rom. Then make sure adb works again. Then run the following commands. Make sure you terminal is in the same directory this entire time there is no reason to leave the direcory we went into earlier "cd Evo-root" You directory should always be Evo-root. Thanks. The part that I found out was the second command where the entire recovery/ needed the permissions changed to be executable. As you saw in my post on that forum board.

- This will remove the PC36IMG.zip to a different name so that the bootloader won't get confused again. Then the second commands makes the directory executable recursivly. Then the third will reboot you into recovery.

adb shell mv /sdcard/PC36IMG.zip /sdcard/PC36IMG-ENG.zip
chmod -R +x recovery/
adb reboot recovery

- Now this is going to be done at the recovery screen. As long as you followed the steps above it will work fine. Should only take you about 20 mins to root this phone. Though it took me about 2 hours since no one else has been rooting using linux. I am thinking about writing a script that will root everything and alls you have to do is follow a terminal guide.... But ill see.

- Just run these commands that will allow you to flash the unrevoked-forever.zip. Once you follow the onscreen instructions of the unrevoked-forever.zip you will be able to reboot into the recovery and see the S-Off. Once that is done reboot into the rom, now we need to flash a custom recovery!

adb push recovery /
adb shell busybox --install /sbin
adb shell nohup /sbin/recovery &

- Again make sure your terminal was never closed and in the same folder. Then simply run these commands to flash the Amon_ra recovery. Since it has wimax capabilities I prefer it.

adb push root/flash_image /data/local/
adb shell
chmod 0755 /data/local/flash_image
./data/local/flash_image recovery /sdcard/amon_ra.img
reboot recovery

Now you should see the custom recovery and you should be able to flash any rom you desire!