Firefly开源社区

标题: 小白求助,camera打不开了 [打印本页]

作者: DeepThinking    时间: 2016-7-25 10:41
标题: 小白求助,camera打不开了
用的是RK3288的开发板,本来设备都是能用的,用的官方Android5.1_20151231镜像,然后从百度网盘下载的源码,单独编译了一下hardware/rockchip/camera/CameraHal这个模块出的camera.rk30board.so库,用adb推送到/system/lib/hw目录下,重启之后就打不开相机了,但是同样的文件用reload板就可以用,源码和编译选项也没有区分这两个板子的地方,请问这个应该怎么解决?附件是logcat,错误应该这几行:D/CAM_MemoryManagerImpl( 1513): Max native memory: 358 MB

V/CAM_QuickActivity( 1513): START onCreate: Activity = com.android.camera.CameraActivity@5bd705

V/CAM_QuickActivity( 1513): Intent Action = android.intent.action.MAIN

I/CameraManagerGlobal( 1513): getCameraService: Reconnecting to camera service

E/CameraService(  169): getCameraVendorTagDescriptor: camera hardware module doesn't exist

E/CameraMetadata-JNI( 1513): CameraMetadata_setupGlobalVendorTagDescriptor: Failed to setup vendor tag descriptors, received error No such device (-19)

W/CameraManagerGlobal( 1513): Failed to set up vendor tags: The camera device is removable and has been disconnected from the Android device, or the camera service has shut down the connection due to a higher-priority access request for the camera device.

E/CameraService(  169): no camera found before! check again...

W/linker  (  169): librkswscale.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

E/HAL     (  169): load: module=/system/lib/hw/camera.rk30board.so

E/HAL     (  169): dlopen failed: cannot locate symbol "_ZN12CamEngineItf14checkHdmiInResEP17rk_cam_total_info" referenced by "camera.rk30board.so"...

E/CameraService(  169): Could not load camera HAL module

E/CameraService(  169): no camera found before! check again...

W/linker  (  169): librkswscale.so has text relocations. This is wasting memory and prevents security hardening. Please fix.

E/HAL     (  169): load: module=/system/lib/hw/camera.rk30board.so

E/HAL     (  169): dlopen failed: cannot locate symbol "_ZN12CamEngineItf14checkHdmiInResEP17rk_cam_total_info" referenced by "camera.rk30board.so"...

E/CameraService(  169): Could not load camera HAL module


麻烦各位大侠帮我看看,感激不尽!


作者: zhansb    时间: 2016-7-25 10:53
注意camerahal与内核camsys版本的匹配
作者: DeepThinking    时间: 2016-7-25 10:59
怎么查看camsys的版本呢?git的源码有过更新是吧?
作者: DeepThinking    时间: 2016-7-25 12:05
zhansb 发表于 2016-7-25 10:53
注意camerahal与内核camsys版本的匹配

谢谢大版。请问camsys指的是内核的吗?在哪可以确认当前的camsys的版本?我这种情况需要重新编译哪些东西才可以正常运行?
作者: zhansb    时间: 2016-7-25 15:56
camsys是内核的,不清楚的情况下,最好更新代码、全部编译烧写后,再用模块编译替换
或者参考文档:SDK-51/RKDocs/Develop reference documents/Camera_for_RockChipSDK参考说明_v4.1.pdf
作者: DeepThinking    时间: 2016-7-25 17:03
zhansb 发表于 2016-7-25 15:56
camsys是内核的,不清楚的情况下,最好更新代码、全部编译烧写后,再用模块编译替换
或者参考文档:SDK-51 ...

好的谢谢,我试一下




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1