|
板凳

楼主 |
发表于 2016-1-30 11:15:26
|
只看该作者
3 Q, R$ u, G0 G: v9 H- D
! A/ N3 X, W$ A0 ?) a
/ ]+ o! V$ i1 T8 g3 `- p% Y看一下,我把环境变量打印出来了,这样配置是对的吗?( k" t s( {: _) B4 G
5 k0 A0 o4 o3 D i; D" @+ T, }- j' T B7 A+ G7 T
root@tl:/home# ./vpif_mmap_loopback_sd -c 2 -d 0 -w 1 -m 21 `0 J! A8 `1 U( C
CAMERA capture- B3 E1 i: {5 ~( E5 C. c- ?( M
input_device /dev/video0# b3 d; a: r3 g/ r8 d# n) ?
Camera-Camera+ `0 R$ Z( A6 x
fmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)9 S9 Y% ~ h) t7 m
fmt->fmt.pix.pixelformat(50424752),V4L2_PIX_FMT_YUV422P(50323234),V4L2_PIX_FMT_RGB565(50424752)
[! t& ]# S6 V. |- u/ P: Tfmt->fmt.pix.bytesperline(1600),fmt->fmt.pix.sizeimage(960000)& F9 {4 F; B8 F
capture_buff_info[0].length = 4147200
m& b: Z% e! F2 y9 d* [, X1 B; lcapture_buff_info[0].index = 0
% s! s$ Q) }- Z+ M! W$ B( wcapture_buff_info[0].start = 0xb6b40000
8 A6 \( |; N9 U1 O, h3 \0 h% \[ 74.316779] vpif_mmap_loopb: page allocation failure: order:10, mode:0xd0) R( g, c7 t# ?4 b
[ 74.323663] Backtrace:
9 K7 v% c( [) u- x5 P8 ~( J1 G3 k* ^[ 74.333553] [<c000c1a8>] (dump_backtrace+0x0/0x110) from [<c0408194>] (dump_stack+0x18/0x1c)9 R* t* c( ?1 X6 z
[ 74.356223] r6:00000000 r5:000000d0 r4:00000001 r3:20000093
6 x, m6 T7 L% p4 g; }* `[ 74.362055] [<c040817c>] (dump_stack+0x0/0x1c) from [<c005dc50>] (warn_alloc_failed+0xf4/0x118)3 ^0 W* O1 ?" I; b
[ 74.386451] [<c005db5c>] (warn_alloc_failed+0x0/0x118) from [<c0060764>] (__alloc_pages_nodemask+0x578/0x5d8)
& g+ Y. } J* X$ @- Z; q d[ 74.406178] r3:c71fbd1c r2:00000000
* n/ b* u2 M3 X* s& [+ \$ p& R, b[ 74.409822] r7:c05bd478 r6:c71fa000 r5:0000000a r4:000000d03 q7 l4 k' }3 a0 m" R. g
[ 74.415828] [<c00601ec>] (__alloc_pages_nodemask+0x0/0x5d8) from [<c000df0c>] (__dma_alloc+0xd8/0x2ec)
( `9 l3 f( W4 L1 j1 M6 z- i[ 74.447742] [<c000de34>] (__dma_alloc+0x0/0x2ec) from [<c000e1b0>] (dma_alloc_coherent+0x5c/0x68)# B4 m. n- t! E7 D0 O* y3 h
[ 74.467181] [<c000e154>] (dma_alloc_coherent+0x0/0x68) from [<c02d5a20>] (__videobuf_mmap_mapper+0xa8/0x180)4 e; B. Q' M1 I
[ 74.496167] r7:c7182920 r6:c7ba8d90 r5:c71feee4 r4:c72b69a0
# S5 [/ R; v' u! f) m( E[ 74.502044] [<c02d5978>] (__videobuf_mmap_mapper+0x0/0x180) from [<c02d36c4>] (videobuf_mmap_mapper+0xc0/0x110)
+ F* P) f% _ H$ v9 V6 s) s[ 74.527223] r8:c708d300 r7:b674b000 r6:c72b69a0 r5:c72b69a0 r4:c7ba8d90
& P; P; R! s) \7 M! d* r' P- X[ 74.534166] [<c02d3604>] (videobuf_mmap_mapper+0x0/0x110) from [<c02de0bc>] (vpif_mmap+0x40/0x50)1 t4 x( m6 [; \7 O+ s. H7 a
[ 74.556197] r5:c7ba8c00 r4:c72b69a0
2 x. d. L; ]' _* W2 C2 w[ 74.559945] [<c02de07c>] (vpif_mmap+0x0/0x50) from [<c02c55f4>] (v4l2_mmap+0x70/0x90)
5 g+ A7 A" h6 f[ 74.587055] r5:c71fe580 r4:c79c2e007 [) r+ Q# ]5 v; Y3 _
[ 74.590771] [<c02c5584>] (v4l2_mmap+0x0/0x90) from [<c007846c>] (mmap_region+0x268/0x4c0)
* K# E7 L! o ^8 ^4 Y[ 74.616153] r6:c71fe580 r5:000000ff r4:c72b69a0 r3:c02c5584
+ |: m" H' `! r. x/ m, V* X[ 74.621976] [<c0078204>] (mmap_region+0x0/0x4c0) from [<c007897c>] (do_mmap_pgoff+0x2b8/0x318)
. P7 }& X0 O/ t8 |5 s9 l[ 74.646297] [<c00786c4>] (do_mmap_pgoff+0x0/0x318) from [<c0078a74>] (sys_mmap_pgoff+0x98/0xd0)
) ?. m6 u8 M( e9 V) v[ 74.655109] [<c00789dc>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c). i" M( Z# N& `: ?
[ 74.688020] Mem-info:2 ^" t* a6 z' d# g. _
[ 74.690383] DMA per-cpu:
9 U) O% ?5 o7 D7 V3 I7 @$ g8 a( m8 |[ 74.692955] CPU 0: hi: 18, btch: 3 usd: 17
- R- r1 f, o! T4 @/ e4 A i[ 74.700640] active_anon:3001 inactive_anon:46 isolated_anon:0* J2 L. c' }5 x8 Q9 \1 v& H
[ 74.700664] active_file:2684 inactive_file:6310 isolated_file:24
' W1 ^4 e$ z* ~$ M8 U, V5 J3 s: l[ 74.700684] unevictable:0 dirty:67 writeback:0 unstable:0
Q- O# P. _* I' J5 l. g[ 74.700700] free:7432 slab_reclaimable:505 slab_unreclaimable:7391 B+ n0 W! z9 c N! R3 H) N/ m
[ 74.700718] mapped:2376 shmem:141 pagetables:143 bounce:0# V% y2 B! ]/ S/ j3 h9 F+ z7 e3 ~5 N
[ 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 e" Z6 e* F+ s2 v$ J5 \ ~0 D[ 74.846179] lowmem_reserve[]: 0 0 0
) H- G$ H1 X8 s0 c[ 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
N6 \% P" }/ O% j[ 74.871095] 5393 total pagecache pages9 g* b4 W5 c Q/ [
[ 74.874878] 0 pages in swap cache
, z. e/ _8 A1 i9 p1 S[ 74.896156] Swap cache stats: add 0, delete 0, find 0/0
, J# ^2 j3 X5 h- I. C# Z[ 74.901444] Free swap = 0kB
* }/ ]: m( S/ b3 J[ 74.904346] Total swap = 0kB/ u" O2 h. j1 x
[ 74.946799] 49152 pages of RAM
6 H; D$ o/ T5 S' q7 G+ D1 n6 `[ 74.949901] 25326 free pages$ ?0 p2 M& A. \" s2 T7 c# ~* h n
[ 74.952803] 3366 reserved pages
j: \# T* O W b" W& k# m& j; R[ 74.966186] 2124 slab pages
* U. U8 p9 n+ r7 v" e[ 74.969063] 7387 pages shared
5 S1 t+ `- r r[ 74.972058] 0 pages swap cached
$ q' m# Y0 F" m! J[ 74.975243] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed3 I* v, D3 _& L8 I t' @
Cannot mmap = 1 buffer. H8 c% Q5 |" a u. b0 _) ]
Error in opening capture device for channel 0
/ i# c1 i7 t2 a
) A" X3 w' Q' f1 @' m2 H0 n6 {
( T3 N9 L2 }: C# m- U! ^这上面是新的错误提示,请再帮我看看是哪里出了问题,谢谢。
7 a" B+ H7 w) y |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|