20220517关闭MT6765的android8.1系统的efuse分区
2022/5/17 18:09
1、使用SP_Flash_Tool_v5.2052_Win给MT6765刷机的时候,习惯性的将刷机模式从“下载”切换到“全部格式化和下载”!
结果提示错误:
Smart Phone Flash Tool
Partition [efuse] No image file Exist!
OK
![](https://img-blog.csdnimg.cn/ce42845cb17d4b188d95892daebe7ea9.png)
2、临时解决方法:
将MT6765_Android_scatter.txt总的efuse分区关闭掉,或者直接拿掉这一区域的代码!
- partition_index: SYS15
partition_name: efuse
file_name: efuse.img
is_download: true
type: NORMAL_ROM
linear_start_addr: 0xd500000
physical_start_addr: 0xd500000
partition_size: 0x80000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
is_upgradable: false
empty_boot_needed: false
reserve: 0x00
修改为:
- partition_index: SYS15
partition_name: efuse
file_name: efuse.img
is_download: false
type: NORMAL_ROM
linear_start_addr: 0xd500000
physical_start_addr: 0xd500000
partition_size: 0x80000
region: EMMC_USER
storage: HW_STORAGE_EMMC
boundary_check: true
is_reserved: false
operation_type: UPDATE
is_upgradable: false
empty_boot_needed: false
reserve: 0x00
![](https://img-blog.csdnimg.cn/9abe9df322254a47b891a977ae96c5b9.png)
![](https://img-blog.csdnimg.cn/afe4c952e0a043b8b2a8af61eaee11f1.png)
![](https://img-blog.csdnimg.cn/41f03709a08044c989ade1ff4ddacdba.png)
![](https://img-blog.csdnimg.cn/b57445b9c0bb40dab1c2fee1031be7c3.png)
3、不想每一次刷机都改来改去!
找了好久,终于确认是这里:
M:\mt6765o1\device\mediatek\build\build\tools\ptgen\MT6765\ptgen.pl
#Chenyee <CY_BSP_EFUSE> <chendonghai> add efuse partition for all(CSW1707A-13) begin
#if ($partition_layout_process[$partition_idx]->{Partition_Name} eq "efuse")
#{
#if ($ArgList{EFUSE_WRITER_SUPPORT} ne "yes")
#{
#splice @partition_layout_process, $partition_idx, 1;
#$partition_idx--;
#}
#}
#Chenyee <CY_BSP_EFUSE> <chendonghai> add efuse partition for all(CSW1707A-13) end
修改为:
#Chenyee <CY_BSP_EFUSE> <chendonghai> add efuse partition for all(CSW1707A-13) begin
if ($partition_layout_process[$partition_idx]->{Partition_Name} eq "efuse")
{
if ($ArgList{EFUSE_WRITER_SUPPORT} ne "yes")
{
splice @partition_layout_process, $partition_idx, 1;
$partition_idx--;
}
}
#Chenyee <CY_BSP_EFUSE> <chendonghai> add efuse partition for all(CSW1707A-13) end
将#号注释拿掉,刷机的时候,就没有讨厌的efuse分区的问题了!
![](https://img-blog.csdnimg.cn/d1c476f6fc8244cb9cb7b30bfcf4a3d5.png)
参考资料:
https://blog.csdn.net/qq_39695119/article/details/118805929
MTK分区之(三)MTK scatter.txt生成过程
qq_39695119
三、MTK scatter.txt生成过程
MTK的分区相关过程简单来说:
分区生成工具ptgen(alps/device/mediatek/build/build/tools/ptgen)
根据alps/device/mediatek/build/build/tools/ptgen/MT6765目录下的分区表文件生成scatter.txt
然后MTK的烧录工具需要选两个东西,一个DA.bin,一个就是这个scatter.txt
在MTK样机接上usb线开机时,在preloader阶段会进行usb握手操作,如果握手成功,就会通过usb下载DA.bin到样机上,然后样机跳到DA.bin继续跑
DA.bin的主要功能就是根据scatter.txt来烧录分区镜像(可能会进行verify)
https://blog.csdn.net/jinron10/article/details/109239465
android9.0 MTK平台添加分区表
https://www.jianshu.com/p/ea354d8d234a
MTK 平台分区添加参考
https://blog.csdn.net/lb5761311/article/details/41805423
MT8127_Android_scatter.txt 文件添加backup分区
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)