User Tools

Site Tools


doc:appunti:hardware:android_partitions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:appunti:hardware:android_partitions [2020/01/17 10:24] – [sgdisk] niccolodoc:appunti:hardware:android_partitions [2020/01/17 12:37] – [The Scatter File] niccolo
Line 9: Line 9:
  
 ===== The Scatter File ===== ===== The Scatter File =====
 +
 +A Scatter File is a .txt file which is used to describe **parts of flash memory** in an Android device which is running on a MediaTek’s MTK chipeset. Usually, such files are needed at the time of flashing firmware using tools like the **SP Flash Tool**.
 +
 +Here it is an **excerpt** of a scatter file, showing **where** to **flash** or **readback** the **recovery partition**:
 +
 +<file>
 +- partition_index: SYS9
 +  partition_name: recovery
 +  file_name: recovery.img
 +  is_download: true
 +  type: NORMAL_ROM
 +  linear_start_addr: 0x2D80000
 +  physical_start_addr: 0x2D80000
 +  partition_size: 0x1000000
 +  region: EMMC_USER
 +  storage: HW_STORAGE_EMMC
 +  boundary_check: true
 +  is_reserved: false
 +  operation_type: UPDATE
 +  reserve: 0x00
 +</file>
 +
 +The most important data is **linear_start_addr** and **physical_start_addr** (which are always the same, or not?) that states the starting point of that partition into the flash memory, and **partition_size** which is obviously its lenght.
 +
 +The **SP Flash Tool** program - when performing a //download// (it means a //flashing//) operation - will write the file into the phone starting at the specified address, checking that the file does not exceed the partition size. During a //readback// operation it will read the entire size specified in the scatter file.
 ===== EMMC Regions ===== ===== EMMC Regions =====