[MOD] MT6577 2GB Data Repartition/ SdCard Swap [HACK], INT2EXT (data2ext)

KunalKene1797

Senior Member
Dec 4, 2013
435
1,042
133
23
Nagpur
I Need Help Please!

Can you take a look ?
MT Device is MT6572 with EBR1 and MBR Files only...this is the Link to my stock MBR and EBR1....i would be very thankful if someone can help or atleast guide me! :silly:
Thanks in Advance:good:
I want to increase the Primary Internal Data Partition size from 500MB to 2GB! :silly:

MBR and EBR1 : http://forum.xda-developers.com/attachment.php?attachmentid=2869849&d=1406289303

Scatter[MT6572] : http://forum.xda-developers.com/attachment.php?attachmentid=2869848&d=1406289178
 
Last edited:

bethnesbitt

Senior Member
MTK6572 repartitioning

Now here is a funny story :p

I came across a tool on irulu.net's download for a tablet similar to mine, funny thing is, they named it IMEI tool, which was the IMEI tool, but it was like finding gold at the end of the rainbow, also had the kernel for a MTK6572 tablet. I asked them about it but they replied with it wasn't for mine, they didn't know what it was.

I had somewhat of an idea and decided to play with it, did a dd against the kernel in linux it it actually showed that it was android 4.6 pre-release, hmmm now I had to see what would happen and flashed it using SPflash, brick, wouldn't even turn on. So I reflashed back to my original firmware that, of course was backed up from MTKDroid Tools.

Not sure why but SPFlash flashed everything back to the phone, it turned on but I was stuck in some kind of limbo between the old kernel and the new kernel. Seemed to update it by keeping the newer firmware but didn't reflash the old firmware. Worked, just some Apps were not compatible and the screen rotation was backwards. When I tried opening some apps the screen just went blank and froze.

What was cool is that the EBR1 and MBR from their kernel actually extended my internal storage from 504mb to 1.2gb, sweet, and decreased my phone storage from 2.11gb to 1.32gb. Luckily I had another nandroid backup that was done and saved to my PC using nandroid from the play store, you can never have to many backups. The backup restored my system, userdata etc but still have that shiney new EBR1 and MBR.

When I try to do file cynwig nothing happens and linux just shows x86 boot sector with no values.

Something else that is baffeling is, how is it that the original was 502mb internal meory with 2.11 internal storage, doesn't make sense. Now the new files give me 1.2gb with the 1.32gb internal storage. Makes me wonder if I could just jack somebody else's EBR1 and MBR from a 6589 devices.

Something else I was wondering, what I I partitioned a usb stick or sdcard the way I wanted my internal storage for apps to be, the way my phone storage is already configured, duplicated that MTKDroid tools is showing. Next in HXD, opened extras and selected the disk to read as hex, then saved it as a new EBR and MBR. Next flashed it, wouldn't that be easier if possible?

Did compared it against the tablet's original EBR1 and MBR and found the differance, both are attached. Just cannot seem to grasp how it is done.

If anybody want''s to use the new MBR and EBR1 on their mtk6572, go ahead, it will probably work on their china mtk6572 tablet, that is if you have less then 1.02gb of internal storage.
 

Attachments

Last edited:
  • Like
Reactions: KunalKene1797

bresjanacp

Member
Jan 25, 2015
22
0
0
Thank you very much for this explenation.

I have just one question more.

In Partition 7, last four Hex, they are not size of partition, right? What is that?



Thanks
 

a.marduk

Member
Oct 3, 2013
47
11
0
jakarta
I'm not sure that I understand. Maximal size, in sectors, of ExtSD that I can use in my phone? (32GB in sectors?)
i think it's just some kind of way to include all emmc (including there unmapped bootimg , recovery, nvram, pmt, uboot, etc) and unknown size of fat into mbr and ebr....
Means that the remining space in emmc from start sector of fat till the end of the space in emmc will be fat partition. So it doesn't matter if your phone's rom are 4 gigs, 8 , 16 or 32 gigs.


see MBR , first partition (blue one)
- 05 = partition type = extended partition
- 04 00 = start sector (in hex) = partition start at sector 1024
- FF FF FF FF = sector size (in hex) = sector size = 4294967295 sectors = 4294967295 x 512 bytes/sector = approximately 2 TB

now see EBR1 third partition (purple one = fat partition = phone storage)
- 83 = partition type = Linux native file systems (ext2/3/4, JFS, Reiser, xiafs, and others).
- 1BD400 = start sector of the partition = the sum of previous partition (yellow one) size + start sector of the previous partition = 03F000 + 17E400 = 1BD400
- FFE42BFF = the size of partition = the size of extended partition - ( the size of previous partition + start sector of previous partition ) = FFFFFFFF - ( 03F000 + 17E400 ) = FFE42BFF = approximately 2 TB
 
  • Like
Reactions: aIecxs

jbliz

Senior Member
Dec 25, 2013
105
13
0
Kendari
mmcblk0p4
00 BA 01 00 - 0001BA00 (hex) 113152 (dec)
00 50 14 00 - 00145000 (hex) 1331200 (dec)
113151 + 1331200 = 2662400
1331200 x 512 = 681574400 Megabytes

how to make correct address in scatter? even I mode EBR to reduce system partition. MTK Droid Tools still read actual bite size. here my scattter.

- partition_index: SYS15
partition_name: ANDROID
file_name: system.img
is_download: true
type: YAFFS_IMG
linear_start_addr: 0x3D40000
physical_start_addr: 0x3740000
partition_size: 0x28A00000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00
 

a.marduk

Member
Oct 3, 2013
47
11
0
jakarta
mmcblk0p4
00 BA 01 00 - 0001BA00 (hex) 113152 (dec)
00 50 14 00 - 00145000 (hex) 1331200 (dec)
113151 + 1331200 = 2662400
1331200 x 512 = 681574400 Megabytes

how to make correct address in scatter? even I mode EBR to reduce system partition. MTK Droid Tools still read actual bite size. here my scattter.

- partition_index: SYS15
partition_name: ANDROID
file_name: system.img
is_download: true
type: YAFFS_IMG
linear_start_addr: 0x3D40000
physical_start_addr: 0x3740000
partition_size: 0x28A00000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
reserve: 0x00
what do you want to do?
give me your mbr ebr1 , ebr2 (if it has ebr2) and your scatterfile
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone