RK3288-reload MIPI ÉãÏñÍ·ÎÊÌâ ÎÞͼÏñºÚÆÁ
RK3288-reload¿ª·¢°åµ÷ÊÔMIPIÉãÏñÍ·´ò¿ªºÚÉ«»Ã棨I2CͨÐÅÒ²Õý³££¬MIPI0 Êý¾ÝÏßÉÏͨ¹ýʾ²¨Æ÷¿´Ò²ÓÐÊý¾Ý£©£¬´®¿ÚÖ±½ÓÊä³öÒÔ¼°ÈÕÖ¾¼Ç¼ÈçÏ£¬ÕâÊÇʲôÇé¿öÄØ£¿[ 67.981763] rk_iommu ff914000.isp_mmu: rockchip_iommu_attach_device: Attached new IOMMU with pgtable 0x1eacb000
[ 67.982304] D1:camsys_mrv_iommu_cb(276): map fd 17 ,client fd 48
[ 67.982304]
[ 67.982330] rk_iommu ff914000.isp_mmu: (isp_mmu) Already enabled
[ 67.982780] D1:camsys_mrv_iommu_cb(276): map fd 19 ,client fd 48
[ 67.982780]
[ 67.982792] rk_iommu ff914000.isp_mmu: (isp_mmu) Already enabled
[ 67.985774] D1:camsys_mrv_iommu_cb(276): map fd 53 ,client fd 48
[ 67.985774]
[ 67.985791] rk_iommu ff914000.isp_mmu: (isp_mmu) Already enabled
[ 67.986266] D1:camsys_rk3288_mipihpy_cfg(104): mipi phy 0 standby!
[ 67.986278] W:camsys_phy_ops(479): mipiphy->phy_index(-1223991276) != extdev->phy.info.mipi.phy_index(0)!
[ 67.986486] D1:camsys_rk3288_mipihpy_cfg(219): mipi phy(0) turn on(lane: 0x1bit_rate: 528Mbps)
[ 68.052270] D1:camsys_irq_connect(543): Thread(pid: 1476) connect camsys_marvin irq success! mis: 0x5c4 icr: 0x5c8
[ 68.052340] D1:camsys_irq_connect(543): Thread(pid: 1477) connect camsys_marvin irq success! mis: 0x1500 icr: 0x1504
[ 68.057151]rockchip_ion_cma: Fail to allocate(eb000) buffer
[ 68.059334]rockchip_ion_cma: Fail to allocate(eb000) buffer
[ 68.062825]rockchip_ion_cma: Fail to allocate(eb000) buffer
[ 68.066596]rockchip_ion_cma: Fail to allocate(eb000) buffer
============================LOGCAT===============================
130|shell@firefly:/ # logcat -s CameraHal
--------- beginning of system
--------- beginning of main
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
I/CameraHal(156): camera_device_open(500): camera_device open
D/CameraHal(156): gCameraHalLogLevel: 0
D/CameraHal(156): CameraHal(159): it is a ispcamera
D/CameraHal(156): Writetxt(80): /data/rotation_flag open success!
D/CameraHal(156): Calling process is: /system/bin/mediaserver
E/CameraHal(156): disconnectCamera(1784): getFocusLimits failed!
E/CameraHal(156): setupPreview(258): >>>>>>>width_sensor=0,height_sensor=0,preview_w=640,preview_h=480
D/CameraHal(156): setupPreview(306): isp out put format is YUV420SP.
D/CameraHal(156): initDefaultParameters(981): ------mHardInfo.mVcmInfo.mVcmDrvName in not NC-----
D/CameraHal(156): Calling process is: /system/bin/mediaserver
D/CameraHal(156): enableSensor(213): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): commandThread(1010): commandThread(1010): receive CMD_PREVIEW_CAPTURE_CANCEL
D/CameraHal(156): commandThread(1018): commandThread(1018): CMD_PREVIEW_CAPTURE_CANCEL out
D/CameraHal(156): cancelPicture(588): cancel picture OK.
D/CameraHal(156): commandThread(938): commandThread(938):receive CMD_PREVIEW_STOP
D/CameraHal(156): commandThread(959): commandThread(959): CMD_PREVIEW_STOP out
D/CameraHal(156): stopPreview(389): stop preview OK.
D/CameraHal(156): camera_device_close(451): camera_device_close
D/CameraHal(156): disableSensor(237): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): ~SensorListener(110): Kill looper thread
D/CameraHal(156): ~SensorListener(122): Kill looper
D/CameraHal(156): ~SensorListener(128): SensorListener destroyed
D/CameraHal(156): displayThread(622): displayThread(622): receive CMD_DISPLAY_STOP
D/CameraHal(156): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
D/CameraHal(156): encProcessThread(1632): encProcessThread(1632): receive CMD_ENCPROCESS_EXIT
D/CameraHal(156): commandThread(1122): commandThread(1122): receive CMD_EXIT
D/CameraHal(156): ~CameraHal(320): CameraHal destory success
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
I/CameraHal(156): camera_device_open(500): camera_device open
D/CameraHal(156): gCameraHalLogLevel: 0
D/CameraHal(156): CameraHal(159): it is a ispcamera
D/CameraHal(156): Writetxt(80): /data/rotation_flag open success!
D/CameraHal(156): Calling process is: com.android.camera2
E/CameraHal(156): disconnectCamera(1784): getFocusLimits failed!
E/CameraHal(156): setupPreview(258): >>>>>>>width_sensor=0,height_sensor=0,preview_w=640,preview_h=480
D/CameraHal(156): setupPreview(306): isp out put format is YUV420SP.
E/CameraHal(156): cameraCreate(137): sensor name OV2685
D/CameraHal(156): initDefaultParameters(981): ------mHardInfo.mVcmInfo.mVcmDrvName in not NC-----
D/CameraHal(156): Calling process is: com.android.camera2
D/CameraHal(156): enableSensor(213): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): commandThread(1010): commandThread(1010): receive CMD_PREVIEW_CAPTURE_CANCEL
D/CameraHal(156): commandThread(1018): commandThread(1018): CMD_PREVIEW_CAPTURE_CANCEL out
D/CameraHal(156): cancelPicture(588): cancel picture OK.
D/CameraHal(156): commandThread(938): commandThread(938):receive CMD_PREVIEW_STOP
D/CameraHal(156): commandThread(959): commandThread(959): CMD_PREVIEW_STOP out
D/CameraHal(156): stopPreview(389): stop preview OK.
D/CameraHal(156): camera_device_close(451): camera_device_close
D/CameraHal(156): disableSensor(237): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): ~SensorListener(110): Kill looper thread
D/CameraHal(156): ~SensorListener(122): Kill looper
D/CameraHal(156): ~SensorListener(128): SensorListener destroyed
D/CameraHal(156): displayThread(622): displayThread(622): receive CMD_DISPLAY_STOP
D/CameraHal(156): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
D/CameraHal(156): encProcessThread(1632): encProcessThread(1632): receive CMD_ENCPROCESS_EXIT
D/CameraHal(156): commandThread(1122): commandThread(1122): receive CMD_EXIT
D/CameraHal(156): ~CameraHal(320): CameraHal destory success
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
I/CameraHal(156): camera_device_open(500): camera_device open
D/CameraHal(156): gCameraHalLogLevel: 0
D/CameraHal(156): CameraHal(159): it is a ispcamera
D/CameraHal(156): Writetxt(80): /data/rotation_flag open success!
D/CameraHal(156): Calling process is: com.android.camera2
E/CameraHal(156): disconnectCamera(1784): getFocusLimits failed!
E/CameraHal(156): setupPreview(258): >>>>>>>width_sensor=0,height_sensor=0,preview_w=640,preview_h=480
D/CameraHal(156): setupPreview(306): isp out put format is YUV420SP.
E/CameraHal(156): cameraCreate(137): sensor name OV2685
D/CameraHal(156): initDefaultParameters(981): ------mHardInfo.mVcmInfo.mVcmDrvName in not NC-----
D/CameraHal(156): Calling process is: com.android.camera2
D/CameraHal(156): enableSensor(213): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): commandThread(1108): commandThread(1108): receive CMD_AF_CANCEL
D/CameraHal(156): commandThread(964): commandThread(964):receive CMD_SET_PREVIEW_WINDOW
D/CameraHal(156): commandThread(980): commandThread(980): CMD_SET_PREVIEW_WINDOW out
D/CameraHal(156): commandThread(859): commandThread(859):receive CMD_PREVIEW_START
D/CameraHal(156): stop(1859): m_camDevice->stopPreview success!
E/CameraHal(156): setupPreview(258): >>>>>>>width_sensor=800,height_sensor=600,preview_w=800,preview_h=600
D/CameraHal(156): setupPreview(306): isp out put format is YUV420SP.
D/CameraHal(156): start(1814): m_camDevice->startPreview success
D/CameraHal(156): displayThread(596): displayThread(596): receive CMD_DISPLAY_START
D/CameraHal(156): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
D/CameraHal(156): commandThread(932): commandThread(932): CMD_PREVIEW_START out
D/CameraHal(156): commandThread(1108): commandThread(1108): receive CMD_AF_CANCEL
D/CameraHal(156): commandThread(1010): commandThread(1010): receive CMD_PREVIEW_CAPTURE_CANCEL
D/CameraHal(156): commandThread(1018): commandThread(1018): CMD_PREVIEW_CAPTURE_CANCEL out
D/CameraHal(156): cancelPicture(588): cancel picture OK.
D/CameraHal(156): commandThread(938): commandThread(938):receive CMD_PREVIEW_STOP
D/CameraHal(156): displayThread(610): displayThread(610): receive CMD_DISPLAY_PAUSE
D/CameraHal(156): stop(1859): m_camDevice->stopPreview success!
D/CameraHal(156): commandThread(959): commandThread(959): CMD_PREVIEW_STOP out
D/CameraHal(156): stopPreview(389): stop preview OK.
D/CameraHal(156): commandThread(1010): commandThread(1010): receive CMD_PREVIEW_CAPTURE_CANCEL
D/CameraHal(156): commandThread(1018): commandThread(1018): CMD_PREVIEW_CAPTURE_CANCEL out
D/CameraHal(156): cancelPicture(588): cancel picture OK.
D/CameraHal(156): commandThread(938): commandThread(938):receive CMD_PREVIEW_STOP
D/CameraHal(156): commandThread(959): commandThread(959): CMD_PREVIEW_STOP out
D/CameraHal(156): stopPreview(389): stop preview OK.
D/CameraHal(156): commandThread(964): commandThread(964):receive CMD_SET_PREVIEW_WINDOW
D/CameraHal(156): pauseDisplay(159): pauseDisplay(159): display thread is already stop
D/CameraHal(156): commandThread(980): commandThread(980): CMD_SET_PREVIEW_WINDOW out
D/CameraHal(156): camera_device_close(451): camera_device_close
D/CameraHal(156): disableSensor(237): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): ~SensorListener(110): Kill looper thread
D/CameraHal(156): ~SensorListener(122): Kill looper
D/CameraHal(156): ~SensorListener(128): SensorListener destroyed
D/CameraHal(156): displayThread(622): displayThread(622): receive CMD_DISPLAY_STOP
D/CameraHal(156): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
D/CameraHal(156): encProcessThread(1632): encProcessThread(1632): receive CMD_ENCPROCESS_EXIT
D/CameraHal(156): commandThread(1122): commandThread(1122): receive CMD_EXIT
D/CameraHal(156): ~CameraHal(320): CameraHal destory success
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
I/CameraHal(156): camera_device_open(500): camera_device open
D/CameraHal(156): gCameraHalLogLevel: 0
D/CameraHal(156): CameraHal(159): it is a ispcamera
D/CameraHal(156): Writetxt(80): /data/rotation_flag open success!
D/CameraHal(156): Calling process is: com.android.camera2
E/CameraHal(156): disconnectCamera(1784): getFocusLimits failed!
E/CameraHal(156): setupPreview(258): >>>>>>>width_sensor=0,height_sensor=0,preview_w=640,preview_h=480
D/CameraHal(156): setupPreview(306): isp out put format is YUV420SP.
E/CameraHal(156): cameraCreate(137): sensor name OV2685
D/CameraHal(156): initDefaultParameters(981): ------mHardInfo.mVcmInfo.mVcmDrvName in not NC-----
D/CameraHal(156): Calling process is: com.android.camera2
D/CameraHal(156): enableSensor(213): orientation = 0xb702c0f0 (MPL accel)
D/CameraHal(156): camera_get_camera_info(1337): camera_get_camera_info(1337): camera_0 facing(1), orientation(0)
D/CameraHal(156): commandThread(1108): commandThread(1108): receive CMD_AF_CANCEL
D/CameraHal(156): commandThread(964): commandThread(964):receive CMD_SET_PREVIEW_WINDOW
D/CameraHal(156): commandThread(980): commandThread(980): CMD_SET_PREVIEW_WINDOW out
D/CameraHal(156): commandThread(859): commandThread(859):receive CMD_PREVIEW_START
D/CameraHal(156): stop(1859): m_camDevice->stopPreview success!
E/CameraHal(156): setupPreview(258): >>>>>>>width_sensor=800,height_sensor=600,preview_w=800,preview_h=600
D/CameraHal(156): setupPreview(306): isp out put format is YUV420SP.
D/CameraHal(156): start(1814): m_camDevice->startPreview success
D/CameraHal(156): displayThread(596): displayThread(596): receive CMD_DISPLAY_START
D/CameraHal(156): cameraDisplayBufferDestory(399): cameraDisplayBufferDestory(399): mANativeWindow is NULL, destory is ignore
D/CameraHal(156): commandThread(932): commandThread(932): CMD_PREVIEW_START out
ÇëÏÈÈ·È϶ÔÓ¦µÄxml phyIndex ÊÇ·ñÅä¶Ô jpchen ·¢±íÓÚ 2017-11-21 11:18
ÇëÏÈÈ·È϶ÔÓ¦µÄxml phyIndex ÊÇ·ñÅä¶Ô
ÎÒÅäÖõÄlane Ϊ1 µÄ ÒòΪ¶øÇÒÒ²Ö»ÓÐMIPI0 ÓÐÊä³öµÄ£¬I2CÀïÃæÅäÖÃÒ²ÊÇ1lane (1ͨµÀµÄ£©
<BoardFile>
<BoardXmlVersion version="v0.0xd.0">
</BoardXmlVersion>
<CamDevie>
<HardWareInfo>
<Sensor>
<SensorName name="OV2685"></SensorName>
<SensorDevID IDname="CAMSYS_DEVID_SENSOR_1B"></SensorDevID>
<SensorHostDevID busnum="CAMSYS_DEVID_MARVIN" ></SensorHostDevID>
<SensorI2cBusNum busnum="3"></SensorI2cBusNum>
<SensorI2cAddrByte byte="2"></SensorI2cAddrByte>
<SensorI2cRate rate="100000"></SensorI2cRate>
<SensorMclk mclk="24000000"></SensorMclk>
<SensorAvdd name="NC" min="28000000" max="28000000"></SensorAvdd>
<SensorDovdd name="NC" min="18000000" max="18000000"></SensorDovdd>
<SensorDvdd name="NC" min="18000000" max="18000000"></SensorDvdd>
<SensorGpioPwdn ioname="RK30_PIN2_PB6" active="0"></SensorGpioPwdn>
<SensorGpioRst ioname="RK30_PIN2_PB7" active="0"></SensorGpioRst>
<SensorGpioPwen ioname="RK30_PIN0_PB3" active="1"></SensorGpioPwen>
<SensorFacing facing="front"></SensorFacing>
<SensorInterface interface="MIPI"></SensorInterface>
<SensorMirrorFlip mirror="0"></SensorMirrorFlip>
<SensorOrientation orientation="0"></SensorOrientation>
<SensorPowerupSequence seq="1234"></SensorPowerupSequence>
<SensorFovParemeter h="60.0" v="60.0"></SensorFovParemeter>
<SensorAWB_Frame_Skip fps="15"></SensorAWB_Frame_Skip>
<SensorPhy phyMode="CamSys_Phy_Mipi" lane="1"phyIndex="1" sensorFmt="CamSys_Fmt_Raw_10b"></SensorPhy> camsys_phy_ops(479): mipiphy->phy_index(-1223991276) != extdev->phy.info.mipi.phy_index(0)
Õâ¸ölogºÍÄãÅäÖõÄphyIndex="1"²»Ò»Ñù jpchen ·¢±íÓÚ 2017-11-21 16:48
camsys_phy_ops(479): mipiphy->phy_index(-1223991276) != extdev->phy.info.mipi.phy_index(0)
Õâ¸ölog ...
Õâ¸ö¾¯¸æÅäÖò»Ò»ÖµÄʱºò£¬»áÖØи³ÖµµÄѽ
if (mipiphy->phy_index != extdev->phy.info.mipi.phy_index) {
camsys_warn("mipiphy->phy_index(%d) != extdev->phy.info.mipi.phy_index(%d)!",
mipiphy->phy_index,extdev->phy.info.mipi.phy_index);
mipiphy->phy_index = extdev->phy.info.mipi.phy_index;
} jpchen ·¢±íÓÚ 2017-11-21 16:48
camsys_phy_ops(479): mipiphy->phy_index(-1223991276) != extdev->phy.info.mipi.phy_index(0)
Õâ¸ölog ...
¶øÇÒÕâ¸ö¼Ç¼ÊÇ֮ǰµÄ£¬ÏÖÔÚÎҸijÉ1ÁË
rk_iommu ff914000.isp_mmu: rockchip_iommu_attach_device: Attached new IOMMU with pgtable 0x1eacb000
D1:camsys_mrv_iommu_cb(276): map fd 21 ,client fd 43
rk_iommu ff914000.isp_mmu: (isp_mmu) Already enabled
D1:camsys_mrv_iommu_cb(276): map fd 22 ,client fd 43
rk_iommu ff914000.isp_mmu: (isp_mmu) Already enabled
D1:camsys_mrv_iommu_cb(276): map fd 55 ,client fd 43
rk_iommu ff914000.isp_mmu: (isp_mmu) Already enabled
D1:camsys_rk3288_mipihpy_cfg(109): mipi phy 1 standby!
W:camsys_phy_ops(490): mipiphy->phy_index(-1224521372) != extdev->phy.info.mipi.phy_index(1)!
D1:camsys_rk3288_mipihpy_cfg(219): mipi phy(1) turn on(lane: 0x1bit_rate: 528Mbps)
W:camsys_i2c_write(61): buf===01,i2cinfo->reg_addr=100 MIPI ÉãÏñÍ·µ÷ÊÔ1¡¢Ê×ÏÈÈ·¶¨µçѹ¡¢2¡¢Æä´ÎI2C ͨÐÅ ²»³É¹¦»¹ÊÇÈ·¶¨µçѹÒÔ¼°Ê±ÐòÎÊÌâ3¡¢I2CͨÐÅÕý³££¬ÊÇ·ñ³É¹¦ÅäÖóɹ¦ Ò²ÐèҪȷ¶¨ÏÂ4¡¢Ç°ÃæÈý¸ö²½Öè³É¹¦ÁË »¹ÊÇûͼÏñ£¬Õâ²½ÖèºÜ¹Ø¼ü¡¢È·¶¨ÏÂMIPI Êý¾ÝÏßÊÇ·ñÓÐÊý¾ÝÊä³ö£¬Ê¾²¨Æ÷Êä³ö²¨ÐÎÊÇ·ñ´ï±ê ±ÈÈçÎÒÕâ±ßÓöµ½¹ýI2CͨÐŲ»³É¹¦ £¬I2CͨÐųɹ¦Í¼Ïñ³ö²»À´£¬ÔÙ¿´ÏÂMIPIÊý¾ÝÊ䲨ÐÎÊÇ·ñÕý³££¬±ÈÈçÎÒÕâ´Î¾ÍÊÇÒòΪ½Ó´¥ÎÊÌ⣬µçѹ·ù¶È²»¹»Õý³££¬¼·Ñ¹¾ÍÄܹ»³öÏÖͼÏñ
¿ÉÒÔÌṩÉϲãµÄlog,»¹Óг¢ÊÔ°ÑÅÅÏ߸ĶÌÊÔÊÔ RockchipûÓÐÖ§³ÖOV2685ÉãÏñÍ· ¤ª¤Î¤ß¤É¤ê ·¢±íÓÚ 2017-11-25 16:20
RockchipûÓÐÖ§³ÖOV2685ÉãÏñÍ·
Çý¶¯³É¹¦ÁË
Ò³:
[1]
2