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
9,491 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
9,396 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
9,397 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
9,392 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
9,441 Views
bingyan
Contributor I

update files and logs, 

0 Kudos
Reply
9,460 Views
bingyan
Contributor I

modified the path of lib, still not work.

 

0 Kudos
Reply
9,464 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
9,469 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
9,469 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
9,475 Views
bingyan
Contributor I

log

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-1960330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ebring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960330%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171692%22%20target%3D%22_blank%22%3E%40zoey_li%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20need%20to%20bring%20up%20AR0544%20on%20Android%20with%20imx8mp%20ISP%20support.%20Could%20you%20help%3F%3C%2FP%3E%3CP%3ECurrently%20I%20have%20integrated%20driver%2C%20dtb%2C%20ISI%20lib%2C%20and%20after%20running%20camera%20app%20of%20Gallery%2C%20I%20met%20below%20error%3A%3C%2FP%3E%3CP%3E09-20%2021%3A51%3A36.543%20546%20729%20W%20CameraService%3A%20getConcurrentCameraIds%3A%20camera%20id%200%20does%20not%20exist%3CBR%20%2F%3E09-20%2021%3A51%3A36.545%201617%201617%20W%20CAM_Camera2OneCamMgr%3A%20No%20back-facing%20camera%20found.%3CBR%20%2F%3E09-20%2021%3A51%3A36.545%201617%201617%20W%20CAM_Camera2OneCamMgr%3A%20No%20external%20camera%20found.%3CBR%20%2F%3E09-20%2021%3A51%3A36.545%201617%201617%20D%20CAM_Camera2OneCamMgr%3A%20Getting%20First%20FRONT%20Camera%3CBR%20%2F%3E09-20%2021%3A51%3A36.545%201617%201617%20W%20CAM_Camera2OneCamMgr%3A%20No%20front-facing%20camera%20found.%3CBR%20%2F%3E09-20%2021%3A51%3A36.545%201617%201617%20W%20CAM_Camera2OneCamMgr%3A%20No%20external%20camera%20found.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1962398%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962398%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F171692%22%20target%3D%22_blank%22%3E%40zoey_li%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you%20very%20much%20for%20the%20great%20support.%20Yes%20sensor%20works%20on%20imx8mp%20android%20OS%20now.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EBing%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1962394%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1962394%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F209073%22%20target%3D%22_blank%22%3E%40bingyan%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%0A%3CP%3EAs%20we%20discussed%20offline%2C%20to%20bring%20up%20new%20camera%20with%208MP%20ISP%20on%20Android%20OS%2C%20you%20can%20refer%20to%20the%20section%208%20under%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fi-MX-Processors-Knowledge-Base%2Fi-MX-Android-Frequently-Asked-Questions%2Fta-p%2F1112713%22%20target%3D%22_blank%22%3Ei.MX%20Android%20Frequently%20Asked%20Questions%20-%20NXP%20Community.%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EGenerally%20speaking%20that%2C%20you%20need%20to%20make%20sure%20the%20new%20sensor%20dtb%2Fko%2Fso%2Fcfg%2Fxml%2Fjson%20to%20be%20configured%20correcly.%20You%20also%20need%20to%20make%20sure%20that%20the%20camera_name%20in%20camera_config_***.json%20file%20to%20be%20set%20correctly.%20For%20camera%20connected%20to%20csi0%20and%20isp0%2C%20it%20should%20be%26nbsp%3Bviv_v4l20.%20And%26nbsp%3Bviv_v4l21%20for%20camera%20connected%20to%20csi1%20and%20isp1.%3C%2FP%3E%0A%3CP%3EIt's%20glad%20that%20you%20finally%20make%20ar0544%20work%20now.%3C%2FP%3E%0A%3CP%3ERegards%2C%3C%2FP%3E%0A%3CP%3EZoey%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960454%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eupdate%20files%20and%20logs%2C%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960427%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Emodified%20the%20path%20of%20lib%2C%20still%20not%20work.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960384%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Eafter%20I%20did%20%22adb%20push%20%3CSPAN%3E%26nbsp%3Bdevice%2Fnxp%2Fimx8m%2Fevk_8mp%2Fcamera_config_imx8mp-ar0544.json%26nbsp%3B%26nbsp%3B%2Fvendor%2Fetc%2Fconfigs%2Fcamera_config_imx8mp.json%3C%2FSPAN%3E%22%20and%20reboot%2C%20I%20got%20attached%20error%20log.%20I%20also%20attach%20the%20related%20setting%20files%20.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960356%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%5B%200.121688%5D%20platform%2032e40000.csi%3A%20Fixed%20dependency%20cycle(s)%20with%20%2Fsoc%400%2Fbus%4030800000%2Fi2c%4030a30000%2Far0544_mipi%4036%3CBR%20%2F%3E%5B%207.770907%5D%20platform%2032e40000.csi%3A%20Fixed%20dependency%20cycle(s)%20with%20%2Fsoc%400%2Fbus%4030800000%2Fi2c%4030a30000%2Far0544_mipi%4036%3CBR%20%2F%3E%5B%208.673559%5D%20enter%20ar0544_probe%3CBR%20%2F%3E%5B%208.677403%5D%20ar0544%201-0036%3A%20No%20sensor%20pwdn%20pin%20available%3CBR%20%2F%3E%5B%208.683356%5D%20ar0544%201-0036%3A%20No%20sensor%20reset%20pin%20available%3CBR%20%2F%3E%5B%208.689405%5D%20ar0544%201-0036%3A%20supply%20DOVDD%20not%20found%2C%20using%20dummy%20regulator%3CBR%20%2F%3E%5B%208.696943%5D%20ar0544%201-0036%3A%20supply%20DVDD%20not%20found%2C%20using%20dummy%20regulator%3CBR%20%2F%3E%5B%208.704299%5D%20ar0544%201-0036%3A%20supply%20AVDD%20not%20found%2C%20using%20dummy%20regulator%3CBR%20%2F%3E%5B%208.716036%5D%20ar0544_probe%20camera%20mipi%20ar0544%2C%20is%20found%3CBR%20%2F%3E%5B%208.742620%5D%20mx8-img-md%3A%20Registered%20sensor%20subdevice%3A%20ar0544%201-0036%20(1)%3CBR%20%2F%3E%5B%208.749864%5D%20mx8-img-md%3A%20created%20link%20%5Bar0544%201-0036%5D%20%3D%26gt%3B%20%5Bmxc-mipi-csi2.0%5D%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960351%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960351%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20added%20json%20under%26nbsp%3B%20device%2Fnxp%2Fimx8m%2Fevk_8mp%2Fcamera_config_imx8mp-ar0544.json%3C%2FP%3E%3CP%3Eand%20after%20building%20I%20can%20get%26nbsp%3Bout%2Ftarget%2Fproduct%2Fevk_8mp%2Fvendor%2Fetc%2Fconfigs%2Fcamera_config_imx8mp-ar0544.json%3C%2FP%3E%3CP%3Ebut%20on%20board%20under%20path%26nbsp%3B%2Fvendor%2Fetc%2Fconfigs%20I%20can't%20see%20file%26nbsp%3Bcamera_config_imx8mp-ar0544.json%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1960333%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%3A%20bring%20up%20ar0544%20with%208mp%20isp%20on%20android%20os%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1960333%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Elog%3C%2FP%3E%3C%2FLINGO-BODY%3E