起因是编译 aosp 后,手机进不去系统,可以接上回 https://www.v2ex.com/t/893452#reply5
排查过 dmesg 后,发现了可能的错误处
[ 2.175159] init: Couldn't load property file '/system/etc/prop.default': open() failed: No such file or directory: No such file or directory
[ 2.178152] init: Couldn't load property file '/system/build.prop': open() failed: No such file or directory: No such file or directory
[ 2.178183] init: Couldn't load property file '/vendor/default.prop': open() failed: No such file or directory: No such file or directory
[ 2.178209] init: Couldn't load property file '/vendor/build.prop': open() failed: No such file or directory: No such file or directory
...
[ 2.182834] init: Parsing file /system/etc/init...
[ 2.182866] init: Unable to read config file '/system/etc/init': open() failed: No such file or directory
[ 2.182895] init: Parsing file /product/etc/init...
[ 2.182924] init: Unable to read config file '/product/etc/init': open() failed: No such file or directory
...
后续排查:
make vendorimage && flash vendor
还是没有文件。simg2img
把编译好的system.img
和vendor.img
解包后,发现里面是有这些文件的,所以文件为什么没能写入到手机里面?fastboot flashall -w
,后面换成下面的方式,还是无效#双清
fastboot erase cache
fastboot erase userdata
#刷入 boot
fastboot flash boot_a boot.img
fastboot flash boot_b boot.img
#刷入 system.img
fastboot flash system system.img
fastboot flash system_b system_other.img
#刷入驱动
fastboot flash vendor vendor.img
所以,现在有点麻,有没有大佬知道问题出在哪里?
1
zbinlin 2022-11-30 13:03:48 +08:00
看下 vendor 分区有没有正确挂载?
|
2
SupperMary 2022-12-04 17:35:38 +08:00
用 simg2img 把编译好的 system.img 和 vendor.img 解包后
---------------------- 你会转换文件的话,用 fastboot 把转换后的文件刷到手机上试试 |
3
StonyGround OP 破案了,家人们,用 ubuntu18 编译后刷完正常开机,之前用的 22 编译也没报错,就是开不了机
|