嵌入式开发者社区

标题: face_detect双核通信 [打印本页]

作者: robinluo123    时间: 2015-11-2 15:59
标题: face_detect双核通信
root@tl:/face_detect/run# ./run.sh - U$ M( ]# v) P' P9 s2 t

" e6 ^; I+ G) ^0 O& i6 O+ MODULE_NAME=syslink; N" W1 m6 V4 p
+ lsmod2 s2 K* ]2 S1 P) T' T
+ grep syslink
9 P; N* \1 L/ `% ^+ K* o- s+ '[' 0 -ne 0 ']'
" U0 _6 w0 G- L8 v7 E7 q+ ./slaveloader startup DSP ../dsp/bin/debug/server_dsp.xe6746 a5 L4 A1 V8 l. `
Attached to slave procId 0.
$ U2 B3 t3 `. s, X& G# V2 HLoading procId 0.$ @' L. a  V7 _- v- `
Loaded file ../dsp/bin/debug/server_dsp.xe674 on slave procId 0.  k; Q& c+ z/ ]- k# j. r
Started slave procId 0.
5 G( w& F* ^/ K1 c+ ../host/host_app -qws) E0 t" x5 [/ _7 p
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync/ X" P3 ]8 T6 U# D9 b, _/ b) ~: J; U
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync2 B, `' y$ N- }$ P5 R! N0 h
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync7 a' i/ H3 s/ y0 @; r
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
, N+ D: G) P$ H: |! q4 k[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync0 o8 T/ o" C  S" h8 s; T
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
+ H# @3 v; C# i' \[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
) I' Z8 A/ f; g$ U% P[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
6 y# w5 s/ ]9 b0 J% T[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
# H) l, r, G3 B[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync+ I4 \) l* [' M! o4 }
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
6 v$ z+ r9 Q: h3 d, @[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync5 T' U/ T* g7 A
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync* A( C) z! m! ?, s9 S. b! m
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync/ S1 B+ L) y* v+ u
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
- s1 g. b6 R5 e, i% X[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync9 S. N% ]2 [- ?6 E$ x; J5 ?
[DEBUG|resource_sync_wait@resource_sync.c,86] wait resource 1
, Y* h4 {" S% M[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 0 had ready
' ^- w1 r0 B1 \9 O: l[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 1 had ready8 G( y0 |1 t* O# M- r5 Q! `7 m& Q
[DEBUG|resource_sync_post@resource_sync.c,96] post resource 2 had ready
$ g  E) t+ ]4 H# h% z$ i1 fCamera-Camera
3 J) z+ C- z9 s# P9 O+ }[   76.366400] host_app: page allocation failure: order:10, mode:0xd0
5 @: L6 H3 F' f3 y$ m. b' T[   76.377606] Backtrace:
" N: d% ~- q1 J[   76.380222] [<c000c580>] (dump_backtrace+0x0/0x114) from [<c0419474>] (dump_stack+0x18/0x1c)% l5 N7 H9 q+ V* H1 l1 q/ t8 X
[   76.397060]  r7:00000000 r6:0000000a r5:000000d0 r4:00000001
: q- I" D$ _  w1 g[   76.403249] [<c041945c>] (dump_stack+0x0/0x1c) from [<c0061e0c>] (warn_alloc_failed+0xf8/0x11c), B. R% {- ~$ e, V- o
[   76.412099] [<c0061d14>] (warn_alloc_failed+0x0/0x11c) from [<c006237c>] (__alloc_pages_nodemask+0x54c/0x590)
" e+ G/ d" n' W/ [- o[   76.425768]  r3:00000000 r2:00000000- J$ O$ i/ H% ?2 W, `# F
[   76.429410]  r7:00000040 r6:00000035 r5:000000d0 r4:00000000
; r( c* s2 v- J. z4 _+ x9 Y[   76.436700] [<c0061e30>] (__alloc_pages_nodemask+0x0/0x590) from [<c000e030>] (__dma_alloc+0xec/0x2fc)3 g7 s7 B0 M6 z( l4 c( T
[   76.448512] [<c000df44>] (__dma_alloc+0x0/0x2fc) from [<c000e2d0>] (dma_alloc_coherent+0x5c/0x68)
4 @& j0 @) l# C- ?  }[   76.459091] [<c000e274>] (dma_alloc_coherent+0x0/0x68) from [<c02e2a4c>] (__videobuf_mmap_mapper+0xac/0x188)
" V/ i/ g; I+ f# |[   76.470521]  r7:c1bded90 r6:c1113b80 r5:c12d1b00 r4:c1113be4
* U6 p2 W7 Y+ b. u3 ?[   76.476678] [<c02e29a0>] (__videobuf_mmap_mapper+0x0/0x188) from [<c02e0724>] (videobuf_mmap_mapper+0xd4/0x114)
1 M! n8 G6 G- M[   76.489213]  r8:b52dc000 r7:c1113380 r6:c12d1b00 r5:c1bded90 r4:c12d1b00
# T$ [  _! w# J  y0 o+ u5 Y$ S: `[   76.496486] [<c02e0650>] (videobuf_mmap_mapper+0x0/0x114) from [<c02eb1fc>] (vpif_mmap+0x40/0x50)' @9 v) f. ^" i* Z+ X
[   76.507848]  r5:c12d1b00 r4:c1bdec00/ @. x, c  }4 [+ E1 f9 Q  U
[   76.511602] [<c02eb1bc>] (vpif_mmap+0x0/0x50) from [<c02d20e4>] (v4l2_mmap+0x70/0x90)
8 e2 |( K" c- R- u[   76.521828]  r5:c1bffe00 r4:c1113380
4 M" y$ m* N0 w' R( Y[   76.526209] [<c02d2074>] (v4l2_mmap+0x0/0x90) from [<c007a8f0>] (mmap_region+0x25c/0x494)% i- H# y( X! K% p
[   76.536792]  r7:c1113380 r6:000000ff r5:c12d1b00 r4:00000000
2 \3 W) ~# L5 L# c7 j! R7 b" H[   76.542984] [<c007a694>] (mmap_region+0x0/0x494) from [<c007adec>] (do_mmap_pgoff+0x2c4/0x324)
* Y4 w, S1 t) S6 t9 M, G+ G. O! r[   76.551694] [<c007ab28>] (do_mmap_pgoff+0x0/0x324) from [<c007aeec>] (sys_mmap_pgoff+0xa0/0xd0)
* z( K: w' ^& u! ]3 Z[   76.563987] [<c007ae4c>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)
9 ?4 x" H; f6 Q* i: u& q[   76.574327] Mem-info:0 Y% _2 \: T. F0 h/ @
[   76.576657] DMA per-cpu:
$ h' }# a& Q; x- |. D4 \' i[   76.579223] CPU    0: hi:    0, btch:   1 usd:   01 Z" d7 P+ j- N$ M+ ~* H: S
[   76.587174] active_anon:1430 inactive_anon:35 isolated_anon:0
9 k; M- Z% c5 `6 Q[   76.587198]  active_file:867 inactive_file:896 isolated_file:0# r" M: t2 R8 E8 W1 i  c
[   76.587216]  unevictable:0 dirty:0 writeback:0 unstable:0: X! A! G* L- i: `# K
[   76.587232]  free:258 slab_reclaimable:286 slab_unreclaimable:789
5 k! }9 s* O# }. E[   76.587251]  mapped:1276 shmem:132 pagetables:122 bounce:0
0 s9 d# e& c6 q7 y[   76.620851] DMA free:1032kB min:720kB low:900kB high:1080kB active_anon:5720kB inactive_anon:140kB active_file:3468kB inactive_file:3584kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:32512kB mlocked:0kB dirty:0kB writeback:0kB mapped:5104kB shmem:528kB slab_reclaimable:1144kB slab_unreclaimable:3156kB kernel_stack:536kB pagetables:488kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? no$ Y7 n/ M: n' C+ ~) N% _  `( O: D! @
[   76.661444] lowmem_reserve[]: 0 0 0
# V: g/ H# A+ {+ I& K9 b3 Z7 V[   76.665355] DMA: 81*4kB 8*8kB 1*16kB 1*32kB 0*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 1076kB
& Z* F% M2 b6 J' g8 d[   76.677034] 1884 total pagecache pages
" p! {1 ]3 [2 ?( G, M[   76.680817] 0 pages in swap cache6 @# k$ B7 w' l; ^$ {+ R
[   76.687285] Swap cache stats: add 0, delete 0, find 0/0  U; i& ~& s4 K4 J" k0 C, z
[   76.693996] Free swap  = 0kB: u9 y5 s1 s' w* q" X/ k) |
[   76.696926] Total swap = 0kB( M7 |. p: ~3 |7 p3 A  `7 T
[   76.701578] 8192 pages of RAM/ ]* g* e9 W; e9 M' G
[   76.707668] 405 free pages
/ {# \" S! }  B2 |5 [3 k6 r[   76.710418] 1555 reserved pages
; {' k* B' \& z1 W[   76.715882] 838 slab pages
, l% f- q# |0 K% o$ I[   76.718631] 1851 pages shared0 o8 K  }" T9 {5 B3 N/ z1 O8 o6 o
[   76.721620] 0 pages swap cached
+ f3 U: J3 A9 v- N+ N$ ]) [. Y[   76.728009] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed/ ?' O+ X: J, }( u' F9 z
Cannot mmap = 0 buffer
( [6 \0 h" }2 U0 r% Y% l9 R( fVIDIOC_STREAMON
, q' }0 O# i3 R; o6 c4 Z- k: Input/output error9 Z' N: V' Y8 X7 D) R0 ]. p. m) ?/ i
[ERROR|start@capturer.cpp,27] fail to start capture
2 B1 V8 t0 Z5 T5 [1 o4 tQThread::start: Thread creation error: Resource temporarily unavailable4 z6 d  l- i* g% v. @
[DEBUG|start@playbacker.cpp,25] it's about to start playback- x1 V+ f2 z3 W$ t9 z7 a

; w0 t/ s2 e7 ~6 U用led双核可以,这个demo就不行了,怎么解决啊
4 N! z2 H  L; g- w& J6 t: o- W
* c' G4 g$ N1 e6 |3 Y5 Q
作者: teddy    时间: 2015-11-3 09:14
需要配置vpif的缓存;2 w6 }, n+ Q) }- }& j# g; V1 j: ]6 f
1.vpif capture模式选择,vpif_capture_format值:; R0 U4 E) d, I; N
HDTV:预留
* R; H& m4 n" i- ~SDTV: TL5147% c/ o. O( L( T. ~9 o3 h& x  n
RAW:TL2640
1 V' g& T3 a: x% }: F2.(ov2640配置分辨率为640*480 = 640*480*2 = 614400)6 d0 L3 z& d5 o* Z, g- L2 v+ u
vpif_capture.ch0_bufsize=614400
" _! O; u0 [( G; {0 {例如:
' }% Z1 n0 i' Z; hU-Boot >      setenv optargs  ${optargs} vpif_capture_format=RAW vpif_capture.ch0_bufsize=6144000 L* b' p5 L6 b' y% m1 y
说明:optargs变量为参数添加变量,主要给需要添加参数传递给内核。
$ r/ i  P5 M, q8 R& e4 s setenv optargs  ${optargs} vpif_capture_format=SDTV vpif_capture.ch0_bufsize=614400
作者: robinluo123    时间: 2015-11-3 10:22
da850-panel=TL070A( l( R% r' f4 q% o; e
emac-mode=mii1 D" n+ |- Y7 [7 l0 r( J2 e/ b
ethact=DaVinci-EMAC
7 m, C+ O, N& q  |1 ~ethaddr=16:01:c0:17:45:e5/ p8 }% L; C, G* W3 Q% v& W
hwconfig=dsp:wake=yes% J. A1 r1 }% w+ T7 t
ipaddr=10.3.2.99! Y! g- X' x* ~  M6 T* R7 o
loadaddr=0xc0700000+ r/ a5 o. Y) _1 O$ r2 i. T3 G: M
loadbootscr=fatload mmc ${mmcdev} ${scraddr} ${bootscr}
5 B1 \8 A  a0 E/ K2 P& Bloadimage=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}) v3 [1 W& c! r
mem_args=mem=32M@0xc0000000 mem=64M@0xc4000000; b) b- _' q  c8 j  F
mmcargs=setenv bootargs ${commonargs} root=${mmcroot} rootfstype=${mmcrootfstype}
4 U! q& ~1 a: V$ r' j" ]mmcboot=mmc dev ${mmcdev}; if mmc rescan; then if run loadbootscr; then echo Loaded bootscript from ${bootscr}; source ${scraddr}; fi; if run loadimage; then echo Booting from mmc${mmcdev} ...; run mmcargs; bootm ${loadaddr}; fi; fi;
" g+ H$ \3 P/ @# D# o6 bmmcdev=0+ J8 ?& Z. |$ ]" W2 R/ M
mmcroot=/dev/mmcblk0p2 rw6 Q7 H  Q! k2 {
mmcrootfstype=ext3 rootwait! S8 o) u+ U: I# q* |9 U
mtddevname=env
9 }2 K8 W6 b1 Y, ]1 _5 X9 cmtddevnum=0! I9 R, |$ M$ t2 j
mtdids=nand0=davinci_nand.09 \4 }! ~0 B# L4 ^4 W( d
mtdparts=mtdparts=davinci_nand.0:128k(env),512k(spl),512k(u-boot),4m(kernel),-(filesystem)6 L8 b2 d, W. ?% }) e; L" I
nandargs=setenv bootargs ${commonargs} root=${nandroot} rootfstype=${nandrootfstype}
% N; G2 `* H  k7 Q  o+ q7 Knandboot=if nboot ${nandbootpart}; then echo Booting from nand ...; run nandargs; bootm ${loadaddr}; fi;- P  E- S& g- z- W! o
nandbootpart=kernel0 Z* t2 J# b$ N6 h  Q4 a+ t
nanddev=0
3 h6 K8 @0 g( b7 Q$ d3 s' jnandroot=ubi0_0 ubi.mtd=4,2048  X  j2 N+ `% @! w- E
nandrootfstype=ubifs
) H- g9 v  i1 N+ h6 ~  [& knetmask=255.255.255.02 Q8 A1 i2 L5 e
nfsargs=setenv bootargs ${commonargs} ip=dhcp root=/dev/nfs nfsroot=${serverip}{nfspath},nolock rw
. F& t1 s) e% }3 j& l8 }  goptargs=vpif_capture_format=SDTV vpif_capture.ch0_bufsize=614400  T+ F6 |; g: m# `: n
partition=nand0,0' y2 w% N7 c4 X3 }
scraddr=0xc0600000
  ~7 E9 O2 e, Q# F, [( Jserverip=10.3.2.175# v0 F8 Q2 Y3 I; H
spiboot=if sf probe ${spidev}; then sf read ${loadaddr} ${spibootaddr} ${spibootsize}; run nandargs; bootm ${loadaddr}; fi;
( k1 t$ S7 _: j% h) c* ?- d" k+ t4 `spibootaddr=0x1000001 _7 j# h8 w" g
spibootsize=0x400000$ Y3 t5 p0 G# @5 @& B; m+ D+ F% }- a
spidev=0" v5 O' Z, m3 l9 \0 g, I
stderr=serial
3 K) a; d' L  G# [3 D% cstdin=serial( d6 p+ G4 h* w! H4 h6 f, ~( N
stdout=serial
8 d1 n3 R! j1 j- Iver=U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)2 Q; Z- C3 i' U/ b' d" P% }" d

0 k, G) b. J$ X/ n; ^+ P: c
1 X' x# V6 j# K: A! g9 h; o还是不行
  X' m  Y, ?* e2 K) D5 C
# ]1 u  i6 d6 O- p( S* i& n
作者: robinluo123    时间: 2015-11-3 10:23
Started slave procId 0./ u2 P5 H2 U  H# Q, O) v! i- P% [
+ ../host/host_app -qws( Z! v9 a# Z0 t$ G  f
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
) J8 Q/ K3 b6 B# `: i& i[DEBUG|resource_sync_wait@resource_sync.c,86] wait resource 1: l( u: z- R0 I% ^) U' a) Y4 h
[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 0 had ready
0 ^* [7 B0 j: U$ C[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 1 had ready
1 [" F  k0 T6 W( g8 B" ]. @# D$ |. S[DEBUG|resource_sync_post@resource_sync.c,96] post resource 2 had ready
/ x( ~: \( S* UCamera-Camera
- W! ~/ H5 L* Y! C: {0 j[   34.616261] host_app: page allocation failure: order:10, mode:0xd0/ `1 `" C* x! J+ g
[   34.627157] Backtrace:
1 ?/ L" f4 P! M, S! d4 O[   34.630203] [<c000c580>] (dump_backtrace+0x0/0x114) from [<c0419474>] (dump_stack+0x18/0x1c)8 A# a6 E- s4 v( M) A, |7 A
[   34.652340]  r7:00000000 r6:0000000a r5:000000d0 r4:00000001
. U# J% p# I9 F[   34.658528] [<c041945c>] (dump_stack+0x0/0x1c) from [<c0061e0c>] (warn_alloc_failed+0xf8/0x11c). K+ k! G, b: s& a$ J7 x
[   34.669739] [<c0061d14>] (warn_alloc_failed+0x0/0x11c) from [<c006237c>] (__alloc_pages_nodemask+0x54c/0x590). s7 n5 [2 w/ B: C: m; f
[   34.681238]  r3:00000000 r2:000000005 u+ B4 Z2 {: S8 A& j$ o* b
[   34.685216]  r7:00000040 r6:00000035 r5:000000d0 r4:00000000
- n1 Z+ ]% j5 f; x$ w[   34.691084] [<c0061e30>] (__alloc_pages_nodemask+0x0/0x590) from [<c000e030>] (__dma_alloc+0xec/0x2fc)( V3 |. |/ @  Z! d' A
[   34.703957] [<c000df44>] (__dma_alloc+0x0/0x2fc) from [<c000e2d0>] (dma_alloc_coherent+0x5c/0x68)
' K! [/ [7 I7 Q! }6 d/ ?[   34.714824] [<c000e274>] (dma_alloc_coherent+0x0/0x68) from [<c02e2a4c>] (__videobuf_mmap_mapper+0xac/0x188)( x( C: o/ \, r- _1 S
[   34.726242]  r7:c1bded90 r6:c1371700 r5:c12bd688 r4:c1371764
* A) W7 y+ v8 U/ [9 N[   34.732056] [<c02e29a0>] (__videobuf_mmap_mapper+0x0/0x188) from [<c02e0724>] (videobuf_mmap_mapper+0xd4/0x114)
0 c) q, o# s* p[   34.744717]  r8:b5317000 r7:c1371280 r6:c12bd688 r5:c1bded90 r4:c12bd688% z, s( O8 F; U. ]
[   34.751646] [<c02e0650>] (videobuf_mmap_mapper+0x0/0x114) from [<c02eb1fc>] (vpif_mmap+0x40/0x50)
" u& c) p4 M$ I* }& z1 C/ X9 t[   34.763159]  r5:c12bd688 r4:c1bdec009 e: }) F7 a1 ^, M! ]7 b9 Q4 Y
[   34.766879] [<c02eb1bc>] (vpif_mmap+0x0/0x50) from [<c02d20e4>] (v4l2_mmap+0x70/0x90)
' T! A6 Z, v- {, J7 N[   34.777146]  r5:c1bffe00 r4:c1371280
" @9 I. q; G& p: X[   34.780857] [<c02d2074>] (v4l2_mmap+0x0/0x90) from [<c007a8f0>] (mmap_region+0x25c/0x494)' |. ~) q. O  W
[   34.791444]  r7:c1371280 r6:000000ff r5:c12bd688 r4:00000000: b4 h) F; Y1 x  u4 w
[   34.797615] [<c007a694>] (mmap_region+0x0/0x494) from [<c007adec>] (do_mmap_pgoff+0x2c4/0x324); u/ M5 z9 {7 ~/ e2 w9 q
[   34.808680] [<c007ab28>] (do_mmap_pgoff+0x0/0x324) from [<c007aeec>] (sys_mmap_pgoff+0xa0/0xd0)
' i2 ^( r: w5 w4 |* D[   34.823582] [<c007ae4c>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)6 x; e, ]8 F. }9 o# n
[   34.842578] Mem-info:' t5 Q; _, }9 G# n% X$ H" e9 \
[   34.844908] DMA per-cpu:" P( b+ o% I7 m8 q6 o8 m
[   34.847474] CPU    0: hi:    0, btch:   1 usd:   0
2 L8 O7 {7 p0 V[   34.852369] active_anon:1439 inactive_anon:35 isolated_anon:0, @1 I: B% {( Z' D( X6 t$ ?
[   34.852388]  active_file:718 inactive_file:601 isolated_file:0
( ]! R3 P; O+ z6 D5 L0 Y[   34.852404]  unevictable:0 dirty:0 writeback:0 unstable:0
; ^/ w# x# r; Z, @, C[   34.852420]  free:665 slab_reclaimable:289 slab_unreclaimable:815) c/ q0 f) ?. R! ^
[   34.852437]  mapped:1087 shmem:132 pagetables:122 bounce:0
$ y& a' _& o4 k* E( ]* z[   34.932674] DMA free:7568kB min:720kB low:900kB high:1080kB active_anon:5756kB inactive_anon:140kB active_file:160kB inactive_file:156kB unevictable:0kB isolated(anon):0kB isolated(file):52kB present:32512kB mlocked:0kB dirty:0kB writeback:0kB mapped:340kB shmem:528kB slab_reclaimable:1156kB slab_unreclaimable:3260kB kernel_stack:536kB pagetables:488kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:13 all_unreclaimable? no
$ ]( p" u) Y9 h  e- ?% i" d3 y5 t9 \[   35.023590] lowmem_reserve[]: 0 0 0. @; W8 `1 F4 y3 U, ]% `: E- G
[   35.027205] DMA: 842*4kB 329*8kB 59*16kB 4*32kB 1*64kB 0*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB 0*4096kB = 7648kB1 }$ B2 o% u" A( ?8 }) F
[   35.054676] 214 total pagecache pages6 V0 A# _% n, E+ x3 u
[   35.058399] 0 pages in swap cache" Q; _# v; V7 J% Q
[   35.061743] Swap cache stats: add 0, delete 0, find 0/0, O* \* W' _0 R% f* _
[   35.081983] Free swap  = 0kB
7 t: d* C7 v, Z* v. \4 q/ C[   35.085058] Total swap = 0kB
7 o3 k0 G, T5 Q[   35.089678] 8192 pages of RAM+ ], d# P4 j+ G/ z7 o2 C  S; Q! H: X
[   35.103088] 2019 free pages: C7 y6 Y* o. g! N& J
[   35.105926] 1555 reserved pages
! i/ h& l6 D& C2 P[   35.109090] 869 slab pages
% h+ q5 k% D4 q9 j* X: F6 k: }[   35.111813] 161 pages shared- _$ \' X: T% v# T' w
[   35.132854] 0 pages swap cached$ l9 h# X; B5 b
[   35.136068] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed+ K$ Z( `( k1 T) l; i% a/ U: _
Cannot mmap = 0 buffer: g% Q( q4 K- R* o. v& a
VIDIOC_STREAMON! Q9 j. o7 W' n# j% z
: Input/output error" t  p# @# V) R8 z4 W' T7 _- i
[ERROR|start@capturer.cpp,27] fail to start capture
- k1 x! I; [  I, k: ~QThread::start: Thread creation error: Resource temporarily unavailable% h+ d! f7 ?9 B
[DEBUG|start@playbacker.cpp,25] it's about to start playback* J0 g; `7 |& {% x+ d

作者: teddy    时间: 2015-11-3 11:17
你可能用的是128M的内存,所以可能系统内存不够,你用free看看当前系统内存是不是不够。
作者: robinluo123    时间: 2015-11-3 11:39
root@tl:~/face_detect/run# free" s  g6 S3 d; m  A; m
             total       used       free     shared    buffers     cached
7 @; X; X0 ?$ X5 B9 m. Y; w2 PMem:         26548      19728       6820          0          0       2884% F0 L- ^* ]; p. u2 e- S
-/+ buffers/cache:      16844       9704& t1 x% f  }3 g, u9 `
Swap:            0          0          0                              
作者: teddy    时间: 2015-11-3 13:47
内存不够,先关掉一些进程,像matrix-gui,然后在运行你的双核程序。




欢迎光临 嵌入式开发者社区 (https://www.51ele.net/) Powered by Discuz! X3.4