[-]
Who's Online
There are currently 1285 online users. [Complete List]
» 4 Member(s) | 1281 Guest(s)
AvatarAvatarAvatarAvatar

[-]
Latest Threads
Need ROM for Q223_MB_V41
Last Post: aamm065065
2024-05-13 00:34
» Replies: 0
» Views: 942
K107-MB-V4.2
Last Post: Alby
2024-04-24 00:37
» Replies: 0
» Views: 535
[ROM] NEED ROM ZH960-MB-V5.0 MTK 6592
Last Post: sendycat2
2024-04-21 08:57
» Replies: 0
» Views: 627
ZH960 Tablet Bricked
Last Post: luis mar que
2024-03-20 19:52
» Replies: 14
» Views: 10343
Thanks, I've been looking for this for a...
Last Post: StevenRip
2024-02-25 05:00
» Replies: 0
» Views: 1073
[SOLVED] Need ROM for ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:59
» Replies: 0
» Views: 667
NEED ROM ZH960-MB-V4.1
Last Post: ery1988
2024-02-21 08:53
» Replies: 18
» Views: 14302
Budget phone choice help needed
Last Post: sabir7272
2024-02-10 06:52
» Replies: 4
» Views: 4566
ZH960-MB-V3.1 SOLVE
Last Post: Pranav1
2023-12-20 20:22
» Replies: 74
» Views: 34710
Need ROM for SONIM XP7S Android 5.1.1
Last Post: Alpa
2023-11-29 22:17
» Replies: 0
» Views: 456
Need rom for X101 Mt6592
Last Post: carencell
2023-11-24 21:30
» Replies: 3
» Views: 2573
Gizbeat 101: Get your MTK6589 MTK6577 MT...
Last Post: Alexia78
2023-11-13 11:28
» Replies: 8
» Views: 22649
Need rom for a tablet with board id "K10...
Last Post: oliver2
2023-10-24 20:23
» Replies: 6
» Views: 6242
How to Connect open public wifi
Last Post: oliverben45
2023-10-24 16:03
» Replies: 11
» Views: 9476
I NEED FILE FOR ITEL MOBILE PHONE AND TO...
Last Post: Meghnad45
2023-10-22 02:38
» Replies: 1
» Views: 1657
NEED Help Bricked my phone.
Last Post: Meghnad45
2023-10-22 02:36
» Replies: 4
» Views: 5136
Introduction
Last Post: ezrahidaya
2023-10-14 14:38
» Replies: 2
» Views: 1578
Needs help to root a china tablet brand ...
Last Post: ezrahidaya
2023-10-14 14:37
» Replies: 1
» Views: 481
Any tips to stay awake?
Last Post: ezrahidaya
2023-10-14 14:35
» Replies: 6
» Views: 8192
Need ROM for china TAb MT6797
Last Post: ezrahidaya
2023-10-14 14:34
» Replies: 1
» Views: 645
need this stock firmware for my tablet M...
Last Post: ramzii888
2023-10-14 02:20
» Replies: 4
» Views: 5065
Encryption Unsuccessful - Reset Android
Last Post: Aakriti
2023-10-13 16:51
» Replies: 3
» Views: 12954
betools
Last Post: egdeim
2023-09-21 12:41
» Replies: 4
» Views: 5241





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
#76
Recompiled EBRtweak 1.0a
[Only registered and activated users can see links Click here to register]

Attempts to fix flaw originally marked by VAMPIREFO, and discovered separately by myself tonight.

!!! As with anything, verify, verify, verify. Use at own risk, and verify your results. Do NOT blindly use programs without validating the claims first. !!!

Special thanks to NEXUSTRIX, BURS, AGISMANIAX, HOVATEK, and VAMPIREFO for their valued input!

---

This table was used as the basis for EBRtweak, which I believe is flawed.

NEXUSTRIX originally posted...

Size EBR1 EBR2 EBR2-2-1
0.5GB 10 28 D5
1.0GB 20 38 C5
1.5GB 30 48 B5
2.0GB 40 58 A5
2.5GB 50 68 95
3.0GB 60 78 85
3.5GB 70 88 75
4.0GB 80 98 65
4.5GB A8 90 55
5.0GB B8 A0 45
5.5GB 35 C8 B0
6.0GB C0 25 D8

As VAMPIREFO indicated, and I discovered doing manual calculations tonight... the values should be...
1.0GB 20
1.5GB 30
2.0GB 40
2.5GB 50
3.0GB 60
3.5GB 70
4.0GB 80
4.5GB 90
5.0GB A0
5.5GB B0
6.0GB C0

Furthermore, relating this back to NEXUSTRIX's table... I believe the values SHOULD BE...

Size EBR1 EBR2 EBR2-2-1
0.5GB 10 28 D5
1.0GB 20 38 C5
1.5GB 30 48 B5
2.0GB 40 58 A5
2.5GB 50 68 95
3.0GB 60 78 85
3.5GB 70 88 75
4.0GB 80 98 65
4.5GB 90 A8 55
5.0GB A0 B8 45
5.5GB B0 C8 35
6.0GB C0 D8 25

... note the obvious patterns, i.e., each column increases/decreases by one even base-16 level.

Using these links/documents as a guide (below) on how to calculate EBR1/2 manually (only to discover a small typographical error by the author when they were showing how to manually calculate new values). I used the author's top half example, and reverse engineered my phone's values with success.

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

N.B. Early in the document the author says that D = ( A + B ) - C (which appears correct when using original phone EBR1/2 to calculate). Later, the author performs a manual calculation for a new memory size, but uses a new equation, D = A + B + C, for unknown reason. I believe this is the mistake. Stick to the top half of the document/tutorial.

I applied, a) the first section of the tutorial by verifying with my own phone, b) applied the algorithm to set new values, i.e., 5-GB partition, and c) used the updated chart above with a recompiled version of the EBRtweak program (source included, Thank you BURS!!!).

I manually calculated my original phone memory, calculated what I wanted, then ran EBRtweak 1.0a (linked above) and they all match.

Hope this helps.

I will be pushing this change to my phone in next day or so, and will then attempt to fill the partitions as much as possible to see if I can corrupt or breach the partition boundaries in an attempt to validate these values actually work.

Here are my calculations, but you will need to reference the tutorial links above in order to understand the calculations.

--- Original manufacturer 2-GB partition with 32GB built in... MTK6589 phone

A = (0058 1A00) = 0x001A5800
B = (0000 4000) = 0x00400000 <- 2-GB partition
C = (00C4 0100) = 0x0001C400
Max = (FFFF FFFF) = 0xFFFFFFFF
D = (0094 5800) = 0x00589400
E = (FFA7 A5FF) = 0xFFA5A7FF

Calculate D,E for comparison
D = ( A + B ) - C = 0x001A5800 + 0x00400000 - 0x0001C400 = 0x00589400 (Match!)
E = Max Value - ( A + B ) = 0xFFFFFFFF - ( 0x001A5800 + 0x00400000 ) = 0xFFFFFFFF - 0x005A5800 = 0xFFA5A7FF (Match!)

--- 5-GB using EBRtweak v1.0 (calculated D doesn't match; wrong value applied to 5-GB option; original program based on NEXUSTRIX errors in table)

A = (0058 1A00) = 0x001A5800
B = (0000 B800) = 0x00B80000 (EBRtweak generated; this is NOT a 5-GB partition)
C = (00C4 0100) = 0x0001C400
Max = (FFFF FFFF) = 0xFFFFFFFF
D = (0094 A000) = 0x00A09400 (EBRtweak generated)
E = (FFA7 45FF) = 0xFF45A7FF (EBRtweak generated)

Calculate D,E for comparison
D = ( A + B ) - C = 0x001A5800 + 0x00B80000 - 0x0001C400 = 0x00D09400 (NO MATCH!)
E = Max Value - ( A + B ) = 0xFFFFFFFF - ( 0x001A5800 + 0x00B80000 ) = 0xFFFFFFFF - 0x00D25800 = 0xFF2DA7FF (NO MATCH!)

--- Calculated manually, want 5-GB partition

A = (0058 1A00) = 0x001A5800
B = (0000 A000) = 0x00A00000 <- 5-GB
C = (00C4 0100) = 0x0001C400
Max = (FFFF FFFF) = 0xFFFFFFFF

D = A + B - C = 0x001A5800 + 0x00A00000 - 0x0001C400 = 0x00B89400
E = Max Value - ( A + B ) = 0xFFFFFFFF - ( 0x001A5800 + 0x00A00000 ) = 0xFFFFFFFF - 0x00BA5800 = 0xFF45A7FF

--- Recompiled to EBRtweak 1.0a, selected 5-GB

New EBR1/2 files match manual calculations from tutorial. Hmmm...

-grittyKitty
tkitts, Louis777, GizBeat like this post
Reply


Messages In This Thread
EBRtweak v1.0 - by Burs - 2014-01-14, 23:23
GBW192 - by agismaniax - 2014-01-16, 12:49
MT6572 EBR1 EBR2 512bytes - by wertz-2014 - 2014-03-24, 06:01
RE: [Tutorial] How to modify your EBR and change your partitions for MTK6589T, MTK6582 - by grittyKitty - 2014-08-13, 16:14
DONE! - by petrolpro - 2014-08-23, 14:40
RE: [Tutorial] - by ferdzff - 2014-09-07, 17:06
FIX - by ule10 - 2014-09-11, 16:41

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,195 2021-03-02, 20:32
Last Post: itanasa
Thumbs Up [Tutorial] How to format your NAND Flash MT6589, MT6577, MT6582, MT6572 akwangwu 47 285,598 2019-03-18, 08:11
Last Post: abrahim
  [Tutorial] Ultimate no-root backup CWM MT6582 MT6592 MT6589 MT6589T MT6577 MT6595 Sniper47 39 115,267 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,383 2017-02-20, 23:24
Last Post: gunturicm

Forum Jump:


Users browsing this thread: 1 Guest(s)
[-]
Tech & Science
[Sci-Am] What Makes the Eastern U.S. Drought Different from ...
Last Post: Scientific American
Yesterday 21:18
» Replies: 0
» Views: 34
[Sci-Am] Why We Probably Won’t Find Aliens Anytime Soon
Last Post: Scientific American
Yesterday 07:30
» Replies: 0
» Views: 49
[Sci-Am] Wildfire Smoke Linked to Increased Risk of Dementia
Last Post: Scientific American
2024-12-10 04:14
» Replies: 0
» Views: 80
[Sci-Am] How Magnet Fishers Catch Underwater Garbage, Guns a...
Last Post: Scientific American
2024-12-09 01:02
» Replies: 0
» Views: 118
[Sci-Am] Dr. Oz Invested in Businesses Regulated by Agency T...
Last Post: Scientific American
2024-12-08 11:11
» Replies: 0
» Views: 63
[Sci-Am] How Humor Can Help You Get through Hard Times
Last Post: Scientific American
2024-12-07 20:55
» Replies: 0
» Views: 75
[Sci-Am] When a Nation Embraces a False Reality
Last Post: Scientific American
2024-12-07 06:53
» Replies: 0
» Views: 55
[Sci-Am] Mathematicians’ Newest Assistants Are Artificially ...
Last Post: Scientific American
2024-12-06 17:32
» Replies: 0
» Views: 49
[Harvard] How mammals got their stride
Last Post: Harvard
2024-12-06 04:01
» Replies: 0
» Views: 80
[Sci-Am] Bird Flu Has Infected Two Young People. Here’s Why ...
Last Post: Scientific American
2024-12-05 14:34
» Replies: 0
» Views: 36
[Harvard] Grappling with how clearings may support rainfores...
Last Post: Harvard
2024-12-05 14:34
» Replies: 0
» Views: 20
[Sci-Am] First Rocks Returned from Moon’s Far Side Reveal An...
Last Post: Scientific American
2024-12-05 01:01
» Replies: 0
» Views: 48
[Sci-Am] Trump’s Anti-Climate Agenda Could Help China Domina...
Last Post: Scientific American
2024-12-04 11:30
» Replies: 0
» Views: 44
[Sci-Am] Trees Alone Can’t Stop Climate Change
Last Post: Scientific American
2024-12-02 19:06
» Replies: 0
» Views: 97
[Sci-Am] RFK, Jr., Is a Bad Prescription for U.S. Public Hea...
Last Post: Scientific American
2024-12-02 05:29
» Replies: 0
» Views: 70
[Sci-Am] Science Crossword: Equine Emergence
Last Post: Scientific American
2024-12-01 15:05
» Replies: 0
» Views: 59
[Sci-Am] Why Hypochondria Can Be Deadly, and How Newer Treat...
Last Post: Scientific American
2024-12-01 01:39
» Replies: 0
» Views: 101
[Sci-Am] Horse Domestication Story Gets a Surprising Rewrite
Last Post: Scientific American
2024-11-30 12:08
» Replies: 0
» Views: 48
[Sci-Am] Fossil Fuels Are Not Essential
Last Post: Scientific American
2024-11-29 22:32
» Replies: 0
» Views: 79
[Sci-Am] See How Close We Are to Gender Equality around the ...
Last Post: Scientific American
2024-11-29 09:02
» Replies: 0
» Views: 65
[Sci-Am] Mathematicians Discover a New Kind of Shape That’s ...
Last Post: Scientific American
2024-11-28 06:17
» Replies: 0
» Views: 140
[Sci-Am] Curiosity, Horses and Hypochondria
Last Post: Scientific American
2024-11-27 16:52
» Replies: 0
» Views: 84
[Harvard] Amid Hurricane Milton’s devastation, a sliver of g...
Last Post: Harvard
2024-11-27 16:52
» Replies: 0
» Views: 73
[Sci-Am] Contributors to Scientific American’s December 2024...
Last Post: Scientific American
2024-11-27 03:17
» Replies: 0
» Views: 54
[Sci-Am] Exotic Powder Pulls Carbon Dioxide from the Air at ...
Last Post: Scientific American
2024-11-26 13:56
» Replies: 0
» Views: 58
[Sci-Am] Enjoy Holiday Food without the Anxiety
Last Post: Scientific American
2024-11-25 11:05
» Replies: 0
» Views: 102
[Sci-Am] Climate Change Is Altering Animals’ Colors
Last Post: Scientific American
2024-11-24 21:08
» Replies: 0
» Views: 47
[Sci-Am] Drought across the U.S., H5N1 in Canada and Uranus ...
Last Post: Scientific American
2024-11-24 07:31
» Replies: 0
» Views: 58
[Sci-Am] Some Counties Voted for Trump and Approved Climate ...
Last Post: Scientific American
2024-11-23 17:36
» Replies: 0
» Views: 52
[Sci-Am] Fun Facts about Teeth across the Animal Kingdom
Last Post: Scientific American
2024-11-23 03:45
» Replies: 0
» Views: 72
[Sci-Am] The U.S. Must Lead the Global Fight against Superbu...
Last Post: Scientific American
2024-11-20 21:24
» Replies: 0
» Views: 141
[Sci-Am] Trump Administration Likely to Repeal Methane Leak ...
Last Post: Scientific American
2024-11-20 07:40
» Replies: 0
» Views: 64
[Harvard] Mars may have been habitable much more recently th...
Last Post: Harvard
2024-11-20 07:40
» Replies: 0
» Views: 50
[Sci-Am] Clean Energy Is Bringing Electricity to Many in the...
Last Post: Scientific American
2024-11-19 18:11
» Replies: 0
» Views: 57
[Sci-Am] The Law Must Respond When Science Changes
Last Post: Scientific American
2024-11-19 04:42
» Replies: 0
» Views: 48
[Harvard] What happened when a meteorite the size of four Mo...
Last Post: Harvard
2024-11-19 04:42
» Replies: 0
» Views: 30
[Sci-Am] Epic Gravity Lens Lines Up Seven-Galaxy View
Last Post: Scientific American
2024-11-18 01:54
» Replies: 0
» Views: 98