This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem in Connecting USB Camera



Hello All,
                 I am currently working under USB Camera interfacing, So i have am335x_sk with android ICS 4.0.3 and the Camera Model is of webcam pro 9000. When i used to connect the webcam it seems to be attached in /dev/input/event2.But the TI ICS Porting guide refers to be connected in /dev/video0.The Problem which i am facing is that when i used to open it is not opening properly eventhough if i changed the permission for the device. And automatically the camera application stops.

The logcat information for camera as follows,

I/ServiceManager( 132): Waiting for service media.audio_flinger...
E/audio_hw_primary( 691): Unable to open the mixer, aborting.
E/AudioFlinger( 691): couldn't open audio hw device in audio.primary (Invalid argument)
I/AudioFlinger( 691): Loaded a2dp audio interface from A2DP Audio HW HAL (audio)
I/AudioFlinger( 691): Using 'A2DP Audio HW HAL' (audio.a2dp) as the primary audio interface
I/CameraService( 691): CameraService started (pid=691)
E/AudioPolicyManagerBase( 691): Failed to initialize hardware output stream, samplingRate: 0, format 0, channels 0
E/AudioPolicyService( 691): couldn't init_check the audio policy (No such device)
D/dalvikvm( 692): GC_FOR_ALLOC freed 170K, 5% free 6632K/6919K, paused 71ms
I/dalvikvm-heap( 692): Grow heap (frag case) to 7.342MB for 830224-byte allocation
D/dalvikvm( 692): GC_CONCURRENT freed 2K, 5% free 7441K/7751K, paused 3ms+3ms
D/dalvikvm( 692): GC_FOR_ALLOC freed 15K, 4% free 7464K/7751K, paused 22ms
I/dalvikvm-heap( 692): Grow heap (frag case) to 7.679MB for 331516-byte allocation
D/dalvikvm( 692): GC_FOR_ALLOC freed 1K, 5% free 7786K/8135K, paused 23ms
D/dalvikvm( 692): GC_FOR_ALLOC freed <1K, 5% free 7787K/8135K, paused 23ms
I/dalvikvm-heap( 692): Grow heap (frag case) to 7.994MB for 331516-byte allocation
D/dalvikvm( 692): GC_FOR_ALLOC freed <1K, 5% free 8110K/8519K, paused 22ms
D/dalvikvm( 692): GC_FOR_ALLOC freed 5K, 5% free 8127K/8519K, paused 22ms
I/dalvikvm-heap( 692): Grow heap (frag case) to 8.327MB for 331516-byte allocation
D/dalvikvm( 692): GC_FOR_ALLOC freed <1K, 6% free 8450K/8903K, paused 22ms
D/dalvikvm( 692): GC_FOR_ALLOC freed <1K, 6% free 8450K/8903K, paused 23ms
I/dalvikvm-heap( 692): Grow heap (frag case) to 8.642MB for 331516-byte allocation
D/dalvikvm( 692): GC_FOR_ALLOC freed <1K, 6% free 8774K/9287K, paused 22ms
D/****CameraHAL( 691): cameraHal BACK 0
D/****CameraHAL( 691): cameraHal 0
V/CameraHolder( 692): open camera 0
D/****CameraHAL( 691): cameraHal BACK 0
D/****CameraHAL( 691): cameraHal 0
I/CameraService( 691): Opening camera 0
I/****CameraHAL( 691): camera_device open
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:320,height:240
D/CameraHardware( 691): picture width:320,height:240
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
D/CameraHardware( 691): enableMsgType:1037
E/OMXMaster( 691): OMX plugin failed w/ error 0x80001001 after registering 0 components
I/AwesomePlayer( 691): setDataSource_l('/system/media/audio/ui/camera_click.ogg')
I/AwesomePlayer( 691): setDataSource_l('/system/media/audio/ui/VideoRecord.ogg')
W/AudioSystem( 132): AudioFlinger not published, waiting...
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:320,height:240
D/CameraHardware( 691): picture width:320,height:240
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:320,height:240
D/CameraHardware( 691): picture width:320,height:240
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
D/Camera ( 692): app passed NULL surface
D/****CameraHAL( 691): cameraHal BACK 0
D/****CameraHAL( 691): cameraHal 0
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:320,height:240
D/CameraHardware( 691): picture width:320,height:240
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:640,height:480
D/CameraHardware( 691): picture width:640,height:480
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 640 x 480
D/CameraHardware( 691): Preview Resolution by CamHAL 640 x 480
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:640,height:480
D/CameraHardware( 691): picture width:640,height:480
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 640 x 480
D/CameraHardware( 691): Preview Resolution by CamHAL 640 x 480
V/camera ( 692): Preview size is 640x480
D/CameraHardware( 691): Set Parameter...!!
D/CameraHardware( 691): PreviewFormat yuv422sp
D/CameraHardware( 691): PictureFormat jpeg
D/CameraHardware( 691): preview width:640,height:480
D/CameraHardware( 691): picture width:640,height:480
D/CameraHardware( 691): FRAMERATE 15
D/CameraHardware( 691): Picture Size by CamHAL 640 x 480
D/CameraHardware( 691): Preview Resolution by CamHAL 640 x 480
V/camera ( 692): startPreview
W/****CameraHAL( 691): ----Preview not Enabled----
W/****CameraHAL( 691): window is NULL
W/CameraHardware( 691): Window is Null
D/CameraHardware( 691): startPreview width:640,height:480
D/V4L2Camera( 691): CameraConfigure PreviewFormat: w=176 h=144
V/camera ( 692): surfaceChanged. w=907. h=680
W/****CameraHAL( 691): ----Preview Enabled----
D/****CameraHAL( 691): Exiting the function
W/AudioSystem( 132): AudioPolicyService server died!
W/AudioPolicyManagerBase( 691): getOutput() could not find output for stream 1, samplingRate 0, format 0, channels 3, flags 0
W/AudioPolicyManagerBase( 691): getOutput() could not find output for stream 1, samplingRate 0, format 0, channels 3, flags 0
W/AudioPolicyManagerBase( 691): getOutput() could not find output for stream 1, samplingRate 0, format 0, channels 3, flags 0
E/SoundPool( 132): Error creating AudioTrack
E/AudioService( 132): Media server started.
W/AudioPolicyManagerBase( 691): setPhoneState() setting same state 0
F/libc ( 691): Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1)
F/libc ( 691): Fatal signal 11 (SIGSEGV) at 0x41da3002 (code=1)
I/ActivityManager( 132): Displayed com.android.camera/.Camera: +2s400ms
W/InputManagerService( 132): Starting input on non-focused client com.android.internal.view.IInputMethodClient$Stub$Proxy@41338298 (uid=10035 pid=322)
D/ ( 132): int poll__setDelay(sensors_poll_device_t*, int, int64_t)[252]
D/ ( 132): int sensors_poll_context_t::setDelay(int, int64_t)[182]
D/ ( 132): int sensors_poll_context_t::setDelay(int, int64_t)[184],index:0x0
D/ ( 132): int poll__setDelay(sensors_poll_device_t*, int, int64_t)[252]
D/ ( 132): int sensors_poll_context_t::setDelay(int, int64_t)[182]
D/ ( 132): int sensors_poll_context_t::setDelay(int, int64_t)[184],index:0x0
D/CameraStorage( 692): External storage state=mounted
I/Thumbnail( 692): Fail to load bitmap. java.io.FileNotFoundException: /data/data/com.android.camera/files/last_thumb: open failed: ENOENT (No such file or directory)
I/DEBUG ( 66): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 66): Build fingerprint: 'Android/am335xevm_sk/am335xevm_sk:4.0.3/IML74K/eng.x0179557.20120730.115104:eng/test-keys'
I/DEBUG ( 66): pid: 691, tid: 711 >>> /system/bin/mediaserver <<<
I/DEBUG ( 66): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr fffffff4
I/DEBUG ( 66): r0 fffffff4 r1 00000004 r2 00000000 r3 4119cc04
I/DEBUG ( 66): r4 00010068 r5 00000000 r6 00000000 r7 00000000
I/DEBUG ( 66): r8 4119cdf0 r9 000002b3 10 000003f5 fp 00000000
I/DEBUG ( 66): ip 4109c5a4 sp 4119cc00 lr 40052291 pc 41097cb0 cpsr 00000030
I/DEBUG ( 66): d0 40e191340000003c d1 0000000800000391
I/DEBUG ( 66): d2 000000ac000000e1 d3 0002592800000040
I/DEBUG ( 66): d4 004600490044004f d5 00550041005f0059
I/DEBUG ( 66): d6 005f004f00490044 d7 0054005400450053
I/DEBUG ( 66): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 66): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 66): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 66): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 66): d16 41a247182d16872b d17 3f50624dd2f1a9fc
I/DEBUG ( 66): d18 41b3587e10000000 d19 0000000000000000
I/DEBUG ( 66): d20 0000000000000000 d21 0000000000000000
I/DEBUG ( 66): d22 0000000000000000 d23 0000000000000000
I/DEBUG ( 66): d24 0000000000000000 d25 0000000000000000
I/DEBUG ( 66): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 66): d28 0000000000000000 d29 0000000000000000
I/DEBUG ( 66): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 66): scr 00000010
I/DEBUG ( 66):
I/DEBUG ( 66): #00 pc 00006cb0 /system/lib/hw/audio_policy.default.so (_ZN20android_audio_legacy22AudioPolicyManagerBase12getNewDeviceEib)
I/DEBUG ( 66): #01 pc 00007724 /system/lib/hw/audio_policy.default.so (_ZN20android_audio_legacy22AudioPolicyManagerBase11setForceUseENS_11AudioSystem9force_useENS1_13forced_configE)
I/DEBUG ( 66): #02 pc 00009170 /system/lib/hw/audio_policy.default.so
I/DEBUG ( 66): #03 pc 00034f3e /system/lib/libaudioflinger.so (_ZN7android18AudioPolicyService11setForceUseE24audio_policy_force_use_t25audio_policy_forced_cfg_t)
I/DEBUG ( 66): #04 pc 00047626 /system/lib/libmedia.so (_ZN7android20BnAudioPolicyService10onTransactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 66): #05 pc 00033408 /system/lib/libaudioflinger.so (_ZN7android18AudioPolicyService10onTransactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 66): #06 pc 00017ec0 /system/lib/libbinder.so (_ZN7android7BBinder8transactEjRKNS_6ParcelEPS1_j)
I/DEBUG ( 66): #07 pc 0001b1ea /system/lib/libbinder.so (_ZN7android14IPCThreadState14executeCommandEi)
I/DEBUG ( 66): #08 pc 0001b3c6 /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb)
I/DEBUG ( 66): #09 pc 000206a4 /system/lib/libbinder.so
I/DEBUG ( 66): #10 pc 00021196 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv)
I/DEBUG ( 66): #11 pc 000217dc /system/lib/libutils.so
I/DEBUG ( 66): #12 pc 00012be4 /system/lib/libc.so (__thread_entry)
I/DEBUG ( 66): #13 pc 00012738 /system/lib/libc.so (pthread_create)
I/DEBUG ( 66):
I/DEBUG ( 66): code around pc:
I/DEBUG ( 66): 41097c90 83fee8bd 00002e02 ab02b5f7 f1004604 .............F..
I/DEBUG ( 66): 41097ca0 f8430014 46191d04 f7ff4615 2104fdf7 ..C....F.F.....!
I/DEBUG ( 66): 41097cb0 46306806 fd26f7ff b1186823 46206f5b .h0F..&.#h..[o F
I/DEBUG ( 66): 41097cc0 e0272104 1084f8d3 47884620 4630b928 .!'..... F.G(.0F
I/DEBUG ( 66): 41097cd0 f7ff2101 2800fd17 6820d01f 6f432101 .!.....(.. h.!Co
I/DEBUG ( 66):
I/DEBUG ( 66): code around lr:
I/DEBUG ( 66): 40052270 bf00bd10 0000bd54 ffffffcc 4ff8e92d ....T.......-..O
I/DEBUG ( 66): 40052280 68874605 46904689 a004f8d0 faa4f7f8 .F.h.F.F........
I/DEBUG ( 66): 40052290 24003f01 e0144683 68281b39 eb01464a .?.$.F..9.(hJF..
I/DEBUG ( 66): 400522a0 6c0376d1 eb044628 fb0b0666 4798a106 .v.l(F..f......G
I/DEBUG ( 66): 400522b0 d1022800 46304634 da01e007 e0001c74 .(..4F0F....t...
I/DEBUG ( 66):
I/DEBUG ( 66): memory map around addr fffffff4:
I/DEBUG ( 66): ffff0000-ffff1000 [vectors]
I/DEBUG ( 66): (no map for address)
I/DEBUG ( 66): (no map above)
I/DEBUG ( 66):
I/DEBUG ( 66): stack:
I/DEBUG ( 66): 4119cbc0 4119cc04
I/DEBUG ( 66): 4119cbc4 0001007c [heap]
I/DEBUG ( 66): 4119cbc8 00000000
I/DEBUG ( 66): 4119cbcc 00000000
I/DEBUG ( 66): 4119cbd0 00000000
I/DEBUG ( 66): 4119cbd4 4119cdf0
I/DEBUG ( 66): 4119cbd8 000002b3
I/DEBUG ( 66): 4119cbdc 000003f5
I/DEBUG ( 66): 4119cbe0 00000000
I/DEBUG ( 66): 4119cbe4 400522ed /system/lib/libutils.so
I/DEBUG ( 66): 4119cbe8 0001007c [heap]
I/DEBUG ( 66): 4119cbec 410978af /system/lib/hw/audio_policy.default.so
I/DEBUG ( 66): 4119cbf0 00000000
I/DEBUG ( 66): 4119cbf4 4119cc04
I/DEBUG ( 66): 4119cbf8 df0027ad
I/DEBUG ( 66): 4119cbfc 00000000
I/DEBUG ( 66): #00 4119cc00 00010068 [heap]
I/DEBUG ( 66): 4119cc04 00000000
I/DEBUG ( 66): 4119cc08 00000000
I/DEBUG ( 66): 4119cc0c 00000001
I/DEBUG ( 66): 4119cc10 00010068 [heap]
I/DEBUG ( 66): 4119cc14 00000000
I/DEBUG ( 66): 4119cc18 00000000
I/DEBUG ( 66): 4119cc1c 41098729 /system/lib/hw/audio_policy.default.so
I/DEBUG ( 66): #01 4119cc20 000258c0 [heap]
I/DEBUG ( 66): 4119cc24 00000000
I/DEBUG ( 66): 4119cc28 00000000
I/DEBUG ( 66): 4119cc2c 00000000
I/DEBUG ( 66): 4119cc30 4119cdf0
I/DEBUG ( 66): 4119cc34 000002b3
I/DEBUG ( 66): 4119cc38 000003f5
I/DEBUG ( 66): 4119cc3c 4011eea3 /system/lib/libc.so
I/DEBUG ( 66): 4119cc40 000258c0 [heap]
I/DEBUG ( 66): 4119cc44 4004f37b /system/lib/libutils.so
I/DEBUG ( 66): 4119cc48 4119cc64
I/DEBUG ( 66): 4119cc4c 4119cc64
I/DEBUG ( 66): 4119cc50 00000000
I/DEBUG ( 66): 4119cc54 4004fd57 /system/lib/libutils.so
I/DEBUG ( 66): 4119cc58 0000fcd8 [heap]
I/DEBUG ( 66): 4119cc5c 0000fcec [heap]
I/DEBUG ( 66): 4119cc60 00000000
I/DEBUG ( 66): 4119cc64 00000000
I/DEBUG ( 66): 4119cc68 4119cdf0
I/DEBUG ( 66): 4119cc6c 4109a173 /system/lib/hw/audio_policy.default.so
E/uim-sysfs( 726): uim: Inside main
E/uim-sysfs( 726): uim:BT/FM/GPS would be unavailable on system
I/BootReceiver( 132): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
I/DEBUG ( 66): tid 720 does not exist in pid 691. ignoring debug request
W/AudioSystem( 132): AudioFlinger server died!
W/AudioSystem( 132): AudioPolicyService server died!
I/ServiceManager( 62): service 'media.audio_flinger' died
I/ServiceManager( 62): service 'media.player' died
I/ServiceManager( 62): service 'media.camera' died
I/ServiceManager( 62): service 'media.audio_policy' died
W/Camera ( 692): Camera server died!
W/Camera ( 692): ICamera died
I/ServiceManager( 132): Waiting for service media.audio_policy...
E/Camera ( 692): Error 100
E/CameraErrorCallback( 692): Got camera error callback. error=100
D/AndroidRuntime( 692): Shutting down VM
W/dalvikvm( 692): threadid=1: thread exiting with uncaught exception (group=0x40a7c1f8)
E/AndroidRuntime( 692): FATAL EXCEPTION: main
E/AndroidRuntime( 692): java.lang.RuntimeException: Media server died.
E/AndroidRuntime( 692): at com.android.camera.CameraErrorCallback.onError(CameraErrorCallback.java:31)
E/AndroidRuntime( 692): at android.hardware.Camera$EventHandler.handleMessage(Camera.java:736)
E/AndroidRuntime( 692): at android.os.Handler.dispatchMessage(Handler.java:99)
E/AndroidRuntime( 692): at android.os.Looper.loop(Looper.java:137)
E/AndroidRuntime( 692): at android.app.ActivityThread.main(ActivityThread.java:4424)
E/AndroidRuntime( 692): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 692): at java.lang.reflect.Method.invoke(Method.java:511)
E/AndroidRuntime( 692): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
E/AndroidRuntime( 692): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
E/AndroidRuntime( 692): at dalvik.system.NativeStart.main(Native Method)
D/dalvikvm( 132): GC_CONCURRENT freed 349K, 11% free 8961K/10055K, paused 4ms+21ms
D/dalvikvm( 132): GC_FOR_ALLOC freed 228K, 10% free 9053K/10055K, paused 65ms
D/dalvikvm( 132): GC_FOR_ALLOC freed 427K, 13% free 8759K/10055K, paused 51ms
W/ActivityManager( 132): Force finishing activity com.android.camera/.Camera
W/ActivityManager( 132): Activity pause timeout for ActivityRecord{41244170 com.android.camera/.Camera}
I/ServiceManager( 132): Waiting for service media.audio_policy...
I/ ( 727): ServiceManager: 0xf958
E/audio_hw_primary( 727): Unable to open the mixer, aborting.
E/AudioFlinger( 727): couldn't open audio hw device in audio.primary (Invalid argument)
I/AudioFlinger( 727): Loaded a2dp audio interface from A2DP Audio HW HAL (audio)
I/AudioFlinger( 727): Using 'A2DP Audio HW HAL' (audio.a2dp) as the primary audio interface
I/CameraService( 727): CameraService started (pid=727)
E/AudioPolicyManagerBase( 727): Failed to initialize hardware output stream, samplingRate: 0, format 0, channels 0
E/AudioPolicyService( 727): couldn't init_check the audio policy (No such device)
D/dalvikvm( 322): GC_FOR_ALLOC freed 4816K, 34% free 12425K/18759K, paused 43ms
D/dalvikvm( 322): GC_FOR_ALLOC freed 914K, 31% free 13038K/18759K, paused 84ms
D/dalvikvm( 322): GC_FOR_ALLOC freed 1331K, 29% free 13325K/18759K, paused 37ms
I/dalvikvm-heap( 322): Grow heap (frag case) to 15.252MB for 2274192-byte allocation
F/libc ( 727): Fatal signal 11 (SIGSEGV) at 0xfffffff4 (code=1)

Faster in reply would helps me to get better result.

                                        Thanks in advance.

  • Hi

    kala yoganandhan said:

    D/CameraHardware( 691): Set Parameter...!!

    D/CameraHardware( 691): PreviewFormat yuv422sp
    D/CameraHardware( 691): PictureFormat jpeg
    D/CameraHardware( 691): preview width:320,height:240
    D/CameraHardware( 691): picture width:320,height:240
    D/CameraHardware( 691): FRAMERATE 15
    D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware( 691): Set Parameter...!!
    D/CameraHardware( 691): PreviewFormat yuv422sp
    D/CameraHardware( 691): PictureFormat jpeg
    D/CameraHardware( 691): preview width:320,height:240
    D/CameraHardware( 691): picture width:320,height:240
    D/CameraHardware( 691): FRAMERATE 15
    D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
    D/Camera ( 692): app passed NULL surface
    D/****CameraHAL( 691): cameraHal BACK 0
    D/****CameraHAL( 691): cameraHal 0
    D/CameraHardware( 691): Set Parameter...!!
    D/CameraHardware( 691): PreviewFormat yuv422sp
    D/CameraHardware( 691): PictureFormat jpeg
    D/CameraHardware( 691): preview width:320,height:240
    D/CameraHardware( 691): picture width:320,height:240
    D/CameraHardware( 691): FRAMERATE 15
    D/CameraHardware( 691): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 691): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware( 691): Set Parameter...!!
    D/CameraHardware( 691): PreviewFormat yuv422sp
    D/CameraHardware( 691): PictureFormat jpeg
    D/CameraHardware( 691): preview width:640,height:480
    D/CameraHardware( 691): picture width:640,height:480
    D/CameraHardware( 691): FRAMERATE 15
    D/CameraHardware( 691): Picture Size by CamHAL 640 x 480
    D/CameraHardware( 691): Preview Resolution by CamHAL 640 x 480
    D/CameraHardware( 691): Set Parameter...!!
    D/CameraHardware( 691): PreviewFormat yuv422sp
    D/CameraHardware( 691): PictureFormat jpeg
    D/CameraHardware( 691): preview width:640,height:480
    D/CameraHardware( 691): picture width:640,height:480
    D/CameraHardware( 691): FRAMERATE 15
    D/CameraHardware( 691): Picture Size by CamHAL 640 x 480
    D/CameraHardware( 691): Preview Resolution by CamHAL 640 x 480
    V/camera ( 692): Preview size is 640x480
    D/CameraHardware( 691): Set Parameter...!!
    D/CameraHardware( 691): PreviewFormat yuv422sp
    D/CameraHardware( 691): PictureFormat jpeg
    D/CameraHardware( 691): preview width:640,height:480
    D/CameraHardware( 691): picture width:640,height:480
    D/CameraHardware( 691): FRAMERATE 15
    D/CameraHardware( 691): Picture Size by CamHAL 640 x 480
    D/CameraHardware( 691): Preview Resolution by CamHAL 640 x 480
    V/camera ( 692): startPreview
    W/****CameraHAL( 691): ----Preview not Enabled----
    W/****CameraHAL( 691): window is NULL
    W/CameraHardware( 691): Window is Null
    D/CameraHardware( 691): startPreview width:640,height:480
    D/V4L2Camera( 691): CameraConfigure PreviewFormat: w=176 h=144
    V/camera ( 692): surfaceChanged. w=907. h=680
    W/****CameraHAL( 691): ----Preview Enabled----
    D/****CameraHAL( 691): Exiting the function

    From the logcat  output you posted, it looks like video device node is getting created and opened properly.

    Have you done any modification to camera application or Hardware abstraction layer (hardware/ti/omap3/camera folder) ?

    Regards,

    Pankaj

  • Hi,

             Thanks for your reply, for connecting USB Camera i used the prebuilt for am335xevm_sk with Android ICS 4.0.3. Is there any changes to be done in source file. For me the camera appeared  in /dev/input/event2. 

                             Is there any solution to avoid the issues for USB Camera interfacing.

                                                                  Thanks in advance.

  • Hi,

    Apart from /dev/input/event2 entry, /dev/video0 entry will also get created.

    Please confirm wether you can see /dev/video0 entry from board console.

    # ls /dev/video0


    Can you check whether USB camera works with JellyBean Prebuilt image available at below location
    (Under "Pre-built Images" section).

    http://downloads.ti.com/sitara_android/esd/TI_Android_DevKit/TI_Android_JB_4_2_2_DevKit_4_1_1/index_FDS.html


    Regards,

    Pankaj Bharadiya

  • Hello Pankaj,

                         Thanks for your response. Apart from /dev/input/event3 ,the /dev/video0 is also created.

    As i followed your suggestion with the above mentioned post. I used am335xevm_sk with android jb 4.2.2 but when i open with my camera UI nothing to be appeared on the screen  and closes up shortly. Eventhough i changed the permission for /dev/input/event3 and /dev/video0.

    The logcat information found to be appeared as follows,


    D/****CameraHAL( 940): cameraHal BACK 0
    D/****CameraHAL( 940): cameraHal 0
    V/CameraHolder( 963): open camera 0
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/****CameraHAL( 940): cameraHal BACK 0
    D/****CameraHAL( 940): cameraHal 0
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/dalvikvm( 963): GC_CONCURRENT freed 442K, 14% free 3764K/4376K, paused 4ms+8ms, total 75ms
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    I/AwesomePlayer( 940): setDataSource_l(URL suppressed)
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/WVMExtractor( 940): Failed to open libwvm.so
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    I/AwesomePlayer( 940): setDataSource_l(URL suppressed)
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/WVMExtractor( 940): Failed to open libwvm.so
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    I/CameraClient( 940): Opening camera 0
    I/****CameraHAL( 940): camera_device open
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/CameraHardware( 940): Set Parameter...!!
    D/CameraHardware( 940): PreviewFormat yuv422sp
    D/CameraHardware( 940): PictureFormat jpeg
    D/CameraHardware( 940): preview width:320,height:240
    D/CameraHardware( 940): picture width:320,height:240
    D/CameraHardware( 940): FRAMERATE 15
    D/CameraHardware( 940): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 940): Preview Resolution by CamHAL 320 x 240
    D/CameraHardware( 940): enableMsgType:3085
    D/CameraHardware( 940): Set Parameter...!!
    D/CameraHardware( 940): PreviewFormat yuv422sp
    D/CameraHardware( 940): PictureFormat jpeg
    D/CameraHardware( 940): preview width:320,height:240
    D/CameraHardware( 940): picture width:320,height:240
    D/CameraHardware( 940): FRAMERATE 15
    D/CameraHardware( 940): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 940): Preview Resolution by CamHAL 320 x 240
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/CameraHardware( 940): Set Parameter...!!
    D/CameraHardware( 940): PreviewFormat yuv422sp
    D/CameraHardware( 940): PictureFormat jpeg
    D/CameraHardware( 940): preview width:320,height:240
    D/CameraHardware( 940): picture width:320,height:240
    D/CameraHardware( 940): FRAMERATE 15
    D/CameraHardware( 940): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 940): Preview Resolution by CamHAL 320 x 240
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    V/StateManager( 963): startState class com.android.gallery3d.app.PhotoPage
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    V/NFC ( 963): this device does not have NFC support
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/uim-sysfs( 989): uim: Inside main
    E/uim-sysfs( 989): uim:BT/FM/GPS would be unavailable on system
    D/CameraHardware( 940): Set Parameter...!!
    D/CameraHardware( 940): PreviewFormat yuv422sp
    D/CameraHardware( 940): PictureFormat jpeg
    D/CameraHardware( 940): preview width:320,height:240
    D/CameraHardware( 940): picture width:320,height:240
    D/CameraHardware( 940): FRAMERATE 15
    D/CameraHardware( 940): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 940): Preview Resolution by CamHAL 320 x 240
    V/CAM_PhotoModule( 963): Preview size is 320x240
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/CameraHardware( 940): Set Parameter...!!
    D/CameraHardware( 940): PreviewFormat yuv422sp
    D/CameraHardware( 940): PictureFormat jpeg
    D/CameraHardware( 940): preview width:320,height:240
    D/CameraHardware( 940): picture width:320,height:240
    D/CameraHardware( 940): FRAMERATE 20
    D/CameraHardware( 940): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 940): Preview Resolution by CamHAL 320 x 240
    D/****CameraHAL( 940): cameraHal BACK 0
    D/****CameraHAL( 940): cameraHal 0
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/****CameraHAL( 940): cameraHal BACK 0
    D/****CameraHAL( 940): cameraHal 0
    D/ ( 319): int sensors_poll_context_t::setDelay(int, int64_t)[179],index:0x0
    D/ ( 319): int sensors_poll_context_t::setDelay(int, int64_t)[179],index:0x0
    V/CAM_PhotoModule( 963): Preview size is 320x240
    D/CameraHardware( 940): Set Parameter...!!
    D/CameraHardware( 940): PreviewFormat yuv422sp
    D/CameraHardware( 940): PictureFormat jpeg
    D/CameraHardware( 940): preview width:320,height:240
    D/CameraHardware( 940): picture width:320,height:240
    D/CameraHardware( 940): FRAMERATE 20
    D/CameraHardware( 940): Picture Size by CamHAL 320 x 240
    D/CameraHardware( 940): Preview Resolution by CamHAL 320 x 240
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    I/CAM_ScreenNail( 963): aspect ratio clamping disabled
    I/CAM_ScreenNail( 963): aspect ratio clamping enabled, surfaceTexture scale: 1.0, 1.0
    W/****CameraHAL( 940): ----Preview not Enabled----
    V/CAM_PhotoModule( 963): startPreview
    W/****CameraHAL( 940): ----Preview not Enabled----
    D/****CameraHAL( 940): Exiting the function
    D/CameraHardware( 940): startPreview width:320,height:240
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/V4L2Camera( 940): CameraConfigure PreviewFormat: w=176 h=144
    D/dalvikvm( 963): GC_CONCURRENT freed 241K, 11% free 3931K/4376K, paused 4ms+6ms, total 68ms
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/dalvikvm( 963): WAIT_FOR_CONCURRENT_GC blocked 23ms
    I/dalvikvm-heap( 963): Grow heap (frag case) to 4.250MB for 262160-byte allocation
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/dalvikvm( 963): GC_FOR_ALLOC freed 2K, 10% free 4185K/4636K, paused 50ms, total 51ms
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/ ( 319): int sensors_poll_context_t::setDelay(int, int64_t)[179],index:0x0
    W/SensorService( 319): sensor 00000000 already enabled in connection 0x5c5cca90 (ignoring)
    D/ ( 319): int sensors_poll_context_t::setDelay(int, int64_t)[179],index:0x0
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory

    D/CameraStorage( 963): External storage state=mounted
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    D/libEGL ( 963): loaded /system/lib/egl/libEGL_POWERVR_SGX530_125.so
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory

    D/libEGL ( 963): loaded /system/lib/egl/libGLESv1_CM_POWERVR_SGX530_125.so
    D/libEGL ( 963): loaded /system/lib/egl/libGLESv2_POWERVR_SGX530_125.so
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    F/libc ( 940): Fatal signal 11 (SIGSEGV) at 0x40a7b001 (code=2), thread 992 (CameraPreviewTh)
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    E/audio_hw_primary( 940): pcm_open(out) failed: cannot open device '/dev/snd/pcmC0D0p': No such file or directory
    I/DEBUG ( 66): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG ( 66): Build fingerprint: 'Android/am335xevm_sk/am335xevm_sk:4.2.2/JDQ39/eng.a0393957.20130626.134533:eng/test-keys'
    I/DEBUG ( 66): Revision: '0'
    I/DEBUG ( 66): pid: 940, tid: 992, name: CameraPreviewTh >>> /system/bin/mediaserver <<<
    I/DEBUG ( 66): signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 40a7b001
    D/OpenGLRenderer( 963): Enabling debug mode 0
    I/CAM_ScreenNail( 963): preview layout size: 1024/768
    I/CAM_ScreenNail( 963): aspect ratio clamping enabled, surfaceTexture scale: 1.0, 1.0
    I/GalleryEGLConfigChooser( 963): Config chosen: R8 G8 B8 A8 D24 S8 ID1 CAVEAT12344
    I/GLRootView( 963): onSurfaceChanged: 1024x768, gl10: com.google.android.gles_jni.GLImpl@41266260
    I/GLRootView( 963): layout content pane 1024x768 (compensation 0)
    D/PhotoView( 963): compensation = 0, CameraRelativeFrame = Rect(0, 0 - 0, 0), mCameraRect = Rect(0, 0 - 0, 0)
    D/dalvikvm( 963): GC_FOR_ALLOC freed 109K, 7% free 4315K/4636K, paused 40ms, total 40ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed 4K, 7% free 4586K/4912K, paused 40ms, total 41ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed 300K, 12% free 4479K/5068K, paused 34ms, total 34ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed <1K, 7% free 4755K/5068K, paused 61ms, total 64ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed 300K, 11% free 4650K/5224K, paused 50ms, total 50ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed <1K, 6% free 4926K/5224K, paused 90ms, total 90ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed 300K, 11% free 4819K/5380K, paused 38ms, total 39ms
    D/dalvikvm( 963): GC_FOR_ALLOC freed <1K, 6% free 5095K/5380K, paused 42ms, total 43ms
    I/Choreographer( 963): Skipped 107 frames! The application may be doing too much work on its main thread.
    I/DEBUG ( 66): r0 00000400 r1 40d1a0ac r2 00000004 r3 40d60000
    I/DEBUG ( 66): r4 40a7b000 r5 40d60000 r6 00000000 r7 00000011
    I/DEBUG ( 66): r8 00012004 r9 00000000 sl 00025800 fp 00020600
    I/DEBUG ( 66): ip 00000080 sp 41b50e28 lr 40d16fdb pc 40d16fac cpsr 80001c30
    I/DEBUG ( 66): d0 ffffff9100000080 d1 c060000000000000
    I/DEBUG ( 66): d2 c06bdd2f1a9fbe77 d3 20525672ffffff22
    I/DEBUG ( 66): d4 3ff989374bc6a7f0 d5 c030000000000000
    I/DEBUG ( 66): d6 6576697244207961 d7 ffffff0e00000072
    I/DEBUG ( 66): d8 0000000000000000 d9 0000000000000000
    I/DEBUG ( 66): d10 0000000000000000 d11 0000000000000000
    I/DEBUG ( 66): d12 0000000000000000 d13 0000000000000000
    I/DEBUG ( 66): d14 0000000000000000 d15 0000000000000000
    I/DEBUG ( 66): d16 c06e53e76c8b4395 d17 400024dd2f1a9fbe
    I/DEBUG ( 66): d18 c05bc00000000000 d19 3fd90624dd2f1aa0
    I/DEBUG ( 66): d20 40555c28f5c28f5c d21 3e66376972bea4d0
    I/DEBUG ( 66): d22 3fb0271122ac41c2 d23 bf8388915620e116
    I/DEBUG ( 66): d24 3ff0271122ac41c2 d25 0000000000000000
    I/DEBUG ( 66): d26 0000000000000000 d27 0000000000000000
    I/DEBUG ( 66): d28 0000000000000000 d29 0000000000000000
    I/DEBUG ( 66): d30 0000000000000000 d31 0000000000000000
    I/DEBUG ( 66): scr 60000010
    I/DEBUG ( 66):
    I/DEBUG ( 66): backtrace:
    I/DEBUG ( 66): #00 pc 00006fac /system/lib/hw/camera.omap3.so (convertYUYVtoRGB565(unsigned char*, unsigned char*, int, int)+47)
    I/DEBUG ( 66): #01 pc 00005ea9 /system/lib/hw/camera.omap3.so (android::CameraHardware::previewThread()+184)
    I/DEBUG ( 66): #02 pc 00005f85 /system/lib/hw/camera.omap3.so
    I/DEBUG ( 66): #03 pc 00011267 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
    I/DEBUG ( 66): #04 pc 00010dcd /system/lib/libutils.so
    I/DEBUG ( 66): #05 pc 0000e3b8 /system/lib/libc.so (__thread_entry+72)
    I/DEBUG ( 66): #06 pc 0000dab0 /system/lib/libc.so (pthread_create+160)
    I/DEBUG ( 66):
    I/DEBUG ( 66): stack:
    I/DEBUG ( 66): 41b50de8 40014878
    I/DEBUG ( 66): 41b50dec 40080f15 /system/lib/libc.so (free+12)
    I/DEBUG ( 66): 41b50df0 40214398 /system/lib/libutils.so
    I/DEBUG ( 66): 41b50df4 402afc27 /system/lib/libui.so (android::Fence::~Fence()+14)
    I/DEBUG ( 66): 41b50df8 40014878
    I/DEBUG ( 66): 41b50dfc 40a7932c /system/lib/hw/gralloc.omap3.so
    I/DEBUG ( 66): 41b50e00 00000302
    I/DEBUG ( 66): 41b50e04 40014888
    I/DEBUG ( 66): 41b50e08 41b50e70
    I/DEBUG ( 66): 41b50e0c 40f792dc
    I/DEBUG ( 66): 41b50e10 00000000
    I/DEBUG ( 66): 41b50e14 00000000
    I/DEBUG ( 66): 41b50e18 00000000
    I/DEBUG ( 66): 41b50e1c 402b1549 /system/lib/libui.so (android::GraphicBufferMapper::lock(native_handle const*, int, android::Rect const&, void**)+100)
    I/DEBUG ( 66): 41b50e20 df0027ad
    I/DEBUG ( 66): 41b50e24 00000000
    I/DEBUG ( 66): #00 41b50e28 000000f0
    I/DEBUG ( 66): 41b50e2c 40f792d0
    I/DEBUG ( 66): 41b50e30 40040580
    I/DEBUG ( 66): 41b50e34 00000000
    I/DEBUG ( 66): 41b50e38 40a69000 /dev/video0
    I/DEBUG ( 66): 41b50e3c 40f792dc
    I/DEBUG ( 66): 41b50e40 00100000
    I/DEBUG ( 66): 41b50e44 40037f00
    I/DEBUG ( 66): 41b50e48 00000000
    I/DEBUG ( 66): 41b50e4c 40d15ead /system/lib/hw/camera.omap3.so (android::CameraHardware::previewThread()+188)
    I/DEBUG ( 66): #01 41b50e50 41b50e68
    I/DEBUG ( 66): 41b50e54 00000000
    I/DEBUG ( 66): 41b50e58 00000140
    I/DEBUG ( 66): 41b50e5c 000000f0
    I/DEBUG ( 66): 41b50e60 40014300
    I/DEBUG ( 66): 41b50e64 00000140
    I/DEBUG ( 66): 41b50e68 40d4e000 /dev/pvrsrvkm
    I/DEBUG ( 66): 41b50e6c 402b5034 /system/lib/libui.so
    I/DEBUG ( 66): 41b50e70 00000000
    I/DEBUG ( 66): 41b50e74 00000000
    I/DEBUG ( 66): 41b50e78 00000140
    I/DEBUG ( 66): 41b50e7c 000000f0
    I/DEBUG ( 66): 41b50e80 40037ec8
    I/DEBUG ( 66): 41b50e84 41b50ea0
    I/DEBUG ( 66): 41b50e88 40d19bfc /system/lib/hw/camera.omap3.so
    I/DEBUG ( 66): 41b50e8c 40d19bfc /system/lib/hw/camera.omap3.so
    I/DEBUG ( 66): ........ ........
    I/DEBUG ( 66): #02 41b50e98 40207ead /system/lib/libutils.so (android::BlobCache::getFdCount() const)
    I/DEBUG ( 66): 41b50e9c 4020c269 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+116)
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near r1:
    I/DEBUG ( 66): 40d1a08c 40d14005 40f792d0 00000000 00000000
    I/DEBUG ( 66): 40d1a09c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a0ac 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a0bc 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a0cc 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a0dc 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a0ec 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a0fc 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a10c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a11c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a12c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a13c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a14c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a15c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a16c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40d1a17c 00000000 00000000 00000000 00000000
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near r3:
    I/DEBUG ( 66): 40d5ffe0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d5fff0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60000 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60010 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60020 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60030 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60040 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60050 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60060 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60070 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60080 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60090 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600a0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600b0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600c0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600d0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near r4:
    I/DEBUG ( 66): 40a7afe0 000011e8 000011e8 000011e8 000011e8
    I/DEBUG ( 66): 40a7aff0 000011e8 000011e8 000011e8 000011e8
    I/DEBUG ( 66): 40a7b000 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b010 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b020 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b030 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b040 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b050 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b060 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b070 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b080 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b090 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b0a0 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b0b0 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b0c0 00000000 00000000 00000000 00000000
    I/DEBUG ( 66): 40a7b0d0 00000000 00000000 00000000 00000000
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near r5:
    I/DEBUG ( 66): 40d5ffe0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d5fff0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60000 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60010 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60020 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60030 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60040 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60050 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60060 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60070 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60080 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d60090 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600a0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600b0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600c0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 40d600d0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near r8:
    I/DEBUG ( 66): 00011fe4 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00011ff4 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012004 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012014 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012024 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012034 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012044 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012054 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012064 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012074 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012084 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00012094 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000120a4 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000120b4 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000120c4 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000120d4 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near sl:
    I/DEBUG ( 66): 000257e0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000257f0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025800 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025810 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025820 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025830 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025840 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025850 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025860 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025870 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025880 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00025890 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000258a0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000258b0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000258c0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000258d0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near fp:
    I/DEBUG ( 66): 000205e0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000205f0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020600 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020610 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020620 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020630 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020640 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020650 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020660 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020670 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020680 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 00020690 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000206a0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000206b0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000206c0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66): 000206d0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory near sp:
    I/DEBUG ( 66): 41b50e08 41b50e70 40f792dc 00000000 00000000
    I/DEBUG ( 66): 41b50e18 00000000 402b1549 df0027ad 00000000
    I/DEBUG ( 66): 41b50e28 000000f0 40f792d0 40040580 00000000
    I/DEBUG ( 66): 41b50e38 40a69000 40f792dc 00100000 40037f00
    I/DEBUG ( 66): 41b50e48 00000000 40d15ead 41b50e68 00000000
    I/DEBUG ( 66): 41b50e58 00000140 000000f0 40014300 00000140
    I/DEBUG ( 66): 41b50e68 40d4e000 402b5034 00000000 00000000
    I/DEBUG ( 66): 41b50e78 00000140 000000f0 40037ec8 41b50ea0
    I/DEBUG ( 66): 41b50e88 40d19bfc 40d19bfc 4020bd35 40d15f89
    I/DEBUG ( 66): 41b50e98 40207ead 4020c269 40037ec8 400857eb
    I/DEBUG ( 66): 41b50ea8 40037ec8 40040568 40037ec8 40037f18
    I/DEBUG ( 66): 41b50eb8 4020c1f5 40037ec8 00000000 4020bdcf
    I/DEBUG ( 66): 41b50ec8 00000000 40037f30 41b50ffc 41b50f00
    I/DEBUG ( 66): 41b50ed8 40037f30 4020bd35 40037f00 400823bc
    I/DEBUG ( 66): 41b50ee8 40037f00 41b50f00 bec8d950 40037f30
    I/DEBUG ( 66): 41b50ef8 00000078 40081ab4 41b50f00 40037f30
    I/DEBUG ( 66):
    I/DEBUG ( 66): code around pc:
    I/DEBUG ( 66): 40d16f8c b054f8df 0a42ea4f 4914e021 0804f108
    I/DEBUG ( 66): 40d16f9c 68094479 455b680b bf07462b 78a67827
    I/DEBUG ( 66): 40d16fac 78e67867 f894bf0c f8949003 46399002
    I/DEBUG ( 66): 40d16fbc 7860bf08 bf184632 34047820 fb8ef7ff
    I/DEBUG ( 66): 40d16fcc 46481cab 46324639 f7ff3504 45d0fb87
    I/DEBUG ( 66): 40d16fdc e8bddbdb bf008ff8 00020600 00002eac
    I/DEBUG ( 66): 40d16fec 46c04778 e59fc000 e08cf00f ffffc9d4
    I/DEBUG ( 66): 40d16ffc 46c04778 e59fc000 e08cf00f ffffcbb0
    I/DEBUG ( 66): 40d1700c 7fffce2c 80b107a9 7fffce40 0000027c
    I/DEBUG ( 66): 40d1701c 7fffce4c 00000280 7fffce58 00000284
    I/DEBUG ( 66): 40d1702c 7fffce64 00000288 7fffce70 0000028c
    I/DEBUG ( 66): 40d1703c 7fffce7c 80b0b0b0 7fffce7c 00000288
    I/DEBUG ( 66): 40d1704c 7fffce88 0000028c 7fffce94 00000290
    I/DEBUG ( 66): 40d1705c 7fffcea0 00000294 7fffceac 00000298
    I/DEBUG ( 66): 40d1706c 7fffceb8 0000029c 7fffcec4 000002a0
    I/DEBUG ( 66): 40d1707c 7fffced0 000002a4 7fffcedc 80b0b0b0
    I/DEBUG ( 66):
    I/DEBUG ( 66): code around lr:
    I/DEBUG ( 66): 40d16fb8 46399002 7860bf08 bf184632 34047820
    I/DEBUG ( 66): 40d16fc8 fb8ef7ff 46481cab 46324639 f7ff3504
    I/DEBUG ( 66): 40d16fd8 45d0fb87 e8bddbdb bf008ff8 00020600
    I/DEBUG ( 66): 40d16fe8 00002eac 46c04778 e59fc000 e08cf00f
    I/DEBUG ( 66): 40d16ff8 ffffc9d4 46c04778 e59fc000 e08cf00f
    I/DEBUG ( 66): 40d17008 ffffcbb0 7fffce2c 80b107a9 7fffce40
    I/DEBUG ( 66): 40d17018 0000027c 7fffce4c 00000280 7fffce58
    I/DEBUG ( 66): 40d17028 00000284 7fffce64 00000288 7fffce70
    I/DEBUG ( 66): 40d17038 0000028c 7fffce7c 80b0b0b0 7fffce7c
    I/DEBUG ( 66): 40d17048 00000288 7fffce88 0000028c 7fffce94
    I/DEBUG ( 66): 40d17058 00000290 7fffcea0 00000294 7fffceac
    I/DEBUG ( 66): 40d17068 00000298 7fffceb8 0000029c 7fffcec4
    I/DEBUG ( 66): 40d17078 000002a0 7fffced0 000002a4 7fffcedc
    I/DEBUG ( 66): 40d17088 80b0b0b0 7fffced8 000002a0 7fffcee4
    I/DEBUG ( 66): 40d17098 80b0b0b0 7fffcee0 0000029c 7fffcefc
    I/DEBUG ( 66): 40d170a8 80b0b0b0 7fffcef8 80aab0b0 7fffcf50
    I/DEBUG ( 66):
    I/DEBUG ( 66): memory map around fault addr 40a7b001:
    I/DEBUG ( 66): 40a76000-40a7b000 /system/lib/hw/gralloc.omap3.so
    I/DEBUG ( 66): 40a7b000-40a82000
    I/DEBUG ( 66): 40a82000-40a84000 /system/lib/hw/gralloc.omap3.so
    I/ServiceManager( 61): service 'media.audio_flinger' died
    I/ServiceManager( 61): service 'media.audio_policy' died
    I/ServiceManager( 61): service 'media.player' died
    I/ServiceManager( 61): service 'media.camera' died
    W/AudioSystem( 319): AudioFlinger server died!
    W/AudioSystem( 319): AudioPolicyService server died!
    I/mediaserver( 997): ServiceManager: 0x40f62e30
    I/AudioFlinger( 997): Using default 3000 mSec as standby time.
    I/CameraService( 997): CameraService started (pid=997)
    I/AudioPolicyManagerBase( 997): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
    E/audio_hw_primary( 997): Unable to open the mixer, aborting.
    I/AudioFlinger( 997): loadHwModule() Loaded primary audio interface from Rowboat audio HW HAL (audio) handle 1
    I/AudioFlinger( 997): HAL output buffer size 880 frames, normal mix buffer size 1056 frames
    I/AudioMixer( 997): found effect "Multichannel Downmix To Stereo" from The Android Open Source Project
    E/MonoPipe( 997): Failed to fetch local time frequency when constructing a MonoPipe (res = -32). getNextWriteTimestamp calls will be non-functional
    W/Camera ( 963): ICamera died
    W/Camera ( 963): Camera server died!
    I/AudioFlinger( 997): Using module 1 has the primary audio interface
    I/AudioFlinger( 997): AudioFlinger's thread 0x40f647e8 ready to run
    E/uim-sysfs( 1003): uim: Inside main
    E/uim-sysfs( 1003): uim:BT/FM/GPS would be unavailable on system
    E/AudioService( 319): Media server died.
    I/BootReceiver( 319): Copying /data/tombstones/tombstone_02 to DropBox (SYSTEM_TOMBSTONE)
    I/audio_a2dp_hw( 997): adev_open: adev_open in A2dp_hw module
    I/AudioFlinger( 997): loadHwModule() Loaded a2dp audio interface from A2DP Audio HW HAL (audio) handle 3
    I/AudioPolicyService( 997): Loaded audio policy from LEGACY Audio Policy HAL (audio_policy)
    E/AudioService( 319): Media server started.
    W/AudioPolicyManagerBase( 997): setPhoneState() setting same state 0
    W/ActivityManager( 319): Launch timeout has expired, giving up wake lock!
    W/ActivityManager( 319): Activity idle timeout for ActivityRecord{413a50f8 u0 com.android.gallery3d/com.android.camera.CameraLauncher}
    D/dalvikvm( 319): GC_CONCURRENT freed 373K, 18% free 6374K/7748K, paused 541ms+427ms, total 3446ms
    D/dalvikvm( 319): WAIT_FOR_CONCURRENT_GC blocked 2642ms
    D/dalvikvm( 319): WAIT_FOR_CONCURRENT_GC blocked 1370ms
    D/dalvikvm( 319): WAIT_FOR_CONCURRENT_GC blocked 456ms
    E/uim-sysfs( 1005): uim: Inside main
    E/uim-sysfs( 1005): uim:BT/FM/GPS would be unavailable on system

                    Is there any solution for this issue.

                              Thanks in advance.

  • Hi,

    We have observed similar issue when camera was connected to the board while kernel was booting.

    Please try connecting USB camera after Android has booted successfully.

    Regards,

    Pankaj Bharadiya

  • Hello Pankaj,

                           Thanks for your reply, I followed your suggestion but itseems to be appeared with the similar result . Can you tell me what sort of problem i am facing in interfacing with USB Camera.

                                                                   Thanks 

  • @Kala,

    HW: TI Sitara

    SW: JB

    If you have not yet got the issue resolved check this link

    http://e2e.ti.com/support/arm/sitara_arm/f/791/p/293391/1040250.aspx#1040250

    Short Answer

    Try a USB 2.0 web camera that is UVC compliant

    Change the File permission on /dev/videox. I did a chmod 777 /dev/vidoe0 to get the camera working.

    HTH & Good luck