Mediatek ROM Porting Guide For Kernel 3.18.35+ Based ROMs

ROM Porting Guide For Kernel 3.18.35+
(Last Updated On: May 30, 2018)

Introduction

In this guide we discuss about Mediatek ROM Porting Guide For Kernel 3.18.35+ Based ROMs. The Linux kernel 3.18.35+ is normally a nougat kernel for few of the MT6580 devices and other MT67XX devices.

In the earlier post we discussed about:
1. How to Port boot.img of any ROM
2. How to port nougat ROM for MT580/72/82/92 chipset




Simple/Basic ROM Porting Guide For Kernel 3.18.35+ Based ROMs:

This is a tested and verified ROM Porting Guide For Kernel 3.18.35+ Based ROMs. You have to replace exactly these files from your Stock Rom to port. Do not miss even a single file, it may result in bootloop. This guide apply only for 3.18.35+ kernel.

1. Boot image

- Replace *kernel* and *fstab.mtxxxx*

2. system/lib

- Replace the whole *egl* folder

3.system/lib/hw

- audio.primary.default.so
- bluetooth.default.so
- gralloc.default.so

4. system/vendor

- Replace the whole *firmware* folder

5. system/vendor/etc

- Replace whole *mddb* folder
- custom.conf

6. system/vendor/lib

- Replace the whole *egl* folder
- libcameracustom.so
- libshowlogo.so





7. system/lib/hw

- audio.primary.mt****.so
- gralloc.mt****.so
- hwcomposer.mt****.so

8. Build.prop – Change the following like stock

- ro.product.model
- ro.product.brand
- ro.product.name
- ro.product.device
- ro.product.manufacturer
- ro.build.product
- qemu.hw.mainkeys
- ro.sf.lcd_density

9. Updater script

-If the base ROM and port ROM is Same chipset, then the Mount
points also mostly same. If it gives any error flashing, then you 
have to check the update script from another working ROM and replace
the mount points to port rom.

If you place above files correctly, your 3.18.35+ ROM will boot.


Credits:

– Mohamed Azam‎
– Pedro

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.