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 revisionBoth sides next revision
doc:appunti:hardware:android_partitions [2020/01/17 12:24] – [The Scatter File] niccolodoc:appunti:hardware:android_partitions [2020/01/17 12:36] – [The Scatter File] niccolo
Line 12: Line 12:
 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 ARM architecture. Usually, such files are needed at the time of flashing firmware using tools like the **SP Flash Tool**. 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 ARM architecture. 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 =====