|
板凳

楼主 |
发表于 2016-1-30 11:15:26
|
只看该作者
! I# [' D% C! Y# l A$ w4 C9 w
r1 s$ ]$ w* ]2 M6 L( [ {6 g6 V2 ~
看一下,我把环境变量打印出来了,这样配置是对的吗?
: U# a q1 d! i
) w# c8 K- D' x& G* e$ q, H
6 }/ z2 R$ g3 L! R) [$ c Uroot@tl:/home# ./vpif_mmap_loopback_sd -c 2 -d 0 -w 1 -m 27 R$ x9 D: C( w. j) b: n; |
CAMERA capture1 q; B3 c+ j& D0 S3 V# Z
input_device /dev/video0
# D6 v0 W. R6 pCamera-Camera
. o2 Q2 a# `5 \0 u2 ]2 X$ L- Yfmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)% p0 u, x; B: `
fmt->fmt.pix.pixelformat(50424752),V4L2_PIX_FMT_YUV422P(50323234),V4L2_PIX_FMT_RGB565(50424752)) U3 F+ W' {0 [* Z
fmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)
% `/ y2 y' G% j! ~' a0 w4 q$ t4 Mcapture_buff_info[0].length = 4147200$ V, e" I9 C/ d8 \+ o% _
capture_buff_info[0].index = 0
7 K; A0 r( d9 _, o( [/ pcapture_buff_info[0].start = 0xb6b400007 e8 x+ f( `( t. [1 Y$ t$ I
[ 74.316779] vpif_mmap_loopb: page allocation failure: order:10, mode:0xd0
3 x. t: h, V. K& P# m; M[ 74.323663] Backtrace:
) G4 c$ d1 _- H+ n/ ?: w& M[ 74.333553] [<c000c1a8>] (dump_backtrace+0x0/0x110) from [<c0408194>] (dump_stack+0x18/0x1c)
- |5 P9 w8 h$ z% y[ 74.356223] r6:00000000 r5:000000d0 r4:00000001 r3:20000093
$ H$ ~- G) k$ ], h' M7 y[ 74.362055] [<c040817c>] (dump_stack+0x0/0x1c) from [<c005dc50>] (warn_alloc_failed+0xf4/0x118)0 O8 r9 ?# K) o1 C& S7 @, Q8 h
[ 74.386451] [<c005db5c>] (warn_alloc_failed+0x0/0x118) from [<c0060764>] (__alloc_pages_nodemask+0x578/0x5d8)
) V' Y$ {+ \' n" j2 d[ 74.406178] r3:c71fbd1c r2:00000000
) O2 R! r- v7 n[ 74.409822] r7:c05bd478 r6:c71fa000 r5:0000000a r4:000000d0
( j7 Q( z' R% K, K+ Q5 }9 e6 [[ 74.415828] [<c00601ec>] (__alloc_pages_nodemask+0x0/0x5d8) from [<c000df0c>] (__dma_alloc+0xd8/0x2ec)3 Z! H8 d+ g! U" s4 l E5 {
[ 74.447742] [<c000de34>] (__dma_alloc+0x0/0x2ec) from [<c000e1b0>] (dma_alloc_coherent+0x5c/0x68)
9 S( ^" K, ?# d2 J" e6 e O[ 74.467181] [<c000e154>] (dma_alloc_coherent+0x0/0x68) from [<c02d5a20>] (__videobuf_mmap_mapper+0xa8/0x180)
7 z4 M4 c0 I, E( p/ Q& L/ I7 u7 P: T[ 74.496167] r7:c7182920 r6:c7ba8d90 r5:c71feee4 r4:c72b69a02 m" i6 n3 N" S/ m& B
[ 74.502044] [<c02d5978>] (__videobuf_mmap_mapper+0x0/0x180) from [<c02d36c4>] (videobuf_mmap_mapper+0xc0/0x110)
) ^( Z/ r8 \% v( Z[ 74.527223] r8:c708d300 r7:b674b000 r6:c72b69a0 r5:c72b69a0 r4:c7ba8d90# n0 `% e. o r `) q7 N7 N5 `/ y; }2 c
[ 74.534166] [<c02d3604>] (videobuf_mmap_mapper+0x0/0x110) from [<c02de0bc>] (vpif_mmap+0x40/0x50)/ R; I/ W8 Y1 e H! n3 ?4 ?" o
[ 74.556197] r5:c7ba8c00 r4:c72b69a0
% O2 Y X+ J# e4 ~[ 74.559945] [<c02de07c>] (vpif_mmap+0x0/0x50) from [<c02c55f4>] (v4l2_mmap+0x70/0x90)
$ U# S2 X- q( E* S5 k" Q$ }- v[ 74.587055] r5:c71fe580 r4:c79c2e00
" G+ r0 ^ \7 ]6 H+ r3 ~! Y[ 74.590771] [<c02c5584>] (v4l2_mmap+0x0/0x90) from [<c007846c>] (mmap_region+0x268/0x4c0)
' \( R* n7 d, Q9 g[ 74.616153] r6:c71fe580 r5:000000ff r4:c72b69a0 r3:c02c5584
: f }$ o1 {- Y) L[ 74.621976] [<c0078204>] (mmap_region+0x0/0x4c0) from [<c007897c>] (do_mmap_pgoff+0x2b8/0x318)2 F- R( g/ f1 d) Z$ K
[ 74.646297] [<c00786c4>] (do_mmap_pgoff+0x0/0x318) from [<c0078a74>] (sys_mmap_pgoff+0x98/0xd0)
3 o- m* c- d! j) x" t) Q+ i[ 74.655109] [<c00789dc>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)
# l; g+ x2 ]/ p; d; {[ 74.688020] Mem-info:
4 q* O, V- v$ s( b1 K- g: H[ 74.690383] DMA per-cpu:
, F* @' h3 }% s; b[ 74.692955] CPU 0: hi: 18, btch: 3 usd: 17- B% B$ @% |) v: Y" d* |4 A# T
[ 74.700640] active_anon:3001 inactive_anon:46 isolated_anon:0( d' ^( W( Y5 W" w
[ 74.700664] active_file:2684 inactive_file:6310 isolated_file:24
5 F; t8 _9 ^2 ?8 v) o7 q[ 74.700684] unevictable:0 dirty:67 writeback:0 unstable:01 W. ?9 p" n( C1 l$ V, Z! q" L
[ 74.700700] free:7432 slab_reclaimable:505 slab_unreclaimable:739
+ X: q0 z* g$ y5 u' j[ 74.700718] mapped:2376 shmem:141 pagetables:143 bounce:0
7 |) K. P, H- S: m[ 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
6 i4 B. T; s0 n& ?/ U) l[ 74.846179] lowmem_reserve[]: 0 0 0
: ]" A7 \6 |' Y: I4 A[ 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- C# z; i0 g5 Q
[ 74.871095] 5393 total pagecache pages$ b6 e2 b0 g P) Y7 |0 r( F' G
[ 74.874878] 0 pages in swap cache
. z$ e5 ~! A4 a6 Q$ v: y[ 74.896156] Swap cache stats: add 0, delete 0, find 0/05 T: n6 v3 s6 G# u" u
[ 74.901444] Free swap = 0kB+ g9 ?/ e" h+ c; a. i
[ 74.904346] Total swap = 0kB
! m) l# |3 o- q& B$ M+ z[ 74.946799] 49152 pages of RAM
" t) _1 E, Q: c& U. Q[ 74.949901] 25326 free pages& @3 R* i' i8 T/ ?5 Q: [
[ 74.952803] 3366 reserved pages
2 h9 g: Y! u( R0 }2 t[ 74.966186] 2124 slab pages D0 z/ I: t1 w( W5 D! V9 C& X2 `
[ 74.969063] 7387 pages shared
0 I! C' H7 Z9 a. {" C[ 74.972058] 0 pages swap cached7 h/ D s8 d _- Z6 J% k% O
[ 74.975243] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed: ~# G" y) ~$ x4 {- s
Cannot mmap = 1 buffer
7 J: p o3 ]1 g% o, W6 kError in opening capture device for channel 0/ r) [; ^, \" D- m9 C7 A8 ~. a
* X0 B n. ]" z; L; g$ h
+ F9 f/ D0 K ^6 S. @, t2 z/ q! y
这上面是新的错误提示,请再帮我看看是哪里出了问题,谢谢。
$ `2 u* q5 U- s- d% X3 E |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|