android-6.0.1_r45 error: could not load boot.img

android-6.0.1_r45 error: could not load boot.img

我已经构建了 android-6.0.1_r45 系统 successful.But 当我试图将它刷写到 nexus 5x 时,我发现错误无法加载 boot.img.I检查了我的 /generic 折叠,有 ramdisk.img、system.img 和 userdata.img。 boot.img 在哪里? 为什么它不存在于我的构建版本中。 我用这个 "lunch aosp_arm-eng"

我找到了答案。 "lunch aosp_arm-eng" 指的是模拟器的完整构建,它仅适用于模拟器。我想刷机 NEXUS 5X,所以我必须用 "aosp_bullhead-userdebug".OH,HOLYSHIT

来构建

当我准备在新终端中刷写 Neuxs 5X 时,我遇到了同样的错误。

$ fastboot flashall -w
error: could not load boot.img

这是我的解决方案,关键步骤是 运行 "lunch" 在您之前执行命令 运行 "fastboot flashall -w"。希望对你有帮助。

$ cd android-7.1.1_r14/
$ lunch #select 21. aosp_bullhead-userdebug
$ cd out/target/product/bullhead
$ fastboot flashall -w

而且我想,我们不需要先 运行 lunch,因为我们只是 运行 fastboot flashall -w 在我们构建 [=24 的同一个终端中=] 系统.