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

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

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

Jump to solution
1,141 Views
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 Kudos
1 Solution
1,121 Views
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.

View solution in original post

0 Kudos
3 Replies
1,134 Views
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 Kudos
1,126 Views
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 Kudos
1,122 Views
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 Kudos