Adding Camera to Android based IMX53 ARD board

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

Adding Camera to Android based IMX53 ARD board

1,013 Views
Swamy
Contributor III

Hi,

Please help me to configure the camera for Android(2.3.4) based IMX53 ARD board. Currently it crashes if I click the camera app. It says "Sorry!, The application Camera (process com.android.camera) has stopped unexpectedly. Please try again).

I have attached the logcat for this error

===============================

--------- beginning of /dev/log/system
I/ActivityManager( 2186): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.camera/.Camera } from pid 2284
I/SurfaceFlinger( 2186): mHw->getFormat() 4
I/ActivityManager( 2186): Start proc com.android.camera for activity com.android.camera/.Camera: pid=2525 uid=10025 gids={1006, 1015}
W/dalvikvm( 2525): Exception Ljava/lang/NullPointerException; thrown while initializing Lcom/android/camera/CameraSettings;
D/AndroidRuntime( 2525): Shutting down VM
W/dalvikvm( 2525): threadid=1: thread exiting with uncaught exception (group=0x40015560)
E/AndroidRuntime( 2525): FATAL EXCEPTION: main
E/AndroidRuntime( 2525): java.lang.ExceptionInInitializerError
E/AndroidRuntime( 2525):        at com.android.camera.Camera.onCreate(Camera.java:891)
E/AndroidRuntime( 2525):        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1047)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1611)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1663)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.access$1500(ActivityThread.java:117)
E/AndroidRuntime( 2525):        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:931)
E/AndroidRuntime( 2525):        at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 2525):        at android.os.Looper.loop(Looper.java:130)
E/AndroidRuntime( 2525):        at android.app.ActivityThread.main(ActivityThread.java:3683)
E/AndroidRuntime( 2525):        at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 2525):        at java.lang.reflect.Method.invoke(Method.java:507)
E/AndroidRuntime( 2525):        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
E/AndroidRuntime( 2525):        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
E/AndroidRuntime( 2525):        at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime( 2525): Caused by: java.lang.NullPointerException
E/AndroidRuntime( 2525):        at com.android.camera.CameraSettings.<clinit>(CameraSettings.java:63)
E/AndroidRuntime( 2525):        ... 14 more
W/ActivityManager( 2186):   Force finishing activity com.android.camera/.Camera
W/ActivityManager( 2186): Activity pause timeout for HistoryRecord{406e6458 com.android.camera/.Camera}
W/InputManagerService( 2186): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@406c0568
I/Process ( 2525): Sending signal. PID: 2525 SIG: 9
I/ActivityManager( 2186): Process com.android.camera (pid 2525) has died.

Regards,

Swamy

Labels (1)
0 Kudos
3 Replies

686 Views
daiane_angolini
NXP Employee
NXP Employee

There is two places  to go:

<my_android>/devices/fsl

and

<my_android>/hardware/imx/libcamera

please grep for UVC each folder and take a look on how UVC camera works.

For grep command:

grep -irn UVC *

0 Kudos

686 Views
Swamy
Contributor III

I am using inTex (IT-305WC) camera which has a USB interface. But I can buy one if you can tell which camera will support the IMX53 ARD. Preferably I would like to use CSI interface.

I am not sure how to modify the device/fsl, which are the files to check.

Please suggest

Regards,

Swamy

0 Kudos

686 Views
daiane_angolini
NXP Employee
NXP Employee

which camera are you using?

Did you included your camera name on you board config file (inside device/fsl)?

How is the kernel support for this camera?

Is it a CSI or USB camera?

0 Kudos