Firefly开源社区

标题: rk3288打开摄像头log提示Open /dev/video0 failed! [打印本页]

作者: mono    时间: 2015-6-15 10:04
标题: rk3288打开摄像头log提示Open /dev/video0 failed!
现在在调试一个虚拟的csi摄像头,接入一个csi信号源作为摄像头输入。

1,在摄像头hal层驱动中的对sensor的相关i2c操作已经去掉了(包括camera parse 中对摄像头的初始化操作,以及对kenel层的i2c操作的ioctl部分,以及isp驱动的read,write函数),isp驱动也看log也可以正常调用。
2,在打开涉嫌头应用时,会提示打开失败。而log会提示Open /dev/video0 failed!, 没看到其他什么错误。

问题是,在rk3288中,关于/dev/video设备是哪里注册的?
在hal层是没看到注册,在kernel层也没看到注册(只注册了/dev/camsys_marvin)。
而在camerahaL_Module.cpp中确实有 fd = open(cam_path, O_RDONLY);这里cam_path="/dev/video";
还请大神指点。

作者: mono    时间: 2015-6-15 10:07
打开摄像头时的完整log

D/AudioHardware( 1882): AudioHardware pcm playback is exiting standby.
D/AudioHardware( 1882): openPcmOut_l() mPcmOpenCnt: 0
D/alsa_route( 1882): route_info->sound_card 1, route_info->devices 0  
D/alsa_pcm( 1882): pcm_open(0x0001f001)
D/alsa_pcm( 1882): pcm_open() card 1, device 0, Playback
I/ActivityManager(  524): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera2/com.android.camera.CameraActivity bnds=[1751,337][1936,463]} from pid 1034
D/dalvikvm(  524): GC_FOR_ALLOC freed 1431K, 22% free 10291K/13052K, paused 76ms, total 76ms
W/BroadcastQueue(  524): Permission Denial: broadcasting Intent { act=com.android.launcher3.action.LAUNCH flg=0x10 (has extras) } from com.android.launcher3 (pid=1034, uid=10037) requires com.android.launcher3.permission.RECEIVE_LAUNCH_BROADCASTS due to receiver com.google.android.googlequicksearchbox/com.google.android.search.core.summons.icing.InternalIcingCorporaProvider$ApplicationLaunchReceiver
D/dalvikvm( 1578): GC_FOR_ALLOC freed 30K, 2% free 7532K/7632K, paused 9ms, total 9ms
V/CAM_Activity( 1578): =======Camera Version:1.0.0-20140630============
D/CAM_Switcher( 1578): shoule enable panorama? true
D/mali_winsys(  524): new_window_surface returns 0x3000
D/SensorsHal(  524): Couldn't open /dev/mma8452_daemon (No such file or directory)
E/SensorService(  524): Error activating sensor 0 (Operation not permitted)
V/CAM_PhotoModule( 1578): On resume.
V/CAM_PhotoModule( 1578): Executing onResumeTasks.
V/CAM_PhotoModule( 1578): Open camera device.
V/CameraHolder( 1578): open camera 0
D/CameraHal( 1882): camera_get_camera_info(1297): camera_get_camera_info(1297): camera_0 facing(0), orientation(0)
D/CameraHal( 1882): camera_get_camera_info(1297): camera_get_camera_info(1297): camera_0 facing(0), orientation(0)
I/UrlCheck( 1882): isUrlRealM3U8 in, ptr: 0xb7380c10, url: /system/media/audio/ui/camera_click.ogg
I/UrlCheck( 1882): UrlCheckHelper ptr: 0xb7380c10, url_type: 0
I/ChromiumHTTPDataSourceSupport( 1882): Request failed with status 4 and os_error -300
E/AwesomePlayer( 1882): connect fail to url: /system/media/audio/ui/camera_click.ogg
I/UrlCheck( 1882): url checked, reallyM3U8: 0
I/AwesomePlayer( 1882): AwesomePlayer::AwesomePlayer()in
I/        ( 1882): new RKOMXPlugin
I/AwesomePlayer( 1882): AwesomePlayer::AwesomePlayer()aftermClient.connect()
I/FrameQueueManage( 1882): use_iommu = 0x1
I/AwesomePlayer( 1882): setDataSource /system/media/audio/ui/camera_click.ogg
I/AwesomePlayer( 1882): setDataSource_l(URL suppressed)
I/OMXCodec( 1882): OMXCodec::Create mime: audio/vorbis
I/MediaCodecList( 1882): register mediacode *****************
I/OMXCodec( 1882): --->InstantiateSoftwareCodec create OMX.google.vorbis.decoder codec
I/OMXCodec( 1882): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
I/OMXCodec( 1882): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/UrlCheck( 1882): isUrlRealM3U8 in, ptr: 0xb7380c10, url: /system/media/audio/ui/VideoRecord.ogg
I/UrlCheck( 1882): UrlCheckHelper ptr: 0xb7380c10, url_type: 0
I/ChromiumHTTPDataSourceSupport( 1882): Request failed with status 4 and os_error -300
E/AwesomePlayer( 1882): connect fail to url: /system/media/audio/ui/VideoRecord.ogg
I/UrlCheck( 1882): url checked, reallyM3U8: 0
I/AwesomePlayer( 1882): AwesomePlayer::AwesomePlayer()in
I/AwesomePlayer( 1882): AwesomePlayer::AwesomePlayer()aftermClient.connect()
I/FrameQueueManage( 1882): use_iommu = 0x1
I/AwesomePlayer( 1882): setDataSource /system/media/audio/ui/VideoRecord.ogg
I/AwesomePlayer( 1882): setDataSource_l(URL suppressed)
I/OMXCodec( 1882): OMXCodec::Create mime: audio/vorbis
I/OMXCodec( 1882): --->InstantiateSoftwareCodec create OMX.google.vorbis.decoder codec
I/OMXCodec( 1882): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
I/OMXCodec( 1882): Successfully allocated OMX node 'OMX.google.vorbis.decoder'
I/CameraClient( 1882): Opening camera 0
I/CameraHal( 1882): camera_device_open(493): camera_device open
D/CameraHal( 1882): gCameraHalLogLevel: 0
D/CameraHal( 1882): CameraHal(132): it is a isp  camera
D/        ( 1882): Calling process is: com.android.camera2
I/vpu_mem_pool( 1882): pid 1882, open_vpu_memory_pool:447: success
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (80000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 56
I/vpu_mem_pool( 1882): pid 1882, vpu_memory_status_observer:899: observer: /data/vpumem_observer
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (160000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 59
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (240000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 60
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (320000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 61
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (400000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 62
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (480000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 63
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (560000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 64
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (640000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 65
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (720000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 66
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:690: vpu memory pool size (800000)
I/vpu_mem_pool( 1882): pid 1882, vpu_mem_allocator:693: ion_alloc_fd success, memory fd 67
W/SurfaceFlinger(  167): Ignoring duplicate VSYNC event from HWC (t=2296102913971)
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1829, 398).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1827, 397).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1825, 396).
E/CameraHal( 1882): disconnectCamera(1627): getFocusLimits failed!
V/        ( 1882): VMC_IsiGetSensorIss: (enter)
V/        ( 1882): VMC_IsiGetSensorIss (exit)
V/        ( 1882): VMC_IsiCreateSensorIss (enter)
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1822, 396).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1821, 396).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1819, 396).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1818, 395).
V/        ( 1882): VMC_IsiCreateSensorIss (exit)
V/        ( 1882): VMC_IsiSensorSetPowerIss (enter)
W/SurfaceFlinger(  167): Ignoring duplicate VSYNC event from HWC (t=2296203777846)
V/        ( 1882): VMC_IsiSensorSetPowerIss (exit)
V/        ( 1882): VMC_IsiCheckSensorConnectionIss (enter)
V/        ( 1882): VMC_IsiGetSensorRevisionIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiGetSensorRevisionIss (exit)
V/        ( 1882): VMC_IsiCheckSensorConnectionIss (exit)
V/        ( 1882): VMC_IsiMdiInitMotoDriveMds: (enter)
V/        ( 1882): VMC_IsiMdiInitMotoDriveMds: (exit)
V/        ( 1882): VMC_IsiMdiSetupMotoDrive: (enter)
V/        ( 1882): VMC_IsiMdiFocusSet: (enter)
V/        ( 1882): VMC_IsiMdiFocusSet: focus set position_reg_value(204) position(64)
V/        ( 1882): VMC_IsiMdiFocusSet: value = 204, 0x0c 0xc6 af_addr(0x18) bus(3)
V/        ( 1882): VMC_IsiMdiFocusSet: (exit)
V/        ( 1882): VMC_IsiMdiSetupMotoDrive: (exit)
D/CameraHal_Marvin( 1882):
D/CameraHal_Marvin( 1882):
D/CameraHal_Marvin( 1882):
D/CameraHal_Marvin( 1882): CameraHal Version Check:
D/CameraHal_Marvin( 1882):     CamSys_Head.h version:
D/CameraHal_Marvin( 1882):        kernel: (0x) v0.9.0
D/CameraHal_Marvin( 1882):        libisp_siliconimage_isp.so: (0x) v0.9.0
D/CameraHal_Marvin( 1882):     LibIsp version:
D/CameraHal_Marvin( 1882):        local: (0x) v1.13.0
D/CameraHal_Marvin( 1882):        camera.rk30board.so: (0x) v1.13.0
V/        ( 1882): VMC_IsiGetSensorIsiVersion: (enter)
D/CameraHal_Marvin( 1882):     Sensor ISI version:
D/CameraHal_Marvin( 1882):         libisp_isi_drv_XXX: (0x) v0.7.0
D/CameraHal_Marvin( 1882):         libisp_siliconimage_isp.so: (0x) v0.7.0
V/        ( 1882): VMC_IsiGetSensorTuningXmlVersion: (enter)
D/CameraHal_Marvin( 1882):     Tunning XML version:
D/CameraHal_Marvin( 1882):         libisp_isi_drv_XXX: (22-May-2014_OUYANG_VMC_FX288_v1.0)
D/CameraHal_Marvin( 1882):         Calibdb: (06-Aug-2014_ZYL-OYYF_OV13850_CMK-CT0116-FV1_v0.1.2)
D/CameraHal_Marvin( 1882):     sensor name VMC:
D/CameraHal_Marvin( 1882):        sensor drv version: (0x) v0.8.0
D/CameraHal_Marvin( 1882):
D/CameraHal_Marvin( 1882):
D/CameraHal_Marvin( 1882):
V/        ( 1882): VMC_IsiGetCapsIss (enter)
V/        ( 1882): VMC_IsiGetCapsIss (exit)
V/        ( 1882): VMC_IsiGetCapsIss (enter)
V/        ( 1882): VMC_IsiGetCapsIss (exit)
V/        ( 1882): VMC_IsiGetAfpsInfoIss: (enter)
V/        ( 1882): VMC_IsiGetAfpsInfoIss: Resolution 3c840620 not supported by AFPS
V/        ( 1882): VMC_IsiGetAfpsInfoIss: (exit)
V/        ( 1882): VMC_IsiGetCapsIss (enter)
V/        ( 1882): VMC_IsiGetCapsIss (exit)
V/        ( 1882): VMC_IsiGetCapsIss (enter)
V/        ( 1882): VMC_IsiGetCapsIss (exit)
V/        ( 1882): VMC_IsiGetCapsIss (enter)
V/        ( 1882): VMC_IsiGetCapsIss (exit)
V/        ( 1882): VMC_IsiGetCapsIss (enter)
V/        ( 1882): VMC_IsiGetCapsIss (exit)
D/CameraHal( 1882): setupPreview(228): isp out put format is YUV420SP.
V/        ( 1882): VMC_IsiCheckSensorConnectionIss (enter)
V/        ( 1882): VMC_IsiGetSensorRevisionIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiGetSensorRevisionIss (exit)
V/        ( 1882): VMC_IsiCheckSensorConnectionIss (exit)
V/        ( 1882): VMC_IsiSetupSensorIss (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_SetupOutputFormat (enter)
V/        ( 1882): VMC_SetupOutputFormat (exit)
V/        ( 1882): VMC_SetupOutputWindow (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_SetupOutputWindow  resolution(0xf080c40) freq(1777074176.000000)(exit)
V/        ( 1882): VMC_SetupImageControl (enter)
V/        ( 1882): VMC_AecSetModeParameters (enter)
V/        ( 1882): VMC_AecSetModeParameters (exit)
V/        ( 1882): VMC_IsiSetupSensorIss: (exit)
V/        ( 1882): VMC_IsiActivateTestPattern: (enter)
V/        ( 1882): VMC_IsiRegReadIss: (enter)
V/        ( 1882): VMC_IsiRegWriteIss: (enter)
V/        ( 1882): VMC_IsiActivateTestPattern: (exit)
V/        ( 1882): VMC_IsiGetAfpsInfoIss: (enter)
V/        ( 1882): VMC_IsiGetAfpsInfoIss: Resolution 0f080c40 not supported by AFPS
V/        ( 1882): VMC_IsiGetAfpsInfoIss: (exit)
V/        ( 1882): VMC_IsiGetGainLimitsIss: (enter)
V/        ( 1882): VMC_IsiGetGainLimitsIss: (exit)
V/        ( 1882): VMC_IsiGetIntegrationTimeLimitsIss: (enter)
V/        ( 1882): VMC_IsiGetIntegrationTimeLimitsIss: (exit)
V/        ( 1882): VMC_IsiGetResolutionIss: (enter)
V/        ( 1882): VMC_IsiGetResolutionIss: (exit)
E/        ( 1882):
E/        ( 1882): *** ASSERT: In File hardware/rk29/zsl_camera_local_update/SiliconImage/aaa/aec/source/ecm.c, line 144 ***
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1817, 394).
W/CameraBase( 1578): Camera service died!
W/AudioSystem(  524): AudioFlinger server died!
W/AudioSystem(  524): AudioPolicyService server died!
W/CameraBase( 1578): An error occurred while connecting to camera: 0
I/ServiceManager(  162): service 'media.audio_flinger' died
I/ServiceManager(  162): service 'media.player' died
I/ServiceManager(  162): service 'media.camera' died
I/ServiceManager(  162): service 'media.audio_policy' died
E/AudioService(  524): Media server died.
E/CameraHolder( 1578): fail to connect Camera:-1, aborting.
E/CAM_PhotoModule( 1578): Failed to open camera:0
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1816, 394).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1815, 394).
D/dalvikvm( 1578): GC_FOR_ALLOC freed 1436K, 18% free 6900K/8408K, paused 10ms, total 10ms
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1813, 394).
I/InputDispatcher(  524): Dropping event because there is no touchable window at (1812, 394).
D/dalvikvm( 1578): GC_CONCURRENT freed 14K, 4% free 8122K/8408K, paused 1ms+3ms, total 14ms
D/mali_winsys( 1578): new_window_surface returns 0x3000
I/mediaserver( 1970): ServiceManager: 0xb7ee94e8
I/AudioFlinger( 1970): Using default 3000 mSec as standby time.
I/CameraService( 1970): CameraService started (pid=1970)
W/linker  ( 1970): librkswscale.so has text relocations. This is wasting memory and is a security risk. Please fix.
I/CameraService( 1970): Loaded "RK29_ICS_CameraHal_Module" camera module
D/CameraHal( 1970): createInstance(814): open xml file(/etc/cam_board.xml) success
E/CameraHal( 1970): cam_board.xml version(v0.0.0) != xml parser version(v0.12.0)
D/CameraHal( 1970):
D/CameraHal( 1970):
D/CameraHal( 1970):
D/CameraHal( 1970):  Cam_board.xml Version Check:
D/CameraHal( 1970):     /etc/cam_board.xml : v0.0xc.0
D/CameraHal( 1970):     CameraHal_board_xml_parser: v0.12.0
D/CameraHal( 1970): ParserSensorInfo(45): SensorName(VMC)
D/CameraHal( 1970): ParserSensorInfo(50): SensorDevID(CAMSYS_DEVID_SENSOR_1B)
D/CameraHal( 1970): ParserSensorInfo(61): SensorDevID(33554432)
D/CameraHal( 1970): ParserSensorInfo(63): SensorHostDevID(CAMSYS_DEVID_MARVIN)
D/CameraHal( 1970): ParserSensorInfo(78): Sensori2cBusNum(50)
D/CameraHal( 1970): ParserSensorInfo(81): SensorI2cAddrByte(2)
D/CameraHal( 1970): ParserSensorInfo(84): SensorI2cRate(100000)
D/CameraHal( 1970): ParserSensorInfo(87): SensorMclk(24000000)
D/CameraHal( 1970): ParserSensorInfo(90): SensorAvdd(NC) min(0) max(0)
D/CameraHal( 1970): ParserSensorInfo(95): SensorDovdd(NC) min(18000000) max(18000000)
D/CameraHal( 1970): ParserSensorInfo(100): SensorDvdd(NC) min(0) max(0)
D/CameraHal( 1970): ParserSensorInfo(105): SensorGpioPwdn(RK30_PIN2_PB7) active(0)
D/CameraHal( 1970): ParserSensorInfo(109): SensorGpioRst(NC) active(0)
D/CameraHal( 1970): ParserSensorInfo(113): SensorGpioPwen(RK30_PIN0_PC1) active(1)
D/CameraHal( 1970): ParserSensorInfo(117): SensorFacing(back)
D/CameraHal( 1970): ParserSensorInfo(126): SensorInterface(MIPI)
D/CameraHal( 1970): ParserSensorInfo(139): SensorMirrorFlip(0)
D/CameraHal( 1970): ParserSensorInfo(145): SensorOrientation(0)
D/CameraHal( 1970): ParserSensorInfo(142): SensorPowerupSequence(1234)
D/CameraHal( 1970): ParserSensorInfo(237): SensorFovParemeter fov_h(60.0)(60.000000) fov_v(60.0)(60.000000)  
D/CameraHal( 1970): ParserSensorInfo(240): SensorAWB_Frame_Skip fps(15)
D/CameraHal( 1970): ParserSensorInfo(213): SensorPhy: MIPI  lane: 2  phyindex: 1  fmt: 0x2b
D/CameraHal( 1970): ParserVCMInfo(252): VCMDrvName(BuiltInSensor)
D/CameraHal( 1970): ParserVCMInfo(255): VCMName(NC)
D/CameraHal( 1970): ParserVCMInfo(258): VCMI2cBusNum(3)
D/CameraHal( 1970): ParserVCMInfo(261): VCMI2cAddrByte(0)
D/CameraHal( 1970): ParserVCMInfo(264): VCMI2cRate(0)
D/CameraHal( 1970): ParserVCMInfo(275): VCMVdd(NC) min(0) max(0)
D/CameraHal( 1970): ParserVCMInfo(267): VCMGpioPwdn(NC) active(0)
D/CameraHal( 1970): ParserVCMInfo(271): VCMGpioPower(NC) active(0)
D/CameraHal( 1970): ParserVCMInfo(291): start current(20) rated current(80) vcm max(100)  step mode(13)  drv max(100)
D/CameraHal( 1970): ParserFlashInfo(305): FlashName(Internal)
D/CameraHal( 1970): ParserFlashInfo(308): FlashI2cBusNum(0)
D/CameraHal( 1970): ParserFlashInfo(311): FlashI2cAddrByte(0)
D/CameraHal( 1970): ParserFlashInfo(314): FlashI2cRate(0)
D/CameraHal( 1970): ParserFlashInfo(317): FlashTrigger(NC) active(0)
D/CameraHal( 1970): ParserFlashInfo(321): FlashEn(NC) active(0)
D/CameraHal( 1970): ParserFlashInfo(328): FlashLuminance(0)
D/CameraHal( 1970): ParserFlashInfo(331): FlashColorTemp(0)
D/CameraHal( 1970): StartElementHandler(757): HDR(1)!
D/CameraHal( 1970): StartElementHandler(761): ZSL(1)!
D/CameraHal( 1970): StartElementHandler(765): zoom(1)!
D/CameraHal( 1970): StartElementHandler(793): Continue_SnapShot(1)!
D/CameraHal( 1970): StartElementHandler(796): InterpolationRes(0)!
D/CameraHal( 1970): StartElementHandler(787): PreviewSize(1920x1080)!
D/CameraHal( 1970): StartElementHandler(783): face detect config(1),max face num is (1)!
D/CameraHal( 1970): ParserDVConfig(598):  DV_QCIF(qcif) resolution(176x144) fps(10) support(1)
D/CameraHal( 1970): ParserDVConfig(610):  DV_QVGA(qvga) resolution(320x240) fps(10) support(1)
D/CameraHal( 1970): ParserDVConfig(622):  DV_CIF(cif) resolution(352x288) fps(10) support(1)
D/CameraHal( 1970): ParserDVConfig(634):  DV_VGA(480p) resolution(640x480) fps(10) support(0)
D/CameraHal( 1970): ParserDVConfig(646):  DV_480P(480p) resolution(720x480) fps(10) support(0)
D/CameraHal( 1970): ParserDVConfig(670):  DV_720P(720p) resolution(1280x720) fps(10) support(1)
D/CameraHal( 1970): ParserDVConfig(682):  DV_1080P(1080p) resolution(1920x1080) fps(10) support(1)
D/CameraHal( 1970): number of camdevice (1)
D/CameraHal( 1970): now DV size(7)
E/CameraHal( 1970): camera_get_number_of_cameras(683): board profiles cam num 1
D/CameraHal( 1970): read cam name from xml(/data/media_profiles.xml)
D/CameraHal( 1970): videoname0="VMC" index=0 facing=0 -->  
D/CameraHal( 1970):
D/CameraHal( 1970): find camera count(1) cam1(VMC) cam2()
V/        ( 1970): VMC_IsiGetSensorIss: (enter)
V/        ( 1970): VMC_IsiGetSensorIss (exit)
D/mali_winsys( 1578): new_window_surface returns 0x3000
D/CameraHal( 1970):
D/CameraHal( 1970):
D/CameraHal( 1970):
D/CameraHal( 1970):  CamSys_Head.h Version Check:
D/CameraHal( 1970):     Kernel camsys_head.h: v0.9.0
D/CameraHal( 1970):     Kernel camsys_drv :   v0.23.0
D/CameraHal( 1970):     CameraHal camsys_head.h : v0.9.0
D/CameraHal( 1970):
D/CameraHal( 1970):
D/CameraHal( 1970):
V/CAM_UI  ( 1578): SurfaceTexture ready.
E/CameraHal( 1970): WARNING: VMC  solft reset
I/ActivityManager(  524): Displayed com.android.camera2/com.android.camera.CameraActivity: +766ms
D/CameraHal( 1970): OpenAndRegistOneSensor(984): sensor xml file name : /etc/VMC.xml lens name
W/AudioTrack(  524): dead IAudioTrack, PCM, creating a new one from processAudioBuffer()
I/ServiceManager(  524): Waiting for service media.audio_policy...
E/CameraHal( 1970): camera_get_number_of_cameras(690): load sensor name(VMC) connect 1
E/CameraHal( 1970): camera_get_number_of_cameras(743): Open /dev/video0 failed! strr: No such file or directory
D/CameraHal( 1970): camera_get_number_of_cameras(1100): camera_get_number_of_cameras(1100): Current board have 1 cameras attached.
D/CameraHal( 1970): camera_get_number_of_cameras(1103): meida_profiles_xml_control time (239791)us
I/AudioPolicyManagerBase( 1970): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
D/alsa_route( 1970): Can not get config table for sound card0 RKES8323, so get default config table.
I/AudioFlinger( 1970): loadHwModule() Loaded primary audio interface from LEGACY Audio HW HAL (audio) handle 1
I/AudioFlinger( 1970): HAL output buffer size 1024 frames, normal mix buffer size 1024 frames
I/AudioMixer( 1970): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
I/AudioFlinger( 1970): Using module 1 has the primary audio interface
D/AudioHardwareInterface( 1970): setMode(NORMAL)
I/AudioFlinger( 1970): AudioFlinger's thread 0xb5b2d008 ready to run
D/AudioHardware( 1970): AudioStreamOutALSA::setParameters() routing=2
I/audio_a2dp_hw( 1970): adev_open:  adev_open in A2dp_hw module
I/AudioFlinger( 1970): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 3
D/alsa_route( 1970): Can not get config table for sound card0 RKES8323, so get default config table.
I/AudioFlinger( 1970): loadHwModule() Loaded alsa_usb audio interface from LEGACY Audio HW HAL (audio) handle 4
I/AudioFlinger( 1970): loadHwModule() Loaded usb audio interface from USB audio HW HAL (audio) handle 5
I/r_submix( 1970): adev_open(name=audio_hw_if)
I/r_submix( 1970): adev_init_check()
I/AudioFlinger( 1970): loadHwModule() Loaded r_submix audio interface from Wifi Display audio HAL (audio) handle 6
I/AudioPolicyService( 1970): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
E/AudioService(  524): Media server started.
D/AudioHardware( 1970): AudioStreamOutALSA::setParameters() routing=0
D/AudioHardwareInterface( 1970): setMode(NORMAL)
D/AudioHardware( 1970): AudioStreamOutALSA::setParameters() routing=1024
W/AudioPolicyManagerBase( 1970): setPhoneState() setting same state 0
D/AudioHardware( 1970): AudioStreamOutALSA::setParameters() routing=1024
D/AudioHardware( 1970): AudioStreamOutALSA::setParameters() routing=1024
W/AudioFlinger( 1970): session id 8 not found for pid 524
D/AudioHardware( 1970): AudioHardware pcm playback is exiting standby.
D/AudioHardware( 1970): openPcmOut_l() mPcmOpenCnt: 0
D/alsa_route( 1970): route_info->sound_card 1, route_info->devices 0  
D/alsa_pcm( 1970): pcm_open(0x0001f001)
D/alsa_pcm( 1970): pcm_open() card 1, device 0, Playback
D/dalvikvm(  524): GC_FOR_ALLOC freed 900K, 25% free 9871K/13052K, paused 63ms, total 63ms
V/CAM_PhotoModule( 1578): On pause.
V/CAM_PhotoModule( 1578): Close camera device.
D/mali_winsys( 1034): new_window_surface returns 0x3000
W/InputMethodManagerService(  524): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@41f5aed8 attribute=null, token = android.os.BinderProxy@41c65980
W/CAM_UI  ( 1578): SurfaceTexture destroyed
D/AudioHardware( 1970): AudioHardware pcm playback is going to standby.
D/AudioHardware( 1970): closePcmOut_l() mPcmOpenCnt: 1
D/alsa_pcm( 1970): pcm_close() card 1, device 0, Playback
D/alsa_route( 1970): route_set_controls() set route 24
作者: zhansb    时间: 2015-6-15 10:16
参考http://wiki.t-firefly.com/index.php/Firefly-RK3288/Camera

GPIO都没有跟firefly-rk3288对应上:
D/CameraHal( 1970): ParserSensorInfo(105): SensorGpioPwdn(RK30_PIN2_PB7) active(0)
D/CameraHal( 1970): ParserSensorInfo(109): SensorGpioRst(NC) active(0)
D/CameraHal( 1970): ParserSensorInfo(113): SensorGpioPwen(RK30_PIN0_PC1) active(1)
作者: mono    时间: 2015-6-15 11:02
zhansb 发表于 2015-6-15 10:16
参考http://wiki.t-firefly.com/index.php/Firefly-RK3288/Camera

GPIO都没有跟firefly-rk3288对应上:
...

谢谢!
已经参考了那个文件。
这边gpio没有问题的。
不过我问的主要问题是,为什么没看到注册/dev/video的代码?
这部分是打包进你们的库里面的?还是怎么的?
谢谢?
作者: zhansb    时间: 2015-6-15 11:07
不是用Firefly-RK3288吗?
作者: mono    时间: 2015-6-15 11:21
zhansb 发表于 2015-6-15 11:07
不是用Firefly-RK3288吗?

是firefly-rk3288的呀
作者: zhansb    时间: 2015-6-15 12:03
除了图像处理的代码原厂做了打包,其他相关的源码都有
作者: yhr1985    时间: 2015-6-18 14:29
mono 发表于 2015-6-15 11:02
谢谢!
已经参考了那个文件。
这边gpio没有问题的。

和/dev/video应该没啥关系,好像是3066那些上代芯片用的驱动方式。我调试BT656采集时也纠结过这个打印,后来用官方支持的OV2659试过,也是有这个打印的。
楼主,你这个虚拟的csi摄像头和3288之间也是通过bt656或者bt601采集数据吗?

作者: mono    时间: 2015-6-25 15:14
yhr1985 发表于 2015-6-18 14:29
和/dev/video应该没啥关系,好像是3066那些上代芯片用的驱动方式。我调试BT656采集时也纠结过这个打印, ...

恩,后来发现是没有关系。我用ov13850,可以使用,但是也有这句。
我的这个虚拟的csi摄像头,是其他视频源通过硬件转为csi信号的,直接通过mipi  csi输入。
不过现在,看不到csi输入的画面,也没看到什么错误,打开照相机功能,一片黑。
作者: Alwaysonline    时间: 2016-10-21 22:12
能不能加个好友,我也在看这方面,1768031241谢谢
作者: xindongzhang    时间: 2017-3-15 20:51
zhansb 发表于 2015-6-15 12:03
除了图像处理的代码原厂做了打包,其他相关的源码都有

的图像处理的接口在哪里可以调用呢?谢谢
作者: dianziit    时间: 2017-3-16 09:37
楼主加油,我们都看好你哦

作者: 上上上123    时间: 2023-7-31 16:13
楼主解决问题了吗?





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