|
板凳

楼主 |
发表于 2016-1-30 11:15:26
|
只看该作者
1 ~# f, n$ a! V- v0 r5 o0 ^3 k- _6 l
. e) V+ i) {. ]4 n- I* r$ B; o5 O# x+ @3 X% ^
看一下,我把环境变量打印出来了,这样配置是对的吗?
6 A( J* ?9 m0 n% I; g. |$ X3 z4 P. N& ~$ Q# e
I4 F( U' ?; P; T- ]# groot@tl:/home# ./vpif_mmap_loopback_sd -c 2 -d 0 -w 1 -m 2
9 V [7 h0 H9 t$ g. t2 t1 tCAMERA capture& Y+ J1 a4 }2 d# P7 ^( G, u
input_device /dev/video0
7 Q; S- c, M8 qCamera-Camera: ^- V! G1 O, n) v- p, i
fmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)
# |. f0 W1 v. Z$ O K1 y( S' ]& Xfmt->fmt.pix.pixelformat(50424752),V4L2_PIX_FMT_YUV422P(50323234),V4L2_PIX_FMT_RGB565(50424752)
$ H7 |! U9 N' G. `( q# Zfmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)9 l9 [9 S% u0 e1 \
capture_buff_info[0].length = 4147200- k3 w, s, z2 `, A
capture_buff_info[0].index = 0+ e! s9 y* \/ @5 q( C% I" A' ]
capture_buff_info[0].start = 0xb6b400007 h5 h! z) C( W" h+ Q7 J
[ 74.316779] vpif_mmap_loopb: page allocation failure: order:10, mode:0xd0, e, W8 r: w! a! d, W$ d. J
[ 74.323663] Backtrace:
# Q/ O' A5 k4 K1 d x7 J[ 74.333553] [<c000c1a8>] (dump_backtrace+0x0/0x110) from [<c0408194>] (dump_stack+0x18/0x1c)
. L* c1 o& J; w* { J# D1 y[ 74.356223] r6:00000000 r5:000000d0 r4:00000001 r3:20000093$ ?9 ?6 O x; d U5 \: h1 T
[ 74.362055] [<c040817c>] (dump_stack+0x0/0x1c) from [<c005dc50>] (warn_alloc_failed+0xf4/0x118)
( y$ d6 H! \: {[ 74.386451] [<c005db5c>] (warn_alloc_failed+0x0/0x118) from [<c0060764>] (__alloc_pages_nodemask+0x578/0x5d8)% y* F# M! _4 |- {& E: ]
[ 74.406178] r3:c71fbd1c r2:00000000
& R' m8 |/ @0 P[ 74.409822] r7:c05bd478 r6:c71fa000 r5:0000000a r4:000000d0
" ^, n/ w) U( C$ z7 q- M[ 74.415828] [<c00601ec>] (__alloc_pages_nodemask+0x0/0x5d8) from [<c000df0c>] (__dma_alloc+0xd8/0x2ec)
% v% {8 F* ]$ K+ Y" L4 Y" q[ 74.447742] [<c000de34>] (__dma_alloc+0x0/0x2ec) from [<c000e1b0>] (dma_alloc_coherent+0x5c/0x68)4 o( A8 I7 q! j2 s% L, C
[ 74.467181] [<c000e154>] (dma_alloc_coherent+0x0/0x68) from [<c02d5a20>] (__videobuf_mmap_mapper+0xa8/0x180)
) Y* Q$ {( A& a( [/ Z5 \[ 74.496167] r7:c7182920 r6:c7ba8d90 r5:c71feee4 r4:c72b69a0* L9 o: P8 o4 W7 }, {0 K
[ 74.502044] [<c02d5978>] (__videobuf_mmap_mapper+0x0/0x180) from [<c02d36c4>] (videobuf_mmap_mapper+0xc0/0x110)" y! G7 |3 {+ D
[ 74.527223] r8:c708d300 r7:b674b000 r6:c72b69a0 r5:c72b69a0 r4:c7ba8d90: @, D9 N7 H( J! e6 D
[ 74.534166] [<c02d3604>] (videobuf_mmap_mapper+0x0/0x110) from [<c02de0bc>] (vpif_mmap+0x40/0x50)& P/ {. w# b! x/ n+ n3 F" A
[ 74.556197] r5:c7ba8c00 r4:c72b69a0
- u$ q$ p' P4 @. u( x+ |[ 74.559945] [<c02de07c>] (vpif_mmap+0x0/0x50) from [<c02c55f4>] (v4l2_mmap+0x70/0x90)1 ?5 L0 e" `, n) U8 l$ V
[ 74.587055] r5:c71fe580 r4:c79c2e004 T1 W) ~9 D% y( M7 y/ Y2 C3 W
[ 74.590771] [<c02c5584>] (v4l2_mmap+0x0/0x90) from [<c007846c>] (mmap_region+0x268/0x4c0)
3 R* v" |; r4 O! ~* E, ?+ U[ 74.616153] r6:c71fe580 r5:000000ff r4:c72b69a0 r3:c02c5584
/ w. ^0 x8 P8 c[ 74.621976] [<c0078204>] (mmap_region+0x0/0x4c0) from [<c007897c>] (do_mmap_pgoff+0x2b8/0x318)
1 ~! H" R# V4 Y& P[ 74.646297] [<c00786c4>] (do_mmap_pgoff+0x0/0x318) from [<c0078a74>] (sys_mmap_pgoff+0x98/0xd0)
) k5 `/ K) e$ r7 h- [[ 74.655109] [<c00789dc>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)
6 p3 o4 a* D" z1 _/ P# _# {[ 74.688020] Mem-info:
3 L% d# D( W. n1 y1 Y[ 74.690383] DMA per-cpu:# s! p& d, W9 d6 `2 X5 \
[ 74.692955] CPU 0: hi: 18, btch: 3 usd: 17) @& S: J/ h$ A8 I0 [
[ 74.700640] active_anon:3001 inactive_anon:46 isolated_anon:0
/ |. }0 P$ q9 q# e8 r7 w[ 74.700664] active_file:2684 inactive_file:6310 isolated_file:24
7 U! n/ _" n9 r7 ~[ 74.700684] unevictable:0 dirty:67 writeback:0 unstable:0* E) y3 {: W' s; p
[ 74.700700] free:7432 slab_reclaimable:505 slab_unreclaimable:739
4 @8 ~/ r6 {' A[ 74.700718] mapped:2376 shmem:141 pagetables:143 bounce:0# w, h" N2 O" W, g' W* T
[ 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
3 E5 ^( z& n* n6 a3 u$ k[ 74.846179] lowmem_reserve[]: 0 0 0
7 m4 |7 ` [4 m/ C/ m" {( N- {" T8 Q [" s[ 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
2 @% y& |; b. B% o! q[ 74.871095] 5393 total pagecache pages8 }# P4 x* N2 y0 U! A/ t5 g
[ 74.874878] 0 pages in swap cache
$ ?# q. t) ]1 o[ 74.896156] Swap cache stats: add 0, delete 0, find 0/01 c) d. T) M. Q9 S- {+ E0 N
[ 74.901444] Free swap = 0kB# G$ I# `* R9 x1 o; M# Q1 u
[ 74.904346] Total swap = 0kB) f2 V$ E, r" }5 x: e
[ 74.946799] 49152 pages of RAM) w! h7 c$ J0 m# {+ M# j ?) F5 I
[ 74.949901] 25326 free pages( N) s }$ l# ]' ?
[ 74.952803] 3366 reserved pages
2 n0 r7 i5 R$ R$ P[ 74.966186] 2124 slab pages
, t& F7 c: n( Y& Z" B[ 74.969063] 7387 pages shared
6 ?3 d \4 h% P3 Y% E[ 74.972058] 0 pages swap cached6 T- {6 `9 g$ ?- O7 h, W6 g9 G
[ 74.975243] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed% ?2 H) Q0 x1 j& {/ X* O' X
Cannot mmap = 1 buffer A) B6 o+ ?: ?/ s8 e6 ^9 ~
Error in opening capture device for channel 0( }4 }+ D' S6 [
2 l) `& y* X0 ? 8 v, K4 b# `6 |" C& J& a
这上面是新的错误提示,请再帮我看看是哪里出了问题,谢谢。
0 e8 h. t+ l# r) K" Q" O0 Z |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|