bring up ar0544 with 8mp isp on android os

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

bring up ar0544 with 8mp isp on android os

跳至解决方案
8,772 次查看
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 项奖励
回复
1 解答
8,677 次查看
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 项奖励
回复
8 回复数
8,678 次查看
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 项奖励
回复
8,673 次查看
bingyan
Contributor I

Hi @zoey_li 

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

 

Bing

0 项奖励
回复
8,722 次查看
bingyan
Contributor I

update files and logs, 

0 项奖励
回复
8,742 次查看
bingyan
Contributor I

modified the path of lib, still not work.

 

0 项奖励
回复
8,746 次查看
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 项奖励
回复
8,751 次查看
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 项奖励
回复
8,751 次查看
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 项奖励
回复
8,757 次查看
bingyan
Contributor I

log

0 项奖励
回复