|
|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑
" d2 p7 V7 Q8 ]2 w2 @$ p" e7 |" v4 J/ X' s1 t0 p
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。
7 l1 y; {4 \: ?3 ?- K; }$ [& \
, Y$ m1 S- c) `* E- Z但是这样的流程太复杂!" D! i7 Z1 l5 x$ b/ W- f8 w8 F
% p' Q5 j+ d- b, F5 u
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图), h* R: W# `6 s2 \- R7 E& r7 `
0 X: A1 u8 ^5 t- l& N' ^# t- MMC boot...
! J6 c1 z6 x4 f3 |& u1 K - davinci: 0
& h5 [+ \( a2 h z; W, K" z - spl: mmc device found
- K2 E3 W4 [4 k% q, g8 _% F - 0 d$ B4 y/ F) f' @/ U7 s
- ! W' o: Q% H8 `. e6 y: E
- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)% p+ A s3 Z4 A. T& E. n; Y- D& t( B
- 2 H, a1 c0 v% i6 K1 [
- I2C: ready7 G7 [4 y. l0 @
- DRAM: 128 MiB# X1 P3 M% f8 h
- WARNING: Caches not enabled
' h+ d: B- `" { - NAND: 512 MiB
: @3 T) f1 l( t7 S. N3 }+ n - MMC: davinci: 0
! |- }% I) q* t0 {9 s - Bad block table not found for chip 0
/ W$ m9 w7 s2 l6 m @* c* T( a - Bad block table not found for chip 0
1 Q$ f. u# v h0 t - Bad block table written to 0x00001ffe0000, version 0x01
) F! {2 `* i9 x7 A& T - Bad block table written to 0x00001ffc0000, version 0x01
- e b9 X3 m4 h4 s' j - *** Warning - bad CRC, using default environment+ A3 t; }' K9 {+ S/ \! |6 `, ^9 s
9 C2 A6 E6 b* k) l: p0 v9 }- In: serial
1 x0 l, F; q+ A E9 ] - Out: serial
* [$ g! K! U5 r! i) H" ?; ~$ Z - Err: serial! i- _" ~# _+ D; l9 X+ f4 T
- Net: No ETH PHY detected!!!( M* b4 a7 Y# s& l8 @9 y, S( a
- Error: Ethernet init failed!
+ E& P0 e' s: @# u - Board Net Initialization Failed# V) y7 e5 L& L3 K9 f
- DaVinci-EMAC9 \8 l& q' _% S5 s; B
- Hit any key to stop autoboot: 07 d; s, X/ y0 Y
- mmc0 is current device
- _4 j0 D( H. }/ x1 N - ! B8 F" W0 V, b! Z) L! y) [1 W
- ** Unable to use mmc 0:1 for fatload **
, L8 P/ r& K: B7 O# s2 i
" @9 t) o+ E+ P4 e% }- ** Unable to use mmc 0:1 for fatload **
$ r0 z+ X8 [! {2 _" u$ w
1 J$ [- K* E! P- z" @' g- Loading from nand0, offset 0x120000: I+ _" A$ S( W0 v/ u& I5 ]
- ** Unknown image type$ U' M, E; f9 F0 l" J& m5 I. x
- SF: Unsupported manufacturer ff/ A5 F- w' j( e9 ^' `% N* G R
- Failed to initialize SPI flash at 0:0
9 X1 c- d0 |# ]4 J1 I - U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法
; ?, h) W) Q0 w1 h( S' L" s每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。$ F! x' K! I+ K
$ w6 A! J( y7 d0 L& C$ |' F) C |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|