|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑 * v `9 A1 b& X
* _ Z* N! `6 x: J+ N% W% z
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。' D& s5 r4 N& @; n0 l
. T$ H' i# f. H7 g0 S但是这样的流程太复杂!
& u4 b# v% s" G- _8 k1 @& N" F' ^9 g& f$ g; Y
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)
( J; B3 E5 }- W0 j; M8 b& Q; ~ J1 g( U9 a2 i1 g+ j# g4 A
- MMC boot...# n$ j+ {0 ^' v- {. _; ~0 w: Z% M
- davinci: 0; z' |4 T$ B" T
- spl: mmc device found9 R! X" e" V# H4 B; X
) M! }: w8 A4 \) \- ?$ _# R5 Z' B- & y8 `: c: F+ x
- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)( ?: i6 n; x, u [& l) A: O
- % [: ]& t+ k" n7 |* ^2 ~8 L
- I2C: ready/ I/ G: k* g. @ D, d
- DRAM: 128 MiB
. b8 `7 m& w6 A' K0 s+ b - WARNING: Caches not enabled
6 T( x) F4 v u" K - NAND: 512 MiB
5 I( t4 Z6 d. [. }4 ? - MMC: davinci: 0. V1 y5 B% k4 P6 W4 F
- Bad block table not found for chip 0
" @$ t! X$ m M, S6 H - Bad block table not found for chip 0+ S+ z) i$ ]0 V2 s
- Bad block table written to 0x00001ffe0000, version 0x01
1 y* _' i# ]! e! u% v g - Bad block table written to 0x00001ffc0000, version 0x01
) [7 ]1 p C6 ^# H; J7 q4 e& D$ U& |7 r' V - *** Warning - bad CRC, using default environment
; V; K! _8 I" i8 B7 N8 ~
( d# X' n7 d1 `; N1 C% O- In: serial
- f. I X7 T9 a4 k) z+ B - Out: serial
. N, Q' m$ `% r3 J7 _# N, l - Err: serial; R; `* X' R) V2 `+ `
- Net: No ETH PHY detected!!!
% w# D0 F U, Y8 \+ O1 t ` - Error: Ethernet init failed!8 P# r) i8 d, V8 d# N6 V
- Board Net Initialization Failed! s5 Q' }2 I2 R( f9 z
- DaVinci-EMAC* n# y9 O8 g$ t6 M
- Hit any key to stop autoboot: 0
# {$ j% @! y& l1 ?4 F - mmc0 is current device
$ f' M' `1 V+ W% x' K - 2 e3 E! T2 Z, H4 u) ~% g' S0 k
- ** Unable to use mmc 0:1 for fatload **7 O/ D4 b% z. J& @
- / I9 D) K" ]9 `% e7 W
- ** Unable to use mmc 0:1 for fatload **
/ Q- u2 x* g; A6 }
6 k- @" F- _/ U, N5 g& M- Loading from nand0, offset 0x120000
' P5 |) A0 S* n& G - ** Unknown image type
( y) A. l) ~/ K8 ]' t0 q - SF: Unsupported manufacturer ff
4 Y& Q4 a4 \. H) I: h! ?$ H6 h - Failed to initialize SPI flash at 0:0
2 B5 A) q) |: r6 s8 }0 v8 P; ]; H - U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法. r# J H# l& u( @) E: y
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。
) f" \2 d; ~& B2 U( J+ [( I: T
: o- Y ^, A7 Y# H |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|