文檔說明
本文檔以SC826(MSM8953平臺,Android 7)爲例,描述如何對SOC鏡像文件分包。
應用背景
客戶用QFIL刷固件的時候,由於客戶自己編譯生成的固件是沒有經過分包的,燒錄耗時較久。如果將編譯生成的固件先分包後,再燒錄就可以提升燒錄效率。
分包準備工作
- 準備分包腳本checksparse.py
#!/usr/bin/python
#===========================================================================
# This script parses "rawprogram.xml" looking for sparse="true" tags
# if found, it tries to find the sparse files and updates rawprogram.xml
# such that msp.py, T32 and QPST can program them
# REFERENCES
# $Header: //components/rel/boot.bf/3.3/boot_images/core/storage/tools/ptool/checksparse.py#3 $
# $DateTime: 2016/09/12 00:31:06 $
# $Author: pwbldsvc $
# when who what, where, why
# -------- --- -------------------------------------------------------
# 2016-05-23 wek Merge sparse chunks in output file if the hole is small.
# 2015-01-30 ah Add 4K Sector size support.
# 2011-08-17 ah Added output directory