[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

Folder

firmware
permission
security
wide-dhcpv6

Files

vold.fstab
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. 

Previous
Next Post »