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.

UVC Camera support on AM170x Linux

Other Parts Discussed in Thread: AM1707, AM1808

Dear all,
Please help us to check this question.
We want to use USB 2.0 Hi-Speed Host on AM1707 to get HD image (+1.3Mpixel) from USB Camera.
It seems that UVC driver on AM170x Linux can get highest resolution from USB Camera. Compare with x86, USB Host driver is EHCI.
But AM170x is musb_hdrc. Is"musb_hdrc" compatible with EHCI? 
Could you please check with TI FAE if they ever found this problem?
Please find the USBCamera_AM1707_LinuxTest as attached file.
Thanks you very much.
Best Regards,
Duanpen Z. 
USBCamera_AM1707_LinuxTest.xlsx
  • Duanpen,

    MUSB Host controller on AM170x platform is totally custom implementation of the USB host controller from Mentor Graphics. Whereas, EHCI is the standard host controller supported by many platforms. So the drivers required for host controller will also be different. 

    Functionally, I believe both EHCI and MUSB is compatible as both of them supports USB 2.0

  • Dear Renjith Thomas,


    Thanks you very much for you help.

    Best Regards,

    Dunapen Z.

  • Hi,

    I want to use USB 2.0 hi-speed Host on my AM1808 to get snap shots from 5M USB camera.

    when i connect my USB camera interface to USB 1.1 host port, the driver found itseems and created the node as /dev/video0.

    But when i am trying to capture the sanpshots using USB camera on my application the preview shows blank screen.

    The same application i tested with VGA camera with USB 1.1 it is working and capturing all the images.

    How can i resolve my issue, is there any USB 2.0 recommendations. How to enable my USB 2.0 in my AM1808.

    Please help me.

    Thanks,
    Lofna

  • Lofna,

    USB 1.1 cannot handle the bandwidth requirements for a 5M camera. You can check you board whether USB 2.0 port is available or not. If so, you can try to connect the camera and see whether its detected or not. If not, try to enable MUSB Host driver in kernel and try again.

  • Hi Renjith,

     

    Thanks for your response.

    I have configured my USB 2.0 as Host and able to detect the Penn Drives. I have connected my 5MP Camera

     

    When I am trying to get the image from 5M USB camera, the below error log appeared.

     

    Please help me.

     

    ------------------------------------------------------------------------------------------

    root@am180x-evm:/home# ./ffmpeg -f video4linux2 -r 2 -s 640x480 -i /dev/video0 640x480.jpg

    ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers

      built on Dec 11 2013 06:18:09 with gcc 4.3.3 (Sourcery G++ Lite 2009q1-203)

      configuration: --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --arch=armel --target-os=linux --prefix=/root/Downloads/ffmpeg-1.2.4/

      libavutil      52. 18.100 / 52. 18.100

      libavcodec     54. 92.100 / 54. 92.100

      libavformat    54. 63.104 / 54. 63.104

      libavdevice    54.  3.103 / 54.  3.103

      libavfilter     3. 42.103 /  3. 42.103

      libswscale      2.  2.100 /  2.  2.100

      libswresample   0. 17.102 /  0. 17.102

    [video4linux2,v4l2 @ 0xfa2470] The V4L2 driver changed the video from 1024x768 to 1280x720

    [video4linux2,v4l2 @ 0xfa2470] The driver changed the time per frame from 1/2 to 1/10

    ffmpeg invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:0000033a r6:00000000 r5:c1d3d5e0 r4:c15c8000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c00963e0>] (dump_header+0x70/0x170)

    [<c0096370>] (dump_header+0x0/0x170) from [<c0096524>] (oom_kill_process+0x44/0xdc)

     r6:00000000 r5:c1d3d5e0 r4:000000d0

    [<c00964e0>] (oom_kill_process+0x0/0xdc) from [<c0096c1c>] (__out_of_memory+0x194/0x1b8)

     r7:c15c8000 r6:0000033a r5:c1d3d5e0 r4:c042f728

    [<c0096a88>] (__out_of_memory+0x0/0x1b8) from [<c0096cf0>] (out_of_memory+0xb0/0x104)

    [<c0096c40>] (out_of_memory+0x0/0x104) from [<c0099c5c>] (__alloc_pages_nodemask+0x418/0x514)

     r6:000000d0 r5:00000000 r4:00000000

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c00b5384>] (__vmalloc_area_node+0xd0/0x130)

    [<c00b52b4>] (__vmalloc_area_node+0x0/0x130) from [<c00b5474>] (__vmalloc_node+0x90/0xac)

    [<c00b53e4>] (__vmalloc_node+0x0/0xac) from [<c00b5514>] (vmalloc_32+0x2c/0x38)

     r7:c3970078 r6:00000020 r5:ffe3e000 r4:03840000

    [<c00b54e8>] (vmalloc_32+0x0/0x38) from [<c02716f4>] (uvc_alloc_buffers+0x78/0x144)

    [<c027167c>] (uvc_alloc_buffers+0x0/0x144) from [<c0272d54>] (uvc_v4l2_do_ioctl+0xca8/0x1000)

    [<c02720ac>] (uvc_v4l2_do_ioctl+0x0/0x1000) from [<c026507c>] (video_usercopy+0x1a4/0x2ac)

    [<c0264ed8>] (video_usercopy+0x0/0x2ac) from [<c0271d84>] (uvc_v4l2_ioctl+0x54/0x68)

    [<c0271d30>] (uvc_v4l2_ioctl+0x0/0x68) from [<c026436c>] (v4l2_ioctl+0x44/0x48)

     r7:c2a29500 r6:bee7a69c r5:c0145608 r4:c2a29500

    [<c0264328>] (v4l2_ioctl+0x0/0x48) from [<c00d09cc>] (vfs_ioctl+0x84/0xb4)

     r7:c2a29500 r6:bee7a69c r5:c0145608 r4:c2a29500

    [<c00d0948>] (vfs_ioctl+0x0/0xb4) from [<c00d1090>] (do_vfs_ioctl+0x594/0x5f0)

     r7:c2a29500 r6:00000003 r5:c2a29500 r4:00000003

    [<c00d0afc>] (do_vfs_ioctl+0x0/0x5f0) from [<c00d112c>] (sys_ioctl+0x40/0x64)

    [<c00d10ec>] (sys_ioctl+0x0/0x64) from [<c004af20>] (ret_fast_syscall+0x0/0x28)

     r7:00000036 r6:00fa2c70 r5:00000000 r4:00000001

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:  17

    active_anon:1086 inactive_anon:1547 isolated_anon:0

     active_file:2 inactive_file:9 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:257 slab_reclaimable:158 slab_unreclaimable:496

     mapped:85 shmem:123 pagetables:89 bounce:0

    DMA free:1028kB min:1016kB low:1268kB high:1524kB active_anon:4344kB inactive_anon:6188kB active_file:8kB inactive_file:36kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:340kB shmem:492kB slab_reclaimable:632kB slab_unreclaimable:1984kB kernel_stack:352kB pagetables:356kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 237*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1028kB

    134 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    366 free pages

    1222 reserved pages

    503 slab pages

    156 pages shared

    0 pages swap cached

    Out of memory: kill process 1115 (matrix_guiE) score 826 or a child

    Killed process 1115 (matrix_guiE) vsz:52868kB, anon-rss:6816kB, file-rss:312kB

    matrix_guiE: page allocation failure. order:0, mode:0x201da

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:00000000 r6:000201da r5:00000000 r4:00000000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c0099cf4>] (__alloc_pages_nodemask+0x4b0/0x514)

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c0093eec>] (read_cache_page_async+0x50/0x164)

    [<c0093e9c>] (read_cache_page_async+0x0/0x164) from [<c0094010>] (read_cache_page+0x10/0x54)

    [<c0094000>] (read_cache_page+0x0/0x54) from [<c0126064>] (ext2_get_page+0x28/0x2a4)

     r5:00000000 r4:00000000

    [<c012603c>] (ext2_get_page+0x0/0x2a4) from [<c0127270>] (ext2_find_entry+0x84/0x1f8)

    [<c01271ec>] (ext2_find_entry+0x0/0x1f8) from [<c01273fc>] (ext2_inode_by_name+0x18/0x3c)

    [<c01273e4>] (ext2_inode_by_name+0x0/0x3c) from [<c012aad8>] (ext2_lookup+0x2c/0x84)

     r4:00000000

    [<c012aaac>] (ext2_lookup+0x0/0x84) from [<c00cba14>] (do_lookup+0xf8/0x1c0)

     r7:c3a21ec8 r6:c340ef58 r5:c3c34300 r4:00000000

    [<c00cb91c>] (do_lookup+0x0/0x1c0) from [<c00cd86c>] (link_path_walk+0x934/0xde4)

    [<c00ccf38>] (link_path_walk+0x0/0xde4) from [<c00cde90>] (path_walk+0x50/0xa4)

    [<c00cde40>] (path_walk+0x0/0xa4) from [<c00cdf80>] (do_path_lookup+0x2c/0x54)

    [<c00cdf54>] (do_path_lookup+0x0/0x54) from [<c00cebbc>] (do_filp_open+0xc8/0xb6c)

     r7:c3975000 r6:ffffff9c r5:c3a21ec8 r4:00000000

    [<c00ceaf4>] (do_filp_open+0x0/0xb6c) from [<c00c088c>] (do_sys_open+0x64/0x11c)

    [<c00c0828>] (do_sys_open+0x0/0x11c) from [<c00c097c>] (sys_open+0x24/0x28)

    [<c00c0958>] (sys_open+0x0/0x28) from [<c004af20>] (ret_fast_syscall+0x0/0x28)

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:  18

    active_anon:1086 inactive_anon:1547 isolated_anon:0

     active_file:10 inactive_file:0 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:253 slab_reclaimable:146 slab_unreclaimable:496

     mapped:84 shmem:123 pagetables:89 bounce:0

    DMA free:1012kB min:1016kB low:1268kB high:1524kB active_anon:4344kB inactive_anon:6188kB active_file:40kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:336kB shmem:492kB slab_reclaimable:584kB slab_unreclaimable:1984kB kernel_stack:344kB pagetables:356kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:60 all_unreclaimable? yes

    lowmem_reserve[]: 0 0 0

    DMA: 229*4kB 2*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1012kB

    133 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    362 free pages

    1222 reserved pages

    491 slab pages

    155 pages shared

    0 pages swap cached

    testKB_evm.dat invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:0000024d r6:00000000 r5:c1d3cfa0 r4:c2fee000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c00963e0>] (dump_header+0x70/0x170)

    [<c0096370>] (dump_header+0x0/0x170) from [<c0096524>] (oom_kill_process+0x44/0xdc)

     r6:00000000 r5:c1d3cfa0 r4:000201da

    [<c00964e0>] (oom_kill_process+0x0/0xdc) from [<c0096c1c>] (__out_of_memory+0x194/0x1b8)

     r7:c2fee000 r6:0000024d r5:c1d3cfa0 r4:c042f728

    [<c0096a88>] (__out_of_memory+0x0/0x1b8) from [<c0096cf0>] (out_of_memory+0xb0/0x104)

    [<c0096c40>] (out_of_memory+0x0/0x104) from [<c0099c5c>] (__alloc_pages_nodemask+0x418/0x514)

     r6:000201da r5:00000000 r4:00000000

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c009b8ec>] (__do_page_cache_readahead+0x118/0x268)

    [<c009b7d4>] (__do_page_cache_readahead+0x0/0x268) from [<c009ba6c>] (ra_submit+0x30/0x38)

    [<c009ba3c>] (ra_submit+0x0/0x38) from [<c0094244>] (filemap_fault+0x1f0/0x420)

    [<c0094054>] (filemap_fault+0x0/0x420) from [<c00a8754>] (__do_fault+0x54/0x408)

    [<c00a8700>] (__do_fault+0x0/0x408) from [<c00a9cf4>] (handle_mm_fault+0x2d8/0x714)

    [<c00a9a1c>] (handle_mm_fault+0x0/0x714) from [<c005040c>] (do_page_fault+0xf4/0x1e8)

    [<c0050318>] (do_page_fault+0x0/0x1e8) from [<c00505a0>] (do_translation_fault+0x18/0x7c)

    [<c0050588>] (do_translation_fault+0x0/0x7c) from [<c004a244>] (do_PrefetchAbort+0x3c/0x9c)

     r7:c2feffb0 r6:00000005 r5:00000002 r4:c043086c

    [<c004a208>] (do_PrefetchAbort+0x0/0x9c) from [<c004aea4>] (ret_from_exception+0x0/0x10)

    Exception stack(0xc2feffb0 to 0xc2fefff8)

    ffa0:                                     00000001 00000002 00000001 4105e000

    ffc0: ffffffff 00000002 00016880 000fffa0 4112f264 410a0730 000002bc 40d96a98

    ffe0: 000030d0 bedfcbb8 41095cac 41095cac 00000010 ffffffff

     r8:4112f264 r7:000fffa0 r6:00016880 r5:00000002 r4:ffffffff

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:   3

    active_anon:451 inactive_anon:478 isolated_anon:0

     active_file:11 inactive_file:66 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:254 slab_reclaimable:145 slab_unreclaimable:496

     mapped:69 shmem:123 pagetables:64 bounce:0

    DMA free:1016kB min:1016kB low:1268kB high:1524kB active_anon:1804kB inactive_anon:1912kB active_file:44kB inactive_file:264kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:276kB shmem:492kB slab_reclaimable:580kB slab_unreclaimable:1984kB kernel_stack:344kB pagetables:256kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:256 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 234*4kB 0*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1016kB

    200 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    345 free pages

    1222 reserved pages

    490 slab pages

    83 pages shared

    0 pages swap cached

    Out of memory: kill process 1053 (dbus-daemon) score 589 or a child

    Killed process 1053 (dbus-daemon) vsz:2356kB, anon-rss:140kB, file-rss:0kB

    testKB_evm.dat invoked oom-killer: gfp_mask=0x201da, order=0, oom_adj=0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:0000014f r6:00000000 r5:c3849c20 r4:c2fee000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c00963e0>] (dump_header+0x70/0x170)

    [<c0096370>] (dump_header+0x0/0x170) from [<c0096524>] (oom_kill_process+0x44/0xdc)

     r6:00000000 r5:c3849c20 r4:000201da

    [<c00964e0>] (oom_kill_process+0x0/0xdc) from [<c0096c1c>] (__out_of_memory+0x194/0x1b8)

     r7:c2fee000 r6:0000014f r5:c3849c20 r4:c042f728

    [<c0096a88>] (__out_of_memory+0x0/0x1b8) from [<c0096cf0>] (out_of_memory+0xb0/0x104)

    [<c0096c40>] (out_of_memory+0x0/0x104) from [<c0099c5c>] (__alloc_pages_nodemask+0x418/0x514)

     r6:000201da r5:00000000 r4:00000000

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c009b8ec>] (__do_page_cache_readahead+0x118/0x268)

    [<c009b7d4>] (__do_page_cache_readahead+0x0/0x268) from [<c009ba6c>] (ra_submit+0x30/0x38)

    [<c009ba3c>] (ra_submit+0x0/0x38) from [<c0094244>] (filemap_fault+0x1f0/0x420)

    [<c0094054>] (filemap_fault+0x0/0x420) from [<c00a8754>] (__do_fault+0x54/0x408)

    [<c00a8700>] (__do_fault+0x0/0x408) from [<c00a9cf4>] (handle_mm_fault+0x2d8/0x714)

    [<c00a9a1c>] (handle_mm_fault+0x0/0x714) from [<c005040c>] (do_page_fault+0xf4/0x1e8)

    [<c0050318>] (do_page_fault+0x0/0x1e8) from [<c00505a0>] (do_translation_fault+0x18/0x7c)

    [<c0050588>] (do_translation_fault+0x0/0x7c) from [<c004a244>] (do_PrefetchAbort+0x3c/0x9c)

     r7:c2feffb0 r6:00000005 r5:00000002 r4:c043086c

    [<c004a208>] (do_PrefetchAbort+0x0/0x9c) from [<c004aea4>] (ret_from_exception+0x0/0x10)

    Exception stack(0xc2feffb0 to 0xc2fefff8)

    ffa0:                                     00000001 00000002 00000001 4105e000

    ffc0: ffffffff 00000002 00016880 000fffa0 4112f264 410a0730 000002bc 40d96a98

    ffe0: 000030d0 bedfcbb8 41095cac 41095cac 00000010 ffffffff

     r8:4112f264 r7:000fffa0 r6:00016880 r5:00000002 r4:ffffffff

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:  13

    active_anon:419 inactive_anon:475 isolated_anon:0

     active_file:6 inactive_file:7 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:268 slab_reclaimable:145 slab_unreclaimable:496

     mapped:71 shmem:123 pagetables:61 bounce:0

    DMA free:1072kB min:1016kB low:1268kB high:1524kB active_anon:1676kB inactive_anon:1900kB active_file:24kB inactive_file:28kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:284kB shmem:492kB slab_reclaimable:580kB slab_unreclaimable:1984kB kernel_stack:328kB pagetables:244kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:7 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 246*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1072kB

    138 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    364 free pages

    1222 reserved pages

    490 slab pages

    84 pages shared

    0 pages swap cached

    Out of memory: kill process 1357 (testKB_evm.dat) score 335 or a child

    Killed process 1357 (testKB_evm.dat) vsz:21472kB, anon-rss:1588kB, file-rss:264kB

    bug invoked oom-killer: gfp_mask=0xd0, order=1, oom_adj=0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:0000011e r6:00000001 r5:c1c34c80 r4:c21cc000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c00963e0>] (dump_header+0x70/0x170)

    [<c0096370>] (dump_header+0x0/0x170) from [<c0096524>] (oom_kill_process+0x44/0xdc)

     r6:00000001 r5:c1c34c80 r4:000000d0

    [<c00964e0>] (oom_kill_process+0x0/0xdc) from [<c0096c1c>] (__out_of_memory+0x194/0x1b8)

     r7:c21cc000 r6:0000011e r5:c1c34c80 r4:c042f728

    [<c0096a88>] (__out_of_memory+0x0/0x1b8) from [<c0096cf0>] (out_of_memory+0xb0/0x104)

    [<c0096c40>] (out_of_memory+0x0/0x104) from [<c0099c5c>] (__alloc_pages_nodemask+0x418/0x514)

     r6:000000d0 r5:00000000 r4:00000000

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c0099d70>] (__get_free_pages+0x18/0x44)

    [<c0099d58>] (__get_free_pages+0x0/0x44) from [<c005d158>] (copy_process+0xac/0xe0c)

    [<c005d0ac>] (copy_process+0x0/0xe0c) from [<c005e028>] (do_fork+0x170/0x344)

    [<c005deb8>] (do_fork+0x0/0x344) from [<c004df40>] (sys_clone+0x34/0x3c)

    [<c004df0c>] (sys_clone+0x0/0x3c) from [<c004af20>] (ret_fast_syscall+0x0/0x28)

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:   0

    active_anon:134 inactive_anon:291 isolated_anon:0

     active_file:10 inactive_file:0 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:307 slab_reclaimable:139 slab_unreclaimable:496

     mapped:2 shmem:51 pagetables:49 bounce:0

    DMA free:1228kB min:1016kB low:1268kB high:1524kB active_anon:536kB inactive_anon:1164kB active_file:40kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:8kB shmem:204kB slab_reclaimable:556kB slab_unreclaimable:1984kB kernel_stack:320kB pagetables:196kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 285*4kB 1*8kB 1*16kB 0*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 1228kB

    61 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    386 free pages

    1222 reserved pages

    484 slab pages

    12 pages shared

    0 pages swap cached

    Out of memory: kill process 2462 (ffmpeg) score 286 or a child

    Killed process 2462 (ffmpeg) vsz:18348kB, anon-rss:304kB, file-rss:0kB

    ffmpeg: page allocation failure. order:0, mode:0xd0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:00000000 r6:000000d0 r5:003fffff r4:00000000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c0099cf4>] (__alloc_pages_nodemask+0x4b0/0x514)

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c00b5384>] (__vmalloc_area_node+0xd0/0x130)

    [<c00b52b4>] (__vmalloc_area_node+0x0/0x130) from [<c00b5474>] (__vmalloc_node+0x90/0xac)

    [<c00b53e4>] (__vmalloc_node+0x0/0xac) from [<c00b5514>] (vmalloc_32+0x2c/0x38)

     r7:c3970078 r6:00000020 r5:ffe3e000 r4:03840000

    [<c00b54e8>] (vmalloc_32+0x0/0x38) from [<c02716f4>] (uvc_alloc_buffers+0x78/0x144)

    [<c027167c>] (uvc_alloc_buffers+0x0/0x144) from [<c0272d54>] (uvc_v4l2_do_ioctl+0xca8/0x1000)

    [<c02720ac>] (uvc_v4l2_do_ioctl+0x0/0x1000) from [<c026507c>] (video_usercopy+0x1a4/0x2ac)

    [<c0264ed8>] (video_usercopy+0x0/0x2ac) from [<c0271d84>] (uvc_v4l2_ioctl+0x54/0x68)

    [<c0271d30>] (uvc_v4l2_ioctl+0x0/0x68) from [<c026436c>] (v4l2_ioctl+0x44/0x48)

     r7:c2a29500 r6:bee7a69c r5:c0145608 r4:c2a29500

    [<c0264328>] (v4l2_ioctl+0x0/0x48) from [<c00d09cc>] (vfs_ioctl+0x84/0xb4)

     r7:c2a29500 r6:bee7a69c r5:c0145608 r4:c2a29500

    [<c00d0948>] (vfs_ioctl+0x0/0xb4) from [<c00d1090>] (do_vfs_ioctl+0x594/0x5f0)

     r7:c2a29500 r6:00000003 r5:c2a29500 r4:00000003

    [<c00d0afc>] (do_vfs_ioctl+0x0/0x5f0) from [<c00d112c>] (sys_ioctl+0x40/0x64)

    [<c00d10ec>] (sys_ioctl+0x0/0x64) from [<c004af20>] (ret_fast_syscall+0x0/0x28)

     r7:00000036 r6:00fa2c70 r5:00000000 r4:00000001

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:   0

    active_anon:134 inactive_anon:291 isolated_anon:0

     active_file:10 inactive_file:56 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:0 slab_reclaimable:139 slab_unreclaimable:496

     mapped:2 shmem:51 pagetables:49 bounce:0

    DMA free:0kB min:1016kB low:1268kB high:1524kB active_anon:536kB inactive_anon:1164kB active_file:40kB inactive_file:224kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:8kB shmem:204kB slab_reclaimable:556kB slab_unreclaimable:1984kB kernel_stack:320kB pagetables:196kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:20 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB

    123 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    79 free pages

    1222 reserved pages

    484 slab pages

    20 pages shared

    0 pages swap cached

    ffmpeg: page allocation failure. order:0, mode:0xd0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:00000000 r6:000000d0 r5:003fffff r4:00000000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c0099cf4>] (__alloc_pages_nodemask+0x4b0/0x514)

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c00b5384>] (__vmalloc_area_node+0xd0/0x130)

    [<c00b52b4>] (__vmalloc_area_node+0x0/0x130) from [<c00b5474>] (__vmalloc_node+0x90/0xac)

    [<c00b53e4>] (__vmalloc_node+0x0/0xac) from [<c00b5514>] (vmalloc_32+0x2c/0x38)

     r7:c3970078 r6:0000001f r5:ffe3e000 r4:0367e000

    [<c00b54e8>] (vmalloc_32+0x0/0x38) from [<c02716f4>] (uvc_alloc_buffers+0x78/0x144)

    [<c027167c>] (uvc_alloc_buffers+0x0/0x144) from [<c0272d54>] (uvc_v4l2_do_ioctl+0xca8/0x1000)

    [<c02720ac>] (uvc_v4l2_do_ioctl+0x0/0x1000) from [<c026507c>] (video_usercopy+0x1a4/0x2ac)

    [<c0264ed8>] (video_usercopy+0x0/0x2ac) from [<c0271d84>] (uvc_v4l2_ioctl+0x54/0x68)

    [<c0271d30>] (uvc_v4l2_ioctl+0x0/0x68) from [<c026436c>] (v4l2_ioctl+0x44/0x48)

     r7:c2a29500 r6:bee7a69c r5:c0145608 r4:c2a29500

    [<c0264328>] (v4l2_ioctl+0x0/0x48) from [<c00d09cc>] (vfs_ioctl+0x84/0xb4)

     r7:c2a29500 r6:bee7a69c r5:c0145608 r4:c2a29500

    [<c00d0948>] (vfs_ioctl+0x0/0xb4) from [<c00d1090>] (do_vfs_ioctl+0x594/0x5f0)

     r7:c2a29500 r6:00000003 r5:c2a29500 r4:00000003

    [<c00d0afc>] (do_vfs_ioctl+0x0/0x5f0) from [<c00d112c>] (sys_ioctl+0x40/0x64)

    [<c00d10ec>] (sys_ioctl+0x0/0x64) from [<c004af20>] (ret_fast_syscall+0x0/0x28)

     r7:00000036 r6:00fa2c70 r5:00000000 r4:00000001

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:   7

    active_anon:134 inactive_anon:291 isolated_anon:0

     active_file:10 inactive_file:56 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:0 slab_reclaimable:139 slab_unreclaimable:496

     mapped:2 shmem:51 pagetables:49 bounce:0

    DMA free:0kB min:1016kB low:1268kB high:1524kB active_anon:536kB inactive_anon:1164kB active_file:40kB inactive_file:224kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:8kB shmem:204kB slab_reclaimable:556kB slab_unreclaimable:1984kB kernel_stack:320kB pagetables:196kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 0kB

    123 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    86 free pages

    1222 reserved pages

    484 slab pages

    20 pages shared

    0 pages swap cached

    bug invoked oom-killer: gfp_mask=0xd0, order=1, oom_adj=0

    Backtrace:

    [<c004e730>] (dump_backtrace+0x0/0x114) from [<c033c934>] (dump_stack+0x18/0x1c)

     r7:0000003d r6:00000001 r5:c1d3dc20 r4:c21cc000

    [<c033c91c>] (dump_stack+0x0/0x1c) from [<c00963e0>] (dump_header+0x70/0x170)

    [<c0096370>] (dump_header+0x0/0x170) from [<c0096524>] (oom_kill_process+0x44/0xdc)

     r6:00000001 r5:c1d3dc20 r4:000000d0

    [<c00964e0>] (oom_kill_process+0x0/0xdc) from [<c0096c1c>] (__out_of_memory+0x194/0x1b8)

     r7:c21cc000 r6:0000003d r5:c1d3dc20 r4:c042f728

    [<c0096a88>] (__out_of_memory+0x0/0x1b8) from [<c0096cf0>] (out_of_memory+0xb0/0x104)

    [<c0096c40>] (out_of_memory+0x0/0x104) from [<c0099c5c>] (__alloc_pages_nodemask+0x418/0x514)

     r6:000000d0 r5:00000000 r4:00000000

    [<c0099844>] (__alloc_pages_nodemask+0x0/0x514) from [<c0099d70>] (__get_free_pages+0x18/0x44)

    [<c0099d58>] (__get_free_pages+0x0/0x44) from [<c005d158>] (copy_process+0xac/0xe0c)

    [<c005d0ac>] (copy_process+0x0/0xe0c) from [<c005e028>] (do_fork+0x170/0x344)

    [<c005deb8>] (do_fork+0x0/0x344) from [<c004df40>] (sys_clone+0x34/0x3c)

    [<c004df0c>] (sys_clone+0x0/0x3c) from [<c004af20>] (ret_fast_syscall+0x0/0x28)

    Mem-info:

    DMA per-cpu:

    CPU    0: hi:   18, btch:   3 usd:   0

    active_anon:58 inactive_anon:291 isolated_anon:0

     active_file:10 inactive_file:0 isolated_file:0

     unevictable:0 dirty:0 writeback:0 unstable:0

     free:246 slab_reclaimable:139 slab_unreclaimable:496

     mapped:2 shmem:51 pagetables:38 bounce:0

    DMA free:984kB min:1016kB low:1268kB high:1524kB active_anon:232kB inactive_anon:1164kB active_file:40kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:65024kB mlocked:0kB dirty:0kB writeback:0kB mapped:8kB shmem:204kB slab_reclaimable:556kB slab_unreclaimable:1984kB kernel_stack:320kB pagetables:152kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no

    lowmem_reserve[]: 0 0 0

    DMA: 174*4kB 14*8kB 11*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 984kB

    61 total pagecache pages

    0 pages in swap cache

    Swap cache stats: add 0, delete 0, find 0/0

    Free swap  = 0kB

    Total swap = 0kB

    16384 pages of RAM

    322 free pages

    1222 reserved pages

    484 slab pages

    12 pages shared

    0 pages swap cached

    Out of memory: kill process 1122 (login) score 61 or a child

    Killed process 1154 (sh) vsz:3032kB, anon-rss:108kB, file-rss:0kB

    Removing stale PID file /var/run/matrix-gui-e.pid.

                                                      Starting Matrix GUI application.

     

     _____                    _____           _         _

    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_

    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|

    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|

                  |___|                    |___|

     

    Arago Project http://arago-project.org am180x-evm ttyS2

     

    Arago 2010.12 am180x-evm ttyS2

     

    am180x-evm login: root

    Last login: Tue Mar  4 15:01:02 on ttyS2

    root@am180x-evm:~#

    ------------------------------------------------------------------------------------------

     When i am trying to get the image using 

    Using Logitech C170 VGA Webcam I am getting the images. Find the below log history.

     ----------------------------------------------------------------------------------------------------

    root@am180x-evm:/home# usb 1-1: USB disconnect, address 3

    usb 1-1: new high speed USB device using musb_hdrc and address 4

    uvcvideo: Found UVC 1.00 device Webcam C170 (046d:082b)

    input: Webcam C170 as /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input4

    root@am180x-evm:/home# ./ffmpeg -f video4linux2 -r 2 -s 320x240 -i /dev/video0 3

    20x240.jpg

    ffmpeg version 1.2.4 Copyright (c) 2000-2013 the FFmpeg developers

      built on Dec 11 2013 06:18:09 with gcc 4.3.3 (Sourcery G++ Lite 2009q1-203)

      configuration: --enable-cross-compile --cross-prefix=arm-none-linux-gnueabi- --arch=armel --target-os=linux --prefix=/root/Downloads/ffmpeg-1.2.4/

      libavutil      52. 18.100 / 52. 18.100

      libavcodec     54. 92.100 / 54. 92.100

      libavformat    54. 63.104 / 54. 63.104

      libavdevice    54.  3.103 / 54.  3.103

      libavfilter     3. 42.103 /  3. 42.103

      libswscale      2.  2.100 /  2.  2.100

      libswresample   0. 17.102 /  0. 17.102

    [video4linux2,v4l2 @ 0xfa2470] The driver changed the time per frame from 1/2 to 1/15

    [video4linux2,v4l2 @ 0xfa2470] Estimating duration from bitrate, this may be inaccurate

    Input #0, video4linux2,v4l2, from '/dev/video0':

      Duration: N/A, start: 1393948151.558599, bitrate: 18432 kb/s

        Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 320x240, 18432 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc

    Output #0, image2, to '320x240.jpg':

      Metadata:

        encoder         : Lavf54.63.104

        Stream #0:0: Video: mjpeg, yuvj422p, 320x240, q=2-31, 200 kb/s, 90k tbn, 2 tbc

    Stream mapping:

      Stream #0:0 -> #0:0 (rawvideo -> mjpeg)

    Press [q] to stop, [?] for help

    [image2 @ 0xfa3910] Could not get frame filename number 2 from pattern '320x240.jpg' (either set updatefirst or use a pattern like %03d within the filename pattern)

    av_interleaved_write_frame(): Invalid argument

    root@am180x-evm:/home# ls

    320x240.jpg  ffmpeg       uvcapture

    root

    root@am180x-evm:/home#

    ------------------------------------------------------------------------------

    How can i fix this issue with my 5MP camera

    Thanks,

    Lofna

    root@am180x-evm:/home# lsusb -v
    
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass            9 Hub
      bDeviceSubClass         0 Unused
      bDeviceProtocol         0 Full speed (or root) hub
      bMaxPacketSize0        64
      idVendor           0x1d6b Linux Foundation
      idProduct          0x0002 2.0 root hub
      bcdDevice            2.06
      iManufacturer           3 Linux 2.6.33-rc4 musb-hcd
      iProduct                2 MUSB HDRC host driver
      iSerial                 1 musb_hdrc
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           25
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xe0
          Self Powered
          Remote Wakeup
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         9 Hub
          bInterfaceSubClass      0 Unused
          bInterfaceProtocol      0 Full speed (or root) hub
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0004  1x 4 bytes
            bInterval              12
    Hub Descriptor:
      bLength               9
      bDescriptorType      41
      nNbrPorts             1
      wHubCharacteristic 0x0011
        Per-port power switching
        No overcurrent protection
      bPwrOn2PwrGood        5 * 2 milli seconds
      bHubContrCurrent      0 milli Ampere
      DeviceRemovable    0x02
      PortPwrCtrlMask    0xff
     Hub Port Status:
       Port 1: 0000.0503 highspeed power enable connect
    Device Status:     0x0003
      Self Powered
      Remote Wakeup Enabled
    
    Bus 001 Device 003: ID 04f2:b355 Chicony Electronics Co., Ltd
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               2.00
      bDeviceClass          239 Miscellaneous Device
      bDeviceSubClass         2 ?
      bDeviceProtocol         1 Interface Association
      bMaxPacketSize0        64
      idVendor           0x04f2 Chicony Electronics Co., Ltd
      idProduct          0xb355
      bcdDevice            9.25
      iManufacturer           1 Chicony Co
      iProduct                2 5M Web Camera
      iSerial                 0
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength         1058
        bNumInterfaces          2
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0x80
          (Bus Powered)
        MaxPower              500mA
        Interface Association:
          bLength                 8
          bDescriptorType        11
          bFirstInterface         0
          bInterfaceCount         2
          bFunctionClass         14 Video
          bFunctionSubClass       3 Video Interface Collection
          bFunctionProtocol       0
          iFunction               2 5M Web Camera
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      1 Video Control
          bInterfaceProtocol      0
          iInterface              2 5M Web Camera
          VideoControl Interface Descriptor:
            bLength                13
            bDescriptorType        36
            bDescriptorSubtype      1 (HEADER)
            bcdUVC               1.00
            wTotalLength          109
            dwClockFrequency       48.000000MHz
            bInCollection           1
            baInterfaceNr( 0)       1
          VideoControl Interface Descriptor:
            bLength                18
            bDescriptorType        36
            bDescriptorSubtype      2 (INPUT_TERMINAL)
            bTerminalID             1
            wTerminalType      0x0201 Camera Sensor
            bAssocTerminal          0
            iTerminal               0
            wObjectiveFocalLengthMin      0
            wObjectiveFocalLengthMax      0
            wOcularFocalLength            0
            bControlSize                  3
            bmControls           0x0002002e
              Auto-Exposure Mode
              Auto-Exposure Priority
              Exposure Time (Absolute)
              Focus (Absolute)
              Focus, Auto
          VideoControl Interface Descriptor:
            bLength                11
            bDescriptorType        36
            bDescriptorSubtype      5 (PROCESSING_UNIT)
          Warning: Descriptor too short
            bUnitID                 2
            bSourceID               1
            wMaxMultiplier      16384
            bControlSize            2
            bmControls     0x0000157f
              Brightness
              Contrast
              Hue
              Saturation
              Sharpness
              Gamma
              White Balance Temperature
              Backlight Compensation
              Power Line Frequency
              White Balance Temperature, Auto
            iProcessing             0
            bmVideoStandards     0x1d
              None
              PAL - 625/50
              SECAM - 625/50
              NTSC - 625/50
          VideoControl Interface Descriptor:
            bLength                29
            bDescriptorType        36
            bDescriptorSubtype      6 (EXTENSION_UNIT)
            bUnitID                 4
            guidExtensionCode         {991d5a7d-325b-8b42-8cad-671b8a65f37a}
            bNumControl             0
            bNrPins                 1
            baSourceID( 0)          2
            bControlSize            4
            bmControls( 0)       0x3f
            bmControls( 1)       0x07
            bmControls( 2)       0xe7
            bmControls( 3)       0x00
            iExtension              0
          VideoControl Interface Descriptor:
            bLength                29
            bDescriptorType        36
            bDescriptorSubtype      6 (EXTENSION_UNIT)
            bUnitID                 5
            guidExtensionCode         {5bef79f6-df54-fc4b-b8cb-ca7e89a5233f}
            bNumControl             0
            bNrPins                 1
            baSourceID( 0)          3
            bControlSize            4
            bmControls( 0)       0x1f
            bmControls( 1)       0x10
            bmControls( 2)       0x00
            bmControls( 3)       0x00
            iExtension              0
          VideoControl Interface Descriptor:
            bLength                 9
            bDescriptorType        36
            bDescriptorSubtype      3 (OUTPUT_TERMINAL)
            bTerminalID             3
            wTerminalType      0x0101 USB Streaming
            bAssocTerminal          0
            bSourceID               4
            iTerminal               0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x87  EP 7 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0010  1x 16 bytes
            bInterval               8
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       0
          bNumEndpoints           0
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          VideoStreaming Interface Descriptor:
            bLength                            15
            bDescriptorType                    36
            bDescriptorSubtype                  1 (INPUT_HEADER)
            bNumFormats                         2
            wTotalLength                      726
            bEndPointAddress                  129
            bmInfo                              0
            bTerminalLink                       3
            bStillCaptureMethod                 2
            bTriggerSupport                     1
            bTriggerUsage                       0
            bControlSize                        1
            bmaControls( 0)                    27
            bmaControls( 1)                    27
          VideoStreaming Interface Descriptor:
            bLength                            27
            bDescriptorType                    36
            bDescriptorSubtype                  4 (FORMAT_UNCOMPRESSED)
            bFormatIndex                        1
            bNumFrameDescriptors                9
            guidFormat                            {59555932-0000-1000-8000-00aa00389b71}
            bBitsPerPixel                      16
            bDefaultFrameIndex                  1
            bAspectRatioX                       0
            bAspectRatioY                       0
            bmInterlaceFlags                 0x00
              Interlaced stream or variable: No
              Fields per frame: 1 fields
              Field 1 first: No
              Field pattern: Field 1 only
              bCopyProtect                      0
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         1
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            640
            wHeight                           480
            dwMinBitRate                147456000
            dwMaxBitRate                147456000
            dwMaxVideoFrameBufferSize      614400
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  1
            dwFrameInterval( 0)            333333
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         2
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            176
            wHeight                           144
            dwMinBitRate                 12165120
            dwMaxBitRate                 12165120
            dwMaxVideoFrameBufferSize       50688
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  1
            dwFrameInterval( 0)            333333
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         3
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            320
            wHeight                           240
            dwMinBitRate                 36864000
            dwMaxBitRate                 36864000
            dwMaxVideoFrameBufferSize      153600
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  1
            dwFrameInterval( 0)            333333
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         4
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            352
            wHeight                           288
            dwMinBitRate                 48660480
            dwMaxBitRate                 48660480
            dwMaxVideoFrameBufferSize      202752
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  1
            dwFrameInterval( 0)            333333
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         5
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1280
            wHeight                           720
            dwMinBitRate                   912384
            dwMaxBitRate                   912384
            dwMaxVideoFrameBufferSize     3932160
            dwDefaultFrameInterval        1000000
            bFrameIntervalType                  1
            dwFrameInterval( 0)           1000000
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         6
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1280
            wHeight                          1024
            dwMinBitRate                104857600
            dwMaxBitRate                104857600
            dwMaxVideoFrameBufferSize     2621440
            dwDefaultFrameInterval        5000000
            bFrameIntervalType                  1
            dwFrameInterval( 0)           5000000
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         7
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1600
            wHeight                          1200
            dwMinBitRate                153600000
            dwMaxBitRate                153600000
            dwMaxVideoFrameBufferSize     3840000
            dwDefaultFrameInterval        5000000
            bFrameIntervalType                  1
            dwFrameInterval( 0)           5000000
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         8
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1920
            wHeight                          1080
            dwMinBitRate                165888000
            dwMaxBitRate                165888000
            dwMaxVideoFrameBufferSize     4147200
            dwDefaultFrameInterval        2000000
            bFrameIntervalType                  1
            dwFrameInterval( 0)           2000000
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  5 (FRAME_UNCOMPRESSED)
            bFrameIndex                         9
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           2592
            wHeight                          1944
            dwMinBitRate                161243136
            dwMaxBitRate                161243136
            dwMaxVideoFrameBufferSize    10077696
            dwDefaultFrameInterval        5000000
            bFrameIntervalType                  1
            dwFrameInterval( 0)           5000000
          VideoStreaming Interface Descriptor:
            bLength                            43
            bDescriptorType                    36
            bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
            bEndpointAddress                    0
            bNumImageSizePatterns               9
            wWidth( 0)                        640
            wHeight( 0)                       480
            wWidth( 1)                        176
            wHeight( 1)                       144
            wWidth( 2)                        320
            wHeight( 2)                       240
            wWidth( 3)                        352
            wHeight( 3)                       288
            wWidth( 4)                       1280
            wHeight( 4)                       720
            wWidth( 5)                       1280
            wHeight( 5)                      1024
            wWidth( 6)                       1600
            wHeight( 6)                      1200
            wWidth( 7)                       1920
            wHeight( 7)                      1080
            wWidth( 8)                       2592
            wHeight( 8)                      1944
            bNumCompressionPatterns             9
            bCompression( 0)                    1
          VideoStreaming Interface Descriptor:
            bLength                             6
            bDescriptorType                    36
            bDescriptorSubtype                 13 (COLORFORMAT)
            bColorPrimaries                     1 (BT.709,sRGB)
            bTransferCharacteristics            1 (BT.709)
            bMatrixCoefficients                 4 (SMPTE 170M (BT.601))
          VideoStreaming Interface Descriptor:
            bLength                            11
            bDescriptorType                    36
            bDescriptorSubtype                  6 (FORMAT_MJPEG)
            bFormatIndex                        2
            bNumFrameDescriptors                9
            bFlags                              1
              Fixed-size samples: Yes
            bDefaultFrameIndex                  1
            bAspectRatioX                       0
            bAspectRatioY                       0
            bmInterlaceFlags                 0x00
              Interlaced stream or variable: No
              Fields per frame: 1 fields
              Field 1 first: No
              Field pattern: Field 1 only
              bCopyProtect                      0
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         1
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            640
            wHeight                           480
            dwMinBitRate                 24576000
            dwMaxBitRate                147456000
            dwMaxVideoFrameBufferSize      614400
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  2
            dwFrameInterval( 0)            333333
            dwFrameInterval( 1)            666666
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         2
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            176
            wHeight                           144
            dwMinBitRate                  1536000
            dwMaxBitRate                  9216000
            dwMaxVideoFrameBufferSize       38400
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  2
            dwFrameInterval( 0)            333333
            dwFrameInterval( 1)            666666
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         3
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            320
            wHeight                           240
            dwMinBitRate                  6144000
            dwMaxBitRate                 36864000
            dwMaxVideoFrameBufferSize      153600
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  2
            dwFrameInterval( 0)            333333
            dwFrameInterval( 1)            666666
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         4
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                            352
            wHeight                           288
            dwMinBitRate                  8110080
            dwMaxBitRate                 48660480
            dwMaxVideoFrameBufferSize      202752
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  2
            dwFrameInterval( 0)            333333
            dwFrameInterval( 1)            666666
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         5
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1280
            wHeight                           720
            dwMinBitRate                 81920000
            dwMaxBitRate                491520000
            dwMaxVideoFrameBufferSize     2048000
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  2
            dwFrameInterval( 0)            333333
            dwFrameInterval( 1)            666666
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         6
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1280
            wHeight                          1024
            dwMinBitRate                  2027520
            dwMaxBitRate                 12165120
            dwMaxVideoFrameBufferSize       50688
            dwDefaultFrameInterval         666666
            bFrameIntervalType                  2
            dwFrameInterval( 0)            666666
            dwFrameInterval( 1)           1000000
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         7
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1600
            wHeight                          1200
            dwMinBitRate                153600000
            dwMaxBitRate                307200000
            dwMaxVideoFrameBufferSize     3840000
            dwDefaultFrameInterval         666666
            bFrameIntervalType                  2
            dwFrameInterval( 0)            666666
            dwFrameInterval( 1)           1000000
          VideoStreaming Interface Descriptor:
            bLength                            34
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         8
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           1920
            wHeight                          1080
            dwMinBitRate                165888000
            dwMaxBitRate                995328000
            dwMaxVideoFrameBufferSize     4147200
            dwDefaultFrameInterval         333333
            bFrameIntervalType                  2
            dwFrameInterval( 0)            333333
            dwFrameInterval( 1)            666666
          VideoStreaming Interface Descriptor:
            bLength                            30
            bDescriptorType                    36
            bDescriptorSubtype                  7 (FRAME_MJPEG)
            bFrameIndex                         9
            bmCapabilities                   0x00
              Still image unsupported
            wWidth                           2592
            wHeight                          1944
            dwMinBitRate                161243136
            dwMaxBitRate                161243136
            dwMaxVideoFrameBufferSize    10077696
            dwDefaultFrameInterval        5000000
            bFrameIntervalType                  1
            dwFrameInterval( 0)           5000000
          VideoStreaming Interface Descriptor:
            bLength                            46
            bDescriptorType                    36
            bDescriptorSubtype                  3 (STILL_IMAGE_FRAME)
            bEndpointAddress                    0
            bNumImageSizePatterns               9
            wWidth( 0)                        640
            wHeight( 0)                       480
            wWidth( 1)                        176
            wHeight( 1)                       144
            wWidth( 2)                        320
            wHeight( 2)                       240
            wWidth( 3)                        352
            wHeight( 3)                       288
            wWidth( 4)                       1280
            wHeight( 4)                       720
            wWidth( 5)                       1280
            wHeight( 5)                      1024
            wWidth( 6)                       1600
            wHeight( 6)                      1200
            wWidth( 7)                       1920
            wHeight( 7)                      1080
            wWidth( 8)                       2592
            wHeight( 8)                      1944
            bNumCompressionPatterns             9
            bCompression( 0)                    1
            bCompression( 1)                    5
            bCompression( 2)                   10
            bCompression( 3)                   20
          VideoStreaming Interface Descriptor:
            bLength                             6
            bDescriptorType                    36
            bDescriptorSubtype                 13 (COLORFORMAT)
            bColorPrimaries                     1 (BT.709,sRGB)
            bTransferCharacteristics            1 (BT.709)
            bMatrixCoefficients                 4 (SMPTE 170M (BT.601))
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       1
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x00c0  1x 192 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       2
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0180  1x 384 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       3
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0200  1x 512 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       4
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0280  1x 640 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       5
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0320  1x 800 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       6
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x03b0  1x 944 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       7
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0a80  2x 640 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       8
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0b20  2x 800 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting       9
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x0be0  2x 992 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting      10
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x1380  3x 896 bytes
            bInterval               1
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        1
          bAlternateSetting      11
          bNumEndpoints           1
          bInterfaceClass        14 Video
          bInterfaceSubClass      2 Video Streaming
          bInterfaceProtocol      0
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            5
              Transfer Type            Isochronous
              Synch Type               Asynchronous
              Usage Type               Data
            wMaxPacketSize     0x13fc  3x 1020 bytes
            bInterval               1
    Device Qualifier (for other device speed):
      bLength                10
      bDescriptorType         6
      bcdUSB               2.00
      bDeviceClass          239 Miscellaneous Device
      bDeviceSubClass         2 ?
      bDeviceProtocol         1 Interface Association
      bMaxPacketSize0        64
      bNumConfigurations      1
    Device Status:     0x0000
      (Bus Powered)
    
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Device Descriptor:
      bLength                18
      bDescriptorType         1
      bcdUSB               1.10
      bDeviceClass            9 Hub
      bDeviceSubClass         0 Unused
      bDeviceProtocol         0 Full speed (or root) hub
      bMaxPacketSize0        64
      idVendor           0x1d6b Linux Foundation
      idProduct          0x0001 1.1 root hub
      bcdDevice            2.06
      iManufacturer           3 Linux 2.6.33-rc4 ohci_hcd
      iProduct                2 DA8xx OHCI
      iSerial                 1 ohci.0
      bNumConfigurations      1
      Configuration Descriptor:
        bLength                 9
        bDescriptorType         2
        wTotalLength           25
        bNumInterfaces          1
        bConfigurationValue     1
        iConfiguration          0
        bmAttributes         0xe0
          Self Powered
          Remote Wakeup
        MaxPower                0mA
        Interface Descriptor:
          bLength                 9
          bDescriptorType         4
          bInterfaceNumber        0
          bAlternateSetting       0
          bNumEndpoints           1
          bInterfaceClass         9 Hub
          bInterfaceSubClass      0 Unused
          bInterfaceProtocol      0 Full speed (or root) hub
          iInterface              0
          Endpoint Descriptor:
            bLength                 7
            bDescriptorType         5
            bEndpointAddress     0x81  EP 1 IN
            bmAttributes            3
              Transfer Type            Interrupt
              Synch Type               None
              Usage Type               Data
            wMaxPacketSize     0x0002  1x 2 bytes
            bInterval             255
    Hub Descriptor:
      bLength               9
      bDescriptorType      41
      nNbrPorts             1
      wHubCharacteristic 0x0002
        No power switching (usb 1.0)
        Ganged overcurrent protection
      bPwrOn2PwrGood        2 * 2 milli seconds
      bHubContrCurrent      0 milli Ampere
      DeviceRemovable    0x00
      PortPwrCtrlMask    0xff
     Hub Port Status:
       Port 1: 0000.0100 power
    Device Status:     0x0003
      Self Powered
      Remote Wakeup Enabled
    root@am180x-evm:/home#

  • lofna,

    Sorry for my delayed response. This looks like a crash in the kernel driver when you tried to change the mode. This needs to be further debugged from the driver. This has something to do with buffer allocations. If you are still facing the problem do let me know. 

  • Dear Renjith,

    Still i am facing the same issue using the same camera module working on different evm am335x and got the same issue.

    Please find the issue:

    [   33.043853] uvcvideo: Found UVC 1.00 device 5M Web Camera     (04f2:b355)
    [   33.066375] input: 5M Web Camera     as /devices/platform/omap/musb-ti81xx/musb-hdrc.0/usb2/2-1/2-1:1.0/input/input1
    **

    root@am335x-evm:/home# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 002: ID 04b4:6572 Cypress Semiconductor Corp.
    Bus 001 Device 003: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 002: ID 04f2:b355 Chicony Electronics Co., Ltd

    Please help me  where this is giving issue. when i tried to capture the image using gstreamer it is working below resolutions

    Working resolutions:

    width=320,height=240,framerate=30/1
    width=352,height=288,framerate=30/1

    got the log while using the above resolutions and got the preview image on lcd:

    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock

    Not working resolutions:
    width=640,height=480,framerate=30/1

    width=640,height=480,framerate=15/1

    got the error log while running the gstreamer on the console

    Setting pipeline to PAUSED ...
    ERROR: Pipeline doesn't want to pause.
    ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Could not negotiate format
    Additional debug info:
    gstbasesrc.c(2830): gst_base_src_start (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
    Check your filtered caps, if any
    Setting pipeline to NULL ...
    Freeing pipeline ...

    suggest me if any other modifications required

    Thanks,

    Lofna