www.chinaphonearena.com

Full Version: [Tutorial] How to modify your EBR and change your partitions for MTK6589T, MTK6582
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13
I can confirm that this works for an Alps MTK6582 (16 GB total storage memory), with a choice of 6 GB internal storage partition. The procedure I followed was this (it goes without saying that you are using this method, at your own risk):

1. First of all boot into CWM recovery and make a backup of your phone. Make sure the backup is located on your external SD card, meaning that if you have the option to backup to external SD, you should take it. If CWM does not present you with that option, it might be automatically configured to use the external SD card (like mine is). At any case your backup should end up inside a /clockworkmod/backup/ folder, inside one of your SD cards (it is recommended that this is the external one, purely because you might not have enough space on your internal storage, which is the whole reason you are re-partitioning it, anyway) and consists of boot.img, recovery.img, various tar files containing your system, data, android_secure folders etc and a nandroid.md5 file.
2. Make sure that your backup is in good condition and actually...usable. Lots of people with issues purely because of corrupted backups. The easiest way to test this, is through a restore operation. If everything goes well and no errors occur, feel free to reboot your phone, plug it to your PC, activate USB storage and through your PC, copy the contents of your /clockworkmod/backup/ folder on your external SD card, somewhere on your hard drive, for safe keeping. If the restore fails, your phone gets borked (stuck in a boot loop and whatnot) and you don't have a good backup to fall back to, unfortunately you will have to reflash your phone, most likely with a stock ROM, through SP Flash Tool, re-flash a CWM recovery, recover apps through something like Titanium Backup etc.
3. Activate USB storage and copy the entire contents of your phone storage, somewhere on your hard drive.
4. Download Burs EBRTweak and place it inside a folder in your PC, along with the EBR1 and EBR2 files from whatever ROM was used to flash your phone in the first place (usually the stock ROM). Make sure you have a backup of the original EBR1 and EBR2 files, in case something goes wrong (although the tool itself will make copies of these). Run EBRTweak and choose your desired partition space for internal storage (in my case I went for the 6 gigs, since I have a 16 GB storage). Make sure you do NOT exceed the limits of your internal storage space and play it safe. Once the tool is finished, you should have 2 new EBR1 and EBR2 files, along with backups (.bak).
5. Run SP Flash Tool, locate and load the scatter file for your ROM, uncheck everything except EBR1 and EBR2. Edit the file paths (location) for EBR1 and EBR2 manually to point to the files that were created through the EBRTweak utility.
6. Deactivate your phone, pull the battery, wait a few seconds, hit Download/Download Only in SP Flash Tool and reconnect your phone. A flashing process should start that won't take more than 10 seconds to complete (and that's stretching it). If nothing happens, unplug the phone, put back the battery and try again. The idea is for the flashing process to be completed with a green circle on your PC's screen.
7. Once you hit the green circle screen, uplug your phone and boot into CWM recovery (Vol Up + Power + Home buttons). Choose wipe data/factory reset. You may also wipe your dalvik cache but I did not find it necessary. Wait a few minutes, until the process completes (from my understanding, your data storage will be formatted using the new partition info, from the EBR files you just flashed).
8. Moment of truth. Reboot your phone. This will take some time, but not too much mind you. If everything went well, you should be greeted by a screen asking to choose language, settings etc, anything you would expect from a factory restart. Skip as many steps as possible, go to settings->storage and confirm that you internal data partition has the correct size (which is the size you've chosen in the EBRtweak tool). If that is the case, you are almost done. If that is not the case/your phone is stuck in boot loop, you will need to reflash using the SP Flash Tool and new EBR files created by the EBRtweak tool and this time choose another (preferably lower) value for your partition.Re-wipe data/factory reset and try to see if you can get a boot with the desired internal storage partition space. If worse comes to worst, you can always reflash your original ROM.
9. Assuming that your partition is fine, reboot your phone in CWM recovery and choose restore. Point to the backup you previously made and should be located on your external SD card. Leave your phone alone, wait for the process to finish. If no errors occur, feel free to reboot your phone after the restoration process is completed. If errors do occur, it is possible you are dealing with a corrupted backup (which is why it's important that you test it out first). Nothing much to do about it at this point, other than reflashing your original ROM, with or without the modified EBR files (depending on whether your partition was set to your desired value) and restoring settings/apps, manually.
10. After rebooting your phone, it is possible (not really sure if that happens for every phone out there) that you get a message that your phone storage is...damaged. Don't panic, your phone storage is most likely there, it just isn't formatted and as a result your phone cannot mount it. Plug phone to PC, activate USB storage, and see if you can get your phone storage to appear on your PC (it should be unformatted). Go ahead and format it, using FAT (depending on your phone, you might be able to format your phone storage from the phone itself, without intervention from the PC), then copy everything you backed up in step 3 from your PC to your phone storage (media files, videos, ringtones, other data, everything).

Reboot your phone one last time. You should have everything you had before but with a brand new internal storage partition size. Good luck.
sir how about in mtk 6575 device..i can t edit my ebr,,idont know what to change
Tried the tutorial from the first post on my Landvo L800 (MT6582) because EBRtweak wasn't working for me.
Tutorial worked fine!
Now I have 2 GB of internal storage for my apps Smiling
(2014-04-19, 04:05)Cryonic90 Wrote: [ -> ]Tried the tutorial from the first post on my Landvo L800 (MT6582) because EBRtweak wasn't working for me.
Tutorial worked fine!
Now I have 2 GB of internal storage for my apps Smiling
TUTO for landvo please Cryonic thanks you
I have tried doing this repartition to my phone, a HDC Note 3 clone N9006 with the MT6582 but when ever i try I get this error :

BROM ERROR : S_BROM_CMD_STARTCMD FAIL (2005)
[BROM] can not pass bootrom start command possibly target power up too early
[ hint ]

It will then not boot up when tried to switch it on. It lights up but doesn't boot.

If I then flash the orginal EBR1 and EBR2, it boots straight away, but obviously without any memory change.

Any ideas what I am doing wrong.
Please I tried using ebrtweak application but it doesn't detect my device, I tried editing my mt6589 using hex editor but i get much memory than supposed because I'm using a 16gb rom! Sometimes I get 6 gb internal and 10 gb external whereas its supposed to be 13gb total. Please I have attached the two ebr files in zip archive! I don't know if anyone can help me edit it to 6gb internal and the rest to external.
Someone here can help me how to locate all partitions in EBR1 and EBR2 file? I want to resize alot of partitions, like recovery, system, data and storage.
Good read, while my DK C30 is a mtk6582, the ebr1 and ebr2 are different from the one used in guide, none the less the guide puts me in correct area, just different numbers need to be modified.

I also downloaded the Meteos MTK6589 ROM EDIT app, took it apart to see how it works, yep that app would be a train wreck on my phone, as it doesn't modify the phones own ebr1 and ebr2, it replaces them with the few it has loaded from another phone, which would brick my phone, as the partitions are way off.

All and all this guide is very good, just one needs to not blindly makes changes, but go up and down from the numbers already on their own ebr1 and ebr2.

in my case example

1.5 GB 30 4A C3
2.0 GB 40 5A B3

the guide is below

1.5 GB 30 48 B5
2.0 GB 40 58 A5

Anyway great Job on the tutorial.

After reading your Tutorial I modified Meteos MTK6589 ROM EDIT app to work on my DK C30, I am also going to modify it to work on my JIAKE V8 when I get it.
I can have the app load 5 different data sizes, makes changing data size a little faster.

[Image: 2reh9cl.png]
(2014-01-14, 23:23)Burs Wrote: [Only registered and activated users can see links Click here to register]
(please don't reupload it on other sites)
Good Day! after doing the repartition using ebrtweak it works, but after a few days I noticed that my phone storage does not mount, i tried to format the storage but then again after days its wont mount again.
(2014-05-19, 22:37)leojohnpc Wrote: [Only registered and activated users can see links Click here to register]
(please don't reupload it on other sites)
Good Day! after doing the repartition using ebrtweak it works, but after a few days I noticed that my phone storage does not mount, i tried to format the storage but then again after days its wont mount again.
Not familar with ebrtweak, just make sure ebr2 has correct adjustments, ebr1 just holds the partition sizes, while ebr2 make the changes.
ebr2 must add to data partition at the same Instance remove the same amount from internal sdcard.
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13