FULL MEANING AND USES OF FILE FOUND IN MEDIATEK ROM

JuliusBajaj

Administrator
Staff member
One more tutorial of http://forum.usunlocker.com/showthread.php?tid=809

xzRwDID.jpg

Android is split into 6 main partitions. You have these partitions:
boot It contains the Linux kernel. The device will not boot without this partition. Wiping this partition from recovery should only be done if absolutely required and once done, the device must NOT be rebooted before installing a new one, which can be done by installing a ROM that includes a /boot partition. 


System - As the name suggests, this partition contains the entire Android OS. This includes the Android GUI and all the system applications that come pre-installed on the device. Wiping this partition will remove Android from the device without rendering it unbootable, and you will still be able to put the phone into recovery or bootloader mode to install a new ROM.


Recovery - It contains the recovery system (android e3 recovery or CWM if you installed it, or some china shit ) The recovery partition can be considered as an alternative boot partition, that lets the device boot into a recovery console for performing advanced recovery and maintenance operations on it. 


DATA - Contains your personal data (do not share it with a backup) So this partition contains the user’s data like your contacts, SMS, settings and all Android applications that you have installed. While you are doing a factory reset on your device, this partition will wipe out, Then your device will be in the state when you use for the first time, or the way it was after the last official or custom ROM installation.


Cache- is the partition where Android stores frequently accessed data and app components. Wiping the cache doesn’t affect your personal data but simply gets rid of the existing data there, which gets automatically rebuilt as you continue using the device.

Misc - This partition contains miscellaneous system settings in form of on/off switches. These settings may include CID (Carrier or Region ID), USB configuration and certain hardware settings etc. This is an important partition and if it is corrupt or missing, several of the device’s features will not function normally.


But Android is one thing, your phone also has a lot of bios, firmware, and bootloaders. These are not saved by traditional backup utilities such as CWM.

These partitions include:

* U-Boot - Very important, this thing is the low-level bootloader. It starts Linux!
* Modem Firmware - used to dial with your GSM provider
* DSP Firmware - Make video playback smoother using DSP resources.
* NV - It's some kind of encryption key with some low levels parameters. Very important!
* Lots of misc stuff - Like the boot logo, the kernel panics logs (record the boot-up errors to help the debugging process), etc ...
* Lots of important misc stuff 

Now, how do a flashable Files look like?

[font=Tahoma,]DSP: firmware on MTK devices resides also in the system (or in boot image).[/font]

Boot.img: boot.image contains the kernel and ramdisk, critical files necessary to load the device before the filesystem can be mounted. Having a wrong Boot.img on your phone can refuse it to boot!


cache.img: Contains the cache data where Android stores frequently accessed data and app components. not really needed and should be unticked when trying to flash a device.

Checksum.ini - verifies the md5 checksum, if you get a checksum error before flashing, just delete it.
[font=Tahoma,]If the containment of your checksum.ini is different to the checksums of your files - and you didn't change something, do not delete this file.
[font=Tahoma,]It means, there is a file corrupt.[/font][/font]

EBR1, EBR2 Are your partitions. 1+2 Means 2 Partitions. You can also edit the size of them, Check out this thread: http://www.chinaphonearena.com/foru...d-change-your-partitions-for-MTK6589T-MTK6582


UBOOT (LK.BIN)  U-Boot is a universal boot loader for embedded systems, targeting different platforms including ARM. Uboot and BootIMG are important files on your phone. If your device is not booting or your display is not working ( black or stripes), you should reflash and check those files.
[font=Tahoma,]there are also some low-level drivers (such as for charging or LCD etc.)[/font]


Logo.bin As the name suggests, this is your boot logo.... [font=Tahoma,]It contains also the charging pictures (for charging animation etc.)  It can be changed using this tutorial: http://forum.usunlocker.com/showthread.php?tid=498 or http://forum.usunlocker.com/showthread.php?tid=499[/font]

MBR  Stands for Master-Boot-Record. MBR is generally referred to as first sector (size: 512 bytes) of any partitioned drive whereas volume or partition boot record holds code to initiate booting and is invoked by MBR.  So in short words, it defines your partitions.


Scatter File: Scatter is a file which is used to describe loads of regions in a specific android device running MediaTek ARM architecture. Basically, it tells the flash tool where to flash each image.

Preloader: this is really important. The preloader communicates with your PC. It´s needed when you want to flash your device. Due to the preloader, your phone should be detected as a port on your pc and should be flashable. Downloading a wrong pre-loader can brick your phone, so be careful! Never flash the preloader if not needed. There are different states of the pre-loader (like META Mode). Even when you think your phone is bricked, mostly you can revive it.
Also, [font=Tahoma,]The preloader is the code to connect to our modem. This chip will flash our devices, will read and write the encrypted NVRAM and it will connect to Wifi, BT, and GSM. [/font]
[font=Tahoma,][font=Tahoma,]The commands to the modem will give encrypted.[/font][/font]


Recovery.img: That's your recovery. It must be "tailored" to each device. You cant flash a recovery image from a different device, but you can create your own CWM recovery using MTK droid tools.


Secro.img Is an important file for the baseband and the IMEI. You need to reflash it to rebuild the structure. But any way you have to restore your IMEI too. [font=Tahoma,]contains the routines to copy a valid copy of NVRAM into data partition (if not exists)

[font=Tahoma,]If you have to reinstall IMEI, your NVRAM is mostly not valid.[/font][/font]


System.img  As the name suggests, this partition contains the entire Android OS. You can try a different system.img from other phones without a problem. just be sure to have a backup when you try them 

User Data: Contains your personal data (do not share it with a backup) So this partition contains the user’s data like your contacts, SMS, settings and all Android applications that you have installed. While you are doing a factory reset on your device, this partition will wipe out, Then your device will be in the state when you use for the first time, or the way it was after the last official or custom ROM installation.

I hope this helps you to understand the ROM structure.
 

GSM Nigeria Forum by GSM Nigeria  2009 |  2019 Engr. Dearlex - GSM Palace
Dedicated forum for the GSM community!
- GSM Nigeria Forum.  2004-2007 - 2009-2012 - 2014-2015 - 2019 -  !