|
|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑 : ^ H, l! c2 y) c/ R' U, X6 a$ S
: m% C' t+ q: z8 d我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。
( _- l9 M5 A- w! P0 a" Z0 }1 y% S C4 c2 W$ D( u
但是这样的流程太复杂!$ T [" L2 c" z7 ^$ K- \& \6 j/ S% q
) m0 t- G, \" j' Q我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)7 Q. G5 x' i/ C+ u6 W" O" \
! C- }: F Y# t- MMC boot...2 r/ e1 N7 E8 R- b1 y# C
- davinci: 00 g+ X6 Q, }7 h% I+ \4 \! J& b
- spl: mmc device found
) ^! z8 J* t+ m1 j9 q - 1 _" ]) b: A2 b) T9 |
( z$ G* g( o7 T. i3 c+ c4 R- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15): L! v7 {% {4 k2 o' Q& Z* Q; ~
- , y& e$ x) _% U) S. X4 I, }
- I2C: ready
2 V, A4 E* P4 ^ - DRAM: 128 MiB7 S4 L! y$ H. {% h4 L4 W
- WARNING: Caches not enabled
) u+ s6 ?( g: r: L - NAND: 512 MiB
, U% I4 _+ C; y9 Q( S! ^( U - MMC: davinci: 0* _. G# A9 m# S6 ]- y. b, L
- Bad block table not found for chip 02 N2 d$ c$ r, P: i& }: j
- Bad block table not found for chip 0+ ~$ X) o; w/ {0 b) `
- Bad block table written to 0x00001ffe0000, version 0x01
% ~# m: `# ?7 S' p0 H% ] - Bad block table written to 0x00001ffc0000, version 0x01
& B- e% O( g' I+ ?6 ^% f$ e - *** Warning - bad CRC, using default environment
( ~# O/ Y! t& g - # h* r. _0 Z: u9 @# Q. c0 {
- In: serial
" p: f' _) A% W$ c4 e( v - Out: serial; Q5 W# h0 f! s0 d- f( L
- Err: serial; R5 X& s( C- y4 D
- Net: No ETH PHY detected!!!- ]5 k1 X9 o) \; c p X+ C
- Error: Ethernet init failed!
# B/ Z; B" e) P/ Z - Board Net Initialization Failed
3 V3 N" [; d' d2 P* v - DaVinci-EMAC2 l# E! Y3 l, }: X7 y4 d
- Hit any key to stop autoboot: 0
% S$ M4 k$ ~$ T6 h+ `' A - mmc0 is current device
' i7 ~. A6 `0 G! X4 t1 U
/ \+ D9 l0 V5 g( E- ** Unable to use mmc 0:1 for fatload **
, ^+ V" N9 M7 o$ J% u% _
b( O3 q. k2 s% o6 r* g$ K/ r- ** Unable to use mmc 0:1 for fatload **
0 D H/ `+ `2 _" x$ U. i. W - / A$ c, D: u' S% u, j
- Loading from nand0, offset 0x120000
8 m" ^( _8 s0 w( g; l( l - ** Unknown image type
8 i. e9 V( H' x, h" H. q! ^8 D - SF: Unsupported manufacturer ff. a/ k- Y: X9 g# l. x0 q
- Failed to initialize SPI flash at 0:0: J. n$ n0 N; T) x* K/ \, ~
- U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法
1 a: N5 A. s" C# j每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。
' X7 a' e1 T* ]- u0 }1 H0 e* i' e& u0 T) K: {, {4 R/ V
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|