bring up ar0544 with 8mp isp on android os

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

bring up ar0544 with 8mp isp on android os

Jump to solution
8,773 Views
bingyan
Contributor I

Hi  @zoey_li 

I need to bring up AR0544 on Android with imx8mp ISP support. Could you help?

Currently I have integrated driver, dtb, ISI lib, and after running camera app of Gallery, I met below error:

09-20 21:51:36.543 546 729 W CameraService: getConcurrentCameraIds: camera id 0 does not exist
09-20 21:51:36.545 1617 1617 W CAM_Camera2OneCamMgr: No back-facing camera found.
09-20 21:51:36.545 1617 1617 W CAM_Camera2OneCamMgr: No external camera found.
09-20 21:51:36.545 1617 1617 D CAM_Camera2OneCamMgr: Getting First FRONT Camera
09-20 21:51:36.545 1617 1617 W CAM_Camera2OneCamMgr: No front-facing camera found.
09-20 21:51:36.545 1617 1617 W CAM_Camera2OneCamMgr: No external camera found.

0 Kudos
Reply
1 Solution
8,678 Views
zoey_li
NXP Employee
NXP Employee

Hi @bingyan ,

As we discussed offline, to bring up new camera with 8MP ISP on Android OS, you can refer to the section 8 under i.MX Android Frequently Asked Questions - NXP Community.

Generally speaking that, you need to make sure the new sensor dtb/ko/so/cfg/xml/json to be configured correcly. You also need to make sure that the camera_name in camera_config_***.json file to be set correctly. For camera connected to csi0 and isp0, it should be viv_v4l20. And viv_v4l21 for camera connected to csi1 and isp1.

It's glad that you finally make ar0544 work now.

Regards,

Zoey

View solution in original post

0 Kudos
Reply
8 Replies
8,679 Views
zoey_li
NXP Employee
NXP Employee

Hi @bingyan ,

As we discussed offline, to bring up new camera with 8MP ISP on Android OS, you can refer to the section 8 under i.MX Android Frequently Asked Questions - NXP Community.

Generally speaking that, you need to make sure the new sensor dtb/ko/so/cfg/xml/json to be configured correcly. You also need to make sure that the camera_name in camera_config_***.json file to be set correctly. For camera connected to csi0 and isp0, it should be viv_v4l20. And viv_v4l21 for camera connected to csi1 and isp1.

It's glad that you finally make ar0544 work now.

Regards,

Zoey

0 Kudos
Reply
8,674 Views
bingyan
Contributor I

Hi @zoey_li 

Thank you very much for the great support. Yes sensor works on imx8mp android OS now.

 

Bing

0 Kudos
Reply
8,723 Views
bingyan
Contributor I

update files and logs, 

0 Kudos
Reply
8,743 Views
bingyan
Contributor I

modified the path of lib, still not work.

 

0 Kudos
Reply
8,747 Views
bingyan
Contributor I

after I did "adb push  device/nxp/imx8m/evk_8mp/camera_config_imx8mp-ar0544.json  /vendor/etc/configs/camera_config_imx8mp.json" and reboot, I got attached error log. I also attach the related setting files .

0 Kudos
Reply
8,752 Views
bingyan
Contributor I

[ 0.121688] platform 32e40000.csi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a30000/ar0544_mipi@36
[ 7.770907] platform 32e40000.csi: Fixed dependency cycle(s) with /soc@0/bus@30800000/i2c@30a30000/ar0544_mipi@36
[ 8.673559] enter ar0544_probe
[ 8.677403] ar0544 1-0036: No sensor pwdn pin available
[ 8.683356] ar0544 1-0036: No sensor reset pin available
[ 8.689405] ar0544 1-0036: supply DOVDD not found, using dummy regulator
[ 8.696943] ar0544 1-0036: supply DVDD not found, using dummy regulator
[ 8.704299] ar0544 1-0036: supply AVDD not found, using dummy regulator
[ 8.716036] ar0544_probe camera mipi ar0544, is found
[ 8.742620] mx8-img-md: Registered sensor subdevice: ar0544 1-0036 (1)
[ 8.749864] mx8-img-md: created link [ar0544 1-0036] => [mxc-mipi-csi2.0]

0 Kudos
Reply
8,752 Views
bingyan
Contributor I

I added json under  device/nxp/imx8m/evk_8mp/camera_config_imx8mp-ar0544.json

and after building I can get out/target/product/evk_8mp/vendor/etc/configs/camera_config_imx8mp-ar0544.json

but on board under path /vendor/etc/configs I can't see file camera_config_imx8mp-ar0544.json

0 Kudos
Reply
8,758 Views
bingyan
Contributor I

log

0 Kudos
Reply