yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] mmarks:
Hi Firerat and friends,

I am running TheOfficial TMO 1.6 on my G1 having given up on froyo 'cos all my phone ever did was hang, FC or reboot.

Anyhow, my sd card is all FAT32 so I used this patch so I could install all my apps without an EXT partition.

Since installing with parameters of 70 2, I had loads of space for apps but market is problematic, hardly ever downloading anything.

I assume I need a bigger cache parameter, having read previous posts. How do I know what parameters to use for this rom? What would you suggest?

The ROM is posted in http://xdaforums.com/showthread.php?t=538456

And also, I have ra1.7 recovery - how do I clear the various bits with this - is there a trick to it?
[G1 Android Development] :
I already have the v1.2 recovery flashed / installed - if I want to run this v1.3 version, do I need to fastboot erase system, and then start from the beginning again - replacing the 1.2 with the 1.3 file ?

Sorry for the newb question - still learning, and prefer to ask before I add a second G1 to my brick wall ( current count is one - that's one too many )

Thanks in advance
[G1 Android Development] lbcoder:
That seems probably like your stock system image doesn't support bind mounts. Market downloads files into the cache partition and installs from there. In order to achieve a reasonable space available for this, /cache is bind mounted to /data/cache. If this doesn't work, then you will have this problem. You can solve by either using a system image that supports bind mounting, or by increasing the space allocated to the cache partition. Note that you could run into trouble later by using this approach -- say you allocated 10 MB to cache partition and tried installing a 12 MB program.... won't work.

EDIT: Your ROM supports UNIONFS. You can use this in place of a bind mount.

Could you PLEASE not put this line in your messages? It makes you (as well as everyone else who attaches similar lines) look like a total retard.
[G1 Android Development] lbcoder:
No. The changes are for the benefit of INSTALL SCRIPTS ONLY. Since you already have a system installed, there is no need to install another one "just for the sake of...."

You simply re-apply the new version recovery patch.
[G1 Android Development] billquinn1:
Can you take it out? I thought it was automatic if using the app for XDA. I will look when I get home.
[G1 Android Development] :
You can change the signature in the settings - the standard one mentioned, a custom text - or none

I'll be changing mine as well tonight - I believe I kept the standard one, just haven't posted with it yet
[G1 Android Development] Firerat:
you won't need to erase system unless you change the sizes

just be sure to use the new mtdpartmap.txt format
[G1 Android Development] foxtrickle:
So because of the the bind mount, I won't have to worry about increasing my cache size if I wanted to run CM5, correct?

Additionally, If I make a nandroid backup that has had the patch, I shouldn't have to apply it again, right?
[G1 Android Development] mmarks:
Thanks for the response, but being new to all this, what is UNIONFS and how do I use it?
[G1 Android Development] raven_raven:
At first I want to say that I didn't read all of the thread, only first few pages. I have read OP, 2nd and 3rd post very careful though.

I think I did all what I had to do, so:

1) wipe (/system too)

2) flash fr-mtd-parthack-recovery-1_1.zip

3) reboot

4) flash ROM + extensions (In my case its SuperF test3 + gapps)

5) flash fr-mtd-parthack-boot-1_2.zip

6) reboot

(I wrote it from memory so I could forgot something, but when I was flashig I followed instructions)

And when rom boots and I go to settings, I go to settings, memory and available memory is... 81,96 MB. So it seems that hack didn't work for me. Typing "df -h" in terminal returns:

Filesystem	Size	Used	Availible	Use%	Mounted on
tmpfs	47.6M 0 47.6M 0% /dev
tmpfs	47.6M 0 47.6M 0% /dev
/dev/block/mtdblock3 90.0M 83.1M 6.9M 92% /system
/dev/block/mtdblock5 117.8M 35.8M 82.0M 30% /data
/dev/block/loop0 3.9M 3.9M 0 100% /system/xbin
/dev/block/mtdblock4 117.8M 35.8M 82.0M 30% /cache
/dev/block/mtdblock5 117.8M 35.8M 82.0M 30% /cache
/dev/block/vold/179:1
1.5G 1.1G 386.7M 75% /mnt/sdcard
df: /mnt/secure/asec: Permission denied

I have another question. Once I have flashed parthack-recovery I have to do it all the time? And when I want to flash for example big Sense 2.1 ROM then I have to change mtd values?

Your work is simply great, if I can get to work with my phone and ROM :).
[G1 Android Development] Firerat:
what?

what do you mean it didn't work...

tell me this

what was the size of data before, and what is the size now?

and ref "Once I have flashed parthack-recovery I have to do it all the time?",

please do what you claim to have done and read the OP
[G1 Android Development] raven_raven:
Thanks for quick reply.

1) I thought that my available space will be 117.8 MB. Never checked what it was before applying your hack.

2) OMG I'm an idiot :(. I've read OP one more time and found an answer. Sorry for taking your time with such stupid question.

Again, thank you very much!
[G1 Android Development] smuvman:
workaround?

i have this installed and set up at 70 but the apps still eat into internal data. but i think found a workaround. i just deleted some apks i didnt need to cut down on data space usage. hint :maps is about 4mb so if u delete that from \data\app_extra_tmp THEN download it once u have a2sd access it will be stored to ur ext (havent checked other froyo roms but on superfroyo some apps are on \data\ and \data\app_extra_tmp) so if there are files u dont need or want delete them then resign the rom and you'll have more data space. hope this helps someone it worked for me. basically just trimmed the rom.
[G1 Android Development] Foo_Blyat:
Firerat,

if the MTD patch worked fine and my phone boots with extra internal memory, but in recovery i get -

E:Can't open CACHE:recovery/log

can i leave it be or should i try and fix it

EDIT: nvm, went back and read that the boot has to be flashed after even a kernal update, and thats where my issue was, i just recently flashed dumfuqs 614oc kernal. so i went into recovery and reflashed ur boot file.

when i type

SU

df -h

i get

tmpfs - 47.7m - 0 - 47.7m - 0% - /dev

tmpfs - 47.7m - 0 - 47.7m - 0% - /mnt/asec

/dev/block/mtdblock3 - 90.0m - 87.7m - 2.3m - 97% - /system

/dev/block/mtdblock5 - 373.8m - 64.8m - 308.9m - 17% - /data

/dev/block/loop0 - 4.0m - 4.0m - 0 - 100% - /system/xbin

/dev/block/mtdblock4 - 373.8m - 64.8m - 308.9m - /cache

/dev/block/mtdblock5 - 373.8m - 64.8m - 308.9m - /cache

Can you please just tell me if its right or not.

DOUBLE EDIT: just went back into recovery and still getting an error "E:Can't open CACHE:recovery/log".... im stumped
[G1 Android Development] enatefox:
can u pls send me a lnk to ur ramz?
[G1 Android Development] egzthunder1:
Thread cleaned out. Play nice fellas.
[G1 Android Development] Firerat:
it is the wrong thread

your workaround is for a specific ROM, which is 'none standard'

it has a none standard data structure \data\app_extra_tmp, which will just confuse people.

I don't want people posting about that confusion in this thread

post your 'work around' in the Super@tmels Super Froyo 2.8 ( your ROM's * ) thread

* I wasn't saying it was your ROM.

See the 's , that means the ROM has ownership of that thread.
[G1 Android Development] Foo_Blyat:
if your repartition MTD already worked but i wanted to fix my cache, do i -

1. wipe system in fastboot

2. boot into recovery

3. flash rom

4. flash gapps

5. flash kernal

6. flash ur boot

7. reboot

????

simple yes or no would be ok.
[G1 Android Development] Firerat:
You should use

fastboot erase system -w

Or ( and this is my preference these days )

Use clockwork recovery's formats in partitions menu

But, don't flash cw via rom manager, use fastboot flash <cwrecovery.img>

Link to raw img in my sig

( you should to the fastboot erase before booting cw, but once you have cw patched you don't have to use fastboot unless something goes very wrong )

But yes will probably do
[G1 Android Development] srivers33:
Hey man, thx for the link to the fastboot info, SOOOO much more sense now. If i understand right i could also flash the newest Amon Ra or Clockwork recovery and that would wipe everything and take me back to stock as well with a more current recovery yes? Thanks again man
[G1 Android Development] TmobileDash12:
=X i'm having trouble making custom partitions.

i typed echo "81 2"

and saved it as a .txt file in the root of my sdcard

it didnt work. so i tried fastboot erase system -w

then i flashed the recovery patch, reboot into recovery, flashed ROM, flashed patched boot. rebooted, then went to terminal df -h, and i still got the default 90-2.

sorry if this is a nooby mistake =/

thanks in advance :]
[G1 Android Development] asb123:
why do we need to wright echo?

on my txt file is simply 90 2
[G1 Android Development] TmobileDash12:
Code:

echo "85 2" > /sdcard/mtdpartmap.txt

as stated on the first post :/
[G1 Android Development] smuvman:
mtd

place this file on the root of your sd card and follow the rest of the steps and you should be all set btw if it DOESNT work it would help to know what rom u were using and phone. this file is based on a g1 with the danger spl. if thats not the set up u have u may want to wait for someone else to help u
[G1 Android Development] g1modfan:
Please help me flash a recovery image from terminal. I had an old Amon RA and I did an MTD today. I subsequently tried to flash a new Amon Ra but got no memory message. Now I hang up in G1 logo whenever I try to reboot to trecovery. Plz help.

Thanks a lot.

G1 CM6-RC2/FR-MTD
[G1 Android Development] G1sanju:


Flash recovery from fastboot, its a safest method
[G1 Android Development] Firerat:
you muppet

time of your post

Today, 04:53 AM

you have yet again proven you are dumb :D
[G1 Android Development] billquinn1:
I'm thinking his reputation is pretty solid. If not, I doubt he would care.
[G1 Android Development] smuvman:
time zone

lmao perhaps your genius allows you to not care about time zones. im on est lmao ill let YOU figure out what time i actually posted. and again you leap frogged over a post where you could have actually HELPED some one just to reply to me. lol apparently ur a bit upset? the fact that u continue to reply to someone u consider "dumb" says alot about you. carry on old chap! carry on! lmao :D
[G1 Android Development] smuvman:
truth hurts

if he didnt care about what i said he'd stop replying lol. ive already stated i was done going back and forth yet he continues to address MY post while skipping requests for help. lol oh well :D and btw if you were to read a majority of the posts in this thread you'd see that most ppl agree that his contributions are great but his attitude sucks. you can help ppl without making them feel dumb. instead of him just stating from the beginning why he thought my post didnt belong here he made a smart comment i guess to showcase his brain power. lol all he had to do was state why and i would have understood as his point was correct. HOW u say/type something is just as important as WHAT u say/type. i just said to him what most arent willing to. but you are entitled to your own opinion as i am to mine. ppl always get mad when us "users" are rude but shouldnt the ppl that are supposed "help" actually do it with that same level of respect? :cool:
[G1 Android Development] Firerat:
errm the one I 'leap frogged' was already answered...

see, I made you look dumb again
[G1 Android Development] Sik-1:
hey wen using donut i noticed that the cache sizes change but its not binded to anything and wen reading ur script i only see that it says sd-ext which donuts dont use, could u update it to use either of the two:D

edit: it also doesnt allow me to download things from the market whose sizes are bigger than cache bcuz of it not being binded to data
[G1 Android Development] Foo_Blyat:
Dude, smuvman, stop trolling in this thread...

Firerat is the reason thousands of people are able to keep their g1/mytouch's running smoothly on flashed roms...

you cant shake a stick at what hes helped everyone on these forums accomplish. if he left, we'd be forked, if u left, well no one would care and this thread would be a lot cleaner
[G1 Android Development] smuvman:
lol

:D10 characters
[G1 Android Development] smuvman:
comprehension

if you read what i wrote youd see EXACTLY what i typed. make sure you pay attention before you claim im trolling. ive givin him his props for what he's done. in my opinion his attitude sucks in yours it doesnt. cool. just because someone makes a file rom etc doesnt mean when ppl ask u for help on YOUR creation you type to them any way you feel. this thread is full of his condecending replies. if i was indeed "TROLLING" i would have not edited myself. i actually stopped with the flaming to prove my point. again if what i say isnt true then FIRERAT should not care what i a mere "USER" has to say. the fact he keeps replying when i expressed that im through further proves my point. have a nice day and while i dont agree with your opinion i respect it. and out of respect for my fellow users i will end this discussion on that note. but the bottomline is firerat acts like an ass. if i get banned oh well i speak the truth. btw firerat thanx for the patch! lol:D
[G1 Android Development] Firerat:
yeah, should be doable

but , it does depend on the donut..

I don't think its using runparts, if it did your cache would be bound with data.

which donut are you using?

I can try and figure out a way to detect and install appropriately

in the mean time

I have modified the script to look for /system/sd

blue are the new bits

you can replace /system/etc/init.d/06BindCache

with this ( attached )

but you will have to run it manually ( since run-parts is not running, at least not for /system/etc/init.d )

su
sh /system/etc/init.d/06BindCache

#!/system/bin/sh

# Bind mount /sd-ext/cache ( or /system/sd/cache ) to /cache
if [ "`[COLOR="blue"]e[/COLOR]grep -q [COLOR="blue"]"[/COLOR]sd-ext[COLOR="blue"]|/system/sd"[/COLOR] /proc/mounts;echo $?`" = "0" ];
then
[COLOR="Blue"]sdmount=`egrep -q "sd-ext|/system/sd" /proc/mounts|awk '{ print $2 }'`[/COLOR]
CacheDir=[COLOR="blue"]${sdmount}[/COLOR]/cache
#CacheDir=/sd-ext/cache
else
CacheDir=/data/cache
fi

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

guess I should attach it :)
[G1 Android Development] Firerat:
lol

I don't know why you think me replying to you is such a big deal.

but here, another reply.. hope it makes you feel special.
[G1 Android Development] Sik-1:
ahhh sweet, i knew u had it in u, im currently using the superfast rom, o and it works like a charm:D:D:D
[G1 Android Development] Sik-1:
can i use root explorer and add the lines of code???? then run it???
[G1 Android Development] Firerat:
ahh, ok

If it anything like the other 'Superfast' , they moved init.d to super

put the script in /system/etc/super/

and

chmod 700 /system/etc/super/06BindCache

and it should work on boot

I'll add a test to the patchers for next release

( PS not confirmed it yet , just d/l now )
[G1 Android Development] Sik-1:
no that rom ur talking about is the csdi, im on htcClays rom, lol but it works fine with his:p
[G1 Android Development] Firerat:
yeah, just looked at it now

in all honesty I can't see why it didn't bind mount to data..

# Bind mount /sd-ext/cache to /cache
if [ "`grep -q sd-ext /proc/mounts;echo $?`" = "0" ];
then
CacheDir=/sd-ext/cache
else
CacheDir=/data/cache
fi

its looking for sd-ext in the /proc/mounts file, since the SF is mounting sd to system it won't find it, so it sets the cache dir as /data/cache

grep -q is 'quiet' it gives exit code of 0 if it finds it and 1 if it doesn't

and echo $? fully outputs the exit code

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

this bit checks the new cache dir, if it doesn't exist it creates it, then does the bind mount

it also goes on to create dalvik-cache dir ( for mt3g users and cm5+6 )

but yeah, I'll add legacy sd mount point and a test for the init.d=super roms ;)
[G1 Android Development] Sik-1:
cant u just do a regular bind mount of cache to sd, like we have had in the past???
[G1 Android Development] Firerat:
yeah, thats what the new script will do

# Bind mount /sd-ext/cache ( or /system/sd/cache ) to /cache
if [ "`egrep -q "sd-ext|/system/sd" /proc/mounts;echo $?`" = "0" ];
then
sdmount=`egrep -q "sd-ext|/system/sd" /proc/mounts|awk '{ print $2 }'`
CacheDir=${sdmount}/cache
else
CacheDir=/data/cache
fi

it checks for both /sd-ext and /system/sd

figures out which and then carries on

I can't really 'hardcode' it , as for instance mt3g users might not have an ext partition
[G1 Android Development] sauudmir:
quick question:

can i use swap partition with this patch?

would it do any good in cm6? ive been using it since 5.0.8 and it has helped me alot...
[G1 Android Development] smuvman:
swap

yes you can use swap with this patch. im currently using it with 96mb swap and swappiness at 20. everybody has thier own opinion for/against swap but i say if u have been using it with no problems why not? but in fairness id go with whatever set up the rom's developer suggests
[G1 Android Development] sauudmir:
is there any speed difference from this patch?
[G1 Android Development] raven_raven:
No. How would repartiniong speed up your phone? It gives you more space for your apps, that's all.
[G1 Android Development] sauudmir:
i've successfully upgraded to CM 6.0.1 RC2 and used this MTD partition hack...

but im still now getting do i need to remove my ext partition ? i thought it will mount my ext partition and i could use my apps from there? :confused:
[G1 Android Development] smuvman:
apps 2 ext

no this patch has nothing to do with apps2sd other than allowing you to have more DATA on your INTERNAL storage so that u may install a few more apps. i think ur getting confused with firerats OTHER patch which you can find by clicking on the link in his signature.
[G1 Android Development] sauudmir:
so how much space does this patch give us on our g1?
[G1 Android Development] Firerat:
data = 209.8mb - size of system - size of cache

if we assume cache is 2mb

size of data = 207.8 - 90 = 117.8

yaffs filesystem uses 1.1mb before any files are even put on it, so you get 116.7 usable space

to put it another way

with 90 mb system you get +28mb on data

with 85 mb system you get +33mb on data

most people will have +28mb
[G1 Android Development] Firerat:
even when you use ext partition for apps, data is still used

if you have a lot of apps, and especially games, data can still get 'full'

DangerSPL has a 30mb cache, which is practically useless

This CustomMTD Hack makes that cache useful ( by going 28mb of it to data )

you will gain something regardless of using a2sd or not

personally I like to keep certain apps, and dalvik-cache on data, having data at 116.7 mb instead of 89.x mb less me do this much more easily.

the bottom line is, you will lose nothing and gain 28mb of space on data.

its up to you how you use it.
[G1 Android Development] sauudmir:
too be very honest i can't still understand that if i don't use ext partition , will CM6 install my apps on my fat32 sd card and not on the internal memory?
[G1 Android Development] Firerat:
by default CM6 is in "automatic" a2sd mode.

so it will install to internal until you become low on space, it will then install to Fat32 ( aka vfat )

you can force it to always try internal, or always try fat32

or, you can use apps2ext

http://forum.cyanogenmod.com/topic/2636-froyo-a2sdext-2010-07-25/
[G1 Android Development] sauudmir:
how can i force it to always try the fat32 to install?
[G1 Android Development] Firerat:
look in the CyanogenMod Settngs ( its in Settings )

if you install a new rom, go through all the settings, its fun.
[G1 Android Development] sauudmir:
im just afraid :( , i don't knw y maybe of losing all my apps and then bart restoring , i really don't wanna get into all that stuff coz i already got alot of work to do...

*sorry for so much noobs questioning*

all i wanna confirm is i've went through the settings and if i set it to external , it will always use fat32 to install my apps then y everywhere i read guys are going to ext partition? and if i use my fat32 how can i pull my ext partition apps to fat32??
[G1 Android Development] Firerat:
http://forum.cyanogenmod.com/topic/2501-recover-apps2ext-get-em-back-script/

be sure to read the whole thread

poke around on that forum for a bit,

make sure you have read what you can before posting questions, most people questions have already been asked and answered a few times before, it gets frustrating after a bit

BTW, most people hate apps2fat,
[G1 Android Development] sauudmir:
why do they hate apps2fat? is there any problems in that?
[G1 Android Development] Firerat:
read about it on cm forums, probably mentioned here on xda aswell
[G1 Android Development] sauudmir:
ok thanks alot :) :) :)
[G1 Android Development] izzy001:
How exactly do you install the NoneDanger Kernel?... Just over the failed rom or before the rom. I am trying to run CM6 RC2, I downloaded the nonedanger kernel but i can't get either to work what should i do?
[G1 Android Development] jcarrz1:
search found what i was looking for. nevermind.
[G1 Android Development] Firerat:
if you flash the kernel before the rom, it will get over written by the rom

so... flash it after the rom,
[G1 Android Development] izzy001:
You see Firerat, I have already tried flashing them, but get an error trying to flash CM6 RC2. It tells me at the end, "Installtion aborted" I flash all my rom through recovery if that's any help. Is there a way to get through this? If not is there a way to mess with some thing in the rom? I can sign files if the unzip is nessesary.
[G1 Android Development] Firerat:
is that the only thing it says "Installtion aborted"? or does it give a reason?
[G1 Android Development] ANtiHazarD:
Ok, firerat...it's my repost :-D

what can you say to me about this...
[G1 Android Development] Firerat:
you didn't do

fastboot erase system -w

ref 1.42.0000,

if cm6 refuses to install and gives you a list of SPLs, then

see post 2, and fake your SPL

..

Everything you need is in post 1 or/and 2
[G1 Android Development] ANtiHazarD:
ohh... :-D I would try :-) Thx
[G1 Android Development] izzy001:
Ok Firerat, after read the your first and second post many many times I think I have found what is my problem. I will tell you how it turns out.
[G1 Android Development] Firerat:
I know how it will turn out

I figured it out by putting together the diffreent bits of information you gave in the three different threads you posted in, one here and two on cm forums

you didn't fake your spl

it would have been much quicker for you to just post the full information in this thread and this alone
[G1 Android Development] izzy001:
Sorry about that Firerat, it seems that my error was in the mtdpartmap file. CM6 flashed flawlessly,but now i get this error when trying to flash FR-CM6RC2-bootimg4NoneD-AutoMTD on top of CM6. My recovery just gives me this error:

E:Error in /sdcard/FR-CM6RC2-bootimg4noneD-AutoMTD.zip

Is there a way to fix it?
[G1 Android Development] Firerat:
Doh Doh Doh

I uploaded the wrong one

the updater-script had a missing ,

this is the fixed version

FR-CM6RC2-bootimg4NoneD-AutoMTD.zip (MD5: 7858a8a8d126919318d1718c6e5167ec )

http://www.mediafire.com/file/ttxfcocsti3mma3/FR-CM6RC2-bootimg4NoneD-AutoMTD.zip
[G1 Android Development] izzy001:
I thank you greatly Firerat for you great patches, help and support, this work perfectly. :)
[G1 Android Development] Firerat:
meh, would have been better if I didn't mess up the original download