|
|
板凳

楼主 |
发表于 2016-1-30 11:15:26
|
只看该作者
) T1 F' m& P2 [" K
D( R; ]$ \6 p* u
$ X# ?; X8 ?! R! n8 Z8 }
看一下,我把环境变量打印出来了,这样配置是对的吗?
1 ?5 V1 N9 z- U, Q3 j2 y, d( q4 h* ~2 q+ W1 k% }, s
, \; x* G9 c1 |root@tl:/home# ./vpif_mmap_loopback_sd -c 2 -d 0 -w 1 -m 2. @5 m& U+ O2 E$ u0 v
CAMERA capture
- l; A) M# W9 ~& finput_device /dev/video0# C/ G5 m1 I" }; ~1 g: I* |5 m4 @
Camera-Camera
9 O- A" K8 b. @3 C5 Xfmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)
$ u3 f' Q0 ]7 k Q: ~fmt->fmt.pix.pixelformat(50424752),V4L2_PIX_FMT_YUV422P(50323234),V4L2_PIX_FMT_RGB565(50424752)
8 V4 h" a5 w4 b* T9 \' b ^0 lfmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)& _/ P1 m, |- ]. I/ N$ z4 X
capture_buff_info[0].length = 4147200
7 G8 K9 t$ i1 Ycapture_buff_info[0].index = 0! ?/ V5 L2 V1 Z5 c9 s$ \+ g
capture_buff_info[0].start = 0xb6b400001 v- a C3 G6 |7 \
[ 74.316779] vpif_mmap_loopb: page allocation failure: order:10, mode:0xd0
# y$ k" Y4 d) a- M" t[ 74.323663] Backtrace:
2 x' ^& `2 j( s+ }* b& G[ 74.333553] [<c000c1a8>] (dump_backtrace+0x0/0x110) from [<c0408194>] (dump_stack+0x18/0x1c)
" z3 k+ i# p# E[ 74.356223] r6:00000000 r5:000000d0 r4:00000001 r3:20000093" l/ G9 J$ D* g+ d% t
[ 74.362055] [<c040817c>] (dump_stack+0x0/0x1c) from [<c005dc50>] (warn_alloc_failed+0xf4/0x118)3 G( ^3 r1 }# q& Q. f
[ 74.386451] [<c005db5c>] (warn_alloc_failed+0x0/0x118) from [<c0060764>] (__alloc_pages_nodemask+0x578/0x5d8)9 [# A2 ?" f B& L* Q6 B7 @
[ 74.406178] r3:c71fbd1c r2:00000000
4 k" S* `$ E/ Y7 }* i[ 74.409822] r7:c05bd478 r6:c71fa000 r5:0000000a r4:000000d0
6 X1 ^7 c( u; Z' |3 S- R( k[ 74.415828] [<c00601ec>] (__alloc_pages_nodemask+0x0/0x5d8) from [<c000df0c>] (__dma_alloc+0xd8/0x2ec)4 `3 ~! X$ |; }6 [
[ 74.447742] [<c000de34>] (__dma_alloc+0x0/0x2ec) from [<c000e1b0>] (dma_alloc_coherent+0x5c/0x68)
8 |- x4 g; Z) g/ f/ G! Z1 m2 j: o[ 74.467181] [<c000e154>] (dma_alloc_coherent+0x0/0x68) from [<c02d5a20>] (__videobuf_mmap_mapper+0xa8/0x180)( d- o8 \" H4 M7 j6 ]4 [, R! ~- s
[ 74.496167] r7:c7182920 r6:c7ba8d90 r5:c71feee4 r4:c72b69a0& x7 e5 [3 C3 p; y3 k
[ 74.502044] [<c02d5978>] (__videobuf_mmap_mapper+0x0/0x180) from [<c02d36c4>] (videobuf_mmap_mapper+0xc0/0x110)- Z" |+ }7 O0 E! t; u- N; A' P
[ 74.527223] r8:c708d300 r7:b674b000 r6:c72b69a0 r5:c72b69a0 r4:c7ba8d90
! F& f( T @4 t[ 74.534166] [<c02d3604>] (videobuf_mmap_mapper+0x0/0x110) from [<c02de0bc>] (vpif_mmap+0x40/0x50)4 g8 K) o* Q' v! |
[ 74.556197] r5:c7ba8c00 r4:c72b69a0
9 Q1 a, o" K! Y0 o7 G) A[ 74.559945] [<c02de07c>] (vpif_mmap+0x0/0x50) from [<c02c55f4>] (v4l2_mmap+0x70/0x90)
7 a+ @) K( x3 f4 y8 |: e' m[ 74.587055] r5:c71fe580 r4:c79c2e00% P7 G2 g! c4 A A% q$ e
[ 74.590771] [<c02c5584>] (v4l2_mmap+0x0/0x90) from [<c007846c>] (mmap_region+0x268/0x4c0)
, i, Q. B) c& @' p" L[ 74.616153] r6:c71fe580 r5:000000ff r4:c72b69a0 r3:c02c5584
% R: h: P& s& [- {) R9 Z2 x[ 74.621976] [<c0078204>] (mmap_region+0x0/0x4c0) from [<c007897c>] (do_mmap_pgoff+0x2b8/0x318)( ]( v; K5 B+ z- ]6 l3 \- ~
[ 74.646297] [<c00786c4>] (do_mmap_pgoff+0x0/0x318) from [<c0078a74>] (sys_mmap_pgoff+0x98/0xd0)
, O# {6 f: T, T ?6 v6 T4 q% x/ l[ 74.655109] [<c00789dc>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)9 B4 O* Z& H4 ?7 w: w: {' s) S
[ 74.688020] Mem-info:
6 e+ n9 ?7 X6 h i[ 74.690383] DMA per-cpu:
+ g! @" ?- k ] j' e[ 74.692955] CPU 0: hi: 18, btch: 3 usd: 17 a" s; X; s( d# B' E
[ 74.700640] active_anon:3001 inactive_anon:46 isolated_anon:0
1 M! t3 z# F' M* G c I# K3 T[ 74.700664] active_file:2684 inactive_file:6310 isolated_file:24
* ?2 f3 v4 e! t7 c' |; x[ 74.700684] unevictable:0 dirty:67 writeback:0 unstable:07 D" \' p$ p# E' P
[ 74.700700] free:7432 slab_reclaimable:505 slab_unreclaimable:739& r* i( i- U, _
[ 74.700718] mapped:2376 shmem:141 pagetables:143 bounce:0
( u) P& `" f6 ?0 ?! i# l[ 74.766255] DMA free:33856kB min:1244kB low:1552kB high:1864kB active_anon:12004kB inactive_anon:188kB active_file:10736kB inactive_file:21200kB unevictable:0kB isolated(anon):0kB isolated(file):20kB present:97280kB mlocked:0kB dirty:268kB writeback:0kB mapped:8372kB shmem:568kB slab_reclaimable:2020kB slab_unreclaimable:2956kB kernel_stack:576kB pagetables:572kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no% M) y# @( u; Z
[ 74.846179] lowmem_reserve[]: 0 0 0/ w S/ k3 P' t$ O$ t4 R
[ 74.849759] DMA: 760*4kB 461*8kB 239*16kB 158*32kB 92*64kB 43*128kB 21*256kB 6*512kB 7*1024kB 0*2048kB 0*4096kB = 42616kB) d @; S4 ~6 w8 M3 f
[ 74.871095] 5393 total pagecache pages
% a2 F8 G( H% p* K A- Q# f# N( z: U[ 74.874878] 0 pages in swap cache
% O# O% r" g% x[ 74.896156] Swap cache stats: add 0, delete 0, find 0/0
: r: g/ o4 t7 F- J( G[ 74.901444] Free swap = 0kB
2 C: b- H, y* q( }* ]( {[ 74.904346] Total swap = 0kB
! b/ u" m, f5 s4 D% Q% R[ 74.946799] 49152 pages of RAM
1 y8 p) q$ S2 p- i c; e[ 74.949901] 25326 free pages
# R) Q# M" v |3 _% i6 l[ 74.952803] 3366 reserved pages
1 b) P5 Z& M. K ^$ {[ 74.966186] 2124 slab pages, u; \0 Z. P) R7 Y
[ 74.969063] 7387 pages shared/ A) c P+ L9 \5 V, Z$ p3 R9 E- f
[ 74.972058] 0 pages swap cached& \- v+ G- @9 \% Q
[ 74.975243] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed
* O0 i3 }* j/ `+ J P ?/ \# O( UCannot mmap = 1 buffer) V6 z6 D! ^1 b
Error in opening capture device for channel 0) A" h: ]5 Q# v+ ^% H
( Z5 | P# y/ e }8 H' b* s
+ F; f, }# m9 G8 q8 O0 i1 X0 P这上面是新的错误提示,请再帮我看看是哪里出了问题,谢谢。; @" L! J- K3 t1 ~- H3 g1 n5 K
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|