起因是编译 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
所以,现在有点麻,有没有大佬知道问题出在哪里?
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.