system分区挂载失败处理
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 完美解决