高通镜像文件分包方法

文档说明

本文档以SC826(MSM8953平台,Android 7)为例,描述如何对SOC镜像文件分包。

应用背景

客户用QFIL刷固件的时候,由于客户自己编译生成的固件是没有经过分包的,烧录耗时较久。如果将编译生成的固件先分包后,再烧录就可以提升烧录效率。

分包准备工作

  1. 准备分包脚本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 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章