旅人飞狐 2020-04-26 22:50 采纳率: 100%
浏览 2348
已采纳

懂高通分区表partition.xml,rawprogram0.xml 的进

partition.bin资料如图:
图片说明
然后根据各位前辈的相关教程 制作黑砖救砖文件
partition.xml如现下(希望懂得指点下错误)

<?xml version="1.0"?>
    <physical_partition>
        <partition label="modem" size_in_kb="65536" bootable="false" readonly="false" filename="NON-HLOS.bin" />
        <partition label="sbl1" size_in_kb="512" bootable="false" readonly="false" filename="sbl1.mbn" />
        <partition label="dbi" size_in_kb="32" bootable="false" readonly="false" filename="sdi.mbn" />
        <partition label="DDR" size_in_kb="32" bootable="false" readonly="false" filename="" />
        <partition label="aboot" size_in_kb="8192" bootable="false" readonly="false" filename="emmc_appsboot.mbn" />
        <partition label="rmp" size_in_kb="500" bootable="false" readonly="false" filename="rpm.mbn" />
        <partition label="boot" size_in_kb="16384" bootable="false" readonly="false" filename="boot.img" />
        <partition label="tz" size_in_kb="500" bootable="false" readonly="false" filename="tz.mbn" />
        <partition label="pad" size_in_kb="1024" bootable="false" readonly="false" filename="" />
        <partition label="modemst1" size_in_kb="1536" bootable="false" readonly="false" filename="" />
        <partition label="modemst2" size_in_kb="1536" bootable="false" readonly="false" filename="" />
        <partition label="system" size_in_kb="1310720" bootable="false" readonly="false" filename="system.img" />
        <partition label="persist" size_in_kb="32768" bootable="false" readonly="false" filename="persist.img" />
        <partition label="cache" size_in_kb="819200" bootable="false" readonly="false" filename="" />
        <partition label="recovery" size_in_kb="16384" bootable="false" readonly="false" filename="recovery.img" />
        <partition label="fsg" size_in_kb="1536" bootable="false" readonly="false" filename="" />
        <partition label="fsc" size_in_kb="1" bootable="false" readonly="false" filename="" />
        <partition label="ssd" size_in_kb="8" bootable="false" readonly="false" filename="" />
        <partition label="oemdata" size_in_kb="256" bootable="false" readonly="false" filename="" />
        <partition label="dbg" size_in_kb="2048" bootable="false" readonly="false" filename="cache.img" />
        <partition label="userdata" size_in_kb="27783151" bootable="false" readonly="false" filename="" />
    </physical_partition>
</configuration>

rawprogram0.xml 如下(希望懂得指点下错误)

<?xml version="1.0" ?>  
<data>  
        <!--NOTE: Sector size is 512bytes-->  
        <program file_sector_offset="0" filename="NON-HLOS.bin" label="modem" num_partition_sectors="131072" physical_partition_number="0" size_in_KB="65536" start_sector="1024"/>
        <program file_sector_offset="0" filename="sbl1.mbn" label="sbl1" num_partition_sectors="1024" physical_partition_number="0" size_in_KB="512" start_sector="263167"/>
        <program file_sector_offset="0" filename="sdi.mbn" label="dbi" num_partition_sectors="64" physical_partition_number="0" size_in_KB="32" start_sector="263168"/>
        <program file_sector_offset="0" filename="" label="DDR" num_partition_sectors="64" physical_partition_number="0" size_in_KB="32" start_sector="393216"/>
        <program file_sector_offset="0" filename="emmc_appsboot.mbn" label="aboot" num_partition_sectors="16384" physical_partition_number="0" size_in_KB="8192" start_sector="524288"/>
        <program file_sector_offset="0" filename="rpm.mbn" label="rmp" num_partition_sectors="1000" physical_partition_number="0" size_in_KB="500" start_sector="540672"/>
        <program file_sector_offset="0" filename="boot.img" label="boot" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384" start_sector="655360"/>
        <program file_sector_offset="0" filename="tz.mbn" label="tz" num_partition_sectors="1000" physical_partition_number="0" size_in_KB="500" start_sector="786432"/>
        <program file_sector_offset="0" filename="" label="pad" num_partition_sectors="2048" physical_partition_number="0" size_in_KB="1024" start_sector="787432"/>
        <program file_sector_offset="0" filename="" label="modemst1" num_partition_sectors="3072" physical_partition_number="0" size_in_KB="1536" start_sector="789480"/>
        <program file_sector_offset="0" filename="" label="modemst2" num_partition_sectors="3072" physical_partition_number="0" size_in_KB="1536" start_sector="792552"/>
        <program file_sector_offset="0" filename="system.img" label="system" num_partition_sectors="2621440" physical_partition_number="0" size_in_KB="1310720" start_sector="917504"/>
        <program file_sector_offset="0" filename="persist.img" label="persist" num_partition_sectors="65536" physical_partition_number="0" size_in_KB="32768" start_sector="3538944"/>
        <program file_sector_offset="0" filename="cache.img" label="cache" num_partition_sectors="1638400" physical_partition_number="0" size_in_KB="819200" start_sector="3604480"/>
        <program file_sector_offset="0" filename="recovery.img" label="recovery" num_partition_sectors="32768" physical_partition_number="0" size_in_KB="16384" start_sector="5242880"/>
        <program file_sector_offset="0" filename="" label="fsg" num_partition_sectors="3072" physical_partition_number="0" size_in_KB="1536" start_sector="5275648"/>
        <program file_sector_offset="0" filename="" label="fsc" num_partition_sectors="2" physical_partition_number="0" size_in_KB="1" start_sector="5373952"/>
        <program file_sector_offset="0" filename="" label="ssd" num_partition_sectors="16" physical_partition_number="0" size_in_KB="8" start_sector="5373954"/>
        <program file_sector_offset="0" filename="" label="oemdata" num_partition_sectors="512" physical_partition_number="0" size_in_KB="256" start_sector="5373970"/>
        <program file_sector_offset="0" filename="" label="dbg" num_partition_sectors="4096" physical_partition_number="0" size_in_KB="2048" start_sector="5374482"/>
        <program file_sector_offset="0" filename="" label="userdata" num_partition_sectors="55566302" physical_partition_number="0" size_in_KB="27783151" start_sector="5505024"/>
          <program file_sector_offset="0" filename="partition0.bin" label="PrimaryGPT" num_partition_sectors="1" physical_partition_number="0" size_in_KB="0.5" start_sector="0"/>
          <program file_sector_offset="1" filename="partition0.bin" label="BackupGPT" num_partition_sectors="21" physical_partition_number="0" size_in_KB="10.5" start_sector="263167"/>
<data>
  • 写回答

3条回答 默认 最新

  • weixin_46262065 2020-04-29 11:14
    关注

    除了xml文件还要有 hex 可以在相同机型的线刷包里提取 准备好对应的img文件

    <?xml version="1.0"?>  
    <data>  
            <physical_partition number="0">  
                    <primary order="1" label="modem" size="65536" readonly="true">  
                            <!--file name="NON-HLOS.bin" offset="0"/-->  
                    </primary>  
                    <primary order="2" label="sbl1" size="512" bootable="true">  
                            <!--file name="sbl1.mbn" offset="0"/-->  
                    </primary> 
                    <primary order="3" label="dbi" size="32" readonly="true">  
                            <!--file name="sdi.mbn" offset="0"/-->  
                    </primary> 
                    <primary order="4" label="DDR" size="32" readonly="true">  
                    </primary>  
                    <primary order="5" label="aboot" size="8192" readonly="true">  
                            <!--file name="emmc_appsboot.mbn" offset="0"/-->  
                    </primary> 
                    <primary order="6" label="rmp" size="500" readonly="true">  
                            <!--file name="rpm.mbn" offset="0"/-->  
                    </primary> 
                    <primary order="7" label="boot" size="16384" readonly="true">  
                            <!--file name="boot.img" offset="0"/-->  
                    </primary> 
                    <primary order="8" label="tz" size="500" readonly="true">  
                            <!--file name="tz.mbn" offset="0"/-->  
                    </primary> 
                    <primary order="9" label="pad" size="1024" readonly="true">  
                    </primary>
                    <primary order="10" label="modemst1" size="1536" readonly="true">  
                    </primary>
                    <primary order="11" label="modemst2" size="1536" readonly="true">  
                    </primary>   
                    <primary order="12" label="system" size="1310720" readonly="true">  
                            <!--file name="system.img" offset="0"/-->  
                    </primary> 
                    <primary order="13" label="persist" size="32768" readonly="true">  
                            <!--file name="persist.img" offset="0"/-->  
                    </primary> 
                    <primary order="14" label="cache" size="819200" readonly="true">  
                            <!--file name="cache.img" offset="0"/-->  
                    </primary> 
                    <primary order="15" label="recovery" size="16384" readonly="true">  
                            <!--file name="recovery.img" offset="0"/-->  
                    </primary> 
                    <primary order="16" label="fsg" size="1536" readonly="true">  
                    </primary>
                    <primary order="17" label="fsc" size="1" readonly="true">  
                    </primary>
                    <primary order="18" label="ssd" size="8" readonly="true">  
                    </primary>
                    <primary order="19" label="oemdata" size="256" readonly="true">  
                    </primary>
                    <primary order="20" label="dbg" size="2048" readonly="true">  
                    </primary>
                    <primary order="21" label="userdata" size="27783151" readonly="true">  
                    </primary>          
    </data>       
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号
  • ¥50 安装pyaudiokits失败
  • ¥15 计组这些题应该咋做呀
  • ¥60 更换迈创SOL6M4AE卡的时候,驱动要重新装才能使用,怎么解决?
  • ¥15 让node服务器有自动加载文件的功能
  • ¥15 jmeter脚本回放有的是对的有的是错的
  • ¥15 r语言蛋白组学相关问题
  • ¥15 Python时间序列如何拟合疏系数模型
  • ¥15 求学软件的前人们指明方向🥺