yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] GunToYoMouth123:
alright, thanksss.

when you say "erase system cache and data"

you mean wipe data and cache through recovery right?
[G1 Android Development] billquinn1:
System to. You can flash the super wipe from

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

to clean everything.
[G1 Android Development] flipfone:
I had a problem last night where my phone was working fine, i shutdown to Nandroid and the backup froze at system. I tried to restart the phone only to get stuck at the HTC screen. Long story short the MTD file was corrupt. I had opened the file earlier thru the PC to read the numbers and i guess when i exited disabled the USB drive the file didnt close properly. Just wanted to share incase someone else runs into the same issue. This is absolutely my favorite mod
[G1 Android Development] GunToYoMouth123:
I'm gon' try it out, thank you sir!
[G1 Android Development] PlatinumMOTO:
what do you mean by this do we actually put this into the txt file?

echo "mtd 55 2" > /sdcard/mtdpartmap.txt

echo "spl 1.33.2005" >> /sdcard/mtdpartmap.txt

this is what I had before so now I need to type

echo "mtd 0"

I just tried to flash the X0Cyan using the 2708 patch and it didn't work.
[G1 Android Development] mat_pav:
Can someone help me with the right procedure to flash this pach +15MB hack. Should i use the v1.5.6 or v1.5.7. for Dream? Do i need to spoof the SPL if i use your MTDpach?

Clean-fresh install

1. Wipe all

2. Reformat-repartition SD card

3. Flash 2.22.27.08 radio and 1.33.0013d hboot

fastboot flash recovery recovery-RA-dream-v1.7.0-cyan.img

fastboot flash radio radio-2.22.27.08.img

fastboot flash hboot hboot-1.33.0013d.img

fastboot reboot-bootloader

fastboot erase system -w

fastboot erase boot

4. create mtdpartmap.txt and put on /sdcard/

5. Boot into recovery

6. Wipe cache + data

7. Flash FR-recovery-v1.5.6-CustomMTD_S.zip

8. Reboot to recovery ( reboot and hold Home )

9. Flash ROM + extras

10. Flash the anykernel with a 2780 port

11. Flash FR-boot-v1.5.6-CustomMTD_S.zip

12. Then apply the AIO patch

sh /sdcard/fr-patch138b.txt swap a2sd

TNX
[G1 Android Development] Firerat:
v1.5.7 recovery flasher will unpatch recovery if you set system size to 0

echo "mtd 0" > /sdcard/mtdpartmap.txt

and flash recovery patcher

Or just flash v1.5.6 remove

( I think the standalone remove zip will make a return :) )

but I'm confused , you can't flash the 2708 kernel?

this is because it will only work on 1.33.0013 and 1.33.0013d SPLs

but, if you have 1.33.0013d, then you can't flash CM ( or CM based ROM ) as its not been accepted yet.

to get round that, spoof ( Fake ) your spl to be 1.33.0013
[G1 Android Development] PlatinumMOTO:
So when I make the txt file do I type it exactly like that? do I need to run it like a script with sh/sdcard/mtdpartmap.txt?

I want to set my partiton to 55 2 and fake my spl so I can flash iCyan0x00 so I won't need apps2sdext. How do I create the txt file?
[G1 Android Development] Firerat:
the recovery patcher's script reads that file

you just need to create it.

but you can use v1.5.6 remove zip

the remove function is quite straight forward, any version will work
[G1 Android Development] PlatinumMOTO:
ok I removed it but I can't flash the iCyan rom still do I need to do something else or is it just not flashable at this point because it's not compatible with the new radio and spl?
[G1 Android Development] Firerat:
Once you have flashed the new Radio and SPL, then you can use customMTD again.

the reason you have to remove customMTD is because /cache is used as part of the flashing process, with customMTD it will likely fail.

So, either redo CustomMTD and include the spoof line

spl 1.33.0013

or use the spoofer that ezterry links to in the 2708 OP

your recovery will look like its running under 1.33.0013 ( and not 1.33.0013d ) and you will be able to flash ROMs that don't have the new SPL in their approved lists yet.
[G1 Android Development] PlatinumMOTO:
Ok this is exactly how I have my mtdpartmap.txt file setup:

echo "mtd 55 2" > /sdcard/mtdpartmap.txt

echo "spl 1.33.0013" >> /sdcard/mtdpartmap.txt

is this wrong?
[G1 Android Development] breezy169:
ok i ran into a problem

i flashed the recovery zip(i followed every instruction before doing so) but it said error cache so i decided to just forget about doing it in the first place so wiped and flashed a rom and it would not get past the boot logo(not the TM g1 ) and when it does go into the rom i can not find the market at all.(and yes i fash them whenever the dev says i have to)

i know it sounds weird but does any1 know what to do ?
[G1 Android Development] GunToYoMouth123:
quick question, how do i know i removed it?
[G1 Android Development] juangil:
as fr mentioned, if you change the mtdpartmap.txt to

mtd 0

spl 3.33.0013

it will be as if you removed it
[G1 Android Development] PlatinumMOTO:
Tried to reflash iCyan it worked with my mtdpartmap.txt like this:

mtd 55 2

spl 1.33.0013

then it would not boot just kept restarting to recovery.

is 55 2 too high?
[G1 Android Development] Firerat:
even I can't get cm6 system down to 55

be less muppet and actually give some effing detail

I give you power, and you do stupid things with it

please if you use this UNDERSTAND what it does

55 2 is way toooo small, I've only managed to get cm6 down to 67, I very much dubt your have got it to 55

Donut, yeah, easy

but you being an effing muppet you decided to give me eff all, so now I will just assume you are just a muppet

not my fault read back your post you kin halfwit.
[G1 Android Development] ralphclark:
blimey that was a conversation killer :o
[G1 Android Development] Firerat:
yeah, I was in a bad mood

Still I'm fed up with people doing silly things, then crying about it providing no detail what so ever

system 55 is too small for CM6 or CM5 , might be ok for CM4 idk

but @PlatinumMOTO seems to think it might be too big?

hasn't given a logcat

hasn't given specific rom / kernel

hasn't given output of

adb shell
mount -a
df -h

or anything useful , its annoying
[G1 Android Development] sunzoje:
using fr boot/recovery 1.5.6 got

#df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 55.1M 0 55.1M 0% /dev

tmpfs 55.1M 0 55.1M 0% /mnt/asec

/dev/block/mtdblock3 91.0M 82.6M 8.4M 91% /system

/dev/block/mtdblock5 91.8M 75.7M 16.0M 83% /data

/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin

/dev/block/mtdblock5 91.8M 75.7M 16.0M 83% /cache

/dev/block/mtdblock4 27.0M 1.1M 25.9M 4% /dev/cache

with spl 1.33.0013d and 2.22.27.08 radio. am on cm6, with amon_ra 1.7 recovery ...

think mtd patch didn't work. any solution???
[G1 Android Development] Firerat:
you could try

flashing the recovery patcher

formatting system, cache and data

rebooting recovery

flashing ROM + Extras ( or nand restore )

and then flash the boot patcher

and do that after actually putting the sizes you want in /sdcard/mtdpartmap.txt
[G1 Android Development] sunzoje:
i did all the steps without having mtdpartmap.txt.

what's the default option? afaik before it was not necessary to put mtdpartmap.txt in sdcard.
[G1 Android Development] Firerat:
90 2 is no good as a default as many none G1s are using it, so its better to have no change than deal with 'bootloops' because some muppet didn't configure for a desire

admittedly , I used to test for g1 .. but I wanted to clean the script so it was easier to read/adapt
[G1 Android Development] sunzoje:
it worked with mtdpartmap.txt. thnx for help @Firerat
[G1 Android Development] elfasito:
I'm looking at 14 mb ram hack, you can do something with CUSTOM MTD, or should return to normal recovery and flashing the new radio and spl?
[G1 Android Development] AndDiSa:
For installing the new radio and the new SPL you should remove CustomMTD temporarily either by installing the FR-remove-v1.5.6-CustomMTD_S.zip or installing a unpatched recovery. After you installed the new radio and new SPL, you can re-apply the CustomMTD patch, probably additionally faking SPL to 1.33.0013 ;)
[G1 Android Development] Firerat:
yeap..

but, if your using fastboot to flash radio and hboot , you don't actually need to remove customMTD.

if you are flashing via recovery, them you *must* remove customMTD

below is my 'spin' on http://xdaforums.com/showthread.php?t=831139

fastboot overview

assumes you have a full eng SPL , e.g. 1.33.2005 aka danager , or 1.33.2003

nandbackup

reboot to fastboot

fastboot erase system -w

fastboot erase boot

fastboot flash radio radio-2.22.28.25.img ( extract from the zip )

fastboot flash hboot hboot-1.33.0013d.img

fastboot reboot-bootloader

confirm radio and hboot versions

fastboot reboot ( should take you to recovery )

adb shell df -h ( confirm size of cache is your customMTD layout )

nandrestore

flash ezram kernel ( aka 2708 kernel )

flash boot patcher

reboot

radio 2825 via recovery

this assumes you have already flashed the 2708 radio and 1.33.0013d ( and so can't use fastboot )

nandbackup

flash remove customMTD

format system, cache and data *

reboot recovery

confirm cache size 27mb ( adb shell df -h )

flash update_2.22.28.25_S.zip

it will reboot and do the flash, then reboot you to recovery

reboot to fastboot and confirm radio

reboot to recovery and flash recovery patcher

reboot recovery

confirm customMTD cache size ( adb shell df -h )

nandrestore

reboot
[G1 Android Development] Foo_Blyat:
lmao, so much win!!!!!
[G1 Android Development] Basaltinou:
Stuck at Extracting Patch Tools...

I have a little problem running Custom MTD Patcher :

I used it a few times before, but just for resizing partitions.

I need to use this time the spl spoofing and wanted to try out AIO integration.

No problem with patching recovery, but I'm stuck at Extracting Patch tools.

My configuration : HTC Magic (32B), radio 2.22.28.25, spl 1.33.0013d

Custom MTD 1.5.6, All in one script 1.41 Beta 2

mtdpartmap.txt :

mtd 120 100
spl 1.33.2010
aio a2sd shabang remount ddb fsdext

It seems that it hangs when doing data bind, expecting me to answer yes or no (which is rather difficult to do in that case) :

Recovery.log :

+ return
+ datadatabindcfg
+ read a
+ [ = y ]
+ [ = n ]
+ printmsg Please answer y or n
+ echo -e Please answer y or n
+ wc -L
+ ml=20
+ hf=
+ seq 20
+ hf==
+ hf===
+ hf====
+ hf=====
+ hf======
+ hf=======
+ hf========
+ hf=========
+ hf==========
+ hf===========
+ hf============
+ hf=============
+ hf==============
+ hf===============
+ hf================
+ hf=================
+ hf==================
+ hf===================
+ hf====================
+ hf=====================
+ echo -e Please answer y or n
+ busybox awk -v hf===================== BEGIN{print hf};END{print hf};{print $0};
====================
Please answer y or n
====================
[G1 Android Development] Firerat:
problem is not customMTD, its the AIO Beta , specifically the ddb option

you don't need to redo the ddb, so just install once the ROM is installed

I'll turn off interaction when it sees recovery

( tbh thought I already had )
[G1 Android Development] Basaltinou:
It seems that there could be another problem behind this, as I removed the ddb option from the aio line and it's still trying to do the data bind...

Would you prefer that I continue in the AIO thread ?
[G1 Android Development] Firerat:
its actually in the a2sd script, not ddb
[G1 Android Development] Foo_Blyat:
i was thinking about trying this on the HTC Aria, but i dont think i want to give you another phone market to be complaining about how to get this working, figure you have enough of a headache as is lol... =/
[G1 Android Development] Since001:
could someone tell me how i can reverse everything again?
[G1 Android Development] wjsturgis3:
You can either :

a) Reflash your recovery via fastboot, or

b) flash the FR-remove....zip file .

Then fastboot erase system -w,

then from recovery, do a nandroid restore of a backup that did NOT have the FR-boot mod flashed, or

flash a new ROM of your choice.
[G1 Android Development] xillius200:
Bump to first page xD
[G1 Android Development] miamig1:
Firerat:

I used the custom MTD zip to change the phone, but I do no see any changes. I am wondering if I am doing something wrong. When you say wipe cache and data, does that mean the dalvik_cache too. I did not wipe that one. I am running6.0.1 RC1, a2sd script 1-36c. Thanks for he patience. ds -h

ds: not found

# df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 48.2M 0 48.2M 0% /dev

tmpfs 48.2M 0 48.2M 0% /mnt/asec

/dev/block/mtdblock3 90.0M 85.6M 4.4M 95% /system

/dev/block/mtdblock5 89.8M 51.5M 38.2M 57% /data

/dev/block/loop0 4.0M 4.0M 0 100% /system/xbin

/dev/block/mtdblock4 30.0M 2.7M 27.3M 9% /cache

/dev/block/mmcblk0p2 457.4M 61.6M 371.4M 14% /sd-ext

/dev/block/mmcblk0p2 457.4M 61.6M 371.4M 14% /data/app

/dev/block/mmcblk0p2 457.4M 61.6M 371.4M 14% /data/app-private

/dev/block/mmcblk0p2 457.4M 61.6M 371.4M 14% /data/data

/dev/block/mmcblk0p2 457.4M 61.6M 371.4M 14% /data/system

/dev/block/vold/179:1

7.1G 615.8M 6.5G 8% /mnt/sdcard

/dev/block/vold/179:1

7.1G 615.8M 6.5G 8% /mnt/secure/asec

#

This is what I am getting.
[G1 Android Development] uniqedeath:
works great

took me a couple hours to finally get it but its great

im using froyo 2.2 cm6 my mtd setting is 110 2 and i have 307 mb available out of 368

thanks again you guys are incredible cdma hero
[G1 Android Development] uniqedeath:
even loads youtube videos faster
[G1 Android Development] redbeard07:
text file

Hey sorry for a dumb question.

If we don't have fastboot, can we just use Word or Notepad to make the

mtdpartmap.txt file?

If so, we just put "mtd 90 2" in it?

Thanks for your help,
[G1 Android Development] ID#:
Yes, you can!

I didn't know we can create txt-files with fastboot? :o
[G1 Android Development] Firerat:
No , you can't use word ( unless you save in plan txt ) , but you can use notepad

nah, you can't create txt with fastboot
[G1 Android Development] blizard80:
hi!

i need some help with this procedure...

i have used it once on a 2.1 rom... but now i'm unable to use it properly...

can it be used in cyanogen 6.1 rc?

i have 2 dalvik-cache folders... one on /cache and other on /data/cache... i think one is for system app and other for data app
[G1 Android Development] miamig1:
hi.firerat

can I please get some assistance. thanks
[G1 Android Development] Firerat:
you missed step 2
[G1 Android Development] Firerat:
read the OP

yes it can be used with 6.1 rc1

the /data/cache is for the bind mount, because your real /cache is too small
[G1 Android Development] miamig1:
I appreciate any help that can be given. I posted logcat and other information on above thread. Thanks
[G1 Android Development] miamig1:
this is what i had on the file .echo "mtd 85 2" > /sdcard/mtdpartmap.txt

is it wrong? and I checked it many tim thankse to be sure it was on the card.
[G1 Android Development] miamig1:
I am by no means an expert just trying to learn.
[G1 Android Development] Firerat:
look, its very simple

but you should be glad you couldn't get it to work

/dev/block/mtdblock3 90.0M 85.6M 4.4M 95% /system

85.6 is bigger than 85, it would have bootlooped

please do us both a favour and not use customMTD
[G1 Android Development] miamig1:
why is this? simple question.

why did the dev/cache did not change if it was a 90 system allready.

could you just answer without being sarcastic. thanks i just told you im trying to learn.
[G1 Android Development] Firerat:
you say you have the correct mtdpartmap.txt , but I do not believe you

dev/cache has nothng to do with system

dev/cache is only created when you actually succeed with customMTD boot patch, and only if /cache is less than 30mb

You failed to follow the instructions, somewhere

where I do not know, I can not read minds simple or otherwise

read the OP 5 times

make a checklist

follow the checklist and tick off as you complete each step
[G1 Android Development] G1sanju:
Removed already answered
[G1 Android Development] Firerat:
NO!

their system is 85.6 used

system 85 will fail!
[G1 Android Development] ibraheeemz:
HI Firerat

I am using latest radio and hboot by ezterry i.e. 28.07, 1.33.0013d with Biffmod 2.1. Can I use custom MTD? if yes then how would it affect the performance?

I am sorry but I could not read the whole stuff on this post so directly asking the question.
[G1 Android Development] Sleeepy2:
@ibraheeemz

1. yes you can use the custom MTD

2. it does not affect performance it affects space.
[G1 Android Development] Firerat:
No, it turns your phone into a golf ball

not quite figured out why yet

until I do , don't do it
[G1 Android Development] ibraheeemz:
thanks a lot for your valued comments.

whats the impact of using MTD? I mean whats the need to use custom memory structure?
[G1 Android Development] Firerat:
if you have to ask, you don't need it
[G1 Android Development] breezy169:
quick question if i wanted to fake the spl do i just write

echo "spl 1.33.2005" >> /sdcard/mtdpartmap.txt

without the >> or do i leave that?

and do i leave the "echo" there too ?
[G1 Android Development] Firerat:
http://linux.about.com/library/cmd/blcmdl1_echo.htm

http://www.tuxfiles.org/linuxhelp/iodirection.html
[G1 Android Development] breezy169:
yu could of just answered the question in a second and not wasted your time just sending me to some links ..
[G1 Android Development] Firerat:
would have taken longer to explain it to you
[G1 Android Development] blizard80:
i read the op... i had done this partitioning before.

my mistake was use the 1.5.6 version.

at least in my htc magic 32a... this version doesn't work.

at the end i used 1.5.3 and is perfect.

thank u
[G1 Android Development] Serris:
Hi, Im' having an error when downloading apps from android market that are bigger than my cache (3mb), I have been using MTD partition hack before on other sense and non sense roms, and it worked flawlessly, now I'm using a new sense rom (its odexed) and this error pops up, sorry it this has already been answered :)

PS: I used 1.5.3 MTD hack, 1.5.6 creates boot loops

adb shell df, things missing

c:\Android>adb shell df
/dev: 97676K total, 0K used, 97676K available (block size 4096)
/sqlite_stmt_journals: 4096K total, 0K used, 4096K available (block size 4096)
/system: 168960K total, 154784K used, 14176K available (block size 4096)
/data: 304896K total, 195204K used, 109692K available (block size 4096)
/cache: 3072K total, 1160K used, 1912K available (block size 4096)
/sdcard: 7771284K total, 5763596K used, 2007688K available (block size 4096)
[G1 Android Development] bylokk:
Hi@all,

I'm also using Version 1.53

What I want to do is: resize system partition from the default 90MB to 79MB.

Do I have to reflash my rom and/or recovery?

what I'v done so far:

- put mtdpartmap.txt with "mtd 79 2" on sdcard

- reflash fr-boot........CustomMTD.zip

- reboots
[G1 Android Development] redbeard07:
system data from terminal?

Filesystem Size Used Available Use% Mounted on

/dev/block/mtdblock3 73.0M 72.8M 236.0K 100% /system

/dev/block/mtdblock5 134.8M 107.2M 27.6M 80% /data

/dev/block/loop0 896.0K 896.0K 0 100% /system/lib/modules

/dev/block/loop1 4.0M 4.0M 0 100% /system/xbin

/dev/block/mmcblk0p2 457.4M 201.8M 231.1M 47% /sd-ext

/dev/block/mmcblk0p2 457.4M 201.8M 231.1M 47% /cache

/dev/block/mtdblock4 2.0M 776.0K 1.2M 38% /dev/cache

Can we get this data using terminal on the phone?

If so, whats the command?

Thanks for all your help
[G1 Android Development] Serris:
busybox df
[G1 Android Development] haunter1982:
Now my G1 is history. Im only on a Pulse. Is there a chance to get the MTD-Patch working on it? I know I asked this in August for my wife's mobile. But at this time it doesn't work. Now it is working on some other devices so perhaps on a Pulse too?

What can i do to test it without bricking my phone?
[G1 Android Development] bylokk:
same for me atm. For example Qype (>4MB)!

But I can't say if this has anything to do with CustomMTD.

btw: on /data I have about 16MB left.
[G1 Android Development] sparksco:
wow, 16mb is low :eek:
[G1 Android Development] bylokk:
too low for a 4MB installation?

well I still want to have data/data and dalvik-cache on internal memory, so space is a problem with over a 100 apps. My girlfriend has a Motorola Defy and currently over 1GB free internal memory. I want that too :cool:
[G1 Android Development] Serris:
Switch your phone with your gf's :D oh and if you find a solution, please do share, I've been messing around with this for 2 days, no luck! I also read about 40 pages of this thread, a few similar problems, yet the solution for them dosen't work for me :(
[G1 Android Development] bylokk:
okay... but what I still want to know is:

If I change the content of mtdpartmap.txt what do I need to reflash to make it work?
[G1 Android Development] AndDiSa:
Look at the OP: You need to reflash the FR_recovery-patch, then do a fastboot erase system -w. Now you have the new partition layout, i.e. you can install the new ROM or do a restore of a nandroid backup. Than you need to flash the FR_boot-patch and everything should be fine.;)
[G1 Android Development] bylokk:
ah thank you! it worked (after some problemes with my nandroid backup - only with superwipe.zip I could restore the backup). I didn't want to mess around with my recovery because with hboot 1.33.0013d my phone could have been bricked now if anything goes wrong.
[G1 Android Development] Firerat:
only softbricked, you could still get an Eng SPL to fix things

see Exterry's post

http://xdaforums.com/showthread.php?t=831139
[G1 Android Development] 2fast4u88:
Sorry I thought I was in the right one but guess I was posted in one that I was reading that I didn't want to. What I have is the cdma desire. I shrunk the stock sense backup(2.1 Eclair). Made the partition size like 205 10. I am using the files ennon has in his how to thread on the cyanogen forum. Which works fine cept cache isn't bind mounting to I guess data? Not sure where it should really go or how it is setup in cm6. As I never paid much attention.

So do I use what you posted in your other thread or could you explain what I have to do to over come that problem. The only reason I want this is the g/f doesn't like cm6 on hers. Is there any way you could pm me or e-mail or something for quick ?'s if I had on getting it to work? Just asking.

Edit: I tried this

su

sh /sd-ext/userinit.d/06BindCache

Then I get this error: sh: Can't open /sd-ext/userinit.d/06BindCache Any ideas?
[G1 Android Development] Firerat:
if the cache is not getting bind mounted ( because the rom doesn't run scripts in /system/etc/init.d )

manually run the script each boot

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

I'm currently doing other stuff at the moment, but I will get round to a better solution for people who use roms that don't use busybox's run-parts

until then

do manually as above each boot

or pester your dev to add run-parts

very good example of how to do it is in CM roms
[G1 Android Development] 2fast4u88:
Hm i tried this

su

sh /sd-ext/userinit.d/06BindCache

Then I get this error: sh: Can't open /sd-ext/userinit.d/06BindCache Any ideas?

I even made a ext partition and same thing. Forgot to back up the memory card and wiped the g/f's stuff. Opps...

Do you have a link to where I can do that. As I'm the one playing with the rom/backup. What exactly is the busy box run parts also? It has busy box installed to the system. Though I don't think it is the same thing.
[G1 Android Development] Firerat:
Sorry !! my fault

it is

su
sh /system/etc/init.d/06BindCache
[G1 Android Development] Firerat:
nearly missed that

CM6

http://forum.cyanogenmod.com/

find your device

look at its init.rc

# Run sysinit
exec /system/bin/sysinit

now look in /system/bin/sysinit

#!/system/bin/sh

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
/system/bin/logwrapper /system/xbin/run-parts /system/etc/init.d

checkout the files in system/etc/init.d

if your making your own , it needs to be executable

personally I chmod 700

the only user that should be able to run boot scripts is root

not that it really matters, we seem to give anyone root anyway :eek: