您尚未登录。

楼主 # 2022-06-15 17:25:57

Expelliarmus
会员
注册时间: 2022-02-24
已发帖子: 9
积分: 4

V3s使用ov5640拍照分辨率最高只有720x480,再高就会提示错误fswebcam: page allocation failure

用得荔枝派zero开发板,系统是主线linux5.2,使用dvp连接ov5640摄像头之后使用fswebcam拍照,
最高只能把分辨率设置到720x480,再提高分辨率就会提示错误

# fswebcam -S 1 -d /dev/video0 -p UYVY -r 1280x720 test_06151654.jpg
--- Opening /dev/video0...
Trying source module v4l2...
/dev/video0 opened.
No input was specified, using the first.
[ 1108.748733] fswebcam: page allocation failure: order:9, mode:0xcc0(GFP_KERNEL), nodemask=(null)
[ 1108.757507] CPU: 0 PID: 159 Comm: fswebcam Not tainted 5.2.0-licheepi-zero+ #7
[ 1108.764721] Hardware name: Allwinner sun8i Family
[ 1108.769451] [<c010ee18>] (unwind_backtrace) from [<c010b638>] (show_stack+0x10/0x14)
[ 1108.777197] [<c010b638>] (show_stack) from [<c06a8710>] (dump_stack+0x84/0x98)
[ 1108.784422] [<c06a8710>] (dump_stack) from [<c01fe030>] (warn_alloc+0xd8/0x17c)
[ 1108.791727] [<c01fe030>] (warn_alloc) from [<c01febd0>] (__alloc_pages_nodemask+0xa60/0xcf4)
[ 1108.800159] [<c01febd0>] (__alloc_pages_nodemask) from [<c0114348>] (__dma_alloc_buffer.constprop.0+0x30/0x178)
[ 1108.810235] [<c0114348>] (__dma_alloc_buffer.constprop.0) from [<c01144b4>] (__alloc_remap_buffer+0x24/0x9c)
[ 1108.820051] [<c01144b4>] (__alloc_remap_buffer) from [<c0114554>] (remap_allocator_alloc+0x28/0x30)
[ 1108.829085] [<c0114554>] (remap_allocator_alloc) from [<c01146b8>] (__dma_alloc+0x134/0x268)
[ 1108.837513] [<c01146b8>] (__dma_alloc) from [<c0114868>] (arm_dma_alloc+0x40/0x48)
[ 1108.845076] [<c0114868>] (arm_dma_alloc) from [<c017d364>] (dma_alloc_attrs+0x10c/0x11c)
[ 1108.853162] [<c017d364>] (dma_alloc_attrs) from [<c0521c9c>] (vb2_dc_alloc+0x60/0x104)
[ 1108.861078] [<c0521c9c>] (vb2_dc_alloc) from [<c051be80>] (__vb2_queue_alloc+0x198/0x400)
[ 1108.869250] [<c051be80>] (__vb2_queue_alloc) from [<c051c618>] (vb2_core_reqbufs+0x2a8/0x45c)
[ 1108.877768] [<c051c618>] (vb2_core_reqbufs) from [<c051fcdc>] (vb2_ioctl_reqbufs+0x9c/0xc0)
[ 1108.886116] [<c051fcdc>] (vb2_ioctl_reqbufs) from [<c04fa140>] (__video_do_ioctl+0x230/0x458)
[ 1108.894635] [<c04fa140>] (__video_do_ioctl) from [<c04fa6d4>] (video_usercopy+0x238/0x544)
[ 1108.902894] [<c04fa6d4>] (video_usercopy) from [<c022b16c>] (do_vfs_ioctl+0x414/0x910)
[ 1108.910806] [<c022b16c>] (do_vfs_ioctl) from [<c022b69c>] (ksys_ioctl+0x34/0x60)
[ 1108.918195] [<c022b69c>] (ksys_ioctl) from [<c0101000>] (ret_fast_syscall+0x0/0x54)
[ 1108.925840] Exception stack(0xc30e9fa8 to 0xc30e9ff0)
[ 1108.930890] 9fa0:                   00036100 00000000 00000003 c0145608 0003623c 00000004
[ 1108.939058] 9fc0: 00036100 00000000 00036100 00000036 00000001 00034568 0001e652 0001e674
[ 1108.947223] 9fe0: 00034064 beef7a84 0001ab78 b6e1e808
[ 1108.952414] Mem-Info:
[ 1108.954706] active_anon:967 inactive_anon:4 isolated_anon:0
[ 1108.954706]  active_file:559 inactive_file:368 isolated_file:0
[ 1108.954706]  unevictable:0 dirty:0 writeback:0 unstable:0
[ 1108.954706]  slab_reclaimable:315 slab_unreclaimable:1098
[ 1108.954706]  mapped:480 shmem:17 pagetables:31 bounce:0
[ 1108.954706]  free:9579 free_pcp:0 free_cma:0
[ 1108.986317] Node 0 active_anon:3868kB inactive_anon:16kB active_file:2236kB inactive_file:1472kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:1920kB dirty:0kB writeback:0kB shmem:68kB writeback_tmp:0kB unstable:0kB all_unreclaimable? no
[ 1109.008644] Normal free:38316kB min:924kB low:1152kB high:1380kB active_anon:3868kB inactive_anon:16kB active_file:2236kB inactive_file:1472kB unevictable:0kB writepending:0kB present:64036kB managed:54580kB mlocked:0kB kernel_stack:280kB pagetables:124kB bounce:0kB free_pcp:0kB local_pcp:0kB free_cma:0kB
[ 1109.035630] lowmem_reserve[]: 0 0 0
[ 1109.039132] Normal: 242*4kB (UM) 179*8kB (UM) 121*16kB (UM) 58*32kB (UM) 26*64kB (UM) 24*128kB (UM) 21*256kB (UM) 19*512kB (UM) 12*1024kB (UM) 0*2048kB 0*4096kB = 38320kB
[ 1109.054362] 942 total pagecache pages
[ 1109.058030] 0 pages in swap cache
[ 1109.061340] Swap cache stats: add 0, delete 0, find 0/0
[ 1109.066556] Free swap  = 0kB
[ 1109.069442] Total swap = 0kB
[ 1109.072318] 16009 pages RAM
[ 1109.075105] 0 pages HighMem/MovableOnly
[ 1109.078944] 2364 pages reserved
[ 1109.082100] sun6i-csi 1cb4000.csi: dma_alloc_coherent of size 1843200 failed
Error requesting buffers for memory map.
VIDIOC_REQBUFS: Cannot allocate memory
Unable to use mmap. Using read instead.
Unable to use read.

查了一下好像是内存分配不足的错误,有没有大佬知道怎么解决,还是说V3s就只能支持到这个分辨率

离线

楼主 #1 2022-06-15 17:29:43

Expelliarmus
会员
注册时间: 2022-02-24
已发帖子: 9
积分: 4

Re: V3s使用ov5640拍照分辨率最高只有720x480,再高就会提示错误fswebcam: page allocation failure

很抱歉因为网络问题,导致连发了好几个相同的主题帖,管理员看到了麻烦把重复的删一删

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn