yashsingh1/xdaforums huggingface dataset:
[Hero CDMA Android Development] Master K:
I had the same problems. I am using ClockWork and you cannot reboot from adb as is instructions state so at that point I pulled the battery and it works fine.

Now for the cache/out of space problem...

I had the same issue. I do not know why but our caches seem to have much more data than was planned for when the instuctions were written. In your case you had 38.6 megs of data in your cache. in my case i had 49.9! So I took I made my mtdpartmap.txt cache set to 54 (this is the second number you need to change), in your case you could probobly do 43 safely.

Then start over and follow the instructions.

Everything worked for me and I have 206 megs free in data now and 4.4m free in cache. I hope that helps others with the out of space errors.
[Hero CDMA Android Development] flipfone:
After seeing that you pulled the battery i redid the whole process keeping mtd 110 3. This time it took and i now have the 3mb cache with about 1 mb free. I think because i didnt pull the battery and tried rebooting from the menu the script probably didnt complete properly. All is awesome now!

so i

-reboot into recovery

-nandroid

-wipe dalvik, wipe cache

-flashed FR-recovery

-wipe dalvik, wipe cache

-pulled battery, rebooted into recovery (home button)

-nandroid restore

-flashed FR-boot

-rebooted system
[Hero CDMA Android Development] Vandelay007:
Idk what you are talking about, you can def adb reboot recovery with clockwork, however, it is unnecessary....after you flash the recovery zip and then re-wipe you can select reboot to recovery right from there and it works just fine, I do it all the time....

Sent from froyo using XDA App
[Hero CDMA Android Development] Firerat:
battery pull should be last resort .. not routine
[Hero CDMA Android Development] Master K:
I am not a noob. I don't know how my phone is different I just know that adb reboot would not work. I tried it many times in many ways before going to the Battery pull. I thought I would post this for others who might have the same problem. I had not tried the menu option to reboot to recovery because the original instructions were very specific to do a an adb reboot so I was not sure that would work. I will try that next time.

My phone also needs like 54m for cache and I do not know why. But it would error out everytime until I did a DF and saw how much cache it needed.

It seems that there is a high degree of variablilty based on what ROM is being used and other factors.

I appreciate all the hard work to make this function on our hero's. I was just trying to add to the knowledge base so if others had the same problems I did there would be answers in the thread.
[Hero CDMA Android Development] Firerat:
must be a problem with the recovery,

but still its better to use the recovery menu,

if I can't reboot normally, I use call + end call + menu on my g1 ( no idea if hero has equivalent )

if that fails, then I pull the battery

it does seem odd, as it appears that the 06BindCache script is running

but, at the end of the day I added custom cache size , so you can choose what you want :)
[Hero CDMA Android Development] stricklerjosh:
Just want to say thank-you. Went for 43mb free to 233. Running aospmod0.8. Thanks again!

Aosp froyo. gotta love it!
[Hero CDMA Android Development] hero32:
to firerat

hey do you thinki this will work on southpaw 2.1 deodex thanks
[Hero CDMA Android Development] Firerat:
why ask me?

the dev has confirmed it working on this very thread

I belive the rom has run-parts now, so boot scripts and fun stuff like that run

not keen on the a2sd, but I'm biased
[Hero CDMA Android Development] stricklerjosh:
Thinking about doing this on my sisters Eris. Will it work? Are there different files I need to flash?

Aosp froyo. gotta love it!
[Hero CDMA Android Development] Tiffany84:
So do u need to do the whole thing over again if u want to flash a theme or a different rom?
[Hero CDMA Android Development] Rivas123:
I do it for safe measure. Not for themes. But brand new roms I do it over.

Froyo---Hero---Forbidden Love
[Hero CDMA Android Development] Vandelay007:
If you are upgrading a rom from a previous version you only need to flash the boot file, same thing if you are flashing a new kernel....you really should only have to do the whole thing over when you are doing a full wipe or altering your mtd notepad file

Sent with the xda app using CM6
[Hero CDMA Android Development] Rivas123:
Well said. Thanks for clearing that up.

Froyo---Hero---Forbidden Love
[Hero CDMA Android Development] danaff37:
There are only three reasons to flash the recovery mod file.

1. You've never done this mod before and are starting from scratch.

2. You change the mtdpartmap.txt to change partition sizes.

3. You flash a new/different recovery.
[Hero CDMA Android Development] matchosan:
System size information

What are the commands I would need to enter so I could find out the system size in terminal, and get the results like hexskrew did in post #373 ?
[Hero CDMA Android Development] Tiffany84:
So if I do a complete wipe and flash a different Rom I still only need to flash boot? Sorry, just wanting to clarify. Thanks.
[Hero CDMA Android Development] pwachleman:
df -h its also listed in the main post if you need it again. the space between the f and the - are intentional, youll need to type that in. Hope that helps.
[Hero CDMA Android Development] pwachleman:
If you do a complete wipe and flash a different rom I would recommend starting from scratch. Also you want to make sure you are changing the size of your values in the text document if you are changing from say a cm6 rom to a sense based rom. Values are way different and will cause issues if not changed. Hope that helps.
[Hero CDMA Android Development] dhero1:
note that depending on the recovery you use and the shell / state you're in you may need to type 'busybox' first: busybox df -h
[Hero CDMA Android Development] cordell12:
I just did the "df -h" and got what I expected. However at the bottom there is a spot that looks to be on my sd card, /mnt/secure/asec: Permission Denied. Is the permission denied normal? Looks like it may be google related, possibly google account info :confused:

Just curious, Thanks!
[Hero CDMA Android Development] Vandelay007:
If you wipe then you need to do the whole process over...not that it is some big time consuming ordeal..

Sent with the xda app using CM6
[Hero CDMA Android Development] Firerat:
yeap, just the boot patcher
[Hero CDMA Android Development] Firerat:
very true, I have gotten lazy as cm5+ uses busybox for most commands, unlike other roms which use the toolbox versions

I should add a header to my scripts to fix things to busybox

alias should sort it out
[Hero CDMA Android Development] matchosan:
Mahalo everyone

I'm using Clockwork recovery, and needed to use the busybox command.
[Hero CDMA Android Development] Firerat:
df -h in clockwork works fine for me

where are you needing to type busybox df -h?
[Hero CDMA Android Development] ruizma:
HOme Screen FC

After I did this and flashed Damage control, I get a Force Close loop on the homescreen, it doesnt even load... any ideas why?? I had this rom before without the MTD partition Mod. I did all the instructions right.
[Hero CDMA Android Development] pfer10:
What are you using partition size? You might try increasing it some.
[Hero CDMA Android Development] danaff37:
With damage you probably need 170 2.
[Hero CDMA Android Development] matchosan:
In the Terminal Emulator app. Tried w/o busybox, didn't work. Tried with busybox and it did. If it is strange so be it just as long as it works. Now to try this with LiquidSense ROM.
[Hero CDMA Android Development] Firerat:
df -h works in clockwork

if you want to move the goal posts, that is up to you
[Hero CDMA Android Development] thanku7:
how to remove this modification from my phone?

I tried to remove it, but it's stick to my phone. Any of you knows how to remove it? Even I wipe everything and install CM6 ROM, the phone doesn't show anything, except "htc" logo on white screen which you can see when you turn on your phone. This logo screen repeats by turning on and off automactically forever.

Please tell me how to remove it.

Thanks in advance.
[Hero CDMA Android Development] Firerat:
flash a standard recovery

edit:

actually, this will make it much easier for you

http://www.mediafire.com/file/upf6u8m0zb70ag5/FR-remove-v1.5.6-CustomMTD_S.zip

you will still need to

fastboot erase system -w

or format system cache and data in clockwork

edit2

and the boot loops are probably becuase you set system too small, read the thread it has some good stuff in it
[Hero CDMA Android Development] thanku7:
making my phone slow

After I installed this MTD, my phone got very slow.

Before installing this MTD, I got 4.8 MFLOPS (using Linpack) with CM6, but now I have 0.962 MFLOPS.

I changed the txt to get an optimized size for my device, but most of all values suggested here don't help me.

Do you have this kind of problems with this MTD?

Please help me to speed my phone up back.

Thanks in advance.
[Hero CDMA Android Development] stricklerjosh:
Hey if I wipe data and flash a new rom do I have to run the recovery zip again or just wipe all and flash rom and just run boot zip?

Aosp froyo. gotta love it!
[Hero CDMA Android Development] Rivas123:
I flash recovery zip again. Just cause. Some people might do other wise though.
[Hero CDMA Android Development] thanku7:
for example, I typed in the txt like this; 170 2

but,

$df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 95.3M 0 95.3M 0% /dev

tmpfs 95.3M 0 95.3M 0% /mnt/asec

/dev/block/mtdblock3 110.0M 87.3M 22.7M 79% /system

/dev/block/mtdblock5 347.1M 95.0M 252.1M 27% /data

/dev/block/mtdblock5 347.1M 95.0M 252.1M 27% /cache

/dev/block/mtdblock4 3.0M 1.1M 1.9M 38% /dev/cache

please help me.
[Hero CDMA Android Development] cordell12:
Just curious if anyone else using this has low download speeds while using wifi. My wifi down is only. 7 MB while upload is 2.5 MB, cat figure out what it is.

Thanks
[Hero CDMA Android Development] Firerat:
you only need to patch recovery when you want to change size, or flash a new recovery

anyone that says different is clueless and is just wasting your time
[Hero CDMA Android Development] Firerat:
just curious as to why you are posting off topic, its not even as if you have told us your carrier or rom.
[Hero CDMA Android Development] Firerat:
you failed somewhere

start again from scratch
[Hero CDMA Android Development] Firerat:
so , revert by installing a standard recovery

remember to

fastboot erase system -w
[Hero CDMA Android Development] stricklerjosh:
Thanks so much for your response. Worked perfect again.

Aosp froyo. gotta love it!
[Hero CDMA Android Development] cordell12:
I wasnt trying to go off topic, it was just a general question. Sprint is my carrier and I am running cm6.1. My wifi downloads are horrible while my uploads are crazy fast, .7 Mb down and 2.5 Mb up. I pay for 12 Mb down, I know the hero wont pull that but 2.5 is reasonable. Anyway after reading various threads and roms I found that AOSP rom had a bug that was in wifi, slow downloads, it was fixed with aosp 9.6 so I flashed that and I had normal speeds. I just now did this and was coming to update my post here. What I was looking for was if anybody was experiencing similar results, to avoid uninstalling and reinstalling this Mod. I cant live without all the extra space!

Thanks
[Hero CDMA Android Development] METHOD1911:
I want to use this with a nandroid I have on my sd. It's a nandroid of the latest nightly. Can someone please tell me how to do this with a nandroid. A little confused on how to do this.
[Hero CDMA Android Development] Master K:
You have the dual cache problem I had. You can do one of 2 things. Both require starting over. Looking at your DF output you had a cache of 95 megs. So setting it to 3 megs causes the script to fail and you wind up with the dual cache entires. I changed my text file to have a much larger cache and it the next time through it worked. In your case I would change the cache from 3 to 97 or so. I must say however that 95 megs is crazy large for a cache and you might be better off blowing everything away INCLUDING your SD card. I belive this problem goes back to a rom where your cache was on the sd-ext partition. That is what I had but my cache was only 50megs or so not 95.

In any even you can also simply use rom Manager, choose to install the clockwork recovery (even if it is installed) then restore your last backup and you should be good again.
[Hero CDMA Android Development] danaff37:
I run my cache at 2, and it's 100 percent full but the only error I ever get is clockwork not being able to log. I live with it and enjoy having my system at 90 and being able to run tons of apps without a2sd
[Hero CDMA Android Development] Firerat:
forgive me,

OK the real question is can you use this with aosp 9.6

the answer is yes ,

there may be one hitch, that being that the 06BindCache script doesn't run

I'll d/l aosp 9.6 and have a look

regards the wifi in cm6.1 , best bet is head over to cm forums, or a cm thread and mention it.

the kernel source is available, so it should be quite easy to get the fixes into cm.

I'll look at this myself
[Hero CDMA Android Development] Rivas123:
Wow. Youre cool.
[Hero CDMA Android Development] Firerat:
that dual cache is not a problem, it is by design

( and only gets triggered if your /cache is less than 31 mb )

real cache partition is mounted to /dev/cache

'fake' cache is a bind mount of /sd-ext/cache ( or /data/cache )

the reason for the 'fake' cache is so the Market has somewhere to download apks to, on eclair and older based roms ( froyo uses the sdcard for temp downloads )

the real cache mount ( /dev/cache ) is so rom manager can pass instructions to clockwork ( symlinks are set up from the fake cache, when you reboot to recovery it is mounted to /cache , clockwork sees the instructions from rom manager and executes them ;) )

Hope that clears the miss understanding up

if dalvik-cache is going to /cache/dalvik-cache , you fix it with

dalvik.vm.dexopt-data-only=1

in your build.prop

or, simply delete /cache/dalvik-cache, and symlink it to /data/dalvik-cache

su
mv /cache/dalvik-cache/* /data/dalvik-cache/
rm -r /cache/dalvik-cache
ln -s /data/dalvik-cache /cache/dalvik-cache

imo , its better to have the largest possible data partition and put everything on that

Edit:

the script

localhost / # cat /etc/init.d/06BindCache

#!/system/bin/sh
# 2010-08-05 Firerat, bind mount cache to sd ext partition, and mount mtdblock4 for Clockwork recovery's use
busybox umount /cache
# Bind mount /sd-ext/cache ( or /system/sd/cache ) to /cache
if [ "`busybox egrep -q "sd-ext|/system/sd" /proc/mounts;echo $?`" = "0" ];
then
sdmount=`busybox egrep "sd-ext|/system/sd" /proc/mounts|busybox awk '{ print $2 }'`
cacheDir=${sdmount}/cache
else
cacheDir=/data/cache
fi

if [ ! -d $cacheDir ];
then
busybox install -m 771 -o 1000 -g 2001 -d $cacheDir
fi
busybox mount -o bind $cacheDir /cache
if [ ! -d $cacheDir/dalvik-cache ];
then
busybox install -m 771 -o 1000 -g 1000 -d $cacheDir/dalvik-cache
fi

if [ ! -d /dev/cache ];
then
busybox install -d /dev/cache
fi

if [ "`grep -q \"/dev/cache\" /proc/mounts;echo $?`" != "0" ];
then
busybox mount -t yaffs2 -o nosuid,nodev /dev/block/mtdblock4 /dev/cache
fi
if [ ! -d /dev/cache/recovery ];
then
busybox install -m 770 -o 1000 -g 2001 -d /dev/cache/recovery
fi
if [ ! -L $cacheDir/recovery ];
then
ln -s /dev/cache/recovery $cacheDir/recovery
fi
[Hero CDMA Android Development] Firerat:
yeah, just format /cache partition in clockwork ( via partitions menu ), it will be fine. the logs just build up over time.. thats all
[Hero CDMA Android Development] Firerat:
Talented Witty And Thoughtful , is how most people describe me. For the most part I would have to agree.
[Hero CDMA Android Development] Firerat:
170 2 ?

looking at that system size I would do

mtd 90 2

reason, 87.3 will easily fit into 90

your data size will go up to 367.1

real cache ( mtdblock4 /dev/cache ) will be 2, which is the least you can have

remember, when you resize you must flash the recovery Patcher !!

reboot to fastboot mode erase system cache and data

fastboot erase system -w

when you reboot to recovery you will have the new sizes, now just remember to patch your rom with boot patcher ( which uses the sizes of the running recovery )

note, if you use clockwork recovery, instead of rebooting to fastboot , go into the partitions menu and format system cache and data.. then reboot to recovery
[Hero CDMA Android Development] Rivas123:
Haha good stuff. But you could have just corrected me without saying I was waisting his/her time.
[Hero CDMA Android Development] Firerat:
true, but I'm a Tal, Wit, And Tho

only the caps matter
[Hero CDMA Android Development] Rivas123:
Indeed you are.
[Hero CDMA Android Development] busstomper:
Sweet! Huge thanks to everyone involved!

I did run into an error after Step 9, where I got the message:

Can't open cache: recovery/log​

I started over from Step 6, and everything went thru perfectly. Using Amon RA 1.6.2 recovery. Flashed aospMod v0.9.6.

Available space: 319MB

Needed to use cmd: busybox df -h

Filesystem Size Used Available Use% Mounted on

/dev/block/mtdblock3 102.0M 80.0M 22.0M 78% /system
[Hero CDMA Android Development] Firerat:
set system to 81, and you will have 340 ;)
[Hero CDMA Android Development] METHOD1911:
Can someone tell what values would I set to if I want to get this working with the cm nightlies. I haven't changed the default values.
[Hero CDMA Android Development] DemonRagna:
I think I ruined my phone. D: My internal storage is not what it used to be before attempting to flash this. When I tried to do this, I got an error when I rebooted to recovery in adb shell.

Yeah I ruined my phone. I only get 111 internal when I'm supposed to get 159 internal. I can't even flash a sense rom anymore. D': Help.
[Hero CDMA Android Development] Firerat:
flash this zip ( it removes the cmdline from boot.img, returning you to stock layout .. I will integrate that better so you don't need a separate zip )

you *must* erase system cache and data !!

then when you reboot you will be back to boring old stock

or, you could just follow the instructions and set the system size to 160 ( 165 to be safe )
[Hero CDMA Android Development] cordell12:
That would be awesome! I don't care for aosp rom, for some reason its not stable for me. I tried to start from scratch today, wiped everything! New install of your mod and new install of cm6.1. I got same results, its driving me crazy! I am using BFS #14, don't think its the kernel though. Gonna try latest CFS.

Thanks
[Hero CDMA Android Development] stricklerjosh:
Works just fine with aospmod.

Aosp froyo. gotta love it!
[Hero CDMA Android Development] ro_bro:
Just wanted to say thanks to the OP for this. I'm running CM6 nightly, and it's running smooth and fast.
[Hero CDMA Android Development] cordell12:
I know but for some reason aosp mod doesn't run stable on my phone. In 9.6 he fixed a bug in wifi, I think it only affects some hero's. Not sure but mine is messed up on all cm6 type roms!
[Hero CDMA Android Development] cordell12:
I pinned the problem down to the kernel, whether or not it is related to your mod IDK, probably not. As you know I did countless restarts from scratch to my phone, the last 2 even included starting your mod over. I have been told by a few that the kernel is not the issue, so I kept using BFS #14. Fed up when I got home from work and voting I flashed the latest CFS, BAM it works! WiFi is now 3 Mb down and 1.5 Mb up. I flashed back to BFS #14 and my WiFi was again .7 Mb down and 2.5 Mb up. Is there some sort of logcat I can get so it can be forwarded to the right people so a correction can be made, if not to BFS #14 but the next BFS doesnt have the same issue. With CFS I lose almost 50 points on the quadrant score, 411 from 457 :(

I am now running cm6.1 CFS #15

Thanks :)
[Hero CDMA Android Development] Firerat:
BFS will basically give the current running process a greater share of CPU

CFS will tend to be fairer and share the CPU out a bit more ( so the current foreground process won't have as much as BFS )

BFS + Android's "we only give illusion of multitasking" often will do better at benchmarks

CFS + Android's "we only give illusion of multitasking" will suffer more with benchmarks, but you may get a better multitask feel

forget about benchmark apps, they are pointless imo

if your phone feels better with BFS, stick with BFS, if CFS feels better .. you guessed it stick with CFS

you don't need an app to give you a number before you think one is better than the other.. end of the day it is how you use your phone, not what resources the damn banchmark app can grab and keep hold of.
[Hero CDMA Android Development] cordell12:
I never looked at it that way. You are right "we only give illusion of multitasking" the way I understand android when a new app comes in the picture the prior app goes to sleep. It can be picked back up, but to use both it never seems to work correctly. I blame that on the hero but the more I read it is the system, the hero just cant toggle between the apps as fast as other droid phones can. I need the wifi, I stream a lot of music (slacker) while at home, although the 2.5 Mb uploads are attractive! CFS feels more stable than BFS, I dont get random reboots as often as with BFS. All in all I want cake, frosting, ice cream, and be able to eat it! lol I have been flashing anything and everything I think can improve my hero. One thing that no matter what I flash rom and kernel wise your mod will ALWAYS be flashed to my phone!

Thanks for your time :)
[Hero CDMA Android Development] hotaru:
that's actually completely wrong. if you're listening to music and switch to another app, the app that's playing the music doesn't "go to sleep". it keeps running, playing your music.
[Hero CDMA Android Development] Firerat:
the music playing app is running as a service

when you switch to another app, its ui goes to sleep ( or at least becomes a candidate )

its not proper multitasking, but a very good illusion of it
[Hero CDMA Android Development] METHOD1911:
If I'm correct I cannot run darktremor a2sd with this right.
[Hero CDMA Android Development] Firerat:
your not correct, if you want to waste 6mb of space you can use dta2sd

if you want to waste less than 10k of system space and have more control over where your apps go, then

http://forum.cyanogenmod.com/topic/...ports-htc-incredible/page__st__840#entry24386

but.. do you really still need to slow your phone down with a2sd?

assuming you have a Hero and have lots of space on /data now
[Hero CDMA Android Development] METHOD1911:
May I ask you another question. When in terminal it says to exit press ctrl and c. What the hell is ctrl c. I'm lost.
[Hero CDMA Android Development] Firerat:
ctrl c = ctrl + c

you will have to find the ctrl key on your softkeyb, or use a real keyb via adb shell

And what says ctrl and c?

don't think I have ever put that in one of my scripts
[Hero CDMA Android Development] METHOD1911:
Oh no not your script. I'm using Dec's batt mod says that in terminal.
[Hero CDMA Android Development] Rivas123:
Ctrl is the trackball pressed down if im not mistaken. I wouldnt want to waste anyones time :p
[Hero CDMA Android Development] METHOD1911:
Thanks Rivas I was really stumped by this.
[Hero CDMA Android Development] drd525:
Tried reflashing recovery and boot files, but doesn't work with CM6.1
[Hero CDMA Android Development] stayclean:
It works, I have it running and it took no effort to do so.
[Hero CDMA Android Development] Rivas123:
No problem.