yashsingh1/xdaforums huggingface dataset:
[G1 Android Development] 2fast4u88:
I will give it a try in a min.

Edit: Sorry to sound like a idiot but what am I looking for on cyanogen? As all you did was link the main page. I know click on the desire cdma tab. Other than that not sure. Though I grabbed cmtd from ennon over there. Would that not be the right one to use?
[G1 Android Development] elfasito:
hello, I have a problem

I am trying to remove the CustomMTD, to flash the ram 14mb patch hack.

Flash: FR-remove-v1.5.6-CustomMTD_S.zip

but after restart I enter an application manager and even shows me 117 mb internal.

Any other way to remove customMTD?
[G1 Android Development] bylokk:
why do you need to remove custommtd to flash the new ram hack? I have both and I'm very happy with it atm.
[G1 Android Development] AndDiSa:
You have to remove it, when you want to flash radio / spl using recovery and not fastboot, otherwise cache partition is not big enough to flash the radio / spl.

@elfasio: did you reboot to recovery after applying the FR-remove-v1.5.6-CustomMTD_S.zip otherwise there is still the 'old' partition layout. You should also do a

fastboot erase system -w

after changing partition layout, otherwise you could mess up things.
[G1 Android Development] aqualls:
Where can I find the remove .zip? Searched the forum but nada. I need to update my radio.
[G1 Android Development] elfasito:
did not understand this part.

* Apply patch FR-remove-v1.5.6-CustomMTD_S.zip.

then restart fastboot mode, and from the console adb: fastboot erase system-w

* Changing after partition layout, Otherwise Could you mess up things!

with this what you mean. doing the above steps Changing partition layout right? I need not do anything else?

sorry my bad english
[G1 Android Development] elfasito:
http://www.mediafire.com/?lifib6a9ptj5j#2,1

firerats the link.

enter to v1.5.6. and there is the zip you're looking for
[G1 Android Development] AndDiSa:
You should apply the patch FR-remove-v1.5.6-CustomMTD_S.zip, then you should reboot into recovery. At this moment the new partition-layout it valid.

Now you can go to fastboot-mode and do

fastboot erase system-w

At this moment, everything is "clean" and you can restore the ROM or install a new one. If you do not erase everything, there might be situations, where the "old" data remains and this could cause errors.
[G1 Android Development] elfasito:
thanks, I done What you said. Everything ended right.
[G1 Android Development] Serris:
So after couple of days searching, then atleast 10 hours trying, I have finally learned how to mod boot.img, and init.rc within it. And finally 06BindCache starts at boot :), thanks firerat, one of your posts helped a lot :)
[G1 Android Development] Firerat:
hmmm

tell me which one so I can go and delete it
[G1 Android Development] Serris:
hehe :) #874
[G1 Android Development] elfasito:
a question, I applied the patch 14mb ram.

now to apply the customMTD again, should I change something mtdpartmap? since I have the new spl changed 1.33.0013d
[G1 Android Development] aqualls:
Thanks much.
[G1 Android Development] aqualls:
When I try to do fastboot erase system -w, it ends up saying failed. I check for fastboot devices and it shows there. It is S-off. But for some reason I can not change partition sizes no matter what.
[G1 Android Development] Lightfield:
Forgive me of my ignorance.

I've successfully got everything set up. However, as I install apps and eventually uninstall them, the internal phone storage free space continues to decrease. I only can reclaim some of that space. Where does it go?
[G1 Android Development] netrunner7:
Please corret me if i'm wrong.

for the ROM Zip Patcher for Devs i need to do following steps:

1) create on the sdcard the file mtdpartmap.txt containing for example "mtd 90 2"

2) extract the zip file and put in the same directory my rom. I'm using SPQRom 0.7 - CM6 (FroYo 2.2.1) - CyanogenMod 6.1 for HTC TATTOO

3) start the linux script

4) flash again my phone using the new created rom

Have i to wipe data or cache for this method ?

i have compcache and jit enabled atm and dalvik is on cache partition too.

thx netrunner
[G1 Android Development] nagasgura:
Didn't Work

I followed the instructions and it didn't change the partition sizes.
[G1 Android Development] Firerat:
that is what everyone in the thread is posting about.

seriously

if it didn't work, you did something wrong
[G1 Android Development] nagasgura:
I also am getting the error: E:Can't mount /dev/block/mmcblk0p2 (File exists)

and this: E:Can't mount CACHE:recovery/command

I tried wiping the system via fastboot, but I got this error message: erasing 'system'... FAILED (status malformed (1 bytes))

finished. total time: 0.001s
[G1 Android Development] Firerat:
hold on, you have an incredible?

if you do it doesn't use msm_nand
[G1 Android Development] Firerat:
google

site:xdaforums.com fastboot status malformed
[G1 Android Development] nagasgura:
So...what does this mean? My phone seems to be working fine. Can I just ignore this issue, or what problems can it cause?
[G1 Android Development] nagasgura:
I know what the problem is

I think I figured out my problem. When in fastboot, my phone isn't recognized by my computer. I went into manage devices, but Android Device isn't showing up at all. When I go back to bootloader, it recognizes my phone, and says its drivers are up to date. The only problem is, fastboot commands can only be used while in fastboot. If my phone isn't recognized while in fastboot, then I can't apply any fastboot commands. How can I get my computer to recognize my phone while in fastboot?
[G1 Android Development] arsonist63086:
how do i do this on 2708 hack

hi I've been trying to do this mod on my g1 with the 2708+the new split to do get the 14mb extra free space.. I've tryed the to do it the way it was stated in the 1st post and also tryed to do the way firerat stated in post 84 or something were he shows tells how to do it with the 2708 hack already done.. and still no luck. so how can I get tis partition hack to work on a 2708 flashed g1.. detailed information and step by step l would be grate .. also it will help other ppl ... thanks.
[G1 Android Development] del4:
Had this working with Sprint Lover's ROM, using "mtd 240 160", but it wasn't until I flashed CM6.1.2 that I could get this to work with a much lower cache size. Guess that ROM wasn't performing the bind mount properly? After removing lots of stuff I didn't need, I now have it working with "mtd 120 8", which gives me 808MB in /data. Thanks much for providing this!

Will the first post be updated with an updated changelog and links to the latest version(s)? I'm using 1.5.7b, but would like to keep up on later updates as they come out....
[G1 Android Development] xinco:
I've had this working, but I wiped everything out and installed the new radio for my G1 with the 2708 patched CM6.1. What is the current recommended procedure to moved back to the engineering SPL temporarily so I can apply my Custom MTD partitions again, since I can't do it with fastboot now?
[G1 Android Development] Firerat:
I use radio 28.25

no reason customMTD won't work
[G1 Android Development] d12unk13astard:
So this will work with the new radio 2825 and 1.33.0013d spl, i was thinking you would need to have an s-off spl also before attempting this.
[G1 Android Development] xinco:
Thanks. Just did it, worked fine after a glitch about out of cache space. Not sure what that was, but I started over from the wipe and everything ended up fine.

d12unk13astard: Exactly what I was thinking. But I did it from recovery and everything went fine.

Firerat, thanks for all you do! I know I would have broken down to get a new phone by now without your stuff. Not discounting everyone else's work - but you make it accessible and usable.
[G1 Android Development] Firerat:
the 1.33.0013d is not a true S-ON

EzTerry fixed it for us all, we owe him a great deal

it lacks ability to fastboot flash recovery, boot , radio and hboot

from what I gather this is due to the 1.33.0013 base simply not having these features

BUT..

you can still fastboot erase , just make sure you don't erase recovery, else you will be stuck without it.

you can still reflash recovery in a rom

( best achieved by using my script on CM forums which hijacks an init service to temporarily shut down Android to make memory available .. but with the extra 15mb you might be able to get away without that )

if you can't boot a rom to recover the recovery then EzTerry modified 1.33.0013 so you can flash .nbh without all the signchecks, so you can get a full Eng hboot back and reflash recovery, radio and hboot )

So you have a plan b and a plan c ;)
[G1 Android Development] yonu:
if this has been coved i am sorry but how do i uninstall the mtd is it simply running the remove zip or is there more to it

Thanks
[G1 Android Development] Firerat:
its been covered

use the remove zip.

then format syste,cache and data

either with

clockwork partition formats ( recommended )

Superwipe zip - search ( you may need to remove assert checks if you don't have a dream/magic, its recommended if you use RA )

fastboot erase system -w ( not all that convenient, as you need to boot to fastboot mode, above two are preferred )

and reboot recovery , flash ROM / restore nand
[G1 Android Development] yonu:
thanks I did that just wanted to make sure there wasn't anything else i just wanted to make sure as no matter what rom I flash I end up in a reboot loop at the G1 screen
[G1 Android Development] Firerat:
like a lot of people you fail to give anything useful

search logcat

provide one

name the ROM

give radio and spl version

hell, tell me what phone you have

detail any extra stuff you have flashed, like kernel , gapps themes etc

without stuff like that you will get no help
[G1 Android Development] yonu:
ok the rom i am trying to reflash is froyo for trout but i even tried CM6

I had flashed radio 2.22.28.25 & hboot 1.33.0013d when i was trying to get DroidEris v4.5 working

the phone is a 32b G1

and no i havn't flashed any extras

now the on thing I was able to get working was the original tmobile rom as when i restore the nandroid backup it works but i can't flash from it as it starts the contant reboot again I will get the log cat in a bit as I don't have the phone with me at the moment

Thanks,

Reg
[G1 Android Development] Firerat:
you need a Kernel that was compiled for your radio and spl

this is why it is bootlooping, nothing to do with customMTD
[G1 Android Development] yonu:
ok got ya so i need to go download a kernel

sorry for the stupid questions I am used to windows mobile not android

thanks,

Reg
[G1 Android Development] cordell12:
I wanna try this on my LG Optimus S, I used the mod on my HTC Hero and feel it is one of the best mods for that phone. Can you please look at my "df" and help me with sizes I will need for custom MTD.

Thanks

It looks a bit different than what I am used to seeing on the Hero...

/dev: 217276K total, 12K used, 217264K available (block size 4096)

/cache: 127104K total, 75216K used, 51888K available (block size 4096)

/system: 162304K total, 125680K used, 36624K available (block size 4096)

/data: 168832K total, 22552K used, 146280K available (block size 4096)

/persist: 1536K total, 1156K used, 380K available (block size 4096)

/mnt/asec: 217276K total, 0K used, 217276K available (block size 4096)

/data/dalvik-cache: 127104K total, 75216K used, 51888K available (block size 4096)

/system/sd: 1845436K total, 94652K used, 1750784K available (block size 4096)

/mnt/sdcard: 5864492K total, 3205500K used, 2658992K available (block size 4096)

/mnt/secure/asec: Permission denied
[G1 Android Development] cordell12:
This one is a bit easier to read. I understand the system size, am I rigjt in needing cache at 80 for good referance?

Thanks

$ export PATH=/data/local/bin:$PATH

$si

si: permission denied

$ su

# df -h

-h: No such file or directory

# busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 212.2M 12.0K 212.2M 0% /dev

/dev/block/mtdblock1 124.1M 69.8M 54.4M 56% /cache

/dev/block/mtdblock5 158.5M 122.7M 35.8M 77% /system

/dev/block/mtdblock6 164.9M 13.6M 151.3M 8% /data

/dev/block/mtdblock8 1.5M 1.1M 380.0K 75% /persist

tmpfs 212.2M 0 212.2M 0% /mnt/asec

/dev/block/mtdblock1 124.1M 69.8M 54.4M 56% /data/dalvik-cache

/dev/block/mmcblk0p2 1.8G 103.7M 1.7G 6% /system/sd

/dev/block/vold/179:1

5.6G 3.1G 2.5G 56% /mnt/sdcard

/dev/block/vold/179:1

5.6G 3.1G 2.5G 56% /mnt/secure/asec

#
[G1 Android Development] dillalade:
Hey FR,

Hope you can assist me in acheiving my Custom partitions on the Froyo Yoshi 1.8 rom.

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

I have the new radio spl (requiring the 2708 ezterry patches.)

Here is my df - h output - something that strikes me is the way /cache is being used quite heavily compared to the way cm6.1 used this - as you advise in this thread, 2mb is sufficent - even 1mb at times from my previous workings.

However with this Yoshi rom (which btw is the fastest rom I think I've used in ~3years) /cache seems to be used loads - and unsure how to run a partition of "74 2".

Regardless of me attempting to run your recovery/boot zips appropriately around the rom flash - they do not take effect - it's clear the ROM is overiding my attempts with your customMTD zip flashes.

$ export PATH=/data/local/bin:$PATH

$ df -h

Filesystem Size Used Available Use% Mounted on

$ df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 55.0M 0 55.0M 0% /dev

tmpfs 55.0M 0 55.0M 0% /mnt/asec

/dev/block/mtdblock3 91.0M 73.6M 17.4M 81% /system

/dev/block/mtdblock5 91.8M 16.8M 74.9M 18% /data

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

/dev/block/mtdblock4 27.0M 12.2M 14.8M 45% /cache

/dev/block/mmcblk0p2 686.4M 104.8M 544.9M 16% /sd-ext /dev/block/mmcblk0p2 686.4M 104.8M 544.9M 16% /data/app

/dev/block/mmcblk0p2 686.4M 104.8M 544.9M 16% /data/app-private

/dev/block/mmcblk0p2 686.4M 104.8M 544.9M 16% /data/dalvik-cache

/dev/block/vold/179:1

14.2G 13.8G 386.6M 97% /mnt/sdcard

df: /mnt/secure/asec: Permission denied

$

I hope you can assist dude
[G1 Android Development] Firerat:
configure it properly

"mtd 75 16"

I'm not going to bother looking at that ROM, the cooks are known for being a bit crap
[G1 Android Development] cordell12:
Hello Firerat,

I posted above without posting my rom or any information for that matter. HERE is the rom I am using, its called ThundeROM-1.5, it is on the LS Optimus S. The nand appears to be the same so I am confident your mod will work. We are all dying for more space, well at least those of us who used to use the HTC Hero with your mod on it. The system seems to stay the same and looks like I can get 34 mb from it. The cache is very large and varies in size, I have done the df -h and gotten a couple diff results, not major though, all within 5 mb. I was thinking a safe cache size would be 80 mb. Could you please have a look in some spare time (if you have any, lol) and let me/us LG users know if we can benefit from your custom partitions?

Thanks :)

# busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 212.2M 12.0K 212.2M 0% /dev

/dev/block/mtdblock1 124.1M 69.8M 54.4M 56% /cache

/dev/block/mtdblock5 158.5M 122.7M 35.8M 77% /system

/dev/block/mtdblock6 164.9M 13.6M 151.3M 8% /data

/dev/block/mtdblock8 1.5M 1.1M 380.0K 75% /persist

tmpfs 212.2M 0 212.2M 0% /mnt/asec

/dev/block/mtdblock1 124.1M 69.8M 54.4M 56% /data/dalvik-cache

/dev/block/mmcblk0p2 1.8G 103.7M 1.7G 6% /system/sd

/dev/block/vold/179:1

5.6G 3.1G 2.5G 56% /mnt/sdcard

/dev/block/vold/179:1

5.6G 3.1G 2.5G 56% /mnt/secure/asec
[G1 Android Development] highlandsun:
So, since I'm using apps2sdext and also my dalvik-cache is on sd, why do I need anything allocated to /data or /cache on the built in memory? Seems like I'd want /data to be tiny, and maybe make /system larger. Or, put the dalvik-cache back on the MTD so it runs faster. What else is using /cache? (This is a G1 with CM 6.1)
[G1 Android Development] thisishoot:
firerat may you lend a hand i dont get what exactly happened

i have froyo yoshi 1.8.1 running on a magic 32b Right Now

and also 28.25 radio and spl

Here is my df - h

# busybox df -h

busybox df -h

Filesystem Size Used Available Use% Mounted on

tmpfs 55.0M 0 55.0M 0% /dev

tmpfs 55.0M 0 55.0M 0% /mnt/asec

/dev/block/mtdblock3 90.0M 78.6M 11.4M 87% /system

/dev/block/mtdblock5 295.8M 2.7M 293.0M 1% /data

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

/dev/block/mmcblk0p2 343.2M 34.5M 290.4M 11% /sd-ext

/dev/block/mmcblk0p2 343.2M 34.5M 290.4M 11% /cache

/dev/block/mtdblock4 80.0M 1.1M 78.9M 1% /dev/cache

/dev/block/mmcblk0p2 343.2M 34.5M 290.4M 11% /data/dalvik-cache

/dev/block/vold/179:1

7.2G 548.0K 7.2G 0% /mnt/sdcard

/dev/block/vold/179:1

7.2G 548.0K 7.2G 0% /mnt/secure/asec

in my mtdpartmap i have 80 16 what i dont get is why

/cache is well so much to say the least,

its not what i expected and shouldn't /system be 80?

everything works just fine its just it doesn't seem right.

if you could lend me some assistance with the mtd please id appreciate so much

i hope you can help man
[G1 Android Development] Firerat:
bold is the real cache partition

it is 80mb

you screwed up somewhere

start again

as the yoshi ROM is a Kanged CM, it is running the boot scripts ok

but since the yoshi ROM is a Kanged CM then system dex is going to /cache/dalvik-cache but in your case it is actually going to sd-ext

add dalvik.vm.dexopt-data-only=1 to the build.prop

su
busybox mount -o rw,remount /system
echo "dalvik.vm.dexopt-data-only=1" >> /system/build.prop

and set your mtdpartmap.txt to

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

reboot to recovery

nandbackup

flash recovery patcher

format system, cache and data ( either with clockwork or fastboot erase system -w )

reboot to recovery

nandrestore

flash boot patcher

look around for a better ROM, I can tell the yoshi ROM is a bit crap from the cooks list

in the mean time, undo any dalvik2sd crap they add

( even if it is my script which they use...

You have plenty of space on data you don't need dex2sd-ext it will just slow down your phone )
[G1 Android Development] thisishoot:
yep i feel like such a tool i shouldve read more carefully smh.

thanks so much firerat your the man.

and your right as far as roms go im just hopping around until either i break or sell

this phone that is until my mt4g comes to papa lol

thanks again
[G1 Android Development] sisterchick:
No digest?

Never mind...found my problem!
[G1 Android Development] AndDiSa:
and what was the reason?
[G1 Android Development] sisterchick:
Operator error? Somehow copied a rogue zip into the boot zip archive. When flashing the boot patch, it gave me a digest error. Took me way longer than it should have to figure it out!
[G1 Android Development] pardus:
Firerat, might I suggest putting in something extra in your OP. You say what this does but not WHY one would want it, i.e. what the exact benefits of using custom partition sizes are. One gets the gist if you read the first few pages but it would be nice to have this explanation in the OP.

(Also BTW "The 'Tech' in Breif" should be "The 'Tech' in Brief")
[G1 Android Development] old.ghost:
will try out, thanks.
[G1 Android Development] sickleman:
When I did this modification, installed EzFrankenbread (or sth like that), wiped all the system, I couldn't eneble wifi connection on the Cyan307nightly with 2708 pershoot kernel. There was error and nothing more. Only reflash to the oldest ROM I ever seen from nbh and reflash 2708 imgs combo in fastboot helped.
[G1 Android Development] Firerat:
I have no idea why you are posting this to this thread.

customMTD has absolutely nothing to do with wifi
[G1 Android Development] sickleman:
I don't know what caused this. I think if it's not caused by the ROM or kernel it must by by customMTD, or 2708 combo. I posted it here, because I've found here the solution (reflash recovery, radio and spl), and because I think, I won't be the only one with this problem, so I'm only reporting this here... It's a way to little to post new thread...
[G1 Android Development] Firerat:
then you are a fool

simply reflasing recovery radio and spl will not change anything

your problems with wifi were due to something else,

you just jumped to conclusions
[G1 Android Development] sickleman:
Sorry, I think you're not fair by splitting my post that way. I never intend to offend you, or your work. I think that Your work and involvement are the best way of expanding Android platform on our Dreams.

My point was, that before I've flashed customMTD, everything was ok, even on the 2708 combo and custom kernel. But when I decided to change entire ROM after I've applied customMTD, I've got problems with wifi. Several reboots didn't helped, reflashing whole ROM too. I managed to search for the salvation in this topic and I've found it. Thats all. Nothing except customMTD wasn't changed between this two situations, that's why I reported it here.

But I think, that this discussion concerning my case, is stopping the others. I know my knowledge of this topic is too small to discuss it with You, I'm barelly starting learning about Andoid and all that stuff, also my english is rather poor.

Sorry for my first post in this thread. I'm starting regreting this.
[G1 Android Development] Firerat:
I don't

I never thought you did

ok, so everything was fine?

I see, do go on

So Naturally you think the problem is customMTD, even if it was working fine with a different ROM

errm , hold on .. you said you changed the ROM

it is not your knowledge or language that is the problem, it is your logic.
[G1 Android Development] sickleman:
No, let see one more time:

Before everything I had Cyanogenmod's nightly 307 (the latest one nightly I saw on the teamdouche.net for Dream and Sapphire) with 2708 kernel from droidbasement.

I've wanted to try Gingerbread, so I started searching. EZ FRankenCYAN requires at last 94Mb free space on the system, so I decided to apply your modification. Everything works fine, but Gingerbread as it's now is a bit too slow for me, so I came back to froyo. I installed it as it was before applying customMTD (not from nandroid, but zip after zip: n307, gapps, gingerbread keyboard, market updater and the kernell). After booting, I've discovered, that the wifi, everytime I want to turn it on, returns me an error. I've rebooted it several times, but that doesn't helped. I've flashed everything one more time and that didn't helped too.

The only one modification differing these two situations was customMTD, so I've flashed in fastboot "orange-1.58.73.2.nbh", and the 2708combo all over again. Now, everything is working fine (without customMTD).
[G1 Android Development] AndDiSa:
Did you wipe everything (fastboot erase system -w) before installing the zips again? Before going back from gingerbread to froyo you should have a clean phone ...
[G1 Android Development] sickleman:
Yes, I wiped everything, but not in the fastboot. I wiped it with Ohsaka's and Firerat's Superwipe.zip in the recovery, then I've rebooted my phone as it's advised at the last lines of this zip...
[G1 Android Development] Firerat:
well, you seem to have gone into detail, yet you have not detailed what the actual error was/is.

so here is the thing, I need to guess..

I guess that you didn't flash the boot patcher after flashing the kernel

this means that there is a miss match between the size of the partitions in recover and the size in the booted rom..

the last thing written is the kernel modules, wifi fails because either the wlan.ko or the modules.sqf is corrupted.

the reason it works when you undo customMTD ( by going about it the long way round ) is that now recovery.img and boot.img matches your wlan.ko/modules.sqf is not corrupt, as the partition sizes match..

This does assume that you failed to follow the instructions in the OP and flash the boot patcher after the kernel.

but, if you missed off the fact that you did flash the boot patcher , then this will not hold true..