嵌入式开发者社区

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

作者: robinluo123    时间: 2015-11-2 15:59
标题: face_detect双核通信
root@tl:/face_detect/run# ./run.sh
, i' L% O: c/ f# ~: a/ m) G
  z3 y  T* O. o/ I$ G+ MODULE_NAME=syslink7 P1 P+ b( x, f! p
+ lsmod
$ [, P# t5 f: @8 I2 D% B+ grep syslink
8 M9 o$ Y+ v. C7 [+ '[' 0 -ne 0 ']'
" C3 k9 ~% |5 Q. E2 P+ ./slaveloader startup DSP ../dsp/bin/debug/server_dsp.xe674. w7 X; \$ K# M4 P% @# j( A
Attached to slave procId 0.
# v; M# A: V* L) \Loading procId 0.! J* W( A; A& p+ k, w
Loaded file ../dsp/bin/debug/server_dsp.xe674 on slave procId 0.- p: {- t( }; d- B0 j
Started slave procId 0.$ q- D& v4 H, O! [( i+ `( _. H
+ ../host/host_app -qws
8 v; ?( V4 g6 Q9 P2 u+ k[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync( \0 j! o& P0 M" R' d
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
5 C6 C6 u& I2 h$ D8 C; d[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
8 M1 X& U) D  ?9 f5 K; G; B[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
# `5 K( e( y( K" X5 v8 b[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
3 N+ z5 ]# d6 H; q( s[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync% Z" I/ F  l. H9 y! K3 e! F+ x$ _
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
- ^3 U6 Y1 P- ]$ }[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync; h) \+ n* v& b$ W3 E. ?
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync& G) e! Z1 F- C
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
# Y0 M) G: o4 h[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync9 `3 h" o4 X3 h( y1 ]8 _
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync3 ]" f" c$ D% q: i" h) x
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync( H2 I& |& Q* c0 ]2 T4 [! ^( a# N
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync3 C2 [4 q( t9 `+ _* }) t0 l
[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
3 G0 F: O# ]  ?( _+ y6 u: c[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
4 X, U& e* r% ]5 i8 b; @[DEBUG|resource_sync_wait@resource_sync.c,86] wait resource 1, W9 B- X0 J9 j# c6 L0 R3 h- G# @
[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 0 had ready: @6 u3 S6 f. K
[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 1 had ready) [4 i3 k' P0 z
[DEBUG|resource_sync_post@resource_sync.c,96] post resource 2 had ready1 s1 d1 K' P+ X- w
Camera-Camera
. u/ ]! R! G6 V! @2 ^[   76.366400] host_app: page allocation failure: order:10, mode:0xd0( U4 P. m' x; ]6 t
[   76.377606] Backtrace: # q1 J  M0 N4 H6 v- U! h
[   76.380222] [<c000c580>] (dump_backtrace+0x0/0x114) from [<c0419474>] (dump_stack+0x18/0x1c)5 Z1 N, y; n( E
[   76.397060]  r7:00000000 r6:0000000a r5:000000d0 r4:000000018 N1 X/ K2 q7 ~; l
[   76.403249] [<c041945c>] (dump_stack+0x0/0x1c) from [<c0061e0c>] (warn_alloc_failed+0xf8/0x11c)
4 W3 W6 K2 f1 `* E$ l[   76.412099] [<c0061d14>] (warn_alloc_failed+0x0/0x11c) from [<c006237c>] (__alloc_pages_nodemask+0x54c/0x590)
3 k. C- P% Q) O* r6 Q$ Q[   76.425768]  r3:00000000 r2:00000000! a8 X% O. Z, X  P3 E! a9 ?& s: {
[   76.429410]  r7:00000040 r6:00000035 r5:000000d0 r4:00000000
$ @9 J6 v4 Q3 t+ n4 g7 F[   76.436700] [<c0061e30>] (__alloc_pages_nodemask+0x0/0x590) from [<c000e030>] (__dma_alloc+0xec/0x2fc)* [; E9 D4 b  E0 j
[   76.448512] [<c000df44>] (__dma_alloc+0x0/0x2fc) from [<c000e2d0>] (dma_alloc_coherent+0x5c/0x68)" n/ {, s% z4 V
[   76.459091] [<c000e274>] (dma_alloc_coherent+0x0/0x68) from [<c02e2a4c>] (__videobuf_mmap_mapper+0xac/0x188)& _, n0 a9 G  }4 Y- T0 o. ~+ h) O
[   76.470521]  r7:c1bded90 r6:c1113b80 r5:c12d1b00 r4:c1113be4) ]' [9 P6 ]5 @1 P
[   76.476678] [<c02e29a0>] (__videobuf_mmap_mapper+0x0/0x188) from [<c02e0724>] (videobuf_mmap_mapper+0xd4/0x114)3 I& ]( o4 s0 j% n. [( F
[   76.489213]  r8:b52dc000 r7:c1113380 r6:c12d1b00 r5:c1bded90 r4:c12d1b00
$ a" w: k# N1 ^) t# N5 m9 `[   76.496486] [<c02e0650>] (videobuf_mmap_mapper+0x0/0x114) from [<c02eb1fc>] (vpif_mmap+0x40/0x50)# A1 |+ y7 o  U: Y7 W! K
[   76.507848]  r5:c12d1b00 r4:c1bdec00) `& l) X  e0 Q  e8 ]) e' O4 R% N
[   76.511602] [<c02eb1bc>] (vpif_mmap+0x0/0x50) from [<c02d20e4>] (v4l2_mmap+0x70/0x90)# h0 v+ \6 {1 @. \+ r! T5 ]
[   76.521828]  r5:c1bffe00 r4:c1113380
4 w0 u) ~4 v4 i/ O  \# ][   76.526209] [<c02d2074>] (v4l2_mmap+0x0/0x90) from [<c007a8f0>] (mmap_region+0x25c/0x494)+ ?8 X5 R3 [* f$ e9 U
[   76.536792]  r7:c1113380 r6:000000ff r5:c12d1b00 r4:00000000
0 d5 A. b5 S+ e* j6 m[   76.542984] [<c007a694>] (mmap_region+0x0/0x494) from [<c007adec>] (do_mmap_pgoff+0x2c4/0x324)+ e0 `+ a( |: j9 x, i" u
[   76.551694] [<c007ab28>] (do_mmap_pgoff+0x0/0x324) from [<c007aeec>] (sys_mmap_pgoff+0xa0/0xd0)
0 J0 q% O7 t  `$ a( w[   76.563987] [<c007ae4c>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)5 w' Q6 t9 c  c/ y0 C" s5 X1 W$ }
[   76.574327] Mem-info:
9 E; T& T1 x1 n/ a5 g. z[   76.576657] DMA per-cpu:
& n8 M+ ]1 ~; d4 M0 c[   76.579223] CPU    0: hi:    0, btch:   1 usd:   0
0 D; q+ j* j5 Y7 @; P$ u; E* k[   76.587174] active_anon:1430 inactive_anon:35 isolated_anon:0
9 R! K2 q! p2 A- U' l* q[   76.587198]  active_file:867 inactive_file:896 isolated_file:0
* h5 [3 ~6 r: w6 {% D[   76.587216]  unevictable:0 dirty:0 writeback:0 unstable:0
$ e; d9 o3 f$ y! h; a/ B2 k& ][   76.587232]  free:258 slab_reclaimable:286 slab_unreclaimable:789& I( I& b( F) R" H' b7 n0 X+ z
[   76.587251]  mapped:1276 shmem:132 pagetables:122 bounce:04 J" {$ H* |. C# a
[   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
3 ?, ~. T& A' T) O- A4 i6 b[   76.661444] lowmem_reserve[]: 0 0 0
1 S3 o; n0 A% G2 P[   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) R; X8 d6 n; K# u, a, `% _
[   76.677034] 1884 total pagecache pages
( n: z* s& Y9 |% R% I/ I[   76.680817] 0 pages in swap cache
$ }# S" W) L/ G0 }3 P[   76.687285] Swap cache stats: add 0, delete 0, find 0/0! ?5 S/ u0 O7 z, z$ o
[   76.693996] Free swap  = 0kB7 u7 {, r& M+ K, Q# Q; S& {4 \% g
[   76.696926] Total swap = 0kB
+ K5 J( U$ @6 T% i% u[   76.701578] 8192 pages of RAM0 _" ]' h7 w' j0 p7 m/ ]
[   76.707668] 405 free pages* X  N4 g2 F/ z8 i( d, _' J3 H' m  I# Y
[   76.710418] 1555 reserved pages8 j7 I5 h* l, U. F8 x
[   76.715882] 838 slab pages
4 J9 R; e" y4 H$ T8 D[   76.718631] 1851 pages shared+ }1 N; W5 y8 @; |# X+ N7 D
[   76.721620] 0 pages swap cached
6 ]: J/ h* k0 h" R" r[   76.728009] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed  L( [3 \6 e8 D, H. m
Cannot mmap = 0 buffer
1 u8 v; J* m2 E# v5 QVIDIOC_STREAMON
: N) ^# `. T/ b/ K" i: Input/output error
+ C. S6 L1 j+ r5 ][ERROR|start@capturer.cpp,27] fail to start capture! \8 }; U4 _7 N+ H4 T4 H, _
QThread::start: Thread creation error: Resource temporarily unavailable
9 X2 A9 _+ C+ Q. ~# @5 o[DEBUG|start@playbacker.cpp,25] it's about to start playback& v$ s0 ?1 B& N/ p! M, z' r: u6 @

# T* @  J# L% S$ v+ P5 |用led双核可以,这个demo就不行了,怎么解决啊) d" b- i, V8 R; U/ S  D) \0 }

' M' A6 S# ]! F$ ^" D! q2 t8 U" X
作者: teddy    时间: 2015-11-3 09:14
需要配置vpif的缓存;$ X( v4 c0 L  e$ ]% @
1.vpif capture模式选择,vpif_capture_format值:1 i- H8 h# j' @" K( T9 `$ d
HDTV:预留) ^6 C4 _- ?: f, ~+ e
SDTV: TL5147
9 U; i) [) k: s( jRAW:TL2640
, _& p( w  L' p9 I, ^2.(ov2640配置分辨率为640*480 = 640*480*2 = 614400)0 D- Q0 {7 n  @9 W8 t' e( u8 J
vpif_capture.ch0_bufsize=614400
+ q, t9 w- ~" r. H: P' l例如:/ T# t' T5 x- V& Y. Z* n0 Q
U-Boot >      setenv optargs  ${optargs} vpif_capture_format=RAW vpif_capture.ch0_bufsize=614400
3 I( n) t, \: \$ ]5 q说明:optargs变量为参数添加变量,主要给需要添加参数传递给内核。
  B4 M: C2 L& _; q# \ setenv optargs  ${optargs} vpif_capture_format=SDTV vpif_capture.ch0_bufsize=614400
作者: robinluo123    时间: 2015-11-3 10:22
da850-panel=TL070A
+ N  V. W3 i; v% Q/ h( s' r( Semac-mode=mii
8 J6 b# o. u6 _2 f% Iethact=DaVinci-EMAC
1 p5 j% w5 h# {: H' kethaddr=16:01:c0:17:45:e5
( A! V9 C$ x; N. ^4 uhwconfig=dsp:wake=yes
8 w# u' R4 T, p0 t/ aipaddr=10.3.2.99/ C2 H. V* l$ `1 a
loadaddr=0xc0700000
  ]( J! R2 o7 E9 x5 e6 Zloadbootscr=fatload mmc ${mmcdev} ${scraddr} ${bootscr}
# b$ ~+ [9 Y' p9 \+ N# ~loadimage=fatload mmc ${mmcdev} ${loadaddr} ${bootfile}; h0 _9 N' v' o. ?$ r
mem_args=mem=32M@0xc0000000 mem=64M@0xc4000000, a' i+ F5 O9 ^9 B+ U3 [% M
mmcargs=setenv bootargs ${commonargs} root=${mmcroot} rootfstype=${mmcrootfstype}" ]9 J  |. y6 E
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;; N" ?, I" a# u; w7 U* D/ s
mmcdev=0
/ t$ E- T7 `8 S: F2 r+ emmcroot=/dev/mmcblk0p2 rw
$ D: w& t9 E% a! c* N6 x5 Bmmcrootfstype=ext3 rootwait4 d+ N, V& u: z  |5 n) l. ]* @
mtddevname=env$ ~" t3 k3 u4 `- u5 b& ]3 d9 e6 j) P+ ?; j
mtddevnum=0
- s! H" X/ G* `% ~. q. L0 jmtdids=nand0=davinci_nand.0
, J& R/ Z% F5 V  ?# m5 J: wmtdparts=mtdparts=davinci_nand.0:128k(env),512k(spl),512k(u-boot),4m(kernel),-(filesystem)
$ R( k1 X) B# Q; anandargs=setenv bootargs ${commonargs} root=${nandroot} rootfstype=${nandrootfstype}1 A- v, H5 O% H) B3 m+ ]
nandboot=if nboot ${nandbootpart}; then echo Booting from nand ...; run nandargs; bootm ${loadaddr}; fi;" J. R- w0 p$ e, e% l/ i. W7 d' A
nandbootpart=kernel
" p! U  S( P; n0 w& C, Enanddev=0/ N6 q* y* F, l7 ^7 W- s
nandroot=ubi0_0 ubi.mtd=4,20486 Q" E8 S8 \6 j; L5 S5 c/ {
nandrootfstype=ubifs
0 Q( |/ l. c6 ynetmask=255.255.255.0  {2 o: r9 y$ `# Z/ B1 u
nfsargs=setenv bootargs ${commonargs} ip=dhcp root=/dev/nfs nfsroot=${serverip}{nfspath},nolock rw0 l6 H: t( L) p3 P' E' ?
optargs=vpif_capture_format=SDTV vpif_capture.ch0_bufsize=614400' l: H: D6 a7 J. ^/ T
partition=nand0,0
8 m& s. f; l: q' C- ]% W, ?& Xscraddr=0xc0600000; x+ L9 O/ t8 o, s- R
serverip=10.3.2.175
' U3 T+ G9 e4 y% sspiboot=if sf probe ${spidev}; then sf read ${loadaddr} ${spibootaddr} ${spibootsize}; run nandargs; bootm ${loadaddr}; fi;
; R2 t% c& _! R2 ]/ a1 g* Lspibootaddr=0x1000008 d9 Q4 U0 n$ X6 M) T
spibootsize=0x400000
1 z: ]$ B3 b6 Z, ^& Fspidev=0- a( J5 b  X- C
stderr=serial( U; y  {  c/ V5 s
stdin=serial3 a& q' N1 G$ H: K
stdout=serial# z4 m- Q# ?, B9 m8 g7 A
ver=U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
2 ]$ X2 W  J1 m# {) b
  C4 U8 U3 t, q+ l& T8 ^
" W$ S: R  C' i& a6 y; w* I: \还是不行' h7 e, d. x/ r. X! {. g1 R

% v+ K, _, M& }: h& r
作者: robinluo123    时间: 2015-11-3 10:23
Started slave procId 0.
& o6 C2 h4 D- |6 L$ P+ ../host/host_app -qws
' v3 I* X; a# R7 z[TRACE|resource_sync_pair_wait@resource_sync.c,68] try sync
' c* t" [( [, X  G[DEBUG|resource_sync_wait@resource_sync.c,86] wait resource 1" L/ T4 h, f. g! b7 e
[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 0 had ready
1 f8 U+ Q8 M" v2 ]& |. c) S[DEBUG|resource_sync_event_handle@resource_sync.c,45] resource 1 had ready5 z* b2 Y+ m9 h) _9 Q3 w* B1 X
[DEBUG|resource_sync_post@resource_sync.c,96] post resource 2 had ready
2 a( ~3 |6 S0 `! Q. P; w- dCamera-Camera  t8 @% z: }( S: P# j& |" q! {
[   34.616261] host_app: page allocation failure: order:10, mode:0xd0: p& d! U& r- A
[   34.627157] Backtrace:
4 _8 n( m- `0 c  |5 |6 S[   34.630203] [<c000c580>] (dump_backtrace+0x0/0x114) from [<c0419474>] (dump_stack+0x18/0x1c)
, l, ^% Z+ D. w" w5 o! y& D[   34.652340]  r7:00000000 r6:0000000a r5:000000d0 r4:000000019 Z9 g' W; w5 Y- i6 S3 I( U
[   34.658528] [<c041945c>] (dump_stack+0x0/0x1c) from [<c0061e0c>] (warn_alloc_failed+0xf8/0x11c)
: V" A% `3 @6 `) t[   34.669739] [<c0061d14>] (warn_alloc_failed+0x0/0x11c) from [<c006237c>] (__alloc_pages_nodemask+0x54c/0x590)  R" }% _8 E8 ^  K5 h# v  s
[   34.681238]  r3:00000000 r2:00000000
& G  b3 {5 T0 Q4 P. U- L[   34.685216]  r7:00000040 r6:00000035 r5:000000d0 r4:00000000
4 a% g5 i0 m7 U3 s/ P[   34.691084] [<c0061e30>] (__alloc_pages_nodemask+0x0/0x590) from [<c000e030>] (__dma_alloc+0xec/0x2fc)
! P  r" x' c- b3 \* o' C[   34.703957] [<c000df44>] (__dma_alloc+0x0/0x2fc) from [<c000e2d0>] (dma_alloc_coherent+0x5c/0x68)9 N; g, _: [( v" ?4 h1 O
[   34.714824] [<c000e274>] (dma_alloc_coherent+0x0/0x68) from [<c02e2a4c>] (__videobuf_mmap_mapper+0xac/0x188)
: r$ i, q. y7 y6 H$ {% e[   34.726242]  r7:c1bded90 r6:c1371700 r5:c12bd688 r4:c1371764  a  _+ J* M# f' V7 n
[   34.732056] [<c02e29a0>] (__videobuf_mmap_mapper+0x0/0x188) from [<c02e0724>] (videobuf_mmap_mapper+0xd4/0x114)
; w7 x$ T/ L0 M) ]% V: V[   34.744717]  r8:b5317000 r7:c1371280 r6:c12bd688 r5:c1bded90 r4:c12bd688
+ M/ `$ H; B$ h( h( {# G& L[   34.751646] [<c02e0650>] (videobuf_mmap_mapper+0x0/0x114) from [<c02eb1fc>] (vpif_mmap+0x40/0x50)9 c# |1 f$ Y+ X5 a1 u9 Y1 G) _. F
[   34.763159]  r5:c12bd688 r4:c1bdec00
8 \0 k# K( M. W# M, S: E. z[   34.766879] [<c02eb1bc>] (vpif_mmap+0x0/0x50) from [<c02d20e4>] (v4l2_mmap+0x70/0x90)
" L+ B0 X' V+ j# v3 s[   34.777146]  r5:c1bffe00 r4:c1371280' L' Z$ W% z1 u# v* }( Z
[   34.780857] [<c02d2074>] (v4l2_mmap+0x0/0x90) from [<c007a8f0>] (mmap_region+0x25c/0x494)# B1 m2 x: m' S1 K9 T
[   34.791444]  r7:c1371280 r6:000000ff r5:c12bd688 r4:00000000
' D7 a# |% D( n- j5 I  @[   34.797615] [<c007a694>] (mmap_region+0x0/0x494) from [<c007adec>] (do_mmap_pgoff+0x2c4/0x324)
& R: `5 Y  l- R  |- O[   34.808680] [<c007ab28>] (do_mmap_pgoff+0x0/0x324) from [<c007aeec>] (sys_mmap_pgoff+0xa0/0xd0)
, ?1 h& a, T: D. y6 S[   34.823582] [<c007ae4c>] (sys_mmap_pgoff+0x0/0xd0) from [<c0009440>] (ret_fast_syscall+0x0/0x2c)6 j/ g; Y9 }5 v" O2 Z3 ~  m
[   34.842578] Mem-info:! n7 S8 `, f4 I' w# x+ @4 G6 _
[   34.844908] DMA per-cpu:: u2 @# X: P' P7 H! a7 t
[   34.847474] CPU    0: hi:    0, btch:   1 usd:   0
3 _  q6 e+ R/ j4 C# t* y[   34.852369] active_anon:1439 inactive_anon:35 isolated_anon:0
. I+ L( z! a# P/ P4 m[   34.852388]  active_file:718 inactive_file:601 isolated_file:0
1 {0 l4 n, x0 ^2 n) U; @[   34.852404]  unevictable:0 dirty:0 writeback:0 unstable:0
6 B8 t2 l' `8 V  z[   34.852420]  free:665 slab_reclaimable:289 slab_unreclaimable:815
  b  r7 o- U! R( G9 b: W& L- U, q[   34.852437]  mapped:1087 shmem:132 pagetables:122 bounce:0
) X5 {1 x% A; M+ E/ t$ n$ y6 i! o[   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
" U+ V  U0 [) t% V- v1 D+ r[   35.023590] lowmem_reserve[]: 0 0 05 p* I: W) r8 u! J/ ^
[   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 W7 O" [1 B) }  e! R5 Y+ p
[   35.054676] 214 total pagecache pages
: M- M* [. z0 w% o6 k[   35.058399] 0 pages in swap cache1 x' m' [; h, C( K
[   35.061743] Swap cache stats: add 0, delete 0, find 0/0& m! g* }4 O6 F3 ~" F5 h  n1 q
[   35.081983] Free swap  = 0kB$ d9 e4 R+ U7 P# O. z
[   35.085058] Total swap = 0kB; ~6 U* h7 Y& S/ H0 t; Y
[   35.089678] 8192 pages of RAM/ n& d- K( q+ F1 _! B
[   35.103088] 2019 free pages3 Q7 B# E5 [$ l. l
[   35.105926] 1555 reserved pages
' f  \  D, y6 z- K! R/ }[   35.109090] 869 slab pages! r, t, F7 ]$ g. n& M
[   35.111813] 161 pages shared& m& a6 w3 K* V8 J* B6 H5 N" c+ q
[   35.132854] 0 pages swap cached
. _6 a; C- H9 S0 i. @8 A[   35.136068] vpif_capture vpif_capture: dma_alloc_coherent size 4149248 failed
- G9 B" |9 H; G1 M2 g3 m; D/ T6 OCannot mmap = 0 buffer
! P) }' {' H5 s( c( n4 jVIDIOC_STREAMON
: g1 S/ N; y2 d+ _" Z. B: Input/output error% {6 _0 T" c! q3 I
[ERROR|start@capturer.cpp,27] fail to start capture5 Q/ m! A3 v7 p' s
QThread::start: Thread creation error: Resource temporarily unavailable% M" o/ @5 I6 L3 s8 V
[DEBUG|start@playbacker.cpp,25] it's about to start playback8 [, o1 t& B  h# i; d  M

作者: teddy    时间: 2015-11-3 11:17
你可能用的是128M的内存,所以可能系统内存不够,你用free看看当前系统内存是不是不够。
作者: robinluo123    时间: 2015-11-3 11:39
root@tl:~/face_detect/run# free, F( M  i1 P" G# \+ e! |2 f5 I: M
             total       used       free     shared    buffers     cached
) p8 m* L' m, Q% n# n2 D. a/ D/ @& ]Mem:         26548      19728       6820          0          0       2884
, e( E: t$ M1 G# V% H5 I-/+ buffers/cache:      16844       9704
7 W2 m- C- l% S% Q% T# v' U6 r. }Swap:            0          0          0                              
作者: teddy    时间: 2015-11-3 13:47
内存不够,先关掉一些进程,像matrix-gui,然后在运行你的双核程序。




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