camera integration on imx8MM in android bsp

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

camera integration on imx8MM in android bsp

548 Views
ganesh_k
Contributor III

Hi Team,

     I m trying to integrate the camera(AR052x) on imx8mm android source. i can able to load the drivers and create the /dev/video0 node, but while opening the camera application some binder errors are coming.

Error on debug console:

phyboard_polis:/ $ [ 165.314149] perfetto: enabled ftrace
[ 166.203443] binder: 437:504 transaction failed 29189/-22, size 68-0 line 3125
[ 170.263959] perfetto: disabled ftrace
[ 192.667212] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400000 fc=4000000 cc=32 chg=a

Can you suggest any document to guide how to include new Camera in Android BSP. Please find the attached logs.

 

Thanks & Regards

Ganesh.K

Labels (1)
0 Kudos
Reply
2 Replies

486 Views
ganesh_k
Contributor III

Hi Zhiming,

I have changed the camera conf in below files:

./vendor/nxp-opensource/imx/camera/CameraConfigurationParser.cpp:51:// "camera_name": "imx8_ar052x",
./vendor/nxp-opensource/imx/camera/CameraConfigurationParser.cpp:66:// "camera_name": "imx8_ar052x",
./vendor/nxp-opensource/imx/libcamera3/Camera.cpp:68: if (strstr(cam_metadata->camera_name, AR052X_SENSOR_NAME_V1) ||
./vendor/nxp-opensource/imx/libcamera3/Camera.cpp:69: strstr(cam_metadata->camera_name, AR052X_SENSOR_NAME_V2) ||
./vendor/nxp-opensource/imx/libcamera3/Camera.cpp:70: strstr(cam_metadata->camera_name, AR052X_SENSOR_NAME_V3))
./vendor/nxp-opensource/imx/libcamera3/CameraHAL.h:30:#define AR052X_SENSOR_NAME_V1 "ar052x"
./vendor/nxp-opensource/imx/libcamera3/CameraHAL.h:32:#define AR052X_SENSOR_NAME_V2 "mx6s-csi"
./vendor/nxp-opensource/imx/libcamera3/CameraHAL.h:33:#define AR052X_SENSOR_NAME_V3 "mxc-isi-cap"
./vendor/nxp-opensource/imx/libcamera3/utils/CameraConfigurationParser.cpp:51:// "camera_name": "imx8_ar052x",
./vendor/nxp-opensource/imx/libcamera3/utils/CameraConfigurationParser.cpp:66:// "camera_name": "imx8_ar052x",

conf file settings:

camera_config_imx8mm.json:13: "camera_name": "mx6s-csi",

Remaining setting kept same as our camera(AR0521) also 5MP only. but still we are facing same issue.

Thanks & Regards
Ganesh.K

0 Kudos
Reply

521 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @ganesh_k 

1.You may need modify camera hal driver:

Zhiming_Liu_0-1689320173817.png

2.You need modify camera config files in device/nxp/imx8m/evk_8mm/

 

Best Regards

Zhiming

0 Kudos
Reply