[Guide] Easy MTK Rom Porting


Important:
This MTK rom porting guide only for the same Mediatek/MTK chipset(SOC). This is a very easy MTK rom porting method.

This tutorial of porting rom Mediatek will show you how to port mtk rom easily.


All the Things you have to do at your won Risk. I will not be responsible for any kind of Brick/Damage of your phone. 

For
MTK/MT6572 - MTK6572
MTK/MT6582 - MTK6582
MTK/MT6577 - MTK6577
MTK/MT6589 - MTK6589

And Jellybean- JB 4.2.2 to JB 4.2.2

Requirements :
Stock ROM (Original ROM of your MTK Phone)
Port ROM (Which Rom you want to flash)
Notepad++
QURepack





Step 1. Create Folder
Create a New Folder anywhere in you computer and rename it system
Inside the system folder create 2 new folders and rename them as

etc
lib 


Step 2. Copy Files

Now You have to copy some files from your Stock Rom to newly created system folder. Open your Stock Rom folder and system folder.



Copy From Stock Rom etc folder to system\etc folder

a) Folder:
1. firmware
2. permission
3. security
4. wide-dhcpv6

b) Files
1. vold.fstab
2. vold.fstab.nand

Copy From Stock Rom lib folder to system\lib folder

Folder

hw
drm
modules
soundfx

Files

libaudio.primary.default.so
libcamalgo.so
libmhaldrv.so
libcamera_client.so
libcameracustom.so
libcameraprofile.so
libcameraservice.so

Now copy full usr and vendor folder from Stock Rom to system folder


Step 3. Porting
Go to the Port Rom folder.
You need to delete some 3 folders from Port Rom system folder are below:


system\etc\firmware
system\lib\hw
system\lib\modules


Now paste system folder (Created with Stock Rom files) and replace files and folders to the port rom system folder (Not inside the port rom system folder)




File copied completed. 

Now you have to edit Mount Point 

Go to Port Rom META-INF\com\google\android open updater-script with Notepad++ change the mount point.

Find the line /dev/block/mmcblk0p and you will get the line like below. 

format("ext4", "EMMC", "/dev/block/mmcblk0p5", "0", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p5", "/system");
mount("ext4", "EMMC", "/dev/block/mmcblk0p7", "/data");





Mount point I marked in red color 5 & 7 now change it as per your device mount point. (Do not need to change the whole line.) If your device mount point for system is 3 then make it 3 instead of 5If your device mount point for data is 5 then make it 5 instead of 7To know your device mount point run MTK Droid Root and Tools and connect your device. Then click Block Map.


Port Kernel from Stock Rom to Port Rom. Here is the MTK Kernel Porting Guide.

Now make your ported rom ZIP file for flash. 

First time it will take time for create system folder but after that you can port rom for your device with in five minutes.  

Overview:

1. Delete mentioned folders for Port Rom and Replace the system (mentioned in guide) folder to the Port Rom

2. Edit updater-script for Mount Point.

3. Replace Stock kernel to the Port kernel. Use and Download QURepack MTK porting tool.


Any Question please write on comments.



N.B. : All the Things do it at your won Risk. I will not be responsible for any kind of Brick/Damage of your phone. 

38 comments:

Unknown said...

I'm trying to port Samsung Galaxy s6 Rom from your page, for my device , but its stuck at boot screen and it restarts constantly, and my both , port and stock Rom doesn't have any files named vold.fstab
vold.fstab.nandd
And no modules folder , and many other files are missing to as per mentioned in your guide , is there and way more of fixing this bootloop and porting another way? Thank you so much , and your site is amazing.

getrom said...

This porting guide for the Jellybean rom. Galaxy s6 rom you are trying to port for Kernel 3.10.54

Unknown said...

So there is no porting guide for lollipop yet?

getrom said...

Not yet but will publish next time.

tone36 said...

yo man you just ported the wrong rom or you tried to port a 4.2.2 rom to 4.4.2 or 4.4.4 and it's not going or you just ported the kernel wrong

getrom said...

This porting guide for the Jellybean rom. Galaxy s6 rom you are trying to port for Kernel 3.10.54

tone36 said...

yo after porting ROM is stuck at logo and doesn't boot......I ported a 4.4.2 mt6752 rom to same model of cpu and same android version and it's still doesn't boot

getrom said...

Please read post first before you use. Clearly mention that this guide for Jellybean 4.2.2 not for Kitkat

Unknown said...

Hi!
In my stock rom there aren't libmhaldrv.so and libcameraprofile.so files in the lib folder. Is a problem?

getrom said...

No problem. Skip that files.

Unknown said...

is that porting is necssary??

getrom said...

If you need.

Anonymous said...

brother i have karbonn titanium s5 plus... we're still stuck at jb 4.2 we need a kk kernel source for specific device can u please help us out... no developer is interested in compile a kernel for us...plz help

Unknown said...

I use an oppo joy with mtk 6572 and jelly bean 4.2.2 Android...do I need to port this rom too....

Online Earn. said...

পিসি ছাড়া পোর্ট করার টিউট দিন প্লিজ

Abdul said...

I port this rom for tecno m7 jb

Unknown said...

can i use this guide to port mt6572 to mt6582?

Unknown said...

but how can i port mt6572 to mt6582 jelly bean base? it is possible? where do i find a good guide?

getrom said...

It is another process and hard to do.

Unknown said...

Can i port cm 12.1 rom mtk6572 for my lenovo a369i jb 4.2.2 mtk6572 ?

Unknown said...

Plz send qurepack.zip password

vip3371 said...

format("ext4", "EMMC", "emmc@android");
mount("ext4", "EMMC", "emmc@android", "/system");
package_extract_dir("system", "/system"); no any mount point in file.........what i do????

Unknown said...

In every rom I ported camera flash does not work... Everything else works... What am I doing wrong? I tried to replace libcam files from stock to port, but nothing... Any help? :)

daspallab said...

Will it work for MTKI 6735 also? MTK 6735 TO MTK 6735?

Unknown said...

Im trying to port lewa v6 for mtk6572
Im use a phone cherry ruby
Im already change mount point
When im flash my port rom i wait 5min and im stuck to boot logo
Help to fix problem

getrom said...

Is your device running with Jellybean rom?

Unknown said...

Yes 4.2.2 jellybean

getrom said...

Lewa porting is something different from other rom. You can follow Lewa Rom poting guide.

getrom said...

Lewa porting is something different from other rom. You can follow Lewa Rom poting guide.

Unknown said...

Give me guide to port mt6735(64) to mt6735(32) bit

Entertainment World said...

give full video tutorial plz

Unknown said...

i dont have the libmhaldvr.so and the. libcameraprofile.so what to do ?

MHMDeveloper said...

I tried to port for oppo neo 3 but it says
update binary error....
Plz tell me how to fix

Unknown said...

Hi, may I know it's possible to port cmbase rom with oppo coloros? In using oppo joy 3, model a11w mtk6582.

Unknown said...

Nice work

كوندور ديف said...

what about mt67xx phones . where is the guid ?

Anonymous said...

If someone is interested in helping me out to port TWRP on my device, here is the link of my stock recovery and scatterfile as well doc´s with the build number in written
If possible also edit the scatterfile so apps can be working from the external sdcard because it is not supported can´t push the apps2sdcard ihave tried with carlivimagekitchen, still no succes,
Many thanks

i can´t rewrite the scatterfile

https://drive.google.com/file/d/0B3JLexZp6srIaDk3UGZkRm1WbXc/view?usp=sharing

mier said...

everything is done port but i cant find vold.fstab.nand and vold.fstab on my stock rom folder..is it okay if i port it without both file?

Post a Comment


Top