[-]
Who's Online
There are currently 2866 online users. [Complete List]
» 11 Member(s) | 2855 Guest(s)
AvatarAvatarAvatarAvatar
AvatarAvatarAvatarAvatar
AvatarAvatarAvatar

[-]
Latest Threads
Need ROM for Q223_MB_V41
Last Post: aamm065065
2024-05-13 00:34
» Replies: 0
» Views: 896
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 501
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 584
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 10298
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 938
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 623
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 14240
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4553
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 34638
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 421
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2528
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22637
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 6192
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 9448
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1644
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 5100
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 2
» Views: 1566
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 464
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 8178
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 632
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 5049
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12807
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5229





Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How to modify your EBR and change your partitions for MTK6589T, MTK6582
#1
How to modify your EBR and change your partitions for MT6589, MT6589T, MT6582, MT6577, MT6577,MT6592

Show Content

[Only registered and activated users can see links Click here to register]

Show Content

Show Content
You, caam14, chris_koz, aptitude, SPV, vilus, Burs, charlz2013, vatster, Marucok, mirandam, Abe Atok, honzikd, timujinkhan, hehe, hitachi, vampirefo, danyno1, Praysetya, tradis, Louis777, d3kilo, croque, anik49, jaad34, edalk666 like this post
Reply
#2
First flaw I see in this scheme is where you change only the first byte of an integer data type. What you are changing the values to, are only a rough approximations because you don't take into account the rest of three bytes. All four bytes (32 bits) must be looked at as a whole. Otherwise you could be left off with some unallocated memory that won't be visible to the system, and in that way wasted.

Could you please send me original EBR's for iNew V3? And/or for some other models, but please write how much memory is dedicated to each of the partitions (phone storage, system storage, etc). Maybe I can develop a Windows application which can change all those hex values automaticaly. The user would only have to change ratios by clicking on the spin up/down controls without entering specific values, and the application would take care of everything else.

BTW, you said that EBR1 contains the value for internal storage, that's clear. But in EBR2, if one value is for system storage, what is second one used for? ROM or what?

EDIT: and how does "24 steps" thing from the other thread fits into this story? I see value 24 in EBR2 (before the values), but that's definitely not it. It's hex 24, hence decimal 36.
WuddaWaste, gerstavros, pauksalay, over_dosis, chris_koz, GizBeat, fpdrumond like this post
If I helped you, clicking "Thank You" button will be enough.
Reply
#3
There's much more to this EBR hack thing than just changing individual bytes.
[Only registered and activated users can see links Click here to register]

Every byte has its meaning, and changing a specific one (for example the partition size) has an impact on one or more other bytes which also must reflect the new change (for example the end offset of the partition which size is beeing changed, and start offset of the next partition, if there is one).

I'm starting to believe that partition size mods are for eyes only. Sooner or later there could be a fatal problem. I just don't know what the factory format does after applying this mods? Does it retain the partition size and fix other values/bytes automaticaly? Because if it's not doing that, it could be the reason for the [Only registered and activated users can see links Click here to register] one of our forum members have.

Any thoughts about that? Oppinions? Theories?
You like this post
If I helped you, clicking "Thank You" button will be enough.
Reply
#4
The types of mods cause no fatal problems. Factory reset should retain the changes as well.

The mod is doing exactly as you've described. Designating the starting and ending points within the logical partitions.

From the link at wikipedia you provided:
Quote: If another logical partition follows, then the first EBR will contain an entry pointing to the next EBR; thus, multiple EBRs form a linked list.

That's all we're doing is changing the starting entry and exit points.

Functionally I've had no problem with this. The way NexusTrix has described it is how I do it as well. It's how thousands of MTK users have been modding their EBR for many years without issue. It's certainly not 'for eyes only'.

MT6582, its somewhat of an unknown with these mods, but the EBRs seem the same. I wouldn't be so vain as to say it's absolutely impossible there's more to the mod to make it perfect. It could also be an issue with the firmware reporting incorrect free space.
You, Marucok, Burs like this post
Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth
Reply
#5
I developed a small and simple windows console application which modifies EBR files. There's no more need for HxD editor, because the app automaticaly changes all the values at correct offsets in both EBR1 and EBR2 files.

In order to change your system partition size, just put both EBR files and this application inside the same folder, then run the application and follow the instructions. Everything is self explainatory, so there's no need for readme file and such.

Source code is included, so if you think this application could be malicious, you can compile it yourself using Microsoft Visual Studio. I'm not help responsible if your device goes "poof" after applying this patch, so you do everything at your own risk.

Thanks goes to NexusTrix for finding out specific values at correct EBR offsets, and that's the only place where all the magic happens. I just automated the whole process. Please feel free to comment on it and test it with your EBR's. All bugs and suggestions can be sent via PM too.

Download link: [Only registered and activated users can see links Click here to register]
(please don't reupload it on other sites)
dininho71, leojohnpc, WuddaWaste, OverExtreme, pauksalay, droidpm, over_dosis, nilhakim, mirandam, bovirus, Louis777, jaad34, alifarrukhsss, caam14, mobifiks, rocksean30, andrzejdevil, meditama, friday13, x-calibur, doperst, timujinkhan, johnpugazh, santos99, charlz2013, redbeard211, chris_koz, gandul, .hudcore like this post
If I helped you, clicking "Thank You" button will be enough.
Reply
#6
Ridiculously awesome Burs. Thanks for this contribution.
You like this post
Two roads diverged in a yellow wood,
And sorry I could not travel both
And be one traveler, long I stood
And looked down one as far as I could
To where it bent in the undergrowth
Reply
#7
@Burs

(2014-01-14, 23:23)Burs Wrote: In order to change your system partition size, just put both EBR files and this application inside the same folder, then run the application and follow the instructions. Everything is self explainatory, so there's no need for readme file and such.

Doesn't seem to work. Just says:

Error: EBR file not found or file size mismatch!

Both EBR files are in the same folder, I'm on Windows 7. Even if I run as windows xp SP3, no joy. Any ideas?

In the meantime I edited the files manually. So internal is now 2.5GB and storage is 512MB.

Does anyone know how to stop the phone storage from auto mounting in windows? Its annoying.
Reply
#8
This is my existing EBR1 and EBR2 from Gionee's GBW192. The size of /data is 2,264,924,160 bytes (based on MDT Block Info).

       

The value is different from this tutorial, and that's why Meteos repartition tools are not working properly in my device.
You like this post
Reply
#9
(2014-01-15, 00:51)Android-uk Wrote: Doesn't seem to work. Just says:
Error: EBR file not found or file size mismatch!
Both EBR files are in the same folder, I'm on Windows 7. Even if I run as windows xp SP3, no joy. Any ideas?

Sorry for late reply. I didn't get email notification about new replies in this thread...

This error should only come up if there are no EBR1 and EBR2 files in the same folder in which the .exe file resides, and also if any of the EBR files have a size less or more than 512 bytes. So, if all of that is not the case, maybe it's due to folder access rights. Can you please try to move the whole folder inside you profile folder (ie. My Documents, or similar one)? You could also send me the files via PM, maybe I can see more clearly what's going on.

Thanks for testing Smiling
You like this post
If I helped you, clicking "Thank You" button will be enough.
Reply
#10
I have a MT6592 with 32Gb ROM divided into a 6Gb and a 22Gb partitions. What values would I need to try to get just 1 32Gb partiton?
You, takaya, alexzap like this post
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [Tutorial] HOW TO PORT TWRP MT6735, MT6752, MT6753, MT6795, MT6797 TWRP MT67xx tutorial Cleopatra 485 303,052 2021-03-02, 20:32
Last Post: itanasa
Thumbs Up [Tutorial] How to format your NAND Flash MT6589, MT6577, MT6582, MT6572 akwangwu 47 285,572 2019-03-18, 08:11
Last Post: abrahim
  [Tutorial] Ultimate no-root backup CWM MT6582 MT6592 MT6589 MT6589T MT6577 MT6595 Sniper47 39 115,233 2018-04-17, 05:30
Last Post: lentmain
  [How-To] Check Your Camera Specifications amgsoft 1 2,655 2017-03-20, 01:52
Last Post: gadgetman
  [TUTORIAL] flashing and reviving a dead or alive Allview AX4 Nano Phablet cr4zychriss 12 32,371 2017-02-20, 23:24
Last Post: gunturicm

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] The U.S. Must Lead the Global Fight against Superbu...
Last Post: Scientific American
Yesterday 21:24
» Replies: 0
» Views: 36
[Sci-Am] Trump Administration Likely to Repeal Methane Leak ...
Last Post: Scientific American
Yesterday 07:40
» Replies: 0
» Views: 27
[Harvard] Mars may have been habitable much more recently th...
Last Post: Harvard
Yesterday 07:40
» Replies: 0
» Views: 11
[Sci-Am] Clean Energy Is Bringing Electricity to Many in the...
Last Post: Scientific American
2024-11-19 18:11
» Replies: 0
» Views: 22
[Sci-Am] The Law Must Respond When Science Changes
Last Post: Scientific American
2024-11-19 04:42
» Replies: 0
» Views: 27
[Harvard] What happened when a meteorite the size of four Mo...
Last Post: Harvard
2024-11-19 04:42
» Replies: 0
» Views: 8
[Sci-Am] Epic Gravity Lens Lines Up Seven-Galaxy View
Last Post: Scientific American
2024-11-18 01:54
» Replies: 0
» Views: 70
[Sci-Am] Voting Has Never Been More Secure Than It Is Right ...
Last Post: Scientific American
2024-11-17 10:52
» Replies: 0
» Views: 33
[Sci-Am] The Virus That Causes Mpox Keeps Getting Better at ...
Last Post: Scientific American
2024-11-16 20:14
» Replies: 0
» Views: 52
[Sci-Am] How to Calm Your Election Anxiety—Even after Polls ...
Last Post: Scientific American
2024-11-16 06:43
» Replies: 0
» Views: 96
[Harvard] When we say ‘smart,’ what do we mean?
Last Post: Harvard
2024-11-15 03:38
» Replies: 0
» Views: 123
[Sci-Am] Why Election Polling Has Become Less Reliable
Last Post: Scientific American
2024-11-14 14:18
» Replies: 0
» Views: 37
[Harvard] Big discovery about microscopic ‘water bears’
Last Post: Harvard
2024-11-14 14:18
» Replies: 0
» Views: 15
[Sci-Am] The Universe in 100 Colors Provides a Stunning Tour...
Last Post: Scientific American
2024-11-14 00:31
» Replies: 0
» Views: 55
[Sci-Am] One in Three Tree Species Is at Risk of Extinction
Last Post: Scientific American
2024-11-13 11:08
» Replies: 0
» Views: 45
[Sci-Am] A Bird Flu Vaccine Might Come Too Late to Save Us f...
Last Post: Scientific American
2024-11-12 20:46
» Replies: 0
» Views: 92
[Sci-Am] Why Are Close Elections So Common?
Last Post: Scientific American
2024-11-12 07:16
» Replies: 0
» Views: 85
[Sci-Am] More Men Are Getting Vasectomies Since Roe Was Over...
Last Post: Scientific American
2024-11-11 17:54
» Replies: 0
» Views: 64
[Sci-Am] Exploring the Science of Spookiness at the Recreati...
Last Post: Scientific American
2024-11-10 14:38
» Replies: 0
» Views: 119
[Sci-Am] Underwater Temple from ‘Indiana Jones Civilization’...
Last Post: Scientific American
2024-11-10 01:00
» Replies: 0
» Views: 131
[Sci-Am] Math and Puzzle Fans Find Magic in Martin Gardner’s...
Last Post: Scientific American
2024-11-09 11:01
» Replies: 0
» Views: 72
[Sci-Am] How Harris’s Medicare Plan Could Make At-Home Care ...
Last Post: Scientific American
2024-11-08 21:03
» Replies: 0
» Views: 65
[Sci-Am] Wildfires Are Moving Faster and Causing More Damage
Last Post: Scientific American
2024-11-08 07:40
» Replies: 0
» Views: 64
[Sci-Am] Climate Goal “Will Be Dead Within a Few Years” Unle...
Last Post: Scientific American
2024-11-07 04:40
» Replies: 0
» Views: 123
[Sci-Am] This Is Your Robot Brain on Mushrooms
Last Post: Scientific American
2024-11-06 15:00
» Replies: 0
» Views: 102
[Sci-Am] The Unsettled Science behind Weight-Loss Drugs for ...
Last Post: Scientific American
2024-11-06 01:19
» Replies: 0
» Views: 91
[Sci-Am] Treat or Trick? Astronomical Objects Are Beautiful—...
Last Post: Scientific American
2024-11-05 11:42
» Replies: 0
» Views: 73
[Sci-Am] Celebrating Spooky Lake Month with Its Creator Geo ...
Last Post: Scientific American
2024-11-04 20:46
» Replies: 0
» Views: 88
[Sci-Am] Hurricane Helene Disrupted Abortion Care in the Sou...
Last Post: Scientific American
2024-11-04 07:11
» Replies: 0
» Views: 104
[Sci-Am] These Hornets Can Thrive on Just Alcohol without Ge...
Last Post: Scientific American
2024-11-03 17:38
» Replies: 0
» Views: 71
[Sci-Am] Apples Have Never Tasted So Delicious. Here’s Why
Last Post: Scientific American
2024-11-03 03:45
» Replies: 0
» Views: 89
[Sci-Am] Climate Change Is Raising the Temperature on Global...
Last Post: Scientific American
2024-11-02 13:38
» Replies: 0
» Views: 84
[Sci-Am] Largest-Ever Pair of Black Hole Jets Stretches 23 M...
Last Post: Scientific American
2024-11-02 00:01
» Replies: 0
» Views: 75
[Sci-Am] We Need More Meds, Not Beds, to Help People Recover...
Last Post: Scientific American
2024-11-01 10:40
» Replies: 0
» Views: 117
[Sci-Am] Did Decriminalizing Drugs Such As Fentanyl Cause Op...
Last Post: Scientific American
2024-10-31 21:16
» Replies: 0
» Views: 111
[Sci-Am] The Colors of Fall Leaves Are Shaped by Climate Cha...
Last Post: Scientific American
2024-10-31 07:34
» Replies: 0
» Views: 98
[Harvard] The making of the gut
Last Post: Harvard
2024-10-31 07:34
» Replies: 0
» Views: 42