|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑 : K5 i4 i5 _$ u q% k1 B
4 X; N& g [* X& d8 Z" x, @+ v; q我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。" d7 S" h$ u! L. V9 U+ ~0 D
' d/ \- ]8 v/ d- L/ ]7 U
但是这样的流程太复杂!
' x* v4 Y, r1 z
7 S9 d* p9 Y- W6 W! o7 g5 l0 E我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)
+ v) d: _& H( v1 Q2 P) N
( o, o7 }7 x0 |0 M- MMC boot...; c# |' p n8 q) U6 A6 h2 E+ H6 a
- davinci: 0
$ a b N/ P# e, T - spl: mmc device found* n1 b: p, V; W1 v1 u/ J' v
- ' z" E6 v& h# o+ i0 u
- * e, q5 V& V" C
- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
& W% a* m* |! @, W - : W* O& c! u6 H2 W/ x
- I2C: ready0 H+ \- T, ~2 ~9 [. N. L/ h% _, I) o
- DRAM: 128 MiB. y7 j @+ ^% V! [4 F
- WARNING: Caches not enabled
' z2 E/ e, Y0 j0 W! ?+ F - NAND: 512 MiB
( X) g$ R. Q% E y - MMC: davinci: 0
, t; g3 _9 K4 t+ T) K - Bad block table not found for chip 0# K9 X T. j( S- P& c; g
- Bad block table not found for chip 0
7 S4 @% Z2 B) z4 T* K, _; ]; t - Bad block table written to 0x00001ffe0000, version 0x017 Y9 _' ]4 L, E0 Q8 N
- Bad block table written to 0x00001ffc0000, version 0x01
& E1 n7 [7 L P4 b# Q* J2 V - *** Warning - bad CRC, using default environment
3 e. s9 R5 {& O
6 ?, u8 `1 O% o$ W6 E6 l- Q- e- In: serial* t8 L- @9 c% `7 R+ Y1 o
- Out: serial( K: L: Y- q6 Y6 q3 n
- Err: serial
0 Y; h0 V! a) H/ p/ j" t, w - Net: No ETH PHY detected!!!
e/ i! r: {3 f$ ] - Error: Ethernet init failed!' |3 I0 I" M% j1 F- D
- Board Net Initialization Failed
0 |' P0 C& y! B4 l) a - DaVinci-EMAC
3 Q- j+ }" r& p: w' B$ `8 e - Hit any key to stop autoboot: 0! \$ @; S+ @0 K5 f
- mmc0 is current device
1 }& x; r5 n" d v, T) J/ K3 W - ' G) S( j2 z B* N
- ** Unable to use mmc 0:1 for fatload **
% v* A) o/ W; y/ x: e* O - $ i' r3 C& u) ]5 K
- ** Unable to use mmc 0:1 for fatload **0 U: {; T* ?9 f
+ @- Q. t0 |7 P: A( p- Loading from nand0, offset 0x120000
3 i1 b' |' X8 i - ** Unknown image type
5 k+ `7 H8 S. b- ^. W7 ^ - SF: Unsupported manufacturer ff N9 H( Z* z9 k& J
- Failed to initialize SPI flash at 0:07 W( W% h! A' m3 t
- U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法& u' w8 E% d( K$ f7 U
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。
* K$ e/ q% W1 H( E
$ n" _: I' c: ^% Z! q5 X( `! Q: w( F# t |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|