mardi 27 janvier 2015

[GUIDE] Partitioning the flash in a MediaTek topic






The /data partition with apps quickly gets full for me. For instance Minuum requires 120MB with two languages. 1.3GB is not enough then.
This could be enhanced with Link2SD as well, but I would prefer to not rely on the SD card. Not so much because of speed, but reliability.

The descriptions I followed.
http://elizabethswikis.blogspot.se/s...t%20MBR%2FEBR1
http://forum.xda-developers.com/show...914184&page=10

However, I believe the process can be described better and made an attempt, also tuned for the Umeox x201. The same should apply for both JellyBean and KitKat ROMs.
Beware of any mistakes and incorrect assumptions. This guide can be improved.

Disclaimer: If you believe it was difficult to upgrade to KitKat, this is definitely not for you. Umeox (or MediaTek) is seriously flaky when flashing, it takes ages to test this out.


0. Backup
Make TWRP backups if you want to restore the current setup.
For the package to flash you may base it on MtkDroid backups unless you want to start from scratch


1. Set the size
The referenced guides makes it all too complicated.
* Define what size you want in bytes, divided by 512 (probably rounded), put in address 0x01da in EBR. Add the same size to the value in address 0x01e6, subtract from 0x01ea.
* Take address in 0x01e6, multiply with 512 to get address for __NODL_FAT

I used HxDen to edit EBR.

Other notes:
* Note that the format in EBR is little endian.
* The same EBR is used in JellyBean and KitKat.
* You cannot use all of the flash for /data, some minimal part seem to have to exist.

Original:
000001C0 00 00 83 00 00 00 00 B6 1A 00 00 10 07 00 00 00 ..ƒ....¶........
000001D0 00 00 83 00 00 00 00 C6 21 00 00 60 29 00 00 00 ..ƒ....Æ!..`)...
000001E0 00 00 83 00 00 00 00 26 4B 00 FF D9 B4 FF 00 00 ..ƒ....&K.ÿÙ´ÿ..

__NODL_FAT 0x96dc0000

Doubled data partition:
(not possible for 4GB units).

000001C0 00 00 83 00 00 00 00 B6 1A 00 00 10 07 00 00 00 ..ƒ....¶........
000001D0 00 00 83 00 00 00 00 C6 21 00 00 C0 52 00 00 00 ..ƒ....Æ!..ÀR...
000001E0 00 00 83 00 00 00 00 86 74 00 FF 79 8B FF 00 00 ..ƒ....†t.ÿy‹ÿ..

__NODL_FAT 0xe90c0000


2. Flash with SPFT
Firmware Upgrade
Use the new scatter file + the new EBR.

It may not be needed to flash more than EBR, but the device did not start for me then.
Same hassle as always. I had to go back to stock JellyBean once to get it working, should not be necessary. I also had to wipe Internal storage+cache +data in recovery to start once, should also not be required. Next time JitKat to KitKat worked. However, none of the flashes has given any errors when flashing, KitKat upgrade had more problems.

You may try to start up once, to make sure partitions are sized OK.


3. Restore data (optional) or wipe in recovery
Wipe cache.
Go to recovery and restore TWRP backups you want, or wipe /data






Aucun commentaire:

Enregistrer un commentaire