|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑 2 ^6 i) b/ `8 G! E8 M
( c& N6 E2 G+ O( l$ r" L我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。
7 Y4 Y& ]( O- I7 Z) M8 p% ?* B: X. D3 s3 d% ^6 \4 A
但是这样的流程太复杂!% g+ B, ]' U( @3 C- @
0 n" V) }9 s8 H# K/ d* {' P
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)+ y- C$ `5 E, ~1 x2 w, c
/ Z4 k1 D# N9 H0 G7 P# i5 _& x- MMC boot...
/ X* K: @; p. ]4 m# t - davinci: 0 V6 \, e, e2 z6 O
- spl: mmc device found
! e/ d* M8 b# W. E' | M3 F+ ^
o) e- a/ n/ O9 T$ J. E
0 `1 x, z% c- S- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)! G. b$ C4 }1 G0 Z
- 8 A$ A) f! K5 d( v/ S! @5 J
- I2C: ready1 C" `. H0 }. q' S& l
- DRAM: 128 MiB/ ?) i- o$ f1 N8 m5 t/ S
- WARNING: Caches not enabled9 L+ X3 ? ?. L/ {) C. \4 S, u
- NAND: 512 MiB; r$ p6 ?# M1 L2 ?
- MMC: davinci: 0
+ a: @: [0 d7 b) f4 Y4 X/ H3 Z h( T - Bad block table not found for chip 0, y- v' O) u- c9 F' k& c
- Bad block table not found for chip 0! ^! \9 Y. v9 K7 T
- Bad block table written to 0x00001ffe0000, version 0x01
9 K% r" Z2 I$ ^3 `7 ^ - Bad block table written to 0x00001ffc0000, version 0x01
2 u' X6 d6 b/ Q6 y - *** Warning - bad CRC, using default environment' h: M! g# z; `% Q, \: Y
& {, a" A4 @2 \5 G A( C6 ]( R2 X) k: h- In: serial
4 [. a# F" v' X4 V8 E3 b - Out: serial
* F7 h8 q8 P4 X6 m1 @ - Err: serial
5 `( M( W* B8 F1 e0 b8 |+ I - Net: No ETH PHY detected!!!
3 |! p3 v9 Q8 h; D( L Z) z9 l - Error: Ethernet init failed!
5 k/ K$ A( D1 j5 c( q" y - Board Net Initialization Failed9 _; N1 ^( @/ j4 D2 {2 b6 ]
- DaVinci-EMAC2 Z. G# w0 q; ^& q) `( d1 j# ^4 x
- Hit any key to stop autoboot: 0
! H* m5 I% f: _( ^# n1 G( b/ h - mmc0 is current device
# |/ p6 k1 ?# s- L - 6 Z) W% J. w+ G) ^" G d
- ** Unable to use mmc 0:1 for fatload **
/ b$ \' ]; }* O, D* s. e8 N2 G - ' \; S/ n1 |1 n! g, R
- ** Unable to use mmc 0:1 for fatload **
5 a/ ]. { A1 i/ G, P5 b
J, B. A- w0 c- Loading from nand0, offset 0x120000
. W8 t7 z- \9 { w1 g( z - ** Unknown image type; [- x1 b! S+ l' d
- SF: Unsupported manufacturer ff
* W7 c, B/ u3 z2 }+ K& m# K - Failed to initialize SPI flash at 0:0$ I, e% Q( J @" b m9 d
- U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法. R6 \$ B4 p) [
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。
5 J+ i% o9 T0 f ~) c" L3 o8 ]6 ^8 ]5 i- N3 R
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|