iMX8MQ Camera OV5640 not working for android 11 [format 0x0 was not defined in either ImageFormat]

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX8MQ Camera OV5640 not working for android 11 [format 0x0 was not defined in either ImageFormat]

1,508 Views
Jose1985
Contributor IV

Dear Team,

 

SW: Android 11.0.0_1.0.0

HW: iMX8MQ EVK

Module: Camera

 

I was trying bring up camera on iMX8MQ platform running Android 11. I also tried your demo images however, camera was not working.

 

Please find the below logs and DTS files attached

1. logcat

2. dmesg

3. DTS files

 

[ 1.950717] mxc-mipi-csi2_yav 30a70000.mipi_csi1: mipi_csi2_probe
[ 1.956876] mxc-mipi-csi2_yav 30a70000.mipi_csi: Remote device at endpoint@0 XXX found
[ 1.964817] mxc-mipi-csi2_yav 30a70000.mipi_csi1: lanes: 2, name: mxc-mipi-csi2.0
[ 1.972542] mxc-mipi-csi2_yav 30b60000.mipi_csi2: mipi_csi2_probe
[ 1.978698] mxc-mipi-csi2_yav 30b60000.mipi_csi: Remote device at endpoint@0 XXX found
[ 1.986642] mxc-mipi-csi2_yav 30b60000.mipi_csi2: lanes: 2, name: mxc-mipi-csi2.1

[ 1.994548] mx6s-csi 30a90000.csi1_bridge: initialising
[ 2.000000] CSI: Registered sensor subdevice: mxc-mipi-csi2.0
[ 2.005831] mx6s-csi 30b80000.csi2_bridge: initialising
[ 2.011264] CSI: Registered sensor subdevice: mxc-mipi-csi2.1
[ 2.017337] uvcvideo: Unable to create debugfs directory
[ 2.022710] usbcore: registered new interface driver uvcvideo
[ 2.028468] USB Video Class driver (1.1.1)

 

[ 2.595818] ov5640_mipi 0-003c: No sensor reset pin available
[ 2.601615] ov5640_mipi 0-003c: 0-003c supply DOVDD not found, using dummy regulator
[ 2.609454] ov5640_mipi 0-003c: 0-003c supply DVDD not found, using dummy regulator
[ 2.617144] ov5640_mipi 0-003c: 0-003c supply AVDD not found, using dummy regulator
[ 2.682048] random: fast init done
[ 3.709158] mxc-mipi-csi2_yav 30b60000.mipi_csi: Registered sensor subdevice: ov5640_mipi 0-003c
[ 3.719140] ov5640_mipi 0-003c: Camera is found
[ 3.724650] i2c i2c-0: IMX I2C adapter registered
[ 3.738294] ov5640_mipi 1-003c: No sensor reset pin available
[ 3.744386] ov5640_mipi 1-003c: 1-003c supply DOVDD not found, using dummy regulator
[ 3.752445] ov5640_mipi 1-003c: 1-003c supply DVDD not found, using dummy regulator
[ 3.760184] ov5640_mipi 1-003c: 1-003c supply AVDD not found, using dummy regulator
[ 3.777267] ov5640_mipi 1-003c: Read reg error: reg=300a
[ 3.782633] ov5640_mipi 1-003c: Camera is not found
[ 3.787929] i2c i2c-1: IMX I2C adapter registered

Logcat

10-06 12:06:49.180 2783 2783 D CAM_Camera2OneCamMgr: Getting First BACK Camera
10-06 12:06:49.180 2783 2783 I CameraManagerGlobal: Connecting to camera service
10-06 12:06:49.184 2783 2783 D CAM_Camera2OneCamMgr: Getting First FRONT Camera
10-06 12:06:49.186 2783 2783 W CAM_Camera2OneCamMgr: No front-facing camera found.
10-06 12:06:49.188 2783 2783 W CAM_Camera2OneCamMgr: No external camera found.
10-06 12:06:49.189 2783 2783 V CAM_Profiler: [ 53.393ms][ui] GUARD: CameraActivity.onCreateTasks - [11.282ms] OneCameraManager.get
10-06 12:06:49.215 470 1631 I CameraService: CameraService::connect call (PID -1 "com.android.camera2", camera ID 0) for HAL version default and Camera API version 1
10-06 12:06:49.215 470 1631 I Camera2ClientBase: Camera 0: Opened. Client: com.android.camera2 (PID 2783, UID 10100)
10-06 12:06:49.218 369 426 I CameraDeviceSessionHwlImpl: CameraDeviceSessionHwlImpl: this 0xb400f2194fc0a610
10-06 12:06:49.218 369 426 I CameraDeviceSessionHwlImpl: Initialize, meta 0xb400f218dfc0fff0, entry count 63
10-06 12:06:49.218 369 426 I CameraDeviceSessionHwlImpl: Initialize: create video stream for camera mx6s-csi, buffer type 0, path /dev/video1
10-06 12:06:49.218 369 426 I CameraDeviceSessionHwlImpl: Initialize: pVideoStream 0xb400f2195fc0e0b0 created
10-06 12:06:49.225 369 426 D GCH_CameraDeviceSession: FindLibraryPaths: Unable to open directory /vendor/lib64/camera/capture_sessions/ (No such file or directory)
10-06 12:06:49.225 369 426 W GCH_CameraDeviceSession: InitializeZoomRatioMapper: Failed to get the zoom ratio range: No such file or directory(-2)
10-06 12:06:49.225 369 426 I GCH_CameraDeviceSession: Create: Created a device session for camera 0 with 0 physical cameras
10-06 12:06:49.239 470 1631 E Camera2-Parameters: generated preview size list is empty!!
10-06 12:06:49.240 470 1631 E Camera2Client: initializeImpl: Camera 0: unable to build defaults: Invalid argument (-22)
10-06 12:06:49.240 470 1631 E CameraService: connectHelper: Could not initialize client from HAL.
10-06 12:06:49.240 470 1631 I Camera2Client: Camera 0: Closed
10-06 12:06:49.240 470 1631 I Camera3-Device: disconnectImpl: E
10-06 12:06:49.243 369 426 I CameraDeviceSessionHwlImpl: ~CameraDeviceSessionHwlImpl: this 0xb400f2194fc0a610, 0xb400f2191fc0a8d0, 0xb400f2194fc0a688
10-06 12:06:49.244 369 426 I CameraDeviceSessionHwlImpl: ~CameraDeviceSessionHwlImpl, mWorkThread exited
10-06 12:06:49.244 470 1631 I Camera3-Device: disconnectImpl: X
10-06 12:06:49.245 470 1631 I CameraService: disconnect: Disconnected client for camera 0 for PID 2783
10-06 12:06:49.246 470 1631 I Camera2ClientBase: Closed Camera 0. Client was: com.android.camera2 (PID 2783, UID 10100)
10-06 12:06:49.246 470 1631 I Camera3-Device: disconnectImpl: E
10-06 12:06:49.246 2783 2783 W CameraBase: An error occurred while connecting to camera 0: Status(-8, EX_SERVICE_SPECIFIC): '10: connectHelper:1740: Failed to initialize camera "0": No such device (-19)'

 

10-06 12:06:49.524 2783 2783 I CAM_Profiler: [389.080ms][ui] GUARD: CameraActivity.onCreateTasks - [22.999ms] Init CurrentModule
10-06 12:06:49.533 2783 2783 I CAM_Profiler: [397.434ms][ui] GUARD: CameraActivity.onCreateTasks - STOP
10-06 12:06:49.533 2783 2783 V CAM_QuickActivity: END onCreate: Activity = com.android.camera.CameraActivity@c3c6aa6
10-06 12:06:49.536 2783 2783 V CAM_QuickActivity: START onStart: Activity = com.android.camera.CameraActivity@c3c6aa6
10-06 12:06:49.543 2783 2783 V CAM_QuickActivity: END onStart: Activity = com.android.camera.CameraActivity@c3c6aa6
10-06 12:06:49.546 2783 2783 V CAM_QuickActivity: START onResume: Activity = com.android.camera.CameraActivity@c3c6aa6
10-06 12:06:49.610 2783 2783 V CAM_QuickActivity: END onResume: Activity = com.android.camera.CameraActivity@c3c6aa6
10-06 12:06:49.744 2783 2833 V CAM_CameraDataAdapter: retrieved photo metadata, number of items: 0
10-06 12:06:49.746 2783 2833 V CAM_CameraDataAdapter: retrieved video metadata, number of items: 0
10-06 12:06:49.746 2783 2833 V CAM_CameraDataAdapter: sorting video/photo metadata
10-06 12:06:49.747 2783 2833 V CAM_CameraDataAdapter: sorted video/photo metadata
10-06 12:06:49.919 2783 2783 V CAM_CameraAppUI: SurfaceTexture is available

10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: Unable to obtain picture sizes.
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: java.lang.IllegalArgumentException: format 0x0 was not defined in either ImageFormat or PixelFormat
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.params.StreamConfigurationMap.checkArgumentFormat(StreamConfigurationMap.java:1232)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.params.StreamConfigurationMap.checkArgumentFormatInternal(StreamConfigurationMap.java:1206)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.params.StreamConfiguration.<init>(StreamConfiguration.java:62)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.marshal.impl.MarshalQueryableStreamConfiguration$MarshalerStreamConfiguration.unmarshal(MarshalQueryableStreamConfiguration.java:59)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.marshal.impl.MarshalQueryableStreamConfiguration$MarshalerStreamConfiguration.unmarshal(MarshalQueryableStreamConfiguration.java:38)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.marshal.impl.MarshalQueryableArray$MarshalerArray.unmarshal(MarshalQueryableArray.java:93)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative.getBase(CameraMetadataNative.java:575)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative.getBase(CameraMetadataNative.java:539)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative.getStreamConfigurationMap(CameraMetadataNative.java:1301)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative.access$400(CameraMetadataNative.java:88)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative$5.getValue(CameraMetadataNative.java:613)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative.get(CameraMetadataNative.java:439)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.impl.CameraMetadataNative.get(CameraMetadataNative.java:410)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at android.hardware.camera2.CameraCharacteristics.get(CameraCharacteristics.java:239)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at com.android.camera.one.v2.OneCameraCharacteristicsImpl.getSupportedPictureSizes(OneCameraCharacteristicsImpl.java:63)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at com.android.camera.settings.ResolutionSetting.getPictureSize(ResolutionSetting.java:153)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at com.android.camera.CaptureModule.openCameraAndStartPreview(CaptureModule.java:1363)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at com.android.camera.CaptureModule.access$1900(CaptureModule.java:107)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at com.android.camera.CaptureModule$10.run(CaptureModule.java:653)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
10-06 12:06:52.335 2783 2833 E CAM_OneCamCharImpl: at java.lang.Thread.run(Thread.java:923)
10-06 12:06:52.349 2783 2833 E AndroidRuntime: at com.android.camera.CaptureModule.openCameraAndStartPreview(CaptureModule.java:1363)
10-06 12:06:52.360 563 1028 W ActivityTaskManager: Force finishing activity com.android.camera2/com.android.camera.CameraLauncher
10-06 12:06:52.462 563 1028 I WindowManager: WIN DEATH: Window{cd9e0a1 u0 com.android.camera2/com.android.camera.CameraLauncher}

 

Please help.

Best regards

Libin Jose.

Tags (1)
0 Kudos
Reply
1 Reply

1,494 Views
joanxie
NXP TechSupport
NXP TechSupport

did  you use nxp imx8mq board or customized board? did you have this issue with other android version or only android 11? how to reproduce this on nxp imx8mq evk board?

0 Kudos
Reply