yashsingh1/xdaforums huggingface dataset:
[EVO 4G Android Development] Calkulin:
Correct

10char
[EVO 4G Android Development] casual864:
Amazing work Calkulin! I am going to test this on mIuI.
[EVO 4G Android Development] Karadorde:
Thank you Calk. I was just looking into this thread over on the G1 forums. This is going to come in very handy.
[EVO 4G Android Development] bigbiff:
What recovery is the custom recovery based on?

EDIT

NM: Reading comprehension problems. :) Now I see that it patches the recovery. My other question is do you guys think resizing and creating a swap partition would be beneficial? I already have a lot of free space on /data after moving dalvik-cache to /cache.
[EVO 4G Android Development] mptherealmp:
Thanks Calk.

Just flashed this, nand restored, and I have 100+ mb available.

Edit: I have about 100mb MORE available than before making this mod on the same ROM/kernel combination.
[EVO 4G Android Development] xoreactionzox:
seems very ricky lol sorry but i have bricked 2 evos lol from not listening to what a guide says and trying my way lol

it would be really cool if someone made a tut and put it on utube or something there needs to be more vids on there of evo any way and no junkphone i mean iphone lol
[EVO 4G Android Development] phillymade:
ok, so I'm at system rom=367 and 167=free. So I would set my nubers at 200. So would I do 205/45 or should I just run off what is in the script?
[EVO 4G Android Development] Adam1422:
MTD settings

So in Titanium backup my system ROM says:

367 MB (13.5 MB free)

I have my mtdpartmap.txt at: mtd 350 50

Is this right? Why dont I have more system rom space free? What should my settings be? I am running Synergy RLS1. Thanks for the help in advance!
[EVO 4G Android Development] github:
The ROM takes up 367MB you can't limit the partition to 350MB as your settings show. You will need to be larger than 367MB.
[EVO 4G Android Development] Adam1422:
How much larger? 5-10 MBs? If I make the first number greater than I have to make the second number smaller right?
[EVO 4G Android Development] github:
Oops I read that wrong. Your total space is 367MB. You have 13.5MB free so:

367 - 13.5 = 353.5MB is used by your ROM. You should be able to set your MTD to be 354 and not have any issues. It can be as close to the max as you want, but I typically leave 2-3MB incase I need to add stuff to the system partition (push apks, libs, other stuff).

Sorry about the earlier confusion.
[EVO 4G Android Development] Adam1422:
So my MTD file on my sdcard should be:

MTD 360 40

???
[EVO 4G Android Development] github:
That would be acceptable. The 2nd number is cache partition size. YOu have some freedom there. 50, 40, etc. Trial and error, but 40 and 50 should be fine places to start.
[EVO 4G Android Development] Jfree3000:
How much Internal space do you have left? If you are using the carousel and extras items such as that then 13.5 is about right. This mod is used to free up Internal space on the phone as far as apps are considered. When I was using Synergy I had about 400MB of free space Internally. Sense 3.0 eats up all the System Rom.
[EVO 4G Android Development] Adam1422:
I have 339MBs free of internal space according to Titanium backup. I am not using the carousel. I am using the Orange Peel theme if that makes a diff.
[EVO 4G Android Development] Jfree3000:
Well then I don't know what is eating up all that space, but again this mod is to give you Internal space. I don't recall how much system Rom Synergy took up but I don't recall it being that high, try a clean install?
[EVO 4G Android Development] Bastafari:
Quick question? I just discovered this and helps a great deal. The new version of CWM Recovery doesnt work with the script so I changed to Amon Ra. Im not sure if my problem lies with the steps im taking or something else but when I flashed a new nightly I wipe the dalvik first, flashed the nightly, flashed the SZ kernel then flashed the EVO BOOT zip in the first post. When I reboot, I have to restore all my apps with TB and sign in to my google account which is a hastle and the partition didnt work, so I'll try again. So am I doing something wrong here?
[EVO 4G Android Development] ro_bro:
Did you do everything here?

http://xdaforums.com/showpost.php?p=15477767&postcount=168
[EVO 4G Android Development] Bastafari:
Yes. I'm new to amon ra recovery so maybe I'm doing/not doing something?
[EVO 4G Android Development] ro_bro:
So you're saying that even after you change the mtdpartmap.txt file to new values, that you're not seeing the new values in effect?

If you follow my post which clarified things to the T, it should work fine. Make sure you have the spacing right w/ no extra spaces in between the values in the file itself.

mtd 170 75

also make sure that the file, when you downloaded into the sdcard (root level, not under any folder) says mtdpartmap.txt, and is not renamed to something like mtdpartmap(1).txt like it may happen if you downloaded it twice on to your PC...

If that doesn't work, not sure what else it could be....
[EVO 4G Android Development] phillymade:
does your partition size change the out come of this mod??
[EVO 4G Android Development] life:
ok,

so im running synergy rls1, which as stated before takes up most of the system ram, 367 MB (43.4 MB free), i have a 16 gig sd card partitoned to 2048/128 meaning 2 gigs for data. my question is if i do this mod could i do it to free up alittle more system ram, as i have plenty for data, but by freeing up some more system ram with this system partitioning i could essentially have my rom run a lot more smoothly ( rom runs pretty smooth as is ). but would love to have more system space to keep it from lagging after months of use without rebooting, and clearing cache and dalvick.

or am i misunderstanding what this actually does??
[EVO 4G Android Development] revcp:
df -h

Thanks so much for this. I've been running firerats on a hero since January with great results. Last Friday I purchased an EVO 4G. On my hero I used the df -h command through terminal emulator to get a read on space available/used. That same command does not work with the EVO. I can't remember the error message exactly, something like "no such file or directory". Your post indicates that it does work through adb. I have not checked that yet through adb, but any idea why TE would not work?

Just tried the df -h command through adb. Received same results as through TE: "no such file or directory"

I should mention that I'm running rls1 Godmode with no other modifications, mtd set at 350-50.
[EVO 4G Android Development] Dozenboy0012:
Ever since using the V6 supercharger mod I havent been able to get this (MTD) mod to work Ive been using it a long time and pretty much understand it but can someone tell me if that will make this one not work?

Thx
[EVO 4G Android Development] ro_bro:
A few things can cause this:

1. your phone is not connected to the computer. Try unplugging the usb and replugging

2. your phone is in recovery mode - "df -h" doesn't work in recovery mode

3. did you forgot to do "adb shell" first? You have to do that, and then once the shell loads, you do the "df -h".
[EVO 4G Android Development] revcp:
Thanks for the response. I am connected to computer, not in recovery mode, ran adb shell command which brought up the #, but the df -h command after that produces the "no such file or directory" response. Same as in TE. Very odd.
[EVO 4G Android Development] IceCreaMan:
i have 55mb free on my system rom so i don't think this will work for us..
[EVO 4G Android Development] conman123:
Okay so i have some problems with this script, I followed instructions while having a backup of the new 3.5 rom team nocturnal is working on, now i try to restore and Im stuck on splash screen, i've been up for hours trying to get the original recovery image ( Amon_VA) loaded back on my phone. With no luck , I'm stuck without a phone right now. Any ideas?

Edit: Found this link, for further instructions http://xdaforums.com/showpost.php?p=15477767&postcount=168

and i guess i didn't reboot my recovery correctly. Now my problem is my sd is wipe therefore i don't have backup to do it now. Any one got a link to flashing in fastboot, because i can't get amon_va to work, keeps getting stuck in splash...
[EVO 4G Android Development] Black-Dash:
Get an sd card adapter and insert in your computer, download the PC36IMG.zip and put it on the root of your sd card. Insert the sd back into your phone. Boot your phone in bootloader and it'll automatically find the file. It'll more than likely be a stock rom, therefore you'll have to re-root your phone. I found a 2.2 room and re-rooted with the gingerbreak apk. Then downloaded rom manager and flashed cwm, then amon ra recovery. Good to go then! Good luck.
[EVO 4G Android Development] eejayyeahuuh:
I followed the instructions and now I get 'insufficient storage' error when downloading from market. Internal storage is 547mb and A2SD+ total space is 457MB. I formatted my sdcard to EXT4 with 12.28GB of space left. I am thinking a2sd is the problem.
[EVO 4G Android Development] conman123:
Okay thank you, after that i think ill try again. *
[EVO 4G Android Development] jaysmi32:
I want to uninstall this, the directions on the op states to use a recovery.log, but is that a seperate file or is it already on the phone?
[EVO 4G Android Development] secfincorp:
did you ever figure this out??
[EVO 4G Android Development] ianmb:
If you are real familiar with your sdcard files like I am you will notice a file there that wasn't there before flashing this mod...its like Program data or something like that but it wasn't there before it contains Android data, System data and some other things. I had same problem after flashing this and thought I lost my Amon RA recovery too. Anyways download Sprint lovers PC36IMG.zip put on root of sdcard. After locating the 'Program data' file, or whatever it was called...delete it all, go into bootloader screen (volume down-power button) let it update. It will be a stock rooted froyo, hopefully you have Amon Ra 2.3 PC36IMG.zip also. Move your ROM zip off of sdcard root then put recovery PC36IMG.zip on root of sdcard then do same steps you did using bootloader for ROM PC36ING.zip it will flash your recovery IMG. then you should be good to go. It is the file on your sdcard that is preventing your recovery and flashing.

If this helps hit thanks.

I had same problem, worked for awhile then f-d my recovery all up...I don't use it anymore
[EVO 4G Android Development] jaysmi32:
Still waiting for a response!
[EVO 4G Android Development] ianmb:
Was my help not helpful?
[EVO 4G Android Development] ro_bro:
The instructions are in the OP:

Uninstall

1. Make a Nandroid backup if you didn't already

2. Boot into Bootloader and select Fastboot USB

3. Reflash custom recovery console using Fastboot

Code:
Fastboot flash recovery recovery.img

4. Reboot into recovery

5. Format cache, data & system partitions using my FORMAT_ALL.zip for ease

6. Restore Nandroid backup or flash new ROM, if the restore contains a kernel that has modded partition sizes, then reflash the kernel

7. Reboot

I'm assuming you're stuck with step 3? You probably need to tweak your code, based on the name of your recovery image. For ex, I would write

fastboot flash recovery recovery-RA-supersonic-v2.3.img

if that's the file I have in my sdcard.

Or you can just rename the recovery image file to "recovery.img". I think this will work. DISCLAIMER: I've never tried uninstalling firerat myself, so don't get mad if this doesn't work, just trying to give common sense advice.
[EVO 4G Android Development] a senile fungus:
I wonder if a pc36img.zip of the recovery on the root of the sdcard would "uninstall" this mod?

~ I'm a fungi

Edit: i answered my own question by rereading the thread.

Thanks firerat!
[EVO 4G Android Development] kpost:
Flashed a version of this that is in the bliss sense 3.5 thread so I have a MDT.text file. I want to try out muiu till the other gets updated. Can someone please tell me what value I should put in the text file please.
[EVO 4G Android Development] ro_bro:
145/70 is what I use for MIUI.
[EVO 4G Android Development] tempe38:
I messed mine up since I didn't do the format stuff right on install and got stuck on the HTC splash screen. In the end I switched to Amon Ra using the pc36img.zip file, then ran through steps 5,6 and 7 to restore a different backup I had. I believe that yes it works, but I don't think I had the mod installed correctly, so that may have influenced the process. I don't know what that fastboot thing is supposed to be either.
[EVO 4G Android Development] eejayyeahuuh:
Did this work for you? I did the same thing but now I think I messed up my a2sd. I partitioned my 16GB SD for 64swap and 1024 for the other but evo deck only show 437MB of internal. Is that correct? Miui was showing almost 2Gb when I partitioned with 2048 or whatever 2GB equals out to.
[EVO 4G Android Development] a senile fungus:
I'm answering from memory, but I think that firerat said to set the mtdpart.txt to mtd=0 and then to reflash the recovery patch. That should take you to back to stock.

I found that info in the beginning of this thread, so go ahead and start reading!

~ I'm a fungi
[EVO 4G Android Development] eejayyeahuuh:
When I try to flash the recovery image I always get flash not found. Do you need the flash file. If so does anyone know where I could find it?
[EVO 4G Android Development] a senile fungus:
All the files that you need will be in the OP.

What recovery are you on? I've only tried this from amon 2.3 hausmod

~ I'm a fungi
[EVO 4G Android Development] eejayyeahuuh:
I am on amon ra 2.3 but now I am trying to flash TWRP using fast boot and I keep getting the error failed remote not allowed.

Do I need another HBOOT?

Edit of edit: When I enter fastboot devices it shows my device.
[EVO 4G Android Development] popper668:
I keep getting the error failed remote not allowed.

ra-recovery 2.3

im going nutz trying to remove this. for 2 days I've been stuck and read the thread. i've tried the fastboot, new recovery, recovery img.

stuck i say. if someone has a simple solution please spill the beans..

stuck

im reading the "failed remote not allowed" has to do with H-boot version, im on 2.16 can this be down graded or worked around?
[EVO 4G Android Development] eejayyeahuuh:
Same here. We have the same problem.
[EVO 4G Android Development] popper668:
Going to Bump until helped or banned :-$

Sent From DEEZ
[EVO 4G Android Development] stkiswr:
Wow. I flashed his today and followed directions. Total fail for me.

Ra2.3

0004 Evo

Mike g and freedom kernel.

Complete bootloop. I had to reflash ra2.3 thru bootloader to fix. Is this not compatible w ra2.3?
[EVO 4G Android Development] stkiswr:
Hopefully everyone understands. If you get stuck. And were previously on RA w a nandroid...then just boot recovery. Mount USB. On PC Google amon RA 2.3 image Evo. Dl. Move to root of SD card. On Evo press reboot system after you unmount USB. After you hit reboot immediately hold down. This will put you back in hboot. Accept the pc36img. Wait. When complete if it asks you to update again, choose no, go to recovery and select. Bam. Problem solved. Back into s functioning ra2.3. I did this and restored my backup first try.

Now. This mod looks great and technically I do not need this mod...but as I am at what I consider the limit of mods I am always looking to improve. More room makes me feel like I would benefit from this but what a long 3 hours until I could get home to my PC for the image. It obvious it works but for me, I tried multiple different ways. Everytime allowing 10 mins of the lovely splash screen. If anyone has any insight on to what went wrong that would be great. Otherwise a disclaimer should at least be put up to have the RA hboot image on your SD list in case you get locked up.
[EVO 4G Android Development] renegade37918:
gonna try it
[EVO 4G Android Development] renegade37918:
it works not hard at all thanks for the easy to follow steps:D
[EVO 4G Android Development] popper668:
i have been saved!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[EVO 4G Android Development] popper668:
I thank you sir!!!!!!:o:o:o:o:o
[EVO 4G Android Development] renegade37918:
love it love it
[EVO 4G Android Development] drtwrk127:
Best mod out. Simple to use. Been using since Hero days. That is all.
[EVO 4G Android Development] jumpman23005:
If I am doing this firerat mod is there a need to partition my sd card doing the ext2 to ext3 trick? Would that benefit? Or do they not work together?
[EVO 4G Android Development] drtwrk127:
I do not use both at the same time. The hardest part of this Mod is figuring out the numbers to use in your mtd.txt file. When flashing a new Rom, I always go large with the numbers. I've never had the need to use the partitioned sd card, as this Mod always leaves me with plenty of space.
[EVO 4G Android Development] stkiswr:
What recovery are u using to get this to work. W Amon RA 2.3 there was no boot for me and a few others
[EVO 4G Android Development] drtwrk127:
Using Amon Ra 2.3. If you set your mtd.txt numbers too low, any rom may not boot. What rom are you trying to flash?

---------- Post added at 09:57 AM ---------- Previous post was at 09:35 AM ----------

This is my usual flashing procedure.

Make sure this http://xdaforums.com/attachment.php?attachmentid=452273&d=1291053174 is on the root of my SD Card, with some values which I think will work with the Rom I'm trying to flash.

Go into recovery. I use Amon Ra 2.3

Flash the VRSuperwipe found here http://www.virusrom.com/Tools/VR_SUPERWIPE.zip

Flash this http://xdaforums.com/attachment.php?attachmentid=452268&d=1291053108

I then flash VRSuperwipe again.

Reboot into recovery by selecting reboot now in Amon Ra, and holding volume down button as the phone restarts.

Flash rom.

Flash http://xdaforums.com/attachment.php?attachmentid=452267&d=1291053108

Reboot phone.

Some mtd.txt values I have used:

Cyanogen- 150 50

Deck- 150 50

Swagged out- 275 75

Synergy by Myn- 365 135

MIUI- 150 50

Evolved Rom(recharged)- 330 125

As you can see from above, the numbers are larger when flashing a Sense Rom, as the Rom itself is larger than an AOSP rom. After flashing any Rom, I set up my phone with all programs I use. I then go into terminal emulator, type su, then df -h, or busybox df -h, to see what's being used. I can then backup my Rom via Amon Ra, and adjust the mtd.txt settings accordingly to gain some more space. After adjusting the mtd.txt values, I then redo the process as outlined above, except instead of flashing the Rom, I'm restoring the Rom. Hope this makes sense :D
[EVO 4G Android Development] stkiswr:
I'm on mik g 2.52. I'm partitioned w a class 10 card.

Currently my phone runs great but like all if there is more performance to be found...

Couldn't I just restore my backup as stated in the op? I tried before and met a wall of no boot. May just move on from this mod
[EVO 4G Android Development] drtwrk127:
I hear ya on the more performance part :p In order to "delete" or "get rid of" this mod, you just need to reflash your recovery. After doing so, you should be able to restore your backup.
[EVO 4G Android Development] stkiswr:
Yeah. I found that out the hard way a few posts back. My question is would I have to completely flash a new rom after attempting this mod or could I just restore a backup and reap the benefits?

I tried 5 times a few different ways w no luck. Maybe my Evo is so happy right now it doesn't want mo mods
[EVO 4G Android Development] ccaudio1:
you should be able to flash your back up after doing this mod. thats how i did it in the froyo days::p i believe in the OP it states you could just flash the back up.
[EVO 4G Android Development] Big-O-Devil:
it is so scary :( but at the same time it is so awesome.. :D ... lol
[EVO 4G Android Development] HandsomeOne:
You are correct it seems to bork the recovery image, if you reflash recovery PC36IMG.zip comes back tryied with cm7 ,stock and nandroid backup all the same thx for you help.
[EVO 4G Android Development] DEVILROTARY:
Im noob on this and read it and work fine but my superuser wont update binary and can't use it, is there a way to fix this or there something missing thank.

(Sorry for my bad english)
[EVO 4G Android Development] Nak131:
Thanks for the ROM/value ratios! Your instructions are what got this working for me! After many times of trying! Clicking the button ;-)
[EVO 4G Android Development] gunfromsako:
So I decided to experiment and not use adb to reboot. I just powered down and booted into recovery via bootloader. All partitions stuck with no errors. Has anyone else tried this and is there a problem doing it this way...?
[EVO 4G Android Development] Kchitown1977:
Can this be used. If I'm using twrp recovery

my blazed 4G
[EVO 4G Android Development] kdelinux:
CM7RC1+Tiamat

I am running CM7 RC1 and tiamat for the last 12hrs. every thing is fine

EVO4G

Hard003
[EVO 4G Android Development] renegade37918:
is it ok to mod the txt file 350 125?
[EVO 4G Android Development] ro_bro:
for which rom?
[EVO 4G Android Development] DroidGnome:
I noticed the original OP shows version 1.5.7b... I found on a few other sites a version 1.5.8 (along with 1.5.9 beta).

I saw that in the 1.5.9 downloads on Media fire there is a list of changes and instruction as a lot has changed in 1.5.9.

But I cannot find anywhere any sort of info on what 1.5.8 is vs 1.5.7b. I'm using 1.5.7b on my MikG 2.58 ROM and works just fine... just wondering what features I might be missing out if I try the 1.5.8 version.

I found the files out at:

1.5.6 thru 1.5.9 beta MediaFire link
[EVO 4G Android Development] cbarth3:
Curious to know about this also? anyone
[EVO 4G Android Development] zen15:
yeah im trying to do it, but it won't allow me to flash any recovery, sending recovery is ok, but writing it always failed....

any help...? thx
[EVO 4G Android Development] Diablo67:
Awesome tut calk,i'll give this a go after work today,i'm in desperate need for SD space.
[EVO 4G Android Development] drtwrk127:
I use ClockworkMod Rom Manager from market to flash a recovery.
[EVO 4G Android Development] zen15:
ok, thx mate.., will try it later......
[EVO 4G Android Development] superdaves27:
Custom mtd on stock htc rom

Is there any way to make the mod work on a Clean Evo rom with sense? I'm going throught all the steps and just get a boot loop. I flash with High Voltage rom and it works fine. Can Someone help me! I've been trying diffrent ways all day long....:confused:
[EVO 4G Android Development] drtwrk127:
What are u setting for ur mtd values in ur text file? Usually boot loops means the values are not high enough. Try increasing those values.
[EVO 4G Android Development] superdaves27:
I have the txt file set to 200/100. Any suggestions. I want as much room as possilble
[EVO 4G Android Development] drtwrk127:
Not familiar with the clean rom. I would start out with the first # in the text file as 75 mb more than the size of the rom itself. I.e. if the rom size is 225mb, make the first # in the text file 300, and its pretty safe leaving the 2nd # at 100.
[EVO 4G Android Development] omair2005:
so I'm going to root my buddies evo this weekend. Do I have to set up partitions like before (swap, ext..etc) and all that thru recovery or will this be enough?
[EVO 4G Android Development] drtwrk127:
All depends what rom ur going to run, I guess. I've never partitioned, and with 40 or so apps, have never had problems with space. Personal preference.
[EVO 4G Android Development] omair2005:
Okay so here is what I plan on doing.. please input. I'm familiar with the evo but its not my daily phone.

1. Rooting phone --> Nandroid backup --> backup sdcard

2. partition sdcard and convert to ext3

3. then run the OP instructions.

i'm going to put mikg rom on his phone. The rom is 263mb. so 263+ 75 = 340. I would edit the txt file so the first number reads 340 correct?
[EVO 4G Android Development] drtwrk127:
I wouldn't even partition the SD card. Yes, start with txt file as "mtd 340 80" without quotes.
[EVO 4G Android Development] omair2005:
okay sweet thanks!
[EVO 4G Android Development] omair2005:
does this format the sdcard?
[EVO 4G Android Development] drtwrk127:
No, this does not partition the SD.