android dm 分区异常,system分区挂载失败处理

在预置谷歌GMS过程中,遇到设备无法开机并停留在fastboot模式,原因是system.img文件过大超过分区限制。通过检查BoardConfig.mk中的系统分区大小设置和partition.xml文件,确认问题所在。解决方案包括调整BoardConfig配置以适应分区大小、扩大分区或优化APK以减小system分区负担。
AI助手已提取文章相关产品:

1 最近预置谷歌GMS

发现手机一直开不机,处于fastboot 模式

抓到串口log 发现

[ 10.148046] [HXTP] himax_chip_monitor_function: POLLING_COUNT=0, STATUS=0

[  10.260518] init: Coldboot took 0.0353561 seconds

[  10.283388] EXT4-fs (mmcblk0p24): bad geometry: block count 856815 exceeds size of device (844800 blocks)

[  10.292178] init: [libfs_mgr]__mount(source=/dev/block/platform/soc/7824900.sdhci/by-name/system,target=/system,type=ext4)=-1

[  10.303296] init: Failed to mount '/system': Invalid argument

[  10.309082] init: Failed to mount required partitions early ...

[  10.314920] init: panic: rebooting to bootloader

[  10.319517] init: Reboot start, reason: reboot, rebootTarget: bootloader

[  10.326229] init: android::WriteStringToFile open failed: No such file or directory

[  10.333836] init: Shutdown timeout: 0

[  10.337484] init: property_set("persist.vendor.crash.detect", "false") failed: __system_property_add failed

[  10.347442] init: waitpid failed: No child processes

[  10.352135] init: vold not running, skipping vold shutdown

[  10.458069] init: powerctl_shutdown_time_ms:138:0

原因是合入了GMS包导致系统system.img 变大超出系统的分区,导致system s刷入失败,手机

一直处于fastboot模式

2 问题确认

a 需要确认一下

device/qcom/msm8909/BoardConfig.mk中配置的系统的大小

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 1288491008

b 需要先查看system分区大小:

common/build/partition.xml

3 解决方法

所以有两种解决办法:

1、修改BoardConfig配置,使其不超分区大小

2、修改分区大小,以适应BoardConfig配置

3、适当APK 不提odex 可以减小system的大小

4 完美解决

您可能感兴趣的与本文相关内容

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值