|
板凳

楼主 |
发表于 2016-1-30 11:15:26
|
只看该作者
, R' K( Q3 |8 f6 F" C. V8 e& ]3 C/ z: c
' c( W2 R3 Z8 a7 [* h8 W$ D+ ]2 z# j o0 X% E5 O0 }9 ^" V
看一下,我把环境变量打印出来了,这样配置是对的吗?
) {5 O! ~5 t \- A5 L
' f# d% H, n# x$ r8 K! @) u
& H& r- e+ _$ [$ U* g Groot@tl:/home# ./vpif_mmap_loopback_sd -c 2 -d 0 -w 1 -m 2
" w1 M( J( p5 j/ w4 kCAMERA capture
J! A4 P# c6 binput_device /dev/video0
3 L9 a6 I3 S: F, mCamera-Camera9 |- P" L6 `6 h- R8 C, S5 P
fmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)& B; o1 {6 W- P
fmt->fmt.pix.pixelformat(50424752),V4L2_PIX_FMT_YUV422P(50323234),V4L2_PIX_FMT_RGB565(50424752), L8 Q- i+ }& \+ [5 K ?: E
fmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000): o3 V" ?! e4 v* `% O* T
capture_buff_info[0].length = 4147200
6 I0 J/ k$ X4 m8 S7 ccapture_buff_info[0].index = 06 a4 X3 a7 h6 t, @+ F, a
capture_buff_info[0].start = 0xb6b40000( m$ X( X. Z5 f
[ 74.316779] vpif_mmap_loopb: page allocation failure: order:10, mode:0xd00 W1 j5 F' P' ?* U
[ 74.323663] Backtrace: & i9 `1 m; \6 K8 P+ c+ V
[ 74.333553] [<c000c1a8>] (dump_backtrace+0x0/0x110) from [<c0408194>] (dump_stack+0x18/0x1c)' `( a( Q n; W: a
[ 74.356223] r6:00000000 r5:000000d0 r4:00000001 r3:20000093) a- y S! C4 ]
[ 74.362055] [<c040817c>] (dump_stack+0x0/0x1c) from [<c005dc50>] (warn_alloc_failed+0xf4/0x118)
; O$ N. C' |& z% D1 v9 K[ 74.386451] [<c005db5c>] (warn_alloc_failed+0x0/0x118) from [<c0060764>] (__alloc_pages_nodemask+0x578/0x5d8)0 Z/ f Z3 Z V2 j: ?
[ 74.406178] r3:c71fbd1c r2:000000007 o* H4 ]/ K; [. Q8 ?
[ 74.409822] r7:c05bd478 r6:c71fa000 r5:0000000a r4:000000d0- L b6 t( ]% n o! M# O
[ 74.415828] [<c00601ec>] (__alloc_pages_nodemask+0x0/0x5d8) from [<c000df0c>] (__dma_alloc+0xd8/0x2ec)% A4 o. y0 J& g. ]8 [7 f6 {
[ 74.447742] [<c000de34>] (__dma_alloc+0x0/0x2ec) from [<c000e1b0>] (dma_alloc_coherent+0x5c/0x68)
# U# Z+ s4 j' {! h7 o, A[ 74.467181] [<c000e154>] (dma_alloc_coherent+0x0/0x68) from [<c02d5a20>] (__videobuf_mmap_mapper+0xa8/0x180), B0 F% @9 Y( D1 U9 d
[ 74.496167] r7:c7182920 r6:c7ba8d90 r5:c71feee4 r4:c72b69a0. ^9 m# d G. m) q2 I8 v1 m
[ 74.502044] [<c02d5978>] (__videobuf_mmap_mapper+0x0/0x180) from [<c02d36c4>] (videobuf_mmap_mapper+0xc0/0x110)
1 x. e. q! z% c2 R[ 74.527223] r8:c708d300 r7:b674b000 r6:c72b69a0 r5:c72b69a0 r4:c7ba8d90' Q8 f3 d5 D4 w8 b
[ 74.534166] [<c02d3604>] (videobuf_mmap_mapper+0x0/0x110) from [<c02de0bc>] (vpif_mmap+0x40/0x50)
- d" \2 B' T8 w. W! k[ 74.556197] r5:c7ba8c00 r4:c72b69a0
" ^# R& n* q3 H5 j1 {[ 74.559945] [<c02de07c>] (vpif_mmap+0x0/0x50) from [<c02c55f4>] (v4l2_mmap+0x70/0x90) v) q2 D H% |% _; J% C
[ 74.587055] r5:c71fe580 r4:c79c2e00
) V& Z, D0 Z! P/ }* K9 W[ 74.590771] [<c02c5584>] (v4l2_mmap+0x0/0x90) from [<c007846c>] (mmap_region+0x268/0x4c0)! H* a/ p6 h) S- v+ a3 \
[ 74.616153] r6:c71fe580 r5:000000ff r4:c72b69a0 r3:c02c5584& i" `- I: E8 H" C' ^" D( N6 P2 w
[ 74.621976] [<c0078204>] (mmap_region+0x0/0x4c0) from [<c007897c>] (do_mmap_pgoff+0x2b8/0x318)
7 X. A. J2 c' B L" |4 Q0 x[ 74.646297] [<c00786c4>] (do_mmap_pgoff+0x0/0x318) from [<c0078a74>] (sys_mmap_pgoff+0x98/0xd0)
$ ]) z0 c( c8 G7 B2 s! w% y[ 74.655109] [<c00789dc>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)' K0 g& u" q5 }0 h7 _+ a/ _
[ 74.688020] Mem-info:3 A8 E. R# J2 _# H
[ 74.690383] DMA per-cpu:
1 y% _6 C2 i; Y, s[ 74.692955] CPU 0: hi: 18, btch: 3 usd: 17
) @% u/ a3 n/ D8 x[ 74.700640] active_anon:3001 inactive_anon:46 isolated_anon:0( C3 K0 x+ {0 [
[ 74.700664] active_file:2684 inactive_file:6310 isolated_file:24
( U6 Q" f2 H- `; E9 Q4 `! \* ~9 q[ 74.700684] unevictable:0 dirty:67 writeback:0 unstable:0
) K! E: d" Q* J+ R, q" j7 z[ 74.700700] free:7432 slab_reclaimable:505 slab_unreclaimable:7399 }0 v' T9 f6 D# J7 T, Z
[ 74.700718] mapped:2376 shmem:141 pagetables:143 bounce:0
5 ?; Y0 B/ o* C! d8 r[ 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# L* a8 h% Y, y( r; N( ?
[ 74.846179] lowmem_reserve[]: 0 0 04 ~! r* ? ?# H: S& L/ r8 |
[ 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' P. p7 |: C; o0 C0 }" P. }: A
[ 74.871095] 5393 total pagecache pages/ _! p$ y9 W0 l
[ 74.874878] 0 pages in swap cache% \( c$ T: z' E, ?
[ 74.896156] Swap cache stats: add 0, delete 0, find 0/0
& N r/ s0 a( h( C8 A% Z% ^0 t[ 74.901444] Free swap = 0kB
# }, c: y: P4 X- s[ 74.904346] Total swap = 0kB! e7 e: J0 B0 S, [5 z) |' a" G) O
[ 74.946799] 49152 pages of RAM
: l' v6 k6 U* o B& M- I- a4 ^[ 74.949901] 25326 free pages# k2 {' Q* ?, X
[ 74.952803] 3366 reserved pages; X5 e. D" R8 R1 O9 G0 S
[ 74.966186] 2124 slab pages3 ~" B+ F* A Y( e* K& ?+ P
[ 74.969063] 7387 pages shared& F) W- C$ [& }( X9 l
[ 74.972058] 0 pages swap cached
9 e9 Z4 q, k& l; s% I5 g/ p[ 74.975243] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed
3 p' x: v9 g! m1 T: X5 A WCannot mmap = 1 buffer$ r; L! f. k! H& a. v
Error in opening capture device for channel 0) |& T, q+ f/ v% |2 o+ g
7 l- u3 @8 k4 x6 o
5 c {, _& k5 k这上面是新的错误提示,请再帮我看看是哪里出了问题,谢谢。
& a# y4 g$ w. d( } |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|