Chinaunix首页 | 论坛 | 博客
  • 博客访问: 521833
  • 博文数量: 56
  • 博客积分: 1136
  • 博客等级: 少尉
  • 技术积分: 1378
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-28 14:02
文章存档

2014年(1)

2013年(7)

2012年(45)

2011年(3)

分类: 嵌入式

2012-04-04 14:08:56

前些天在调试android的时候很郁闷:

先是android启动不了,报couldn't open framebuffer HAL (No such device),logcat打印信息如下:

点击(此处)折叠或打开

  1. logcat
  2. --------- beginning of /dev/log/system
  3. I/Vold ( 51): Vold 2.1 (the revenge) firing up
  4. D/Vold ( 51): Volume sdcard state changing -1 (Initializing) -> 0 (No-Media)
  5. D/Vold ( 51): Volume sdcard state changing 0 (No-Media) -> 2 (Pending)
  6. D/Vold ( 51): Volume sdcard state changing 2 (Pending) -> 1 (Idle-Unmounted)
  7. --------- beginning of /dev/log/main
  8. I/Netd ( 299): Netd 1.0 starting
  9. D/AndroidRuntime( 302):
  10. D/AndroidRuntime( 302): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
  11. D/AndroidRuntime( 302): CheckJNI is ON
  12. D/dalvikvm( 302): creating instr width table
  13. I/ ( 298): ServiceManager: 0xade8
  14. E/AudioHardware( 298): Can't load libsecril-client.so
  15. D/AudioHardwareInterface( 298): setMode(NORMAL)
  16. I/CameraService( 298): CameraService started (pid=298)
  17. I/AudioFlinger( 298): AudioFlinger's thread 0xc7f0 ready to run
  18. D/AudioHardware( 298): AudioStreamOutALSA::setParameters() routing=2
  19. D/AudioHardware( 298): ### setVoiceVolume
  20. I/SamplingProfilerIntegration( 302): Profiler is disabled.
  21. I/Zygote ( 302): Preloading classes...
  22. D/dalvikvm( 302): GC_EXPLICIT freed 47K, 78% free 233K/1024K, external 0K/0K, paused 13ms
  23. D/dalvikvm( 302): GC_EXPLICIT freed 1K, 73% free 283K/1024K, external 0K/0K, paused 1ms
  24. D/dalvikvm( 302): GC_EXPLICIT freed 20K, 70% free 316K/1024K, external 0K/0K, paused 2ms
  25. I/bluetooth_ScoSocket.cpp( 302): Entry name = MY-CAR ScoTypes = 0x7f
  26. I/bluetooth_ScoSocket.cpp( 302): Entry name = Motorola HF850 ScoTypes = 0x7
  27. D/dalvikvm( 302): GC_EXPLICIT freed 17K, 66% free 354K/1024K, external 0K/0K, paused 2ms
  28. D/dalvikvm( 302): GC_EXPLICIT freed 26K, 63% free 382K/1024K, external 0K/0K, paused 2ms
  29. D/dalvikvm( 302): GC_EXPLICIT freed 22K, 57% free 441K/1024K, external 0K/0K, paused 2ms
  30. D/dalvikvm( 302): GC_EXPLICIT freed 99K, 47% free 547K/1024K, external 0K/0K, paused 3ms
  31. D/dalvikvm( 302): GC_EXPLICIT freed 272K, 28% free 886K/1219K, external 0K/0K, paused 6ms
  32. D/dalvikvm( 302): GC_EXPLICIT freed 22K, 24% free 936K/1219K, external 0K/0K, paused 6ms
  33. D/dalvikvm( 302): GC_EXPLICIT freed 24K, 18% free 1002K/1219K, external 0K/0K, paused 5ms
  34. D/dalvikvm( 302): GC_EXPLICIT freed 47K, 5% free 1285K/1347K, external 0K/0K, paused 8ms
  35. D/dalvikvm( 302): GC_EXPLICIT freed 24K, 7% free 1316K/1411K, external 0K/0K, paused 8ms
  36. D/dalvikvm( 302): GC_EXPLICIT freed 29K, 6% free 1341K/1411K, external 0K/0K, paused 8ms
  37. D/dalvikvm( 302): GC_EXPLICIT freed 14K, 3% free 1381K/1411K, external 0K/0K, paused 9ms
  38. W/Zygote ( 302): Class not found for preloading: android.widget.TextView$SelectionModifierCursorController$1
  39. D/dalvikvm( 302): GC_EXPLICIT freed 29K, 5% free 1406K/1475K, external 0K/0K, paused 9ms
  40. D/dalvikvm( 302): GC_EXPLICIT freed 30K, 3% free 1444K/1475K, external 0K/0K, paused 9ms
  41. D/dalvikvm( 302): GC_EXPLICIT freed 38K, 6% free 1461K/1539K, external 0K/0K, paused 9ms
  42. D/dalvikvm( 302): GC_EXPLICIT freed 40K, 5% free 1476K/1539K, external 0K/0K, paused 9ms
  43. D/dalvikvm( 302): GC_EXPLICIT freed 54K, 8% free 1489K/1603K, external 0K/0K, paused 9ms
  44. D/dalvikvm( 302): GC_FOR_MALLOC freed 2882K, 57% free 2240K/5123K, external 0K/0K, paused 29ms
  45. D/dalvikvm( 302): GC_EXPLICIT freed 2446K, 52% free 2493K/5123K, external 0K/0K, paused 25ms
  46. D/dalvikvm( 302): GC_EXPLICIT freed 146K, 51% free 2556K/5123K, external 0K/0K, paused 18ms
  47. D/dalvikvm( 302): GC_EXPLICIT freed 73K, 50% free 2582K/5123K, external 0K/0K, paused 18ms
  48. D/dalvikvm( 302): GC_EXPLICIT freed 37K, 50% free 2599K/5123K, external 0K/0K, paused 17ms
  49. D/dalvikvm( 302): GC_EXPLICIT freed 31K, 49% free 2622K/5123K, external 0K/0K, paused 18ms
  50. D/dalvikvm( 302): GC_EXPLICIT freed 38K, 49% free 2645K/5123K, external 0K/0K, paused 18ms
  51. I/Zygote ( 302): ...preloaded 1830 classes in 2270ms.
  52. E/Zygote ( 302): setreuid() failed. errno: 17
  53. D/dalvikvm( 302): GC_EXPLICIT freed 18K, 49% free 2644K/5123K, external 0K/0K, paused 17ms
  54. I/Zygote ( 302): Preloading resources...
  55. D/dalvikvm( 302): GC_EXTERNAL_ALLOC freed <1K, 49% free 2646K/5123K, external 0K/0K, paused 18ms
  56. W/Zygote ( 302): Preloaded drawable resource #0x1080093 (res/drawable-hdpi/sym_def_app_icon.png) that varies with configuration!!
  57. W/Zygote ( 302): Preloaded drawable resource #0x1080002 (res/drawable-hdpi/arrow_down_float.png) that varies with configuration!!
  58. W/Zygote ( 302): Preloaded drawable resource #0x10800b4 (res/drawable/btn_check.xml) that varies with configuration!!
  59. W/Zygote ( 302): Preloaded drawable resource #0x10800b7 (res/drawable-hdpi/btn_check_label_background.9.png) that varies with configuration!!
  60. W/Zygote ( 302): Preloaded drawable resource #0x10800b8 (res/drawable-hdpi/btn_check_off.png) that varies with configuration!!
  61. W/Zygote ( 302): Preloaded drawable resource #0x10800bd (res/drawable-hdpi/btn_check_on.png) that varies with configuration!!
  62. W/Zygote ( 302): Preloaded drawable resource #0x1080004 (res/drawable/btn_default.xml) that varies with configuration!!
  63. W/Zygote ( 302): Preloaded drawable resource #0x1080005 (res/drawable/btn_default_small.xml) that varies with configuration!!
  64. W/Zygote ( 302): Preloaded drawable resource #0x1080006 (res/drawable/btn_dropdown.xml) that varies with configuration!!
  65. W/Zygote ( 302): Preloaded drawable resource #0x1080008 (res/drawable/btn_plus.xml) that varies with configuration!!
  66. D/dalvikvm( 302): GC_EXTERNAL_ALLOC freed 20K, 48% free 2677K/5123K, external 524K/526K, paused 17ms
  67. W/Zygote ( 302): Preloaded drawable resource #0x1080007 (res/drawable/btn_minus.xml) that varies with configuration!!
  68. W/Zygote ( 302): Preloaded drawable resource #0x1080009 (res/drawable/btn_radio.xml) that varies with configuration!!
  69. D/dalvikvm( 302): GC_EXPLICIT freed 3K, 48% free 2682K/5123K, external 583K/1028K, paused 18ms
  70. W/Zygote ( 302): Preloaded drawable resource #0x108000a (res/drawable/btn_star.xml) that varies with configuration!!
  71. W/Zygote ( 302): Preloaded drawable resource #0x1080132 (res/drawable/btn_toggle.xml) that varies with configuration!!
  72. W/Zygote ( 302): Preloaded drawable resource #0x1080196 (res/drawable-hdpi/ic_emergency.png) that varies with configuration!!
  73. W/Zygote ( 302): Preloaded drawable resource #0x1080012 (res/drawable-hdpi/divider_horizontal_bright.9.png) that varies with configuration!!
  74. W/Zygote ( 302): Preloaded drawable resource #0x1080014 (res/drawable-hdpi/divider_horizontal_dark.9.png) that varies with configuration!!
  75. W/Zygote ( 302): Preloaded drawable resource #0x1080016 (res/drawable/edit_text.xml) that varies with configuration!!
  76. W/Zygote ( 302): Preloaded drawable resource #0x1080170 (res/drawable/expander_group.xml) that varies with configuration!!
  77. W/Zygote ( 302): Preloaded drawable resource #0x1080062 (res/drawable/list_selector_background.xml) that varies with configuration!!
  78. W/Zygote ( 302): Preloaded drawable resource #0x108022a (res/drawable-hdpi/menu_background.9.png) that varies with configuration!!
  79. W/Zygote ( 302): Preloaded drawable resource #0x108022b (res/drawable-hdpi/menu_background_fill_parent_width.9.png) that varies with configuration!!
  80. W/Zygote ( 302): Preloaded drawable resource #0x108022c (res/drawable/menu_selector.xml) that varies with configuration!!
  81. W/Zygote ( 302): Preloaded drawable resource #0x108023a (res/drawable-hdpi/panel_background.9.png) that varies with configuration!!
  82. W/Zygote ( 302): Preloaded drawable resource #0x1080242 (res/drawable-hdpi/popup_bottom_bright.9.png) that varies with configuration!!
  83. W/Zygote ( 302): Preloaded drawable resource #0x1080243 (res/drawable-hdpi/popup_bottom_dark.9.png) that varies with configuration!!
  84. W/Zygote ( 302): Preloaded drawable resource #0x1080244 (res/drawable-hdpi/popup_bottom_medium.9.png) that varies with configuration!!
  85. W/Zygote ( 302): Preloaded drawable resource #0x1080245 (res/drawable-hdpi/popup_center_bright.9.png) that varies with configuration!!
  86. D/dalvikvm( 302): GC_EXPLICIT freed 35K, 48% free 2704K/5123K, external 814K/1028K, paused 19ms
  87. W/Zygote ( 302): Preloaded drawable resource #0x1080246 (res/drawable-hdpi/popup_center_dark.9.png) that varies with configuration!!
  88. W/Zygote ( 302): Preloaded drawable resource #0x1080249 (res/drawable-hdpi/popup_full_dark.9.png) that varies with configuration!!
  89. W/Zygote ( 302): Preloaded drawable resource #0x108024c (res/drawable-hdpi/popup_top_bright.9.png) that varies with configuration!!
  90. W/Zygote ( 302): Preloaded drawable resource #0x108024d (res/drawable-hdpi/popup_top_dark.9.png) that varies with configuration!!
  91. W/Zygote ( 302): Preloaded drawable resource #0x108006d (res/drawable/progress_indeterminate_horizontal.xml) that varies with configuration!!
  92. W/Zygote ( 302): Preloaded drawable resource #0x1080253 (res/drawable/progress_small.xml) that varies with configuration!!
  93. W/Zygote ( 302): Preloaded drawable resource #0x1080254 (res/drawable/progress_small_titlebar.xml) that varies with configuration!!
  94. W/Zygote ( 302): Preloaded drawable resource #0x1080274 (res/drawable-hdpi/scrollbar_handle_horizontal.9.png) that varies with configuration!!
  95. W/Zygote ( 302): Preloaded drawable resource #0x1080275 (res/drawable-hdpi/scrollbar_handle_vertical.9.png) that varies with configuration!!
  96. W/Zygote ( 302): Preloaded drawable resource #0x1080071 (res/drawable/spinner_dropdown_background.xml) that varies with configuration!!
  97. W/Zygote ( 302): Preloaded drawable resource #0x1080316 (res/drawable-hdpi/text_select_handle_left.png) that varies with configuration!!
  98. W/Zygote ( 302): Preloaded drawable resource #0x1080317 (res/drawable-hdpi/text_select_handle_middle.png) that varies with configuration!!
  99. W/Zygote ( 302): Preloaded drawable resource #0x1080318 (res/drawable-hdpi/text_select_handle_right.png) that varies with configuration!!
  100. W/Zygote ( 302): Preloaded drawable resource #0x1080339 (res/drawable-hdpi/title_bar_shadow.9.png) that varies with configuration!!
  101. W/Zygote ( 302): Preloaded drawable resource #0x10801d8 (res/drawable-hdpi/indicator_code_lock_drag_direction_green_up.png) that varies with configuration!!
  102. W/Zygote ( 302): Preloaded drawable resource #0x10801d9 (res/drawable-hdpi/indicator_code_lock_drag_direction_red_up.png) that varies with configuration!!
  103. D/dalvikvm( 302): GC_EXTERNAL_ALLOC freed 29K, 48% free 2714K/5123K, external 999K/1028K, paused 18ms
  104. W/Zygote ( 302): Preloaded drawable resource #0x10801da (res/drawable-hdpi/indicator_code_lock_point_area_default.png) that varies with configuration!!
  105. W/Zygote ( 302): Preloaded drawable resource #0x10801db (res/drawable-hdpi/indicator_code_lock_point_area_green.png) that varies with configuration!!
  106. W/Zygote ( 302): Preloaded drawable resource #0x10801dc (res/drawable-hdpi/indicator_code_lock_point_area_red.png) that varies with configuration!!
  107. I/Zygote ( 302): ...preloaded 51 resources in 331ms.
  108. D/dalvikvm( 302): GC_EXPLICIT freed 10K, 47% free 2721K/5123K, external 1069K/1492K, paused 18ms
  109. I/Zygote ( 302): ...preloaded 15 resources in 23ms.
  110. D/dalvikvm( 302): GC_EXPLICIT freed 9K, 48% free 2712K/5123K, external 1069K/1492K, paused 18ms
  111. D/dalvikvm( 302): GC_EXPLICIT freed 2K, 48% free 2710K/5123K, external 1069K/1492K, paused 18ms
  112. D/dalvikvm( 302): GC_EXPLICIT freed <1K, 48% free 2710K/5123K, external 1069K/1492K, paused 18ms
  113. I/dalvikvm( 302): System server process 308 has been created
  114. I/Zygote ( 302): Accepting command socket connections
  115. I/sysproc ( 308): Entered system_init()
  116. I/sysproc ( 308): ServiceManager: 0x156f20
  117. I/SurfaceFlinger( 308): SurfaceFlinger is starting
  118. I/SurfaceFlinger( 308): SurfaceFlinger's main thread ready to run. Initializing graphics H/W...
  119. E/FramebufferNativeWindow( 308): couldn't open framebuffer HAL (No such device)
  120. I/DEBUG ( 53): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

调试了许久,后发现是内核的MACHINE_START宏与android文件系统的ro.product属性不匹配造成的,这个问题解决后,android正常启动,launcher2的主界面显示挺正常,但是点击应用程序图标时,显示不正常,图标非常大,而且有一部分没有显示出来,我想应该是launcher2的代码有问题,all_apps.xml中调用了layout目录下的all_apps_2d布局,但却发现该目录下没有这个文件,唉,悲催的android,浪费我时间,拷进去就好了。

阅读(3968) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~