How to compile ISP-IMX for Android ?

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

How to compile ISP-IMX for Android ?

Jump to solution
882 Views
DVideray
Contributor I

Working on adding new camera to iMX8MPlus ISP-IMX v4.2.2.19.0 for NXP/AOSP/Android13 and follow instructions from https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-Android-Frequently-Asked-Questions/... and stuck at building ISP-IMX (step 2.5) . Looks like NXP package missing sources for AEC, AF, AWB and other modules.

Am I doing something wrong and how to proceed ?

Thanks in advance!

 

 

To build for ANDROID, please follow below steps:

1. Install android sdk r21. If the sdk is already installed, go the next step.
   1) cd /opt
   2) sudo wget https://dl.google.com/android/repository/android-ndk-r21-linux-x86_64.zip
   3) sudo unzip android-ndk-r21-linux-x86_64.zip

2. Generate Makefile
   1) cd appshell
   2) mkdir build-android
   3) cp android-build.sh build-android
   4) cd build-android
   5) ./android-build.sh

3. Build
   1) make

 

 

 

0 Kudos
Reply
1 Solution
817 Views
joanxie
NXP TechSupport
NXP TechSupport

firstly you need porting your camera correctly, then you can use this tool, if you use android 13, it should be isp-imx-4.2.2.22.0.bin, try to use the correct version and test again

View solution in original post

0 Kudos
Reply
3 Replies
843 Views
joanxie
NXP TechSupport
NXP TechSupport

if you need to use AEC, AF, you need to use vvext tool, for example

In the Command Prompt window, type:

export LD_LIBRARY_PATH=$pwd:$LD_LIBRARY_PATH

./vvext <video_id>

 

where <video_id> specifies the video device number in the /dev folder (e.g., video1, video2, …, video 9).

 

The following menu should appear in the Command Prompt window.

 

joanxie_0-1698913127969.png

 

 

0 Kudos
Reply
835 Views
DVideray
Contributor I

I got new camera sensor to work in Yocto and now porting it to Android 13, so I'm following NXP HowTo and got stuck at building ISP-IMX for Android.

 

8.5 New sensor lib update
8.5.1 Build sensor lib

     The default sensor is basler. If use new sensor, you need build your own libMySensor.so to implement interfaces in isi_iss.h.

      You should got ISP code package by "wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/isp-imx-4.2.2.15.0.bin". Note: the "isp-imx-4.2.2.15.0.bin" should be replaced the version you used.

       Follow appshell/readme_android.txt to build the lib.

 

 

And, btw, vvext /dev/video2 closing silently somehow ( see log below). Any ideas why ?

 

1|imx8mp-var-dart:/ # dmesg | grep video
[    0.498851] videodev: Linux video capture interface: v2.00
[    1.132965] usbcore: registered new interface driver uvcvideo
[    5.050320] enter viv_video_init_module
[    5.338626] mx8-img-md: Registered mxc_isi.0.capture as /dev/video2
imx8mp-var-dart:/ # vvext /dev/video2
1|imx8mp-var-dart:/ #

 

0 Kudos
Reply
818 Views
joanxie
NXP TechSupport
NXP TechSupport

firstly you need porting your camera correctly, then you can use this tool, if you use android 13, it should be isp-imx-4.2.2.22.0.bin, try to use the correct version and test again

0 Kudos
Reply