当前位置: 首页 > 知识库问答 >
问题:

AOSP在Nexus 5上未启动

狄承望
2023-03-14

我正在尝试用Android源代码(Android-5.1.1_r3)启动我的Nexus 5 hammerhead设备。以下是我遵循的步骤:

    < Li > $ repo init-u https://android.googlesource.com/platform/manifest-b Android-5 . 1 . 1 _ R3 < li >回购同步

之后,我下载了android-5.1.1_r3 (LMY48B)的以下二进制文件

  • https://dl.google.com/dl/android/aosp/broadcom-hammerhead-lmy48b-2d0a908d.tgz
  • https://dl.google.com/dl/android/aosp/lge-hammerhead-lmy48b-92cca4b9.tgz
  • https://dl.google.com/dl/android/aosp/qcom-hammerhead-lmy48b-021b52eb.tgz

接下来,我解压了二进制文件并执行了脚本并接受了许可证。这将所有必需的文件添加到供应商文件夹中。

接下来,我运行了以下命令:

  • 源代码构建/envsetup.sh
  • 午餐aosp_hammerhead-userdebug
  • 使-j24

最后,我用out文件夹中的图片刷新了我的设备。

  • 快速启动 OEM 解锁
  • 快速启动闪光灯启动/目标/产品/双髻鲨/启动。
  • 快速启动闪光灯系统输出/目标/产品/双髻鲨/系统。
  • 快速启动闪光恢复输出/目标/产品/双髻鲨/恢复.
  • 快速引导重启

到目前为止一切都很好。但现在,当设备重新启动时,它会卡在谷歌标志中。不过,我可以使用adb shell访问shell。我检查了很多类似的问题,但现在我已经把我遗漏的所有问题都合并了。还是没有运气。有什么关于如何从这里开始的提示吗?

编辑

我在adb logcat中获得以下日志。

I/mediaserver(10342): ServiceManager: 0xb61500c0
I/AudioFlinger(10342): Using default 3000 mSec as standby time.
I/ServiceManager(10342): Waiting for service batterystats...
I/DEBUG   (  167): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   (  167): Build fingerprint: 'Android/aosp_hammerhead/hammerhead:5.0/LRX21O/bhatia04291114:userdebug/test-keys'
I/DEBUG   (  167): Revision: '11'
I/DEBUG   (  167): ABI: 'arm'
I/DEBUG   (  167): pid: 10341, tid: 10341, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
I/DEBUG   (  167): signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------
I/DEBUG   (  167): Abort message: 'couldn't find an OpenGL ES implementation'
I/DEBUG   (  167):     r0 00000000  r1 00002865  r2 00000006  r3 00000000
I/DEBUG   (  167):     r4 b6fe8114  r5 00000006  r6 00000002  r7 0000010c
I/DEBUG   (  167):     r8 b6a62000  r9 00000000  sl 00000000  fp bef19afc
I/DEBUG   (  167):     ip 00002865  sp bef19570  lr b6f72af9  pc b6f965f0  cpsr 60070010
I/DEBUG   (  167): 
I/DEBUG   (  167): backtrace:
I/DEBUG   (  167):     #00 pc 0003a5f0  /system/lib/libc.so (tgkill+12)
I/DEBUG   (  167):     #01 pc 00016af5  /system/lib/libc.so (pthread_kill+52)
I/DEBUG   (  167):     #02 pc 00017707  /system/lib/libc.so (raise+10)
I/DEBUG   (  167):     #03 pc 00013f75  /system/lib/libc.so (__libc_android_abort+36)
I/DEBUG   (  167):     #04 pc 00012a3c  /system/lib/libc.so (abort+4)
I/DEBUG   (  167):     #05 pc 00007a59  /system/lib/libcutils.so (__android_log_assert+88)
I/DEBUG   (  167):     #06 pc 000430b9  /system/lib/libEGL.so
I/DEBUG   (  167):     #07 pc 00010641  /system/lib/libEGL.so
I/DEBUG   (  167):     #08 pc 00010e21  /system/lib/libEGL.so (eglGetDisplay+24)
I/DEBUG   (  167):     #09 pc 000171e5  /system/lib/libsurfaceflinger.so (android::SurfaceFlinger::init()+44)
I/DEBUG   (  167):     #10 pc 000007e1  /system/bin/surfaceflinger
I/DEBUG   (  167):     #11 pc 000128ed  /system/lib/libc.so (__libc_init+44)
I/DEBUG   (  167):     #12 pc 000008d8  /system/bin/surfaceflinger
D/AndroidRuntime(10344): 
D/AndroidRuntime(10344): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
D/AndroidRuntime(10344): CheckJNI is OFF
I/art     (10344): option[0]=-Xzygote
I/art     (10344): option[1]=-Xstacktracefile:/data/anr/traces.txt
I/art     (10344): option[2]=exit
I/art     (10344): option[3]=vfprintf
I/art     (10344): option[4]=sensitiveThread
I/art     (10344): option[5]=-verbose:gc
I/art     (10344): option[6]=-Xms8m
I/art     (10344): option[7]=-Xmx512m
I/art     (10344): option[8]=-XX:mainThreadStackSize=24K
I/art     (10344): option[9]=-XX:HeapGrowthLimit=192m
I/art     (10344): option[10]=-XX:HeapMinFree=512k
I/art     (10344): option[11]=-XX:HeapMaxFree=8m
I/art     (10344): option[12]=-XX:HeapTargetUtilization=0.75
I/art     (10344): option[13]=-Xgenregmap
I/art     (10344): option[14]=-Xgc:precise
I/art     (10344): option[15]=-agentlib:jdwp=transport=dt_android_adb,suspend=n,server=y
I/art     (10344): option[16]=-Xlockprofthreshold:500
I/art     (10344): option[17]=-Ximage-compiler-option
I/art     (10344): option[18]=--runtime-arg
I/art     (10344): option[19]=-Ximage-compiler-option
I/art     (10344): option[20]=-Xms64m
I/art     (10344): option[21]=-Ximage-compiler-option
I/art     (10344): option[22]=--runtime-arg
I/art     (10344): option[23]=-Ximage-compiler-option
I/art     (10344): option[24]=-Xmx64m
I/art     (10344): option[25]=-Ximage-compiler-option
I/art     (10344): option[26]=--image-classes-zip=/system/framework/framework.jar
I/art     (10344): option[27]=-Ximage-compiler-option
I/art     (10344): option[28]=--image-classes=preloaded-classes
I/art     (10344): option[29]=-Xcompiler-option
I/art     (10344): option[30]=--runtime-arg
I/art     (10344): option[31]=-Xcompiler-option
I/art     (10344): option[32]=-Xms64m
I/art     (10344): option[33]=-Xcompiler-option
I/art     (10344): option[34]=--runtime-arg
I/art     (10344): option[35]=-Xcompiler-option
I/art     (10344): option[36]=-Xmx512m
I/art     (10344): option[37]=-Duser.language=en
I/art     (10344): option[38]=-Duser.region=US
I/SamplingProfilerIntegration(10344): Profiling disabled.
D/Zygote  (10344): begin preload
I/DEBUG   (  167): 
I/DEBUG   (  167): Tombstone written to: /data/tombstones/tombstone_07
I/ServiceManager(  160): service 'media.audio_flinger' died
E/sdcard  (  175): missing packages.list; retrying
E/sdcard  (  175): missing packages.list; retrying
I/Netd    (10466): Netd 1.0 starting
E/QCOMKeyMaster(10470): failed to load qseecom library
E/keystore(10470): could not open keymaster device in keystore (Operation not permitted)
E/keystore(10470): keystore keymaster could not be initialized; exiting
I/SurfaceFlinger(10468): SurfaceFlinger is starting
I/SurfaceFlinger(10468): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...

基本上相同的日志不断重复。

共有1个答案

蒯嘉赐
2023-03-14

似乎您错过了为设备下载专有二进制文件。检查这个答案

 类似资料:
  • 我很难在服务器重新引导时重新启动pm2(它本身和两个节点/express文件,&)。 下面是我尝试的过程: 我在所有可能的组合中运行了上面的命令,但没有任何工作。我试着以根用户的身份运行,但也不起作用。 我的文件包含信息,所以我不知道还可以在哪里查找。 我尝试的其他参考资料... http://pm2.keymetrics.io/docs/usage/startup/ https://www.di

  • 按照说明在Linux Mint19上安装Anaconda。安装后,我尝试通过“Anaconda-navigator”启动Anaconda导航器。 它没有启动,我得到错误: 有什么办法解决这个问题吗? 多谢

  • 我无法使用XAMPP启动MySQL,并且我没有收到任何错误。因此,如果我单击“开始”,我会收到消息“01:26:41[mysql]尝试启动MySQL服务......”仅此而已。 问题可能是,因为我还安装了MariaDB附带的HeidiSQL。我知道他们都使用同一个端口(3306),我试图将MariaDB的端口更改为3308。 这是my.ini的内容: mysql\u error.log: 我已经尝

  • 阿里巴巴旗下的平头哥半导体(T-Head)已经成功将 Android 10 移植到自己的 RISC-V 芯片上。 Android 10 系统已经可以在玄铁 910 芯片上流畅运行。ICE EVB 是 T-Head 开发的基于玄铁 C910 的高性能 SoC 板。ICE SoC 集成了 3 个玄铁 C910 内核(RISC-V 64)和 1 个 GPU 内核,具有高速、智能、高性价比的特点。该芯片可

  • 启动服务器时,出现以下错误:无法启动服务器。 localhost上的服务器GlassFish Server Open Source Edition 3(Java EE 6)无法启动。

  • 我试图在Ubuntu 12.10 X64上构建AOSP (4.2.2),我得到了以下错误: 有人能帮我解决这个问题吗?