2014-01-12, 22:41
How to modify your EBR and change your partitions for MT6589, MT6589T, MT6582, MT6577, MT6577,MT6592
[Only registered and activated users can see links Click here to register]
Show Content
InstructionsThis is a work in progress and very bare bones. It will be bettered over time. Anyone who has additions or modifications to make it clearer, improve it, etc... Please reply and I will add it into this original post.
- First we must download HxD, the editor for the hex files.
- You must also have your stock EBR or proper EBR you know to work with your phone.
- You must have proper ADB drivers installed and SP Flash Tool. We will add some ways to flash through CWM as well. You can find those in the MTK Tools section here on chinaphonearena.
- You must have proper scatter. See the tutorial in this forum how to make a scatter
In these images we see boxed in red where we must modify to change partitions.
In EBR1, one value is modified. In EBR2, two values are modified. For every increase in EBR1, we must make a decrease in the first value of EBR2 and an increase in the second value of EBR2.
Dec-Hex
0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
Here are the approximate sizes for the values indicated below.
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
As you see in the pictures, the current setup based on this chart would make our internal storage 1GB.
For example, to make changes so that our internal storage would be 2.5GB, it would look like this:
Note, these are the values we find in most MTK phones we've seen so far. Check and make sure your current values line up with what you see above. If they don't, the mod is unlikely to work. If your EBR looks nothing like this, this tutorial may not be for you.
As always, make sure to do the backup of your ROM or at least your EBR before flashing the changes.
After making the indicated changes, flash the new EBR with SP Flash Tool and then factory reset the phone.
- First we must download HxD, the editor for the hex files.
- You must also have your stock EBR or proper EBR you know to work with your phone.
- You must have proper ADB drivers installed and SP Flash Tool. We will add some ways to flash through CWM as well. You can find those in the MTK Tools section here on chinaphonearena.
- You must have proper scatter. See the tutorial in this forum how to make a scatter
In these images we see boxed in red where we must modify to change partitions.
In EBR1, one value is modified. In EBR2, two values are modified. For every increase in EBR1, we must make a decrease in the first value of EBR2 and an increase in the second value of EBR2.
Dec-Hex
0 = 0
1 = 1
2 = 2
3 = 3
4 = 4
5 = 5
6 = 6
7 = 7
8 = 8
9 = 9
10 = A
11 = B
12 = C
13 = D
14 = E
15 = F
Here are the approximate sizes for the values indicated below.
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
As you see in the pictures, the current setup based on this chart would make our internal storage 1GB.
For example, to make changes so that our internal storage would be 2.5GB, it would look like this:
Note, these are the values we find in most MTK phones we've seen so far. Check and make sure your current values line up with what you see above. If they don't, the mod is unlikely to work. If your EBR looks nothing like this, this tutorial may not be for you.
As always, make sure to do the backup of your ROM or at least your EBR before flashing the changes.
After making the indicated changes, flash the new EBR with SP Flash Tool and then factory reset the phone.
[Only registered and activated users can see links Click here to register]
Show Content
If you wish to make changes and re-compile, this will give you instructions how to do
- Info for all: how to compile .CS file on Windows
Use C command line compiler to compile EBRtwweak.cs (written in C language)
C comamnd line compiler (csc.exe) is included in Windows Framework.NET.
- Check path to Microsoft.NET Frammework path
Check the existing Framework.NET version pathpath
32bit version - C:\Windows\Microsoft.NET\Framework\vx.xxxxx (es. v4.0.30319)
64bit version - C:\Windows\Microsoft.NET\Framework64\vx.xxxxx (es. v4.0.30319)
- Add to PATH variable the Framework.NET path
ex. C:\Windows\Microsoft.NET\Framework\v4.0.30319
Open a DOS prompt where is located the EBRtweak.cs file
Rin the compiler with
csc EBRtwaek.cs
The compiler will create the file EBRtweak.exe
Note: the .EXE file contain all resources (it's a standalone exe file).
Is not need the Framework.net on PC where the .exe file will be run.
Info about C command line compiler (Framework.NET)
[Only registered and activated users can see links Click here to register]
- Info for all: how to compile .CS file on Windows
Use C command line compiler to compile EBRtwweak.cs (written in C language)
C comamnd line compiler (csc.exe) is included in Windows Framework.NET.
- Check path to Microsoft.NET Frammework path
Check the existing Framework.NET version pathpath
32bit version - C:\Windows\Microsoft.NET\Framework\vx.xxxxx (es. v4.0.30319)
64bit version - C:\Windows\Microsoft.NET\Framework64\vx.xxxxx (es. v4.0.30319)
- Add to PATH variable the Framework.NET path
ex. C:\Windows\Microsoft.NET\Framework\v4.0.30319
Open a DOS prompt where is located the EBRtweak.cs file
Rin the compiler with
csc EBRtwaek.cs
The compiler will create the file EBRtweak.exe
Note: the .EXE file contain all resources (it's a standalone exe file).
Is not need the Framework.net on PC where the .exe file will be run.
Info about C command line compiler (Framework.NET)
[Only registered and activated users can see links Click here to register]
Show Content
Recommended instructions from bovirus
ADMIN note: these are recommended instructions from bovirus, if you don't mind losing your data and starting fresh, the backup isn't required, but it's recommended you have access to a stock backup in case there's some problem.
- Make a Nandroid backup with recovery (CWM or TWRP)
- Create new EBR files with EBRTweak (use latest version).
- Put the new EBR files in a folder with scatter file of your ROM
- [Only registered and activated users can see links Click here to register]
- Run Flashtool
- load scatter file
- select DOWNLOAD ONLY mode
- select DOWNLOAD and after 2 second connect the phone (OFF and without battery) to the PC. If flash didn't start leave the phone connected and insert the battery. [Only registered and activated users can see links Click here to register]
- if flash still doesn't start, then [Only registered and activated users can see links Click here to register]
- After flash completion switch on the phone in recovery mode.
- By the recovery restore the Nandroid backup
. By the recovery clear the cache and dalvik.
- By recovery reboot the phone in standard mode.
- Wait that the phone complete the boot.
ADMIN note: these are recommended instructions from bovirus, if you don't mind losing your data and starting fresh, the backup isn't required, but it's recommended you have access to a stock backup in case there's some problem.
- Make a Nandroid backup with recovery (CWM or TWRP)
- Create new EBR files with EBRTweak (use latest version).
- Put the new EBR files in a folder with scatter file of your ROM
- [Only registered and activated users can see links Click here to register]
- Run Flashtool
- load scatter file
- select DOWNLOAD ONLY mode
- select DOWNLOAD and after 2 second connect the phone (OFF and without battery) to the PC. If flash didn't start leave the phone connected and insert the battery. [Only registered and activated users can see links Click here to register]
- if flash still doesn't start, then [Only registered and activated users can see links Click here to register]
- After flash completion switch on the phone in recovery mode.
- By the recovery restore the Nandroid backup
. By the recovery clear the cache and dalvik.
- By recovery reboot the phone in standard mode.
- Wait that the phone complete the boot.
You, Burs, Praysetya, SPV, tradis, caam14, chris_koz, hehe, Louis777, anik49, vilus, d3kilo, croque, mirandam, honzikd, hitachi, Marucok, vampirefo, Abe Atok, edalk666, aptitude, timujinkhan, jaad34, danyno1, charlz2013, vatster like this post