• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root Custom MTD

GingaB

Android Expert
Ive finally decided to head down custom MTD route! Not cos I need the space but to satisfy my need for modding! Ive been starved off my addiction to mod lately so here goes! :D

Ive looked at Alpharev hboot tables and the one that stands out is the CM7 r2 hboot mainly cos Ive read somewhere old CM7 hboot works very well on MIUI roms BUT the 5mb caches is tooooo small!! I reckon I want a safety net of 30mb caches at least.. Other tables have bigger caches but they are way too big! So looks like I will have to partition a custom MTD myself and Ive found a thread on xda (link below) is this guide ok to use??

[DEV][S-OFF] Custom MTD Partitions (resize data, system, and cache) - Page 41 - xda-developers

But before I go ahead with it I need to be sure I am doing this right. I nandroided my rom and it is 161mb but looking at Quick System Info my system is 111mb so if I partition MTD table like this.. system 140mb / caches 30mb / data 267mb Ive basically modified CM7 r2 hboot by increasing cache size is this ok??

Another thing concerns me I have AmonRa recovery can anybody confirm it wont cause any issues?
 
Firstly, look in /system to see if there is anything obvious that can be stripped out that you dont use (and you know what it is).

Languages in TTS, system apps etc and get a new size in QSI. You're wasting nearly 30MB in system still.

I would with what youve given, set system at 115MB - giving a little buffer.
I would also test the 06mountdl script in the toolbox download thread. If that works in init.d at start up, it will bind data/local to /cache/download, meaning you dont need cache so you can set it to 3MB.

Amonra works differently. Rastaman wrote a guide which can be found in the "all about rooting" sticky.
 
I stripped out what I dont need ages ago the reason why the system is bigger is due to adding modified extended settings on my rom... I'll check out Rasta's guide in abit....
 
Some roms have a folder in system called tts (text to Speech) which has languages in it.

Dont forget to check out the mountdl script I mentioned either. If that works, you get to steel an extra 27MB from cache as well as the 25MB from System.

Then you're looking at 319MB /Data!!!
 
Well its custom, so no table

I've got 75MB system, 3MB cache, leaving 360MB Data

I've got 7.65MB free on system though
 
I just looked through my entire system apps on root explorer I dont have TTS on my rom so Im ok there...

Ducky you still on MIUI these days?
 
Yes vpn can go if you dont create a vpn connection (Youd know if you did). TTS langauges are not in /system/app, theyre somewhere else but cant remember where.
 
Yes vpn can go if you dont create a vpn connection (Youd know if you did). TTS langauges are not in /system/app, theyre somewhere else but cant remember where.

Ok if somebody knows let me know cos I dont use TTS at all....
 
So I'm guessing you stripped a lot out? Is it poss to strip all tts I wouldn't use, Google stuff and the like then just use the market to add them later?

This is all I have left:
Code:
AccountAndSyncSettings.apk
ApplicationsProvider.apk
Bluetooth.apk
Browser.apk
Calendar.apk
CalendarProvider.apk
Camera.apk
CertInstaller.apk
Contacts.apk
ContactsProvider.apk
DefaultContainerService.apk
DownloadProvider.apk
DownloadProviderUi.apk
DrmProvider.apk
Gallery3D.apk
GoogleBackupTransport.apk
GoogleCalendarSyncAdapter.apk
GoogleContactsSyncAdapter.apk
GoogleFeedback.apk
GooglePartnerSetup.apk
GoogleServicesFramework.apk
Kickback.apk
MediaProvider.apk
MediaUploader.apk
Mms.apk
NetworkLocation.apk
OneTimeInitializer.apk
PackageInstaller.apk
Phone.apk
Settings.apk
SettingsProvider.apk
SetupWizard.apk
SoundRecorder.apk
Soundback.apk
Superuser.apk
SystemUI.apk
Talk.apk
TelephonyProvider.apk
UserDictionaryProvider.apk
Vending.apk
 
No I'm rocking redux again at the minute, had a few force closes and stuff, but I might start a fresh with miui again, especially if a custom mtd works with it, also I think I'm gonna clear my ti backup and start fresh with that aswell, miui was far better where battery was concerned than redux. But I always used lp with miui so I thought id try redux again,
Do you use xj ginga?
 
Ok if somebody knows let me know cos I dont use TTS at all....

I'll know at home when I have some zip files to look at. Although it didnt appear in redux I think. I think I only saw it in a rom I compiled from source so take what I am saying with a pinch of salt.
 
No I'm rocking redux again at the minute, had a few force closes and stuff, but I might start a fresh with miui again, especially if a custom mtd works with it, also I think I'm gonna clear my ti backup and start fresh with that aswell, miui was far better where battery was concerned than redux. But I always used lp with miui so I thought id try redux again,
Do you use xj ginga?

Yup Ive been running MIUI for a while now.. 8 months and counting!! :D When I 1st started I made sure I started fresh. Ive never used Ti backups cos Ive seen how its caused some problems. Best thing to do is to use an upgrader on XJ MIUI without having to re do everything every time an update comes out. Ive used it for couple of months now and Ive never lost my settings or apps.....
 
I'll know at home when I have some zip files to look at. Although it didnt appear in redux I think. I think I only saw it in a rom I compiled from source so take what I am saying with a pinch of salt.

Ok cool. I dont feel confident enough with custom MTD at the moment. I dont understand what I am supposed to do with mountdl script? and how I should create mtdpartmap.txt :confused: Its all abit confusing at the mo....
 
Alpharev tables look straight forward compared to custom MTD. But I dont fancy redoing my partition again so I want to give it a go once I understood everything..
 
The mtdpartmap.txt is what the patches use to determine the sizes. Patch one patches recovery. This needs only to be done once per sizing.

Patch 2 patches the boot image of the Rom. This needs to be done every Rom flash before boot.

Mine contains "mtd 75 3" but Rastas works with just "75 3" I believe.

The mountdl script just flashes (see scripts section of toolbox and remove other scripts) to init.d (location for scripts that run on startup such as a2sd).

If the script works (will have to test) then you can set cache to 3.

Basically test the script like this. Flash it. Download an app. If you can locate the app in /data/local/download, it works. Use root ex or estrongs to check
 
Yup Ive been running MIUI for a while now.. 8 months and counting!! :D When I 1st started I made sure I started fresh. Ive never used Ti backups cos Ive seen how its caused some problems. Best thing to do is to use an upgrader on XJ MIUI without having to re do everything every time an update comes out. Ive used it for couple of months now and Ive never lost my settings or apps.....


Yeah I used to use the update built in and flashed it through recovery, but the 1.7.1 update caused acore to force close all the time so I couldn't use the dialer, but I reckon its probably my favourite Rom so far, I would be interested if the mountdl script works, then I could try the oxygen table, I just need to read up on Android flasher before I dig in. Which of the update things did you use?
 
Yeah I used to use the update built in and flashed it through recovery, but the 1.7.1 update caused acore to force close all the time so I couldn't use the dialer, but I reckon its probably my favourite Rom so far, I would be interested if the mountdl script works, then I could try the oxygen table, I just need to read up on Android flasher before I dig in. Which of the update things did you use?

Im not entirely sure if I wnat to go ahead with custom MTD atm. I need to understand things abit better.. On XJ rom I update through system update app OR MIUI CM update app. It does the job perfectly!
 
It's the price you pay for a custom set up. It's easy. Flash Rom, flash patch.

I flash 5 zips every time I flash a Rom

I wont have to do that if I add one of Alpharevs tables? Bravo Sense looks closest to what I want out of the lot would any problems arise from adding this hboot?
 
Well only one of the zips is the patch. I flash kernel, scripts, market, etc.

The hboot partition requires less maintenance but its obviously not as good.

Don't know the alpharev sizes off hand so not sure what's best for you. How big is cm7
 
Back
Top Bottom