bkerler / edl

Inofficial Qualcomm Firehose / Sahara / Streaming / Diag Tools :)
GNU General Public License v3.0
1.47k stars 354 forks source link

"Flashing Xiaomi Redmi 9T: Limitations with Multiple Rawprogram Files and Sparse Partition Issues" #541

Open basc0hex opened 2 months ago

basc0hex commented 2 months ago

While attempting to flash a Xiaomi device (Redmi 9T) with the latest firmware, which contains multiple rawprogram files (0 to 5) along with the necessary patches, I encountered an unexpected limitation with the flashing tool. The tool does not support more than one rawprogram and patch simultaneously. Despite trying various command structures, I was unable to overcome this limitation.

To work around this issue, I attempted to flash each rawprogram file (X) along with its corresponding patch (X) without closing the device connection with the Sahara and proceeded to flash the subsequent rawprogram files sequentially. However, I encountered a failure during the flashing process of the first rawprogram file (0) due to the presence of sparse partitions in the XML file defining the rawprogram. The atthached file is the first rawprogram0.

rawprogram0.txt

Furthermore, the gpt_mainX.bin (X=0 to 5) files belong to the PrimaryGPT partition, and the gpt_backupX.bin (X=0 to 5) files belong to the BackupGPT partition, as defined in different rawprogram files.

Additional Information: Other sparsed partitions existing in different rawprogram files need to be addressed accordingly to ensure successful flashing.