Firefly开源社区

标题: android 9.0 firefly rk3399pro 开发板 调试c2395 camera sensor [打印本页]

作者: caoronggui    时间: 2020-9-16 20:03
标题: android 9.0 firefly rk3399pro 开发板 调试c2395 camera sensor
1:调试c2395 camera sensor  打开相机apk 后,黑屏: kernel中 mipi stream 数据流的库函数没有走到;
2:hal camera_profile.xml 没有注册成功,不知道为什么?
log:如下
Number of camera devices: 1
Number of normal camera devices: 1
    Device 0 maps to "0"
Active Camera Clients:
[]
Allowed user IDs: 0

== Camera service events log (most recent at top): ==
  09-16 06:48:10 : DISCONNECT device 0 client for package com.android.camera2 (PID 1442)
  09-16 06:48:10 : ADD device 0, reason: (Device status changed from 0 to 1)
  09-16 06:48:10 : REMOVE device 0, reason: (Device status changed from -2 to 0)
  09-16 06:48:09 : CONNECT device 0 client for package com.android.camera2 (PID 1442)
  09-16 06:47:28 : USER_SWITCH previous allowed user IDs: <None>, current allowed user IDs: 0
  08-05 09:00:08 : ADD device 0, reason: (Device status changed from 0 to 1)
  08-05 09:00:08 : ADD device 0, reason: (Device added)

== Camera Provider HAL external/0 (v2.4, remote) static info: 0 devices: ==
== Camera Provider HAL legacy/0 (v2.4, remote) static info: 1 devices: ==
== Camera HAL device device@3.3/legacy/0 (v3.3) static information: ==
  Resource cost: 50
  Conflicting devices: None
  API1 info:
    Has a flash unit: false
    Facing: Back
    Orientation: 180
  API2 camera characteristics:
    Dumping camera metadata array: 68 / 68 entries, 2080 / 2080 bytes of extra data.
      Version: 1, Flags: 00000000
      android.colorCorrection.availableAberrationModes (00004): byte[1]
        [0 ]
      android.control.aeAvailableAntibandingModes (10012): byte[4]
        [0 1 2 3 ]
      android.control.aeAvailableModes (10013): byte[2]
        [1 0 ]
      android.control.aeAvailableTargetFpsRanges (10014): int32[4]
        [15 30 30 30 ]
      android.control.aeCompensationRange (10015): int32[2]
        [-6 6 ]
      android.control.aeCompensationStep (10016): rational[1]
        [(1 / 3) ]
      android.control.afAvailableModes (10017): byte[6]
        [0 1 2 3 4 5 ]
      android.control.availableEffects (10018): byte[1]
        [0 ]
      android.control.availableSceneModes (10019): byte[1]
        [0 ]
      android.control.availableVideoStabilizationModes (1001a): byte[1]
        [0 ]
      android.control.awbAvailableModes (1001b): byte[5]
        [1 2 3 5 6 ]
      android.control.maxRegions (1001c): int32[3]
        [1 0 1 ]
      android.control.aeLockAvailable (10024): byte[1]
        [FALSE ]
      android.control.awbLockAvailable (10025): byte[1]
        [FALSE ]
      android.control.availableModes (10026): byte[1]
        [1 ]
      android.edge.availableEdgeModes (30002): byte[3]
        [0 1 2 ]
      android.flash.colorTemperature (40003): byte[1]
        [0 ]
      android.flash.maxEnergy (40004): byte[1]
        [10 ]
      android.flash.maxEnergy (40004): byte[1]
        [0 ]
      android.flash.info.available (50000): byte[1]
        [FALSE ]
       .................................................................................................
       .................................................................................................
      .................................................................................................
      ................................................................................................
     然后 开始报错了????????????????????
    == Camera HAL device device@3.3/legacy/0 (v3.3) dumpState: ==
No active camera device session instance
== Vendor tags: ==
  Dumping vendor tag descriptors for vendor with id 3854507339
  Dumping configured vendor tag descriptors: 38 entries
    0x80000000 (privatedata_effective_driver_frame_id) with type 3 (int64) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000001 (privatedata_frame_sof_timestamp) with type 3 (int64) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000002 (privatedata_stillcap_sync_needed) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000003 (privatedata_stillcap_sync_cmd) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000004 (privatedata_isp_bls) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000005 (privatedata_isp_lsc_get) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000006 (privatedata_isp_ccm_get) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000007 (privatedata_isp_awb_get) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000008 (privatedata_isp_awb_wp) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000009 (privatedata_isp_awb_curv) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000000a (privatedata_isp_awb_refgain) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000000b (privatedata_isp_goc_normal) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000000c (privatedata_isp_goc_night) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000000d (privatedata_isp_cproc_preview) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000000e (privatedata_isp_cproc_capture) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000000f (privatedata_isp_cproc_video) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000010 (privatedata_isp_dpf_get) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000011 (privatedata_isp_flt_normal) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000012 (privatedata_isp_flt_night) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000013 (privatedata_isp_sensor_info) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000014 (privatedata_isp_module_info) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000015 (privatedata_isp_sensor_reg) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000016 (privatedata_isp_sensor_flip) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000017 (privatedata_isp_system_info) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000018 (privatedata_isp_bls_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000019 (privatedata_isp_lsc_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000001a (privatedata_isp_ccm_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000001b (privatedata_isp_awb_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000001c (privatedata_isp_awb_wp_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000001d (privatedata_isp_awb_curv_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000001e (privatedata_isp_awb_refgain_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x8000001f (privatedata_isp_goc_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000020 (privatedata_isp_cproc_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000021 (privatedata_isp_dpf_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000022 (privatedata_isp_flt_set) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000023 (privatedata_isp_restart) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000024 (privatedata_isp_protocol_info) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
    0x80000025 (privatedata_tuning_flag) with type 0 (byte) defined in section org.codeaurora.rkcamera3.privatedata
  Dumping vendor tag descriptors for vendor with id 2592128789
  Dumping configured vendor tag descriptors: None set
== Camera error traces (1): ==

  ----- pid 425 at 2020-09-16 06:48:10 -----
  Cmd line: /system/bin/cameraserver
  "cameraserver" sysTid=425
    #00 pc 000d79b5  /system/lib/libcameraservice.so (android::camera3::CameraTraces::saveTrace()+100)
    #01 pc 000bff03  /system/lib/libcameraservice.so (android::Camera3Device::setErrorStateLockedV(char const*, std::__va_list)+178)
    #02 pc 000b6319  /system/lib/libcameraservice.so (android::Camera3Device::setErrorStateLocked(char const*, ...)+32)
    #03 pc 000bb163  /system/lib/libcameraservice.so (android::Camera3Device::configureStreamsLocked(int, android::CameraMetadata const&, bool)+738)
    #04 pc 000ba3b9  /system/lib/libcameraservice.so (android::Camera3Device::filterParamsAndConfigureLocked(android::CameraMetadata const&, int)+132)
    #05 pc 000bc355  /system/lib/libcameraservice.so (android::Camera3Device::configureStreams(android::CameraMetadata const&, int)+116)
    #06 pc 000ac8bf  /system/lib/libcameraservice.so (android::CameraDeviceClient::endConfigure(int, android::CameraMetadata const&)+262)
    #07 pc 000acb55  /system/lib/libcameraservice.so (non-virtual thunk to android::CameraDeviceClient::endConfigure(int, android::CameraMetadata const&)+4)
    #08 pc 00023859  /system/lib/libcamera_client.so (android::hardware::camera2::BnCameraDeviceUser::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+504)
    #09 pc 00036151  /system/lib/libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+72)
    #10 pc 0003d995  /system/lib/libbinder.so (android::IPCThreadState::executeCommand(int)+408)
    #11 pc 0003d723  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+106)
    #12 pc 0003dc4b  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
    #13 pc 00000b7f  /system/bin/cameraserver (main+102)
    #14 pc 0008c67d  /system/lib/libc.so (__libc_init+48)
    #15 pc 00000ad9  /system/bin/cameraserver (_start_main+40)
    #16 pc 00000306  <anonymous:e91aa000>
  "HwBinder:425_1" sysTid=492
    #00 pc 0005424c  /system/lib/libc.so (__ioctl+8)
    #01 pc 00021b93  /system/lib/libc.so (ioctl+38)
    #02 pc 00016a65  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::talkWithDriver(bool)+192)
    #03 pc 0000f3cb  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::getAndExecuteCommand()+10)
    #04 pc 0000fcf7  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::joinThreadPool(bool)+190)
    #05 pc 000160e5  /system/lib/libhwbinder.so (android::hardware::PoolThread::threadLoop()+12)
    #06 pc 0000c0bf  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170)
    #07 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #08 pc 0001dfad  /system/lib/libc.so (__start_thread+32)
  "HwBinder:425_2" sysTid=493
    #00 pc 00019d94  /system/lib/libc.so (syscall+28)
    #01 pc 0001d13d  /system/lib/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+88)
    #02 pc 00064e99  /system/lib/libc.so (NonPI::MutexLockWithTimeout(pthread_mutex_internal_t*, bool, timespec const*)+156)
    #03 pc 0008919b  /system/lib/libcameraservice.so (android::Camera2ClientBase<android::CameraDeviceClientBase>::disconnect()+54)
    #04 pc 0007a313  /system/lib/libcameraservice.so (android::CameraService::onDeviceStatusChanged(android::String8 const&, android::hardware::camera::common::V1_0::CameraDeviceStatus)+586)
    #05 pc 0008c111  /system/lib/libcameraservice.so (android::CameraProviderManager::removeProvider(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&)+452)
    #06 pc 0008d889  /system/lib/libcameraservice.so (_ZTv0_n16_N7android21CameraProviderManager12ProviderInfo11serviceDiedEyRKNS_2wpINS_4hidl4base4V1_05IBaseEEE+12)
    #07 pc 0001c371  /system/lib/libhidltransport.so (android::hardware::hidl_binder_death_recipient::binderDied(android::wp<android::hardware::IBinder> const&)+68)
    #08 pc 0000dd3b  /system/lib/libhwbinder.so (android::hardware::BpHwBinder::reportOneDeath(android::hardware::BpHwBinder::Obituary const&)+78)
    #09 pc 0000dcd3  /system/lib/libhwbinder.so (android::hardware::BpHwBinder::sendObituary()+182)
    #10 pc 0000f96d  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::executeCommand(int)+1060)
    #11 pc 0000f43b  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::getAndExecuteCommand()+122)
    #12 pc 0000fcf7  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::joinThreadPool(bool)+190)
    #13 pc 000160e5  /system/lib/libhwbinder.so (android::hardware::PoolThread::threadLoop()+12)
    #14 pc 0000c0bf  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170)
    #15 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #16 pc 0001dfad  /system/lib/libc.so (__start_thread+32)
  "HwBinder:425_3" sysTid=498
    #00 pc 0005424c  /system/lib/libc.so (__ioctl+8)
    #01 pc 00021b93  /system/lib/libc.so (ioctl+38)
    #02 pc 00016a65  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::talkWithDriver(bool)+192)
    #03 pc 0000f3cb  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::getAndExecuteCommand()+10)
    #04 pc 0000fcf7  /system/lib/libhwbinder.so (android::hardware::IPCThreadState::joinThreadPool(bool)+190)
    #05 pc 000160e5  /system/lib/libhwbinder.so (android::hardware::PoolThread::threadLoop()+12)
    #06 pc 0000c0bf  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170)
    #07 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #08 pc 0001dfad  /system/lib/libc.so (__start_thread+32)
  "Binder:425_1" sysTid=575
    #00 pc 0005424c  /system/lib/libc.so (__ioctl+8)
    #01 pc 00021b93  /system/lib/libc.so (ioctl+38)
    #02 pc 0003d573  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+206)
    #03 pc 0003d6c3  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+10)
    #04 pc 0003dc4b  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
    #05 pc 0005479d  /system/lib/libbinder.so (android::PoolThread::threadLoop()+12)
    #06 pc 0000c0bf  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170)
    #07 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #08 pc 0001dfad  /system/lib/libc.so (__start_thread+32)
  "Binder:425_2" sysTid=688
    #00 pc 0005424c  /system/lib/libc.so (__ioctl+8)
    #01 pc 00021b93  /system/lib/libc.so (ioctl+38)
    #02 pc 0003d573  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+206)
    #03 pc 0003d6c3  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+10)
    #04 pc 0003dc4b  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
    #05 pc 0005479d  /system/lib/libbinder.so (android::PoolThread::threadLoop()+12)
    #06 pc 0000c0bf  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+170)
    #07 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #08 pc 0001dfad  /system/lib/libc.so (__start_thread+32)
  "C3Dev-0-Status" sysTid=1539
    #00 pc 00019d98  /system/lib/libc.so (syscall+32)
    #01 pc 0001d13d  /system/lib/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+88)
    #02 pc 00063b27  /system/lib/libc.so (pthread_cond_timedwait+84)
    #03 pc 000d0159  /system/lib/libcameraservice.so (android::camera3::StatusTracker::threadLoop()+656)
    #04 pc 0000c139  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+292)
    #05 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #06 pc 0001dfad  /system/lib/libc.so (__start_thread+32)
  "C3Dev-0-ReqQueu" sysTid=1540
    #00 pc 00019d98  /system/lib/libc.so (syscall+32)
    #01 pc 0001d13d  /system/lib/libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*)+88)
    #02 pc 00063b27  /system/lib/libc.so (pthread_cond_timedwait+84)
    #03 pc 000c45a1  /system/lib/libcameraservice.so (android::Camera3Device::RequestThread::waitIfPaused()+212)
    #04 pc 000c425b  /system/lib/libcameraservice.so (android::Camera3Device::RequestThread::threadLoop()+54)
    #05 pc 0000c139  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+292)
    #06 pc 00064323  /system/lib/libc.so (__pthread_start(void*)+22)
    #07 pc 0001dfad  /system/lib/libc.so (__start_thread+32)

    太长了
    .........................................................................................................
    .........................................................................................................
  .................................................................................................................
  ...........................................以上是 dumpsys media.camera 的log ..................................................................... .
遇到过此类问题,麻烦帮忙看看;感谢!!






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