AnsweredAssumed Answered

IMX6SL EVK with OV5640

Question asked by Vinothraj M on Jul 29, 2015
Latest reply on Aug 3, 2015 by Vinothraj M

Hi,

 

I had IMX6SLEVK  and connected with  OV5640 Camera Module.  I am using Android Kitkat 4.4.2 from freescale website.

 

I tested the OV5640 with two ways. But both results are failed.

 

1. I edit the ../myandroid/device/fsl/evksl/init.rc and compile source myandroid.

 

setprop back_camera_name csi
setprop back_camera_orient 0
setprop front_camera_name uvc
setprop front_camera_orient 0

 

and OV5640 camera detected as /dev/video0 in filesystem .

 

I open the camera default application in Android. It shows the "Camera error" and "Can't connect the camera".

 

Log :

root@evk_6sl:/ # logcat | grep cam

W/PackageManager( 2480): Package com.android.camera desires unavailable shared library com.google.android.media.effects; ignoring!

 

I/ActivityManager( 2480): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera} from pid 2646

I/ActivityManager( 2480): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2932 uid=10028 gids={50028, 1028, 1015}

V/CameraHolder( 2932): open camera 0

I/CameraClient( 2132): Opening camera 0

I/FslCameraHAL( 2132): camera_device open: 0

E/FslCameraHAL( 2132):  can not open camera devpath:

E/CameraClient( 2132): Could not open camera 0: -22

I/CameraClient( 2132): Destroying camera 0

W/CameraBase( 2932): An error occurred while connecting to camera: 0

E/CameraHolder( 2932): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder( 2932):  at com.android.camera.CameraHolder.open(CameraHolder.java:131)

E/CameraHolder( 2932):  at com.android.camera.Util.openCamera(Util.java:267)

E/CameraHolder( 2932):  at com.android.camera.Camera$4.run(Camera.java:1100)

V/camera  ( 2932): surfaceChanged. w=592. h=444

I/ActivityManager( 2480): Displayed com.android.camera/.Camera: +834ms

 

130|root@evk_6sl:/ # logcat | grep HAL                                 

I/FslCameraHAL( 2132): camera_device open: 0

I/FslCameraHAL( 2132): initialize name:uvc, path:

I/FslCameraHAL( 2132): DeviceAdapter:  Create uvc device

E/FslCameraHAL( 2132):  can not open camera devpath:

E/FslCameraHAL( 2132): CameraHal:  DeviceAdapter initialize failed

 

 

 

2. I edit the ../myandroid/device/fsl/evksl/init.rc and compile source myandroid.

 

setprop back_camera_name csi
setprop back_camera_orient 0
setprop front_camera_name csi
setprop front_camera_orient 0

 

and OV5640 camera detected as /dev/video0 in filesystem .

 

I open the camera default application in Android. It shows the "Camera error" and "Can't connect the camera".

 

LOG:

root@evk_6sl:/ # logcat | grep cam

W/PackageManager( 2482): Package com.android.camera desires unavailable shared library com.google.android.media.effects; ignoring!

I/ActivityManager( 2482): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[137,231][203,297]} from pid 2647

I/ActivityManager( 2482): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2937 uid=10028 gids={50028, 1028, 1015}

V/CameraHolder( 2937): open camera 0

E/CameraService( 2133): CameraService::connect X (pid 2937) rejected (invalid cameraId 0).

W/CameraBase( 2937): An error occurred while connecting to camera: 0

E/CameraHolder( 2937): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder( 2937):  at com.android.camera.CameraHolder.open(CameraHolder.java:131)

E/CameraHolder( 2937):  at com.android.camera.Util.openCamera(Util.java:267)

E/CameraHolder( 2937):  at com.android.camera.Camera$4.run(Camera.java:1100)

V/camera  ( 2937): surfaceChanged. w=592. h=444

I/ActivityManager( 2482): Displayed com.android.camera/.Camera: +857ms

I/ActivityManager( 2482): START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera bnds=[137,231][203,297]} from pid 2647

V/CameraHolder( 2937): open camera 0

E/CameraService( 2133): CameraService::connect X (pid 2937) rejected (invalid cameraId 0).

W/CameraBase( 2937): An error occurred while connecting to camera: 0

E/CameraHolder( 2937): java.lang.RuntimeException: Fail to connect to camera service

E/CameraHolder( 2937):  at com.android.camera.CameraHolder.open(CameraHolder.java:131)

E/CameraHolder( 2937):  at com.android.camera.Util.openCamera(Util.java:267)

E/CameraHolder( 2937):  at com.android.camera.Camera$4.run(Camera.java:1100)

V/camera  ( 2937): surfaceChanged. w=592. h=444

I/ActivityManager( 2482): Displayed com.android.camera/.Camera: +646ms

^C

 

 

Please suggest any suggestion to get camera successfully.

 

 

Thanks and regards,

vinothraj.

Outcomes