Adding ISI camera driver in Android 11 on i.MX 8M Plus

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

Adding ISI camera driver in Android 11 on i.MX 8M Plus

跳至解决方案
1,188 次查看
chrispeterson
Contributor IV

Hello,

I have successfully added a new camera driver in Yocto linux following the porting guide (IMX8MPCSPUG.pdf).   I am not attempting to get the camera working in Android (target OS) and came across some issue. 

In Yocto, I was able to get the source to the isp-imx module and make modifications to get the isi driver, ISP config file, etc changes.  However I am not seeing those sources on Android, infact the ISP / ISI modules are prebuilt within the android_build/vendor/nxp/fsl-proprietary/isp/lib64/ directory.

Is the driver located here: https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/isp-imx-4.2.2.15.0.bin that Yocto uses the same that should be used for Android?

If not where do I get the source for the Android variant?

I checked CodeAurora and could not find any repository for these source file.

Thank you,

Chris

0 项奖励
回复
1 解答
1,168 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Yes , if your isi camera driver is working under Linux,you need follow 8.1 Camera configuration https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf in android.

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,181 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

ISP Hal code :android_build/vendor/nxp-opensource/imx/libcamera3/ISPCamera.cpp

Actually the HAL code is still call the kernel driver.So if your kernel driver is no problem, the android should be very easy.

0 项奖励
回复
1,173 次查看
chrispeterson
Contributor IV

@Zhiming_Liu 

Are you saying that I do not need to worry about the <sensor>.yml and <sensor>.drv files when running Android? 

Thank you,

Chris

0 项奖励
回复
1,169 次查看
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Yes , if your isi camera driver is working under Linux,you need follow 8.1 Camera configuration https://www.nxp.com/docs/en/user-guide/ANDROID_USERS_GUIDE.pdf in android.

0 项奖励
回复