|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑
: T6 D7 _! b3 R; S4 ^* h6 f6 A0 B: M+ z/ K3 P, {; J% H+ k
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。# j( x& M: G. w$ c4 Y* [
- o& `' K& P; l# y+ v
但是这样的流程太复杂!/ ? h& e; m7 G8 J
* ~8 w6 c1 v2 c0 p G3 W; U
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)" p% v+ Z- \9 E7 G0 I5 W& u8 Z
5 t( a7 m8 S% ~3 E- MMC boot...% ^1 h/ G- V. C6 r: [
- davinci: 0
# k* f9 g. V f - spl: mmc device found- C7 m; d6 b9 P8 J! h: {! w
- . P. y! D( L! e% H
- * l& g0 P2 M- K# d2 C
- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
8 Z5 E+ e0 B( v# { - 5 K+ m1 F4 Z7 X: q
- I2C: ready
* t2 j3 J* z$ c - DRAM: 128 MiB3 V4 |* U3 Y. k: j' S
- WARNING: Caches not enabled
3 T1 p U& t* k5 d+ o& M - NAND: 512 MiB
' D- q0 E1 `9 B7 I- y - MMC: davinci: 0) W" ?4 O8 V& X" T) t3 t
- Bad block table not found for chip 0& t; @% c d: D# a3 v
- Bad block table not found for chip 00 ?0 k4 O7 ~9 ?/ T8 `
- Bad block table written to 0x00001ffe0000, version 0x01
9 C1 y6 Y' t/ `7 I6 C* k" a" T; b - Bad block table written to 0x00001ffc0000, version 0x01
* b5 S; c/ q6 W. ]* T: d' W! v6 ? - *** Warning - bad CRC, using default environment- l* ^! u- a; }0 q' S+ ^! {' c% Q
, } n$ \( s/ ^/ x- In: serial
4 n# \' _) r) {- s - Out: serial& `9 I- Q: e* G6 ?! i( U3 s( E' M
- Err: serial
4 O+ X) e$ E# I, U - Net: No ETH PHY detected!!!5 _- j" j- H$ j& X+ w/ u1 y
- Error: Ethernet init failed!
6 U# x3 d2 o8 c; V - Board Net Initialization Failed8 e9 m' Q5 T% v& d; p$ j/ Q/ a$ Y
- DaVinci-EMAC6 X8 D; P3 V3 Y6 w2 U
- Hit any key to stop autoboot: 0
: Y: j) ? K2 V' i) w: v+ e p - mmc0 is current device
* d7 F2 Y2 e3 F+ U
% @9 J V) i( [, M5 G, i6 C- ** Unable to use mmc 0:1 for fatload **
& ], ~) U4 R6 K. X5 u - , o+ Y$ R6 j+ K7 I. O
- ** Unable to use mmc 0:1 for fatload **% A4 I5 z' y3 L& ~- t
- ^ H" X6 }" g9 F- Loading from nand0, offset 0x120000
+ q" H( q, r& h - ** Unknown image type- N! C2 q7 |, Z. E" O7 q$ @
- SF: Unsupported manufacturer ff
/ G% c! h; Z6 t, r# p" d - Failed to initialize SPI flash at 0:0
: e6 V% B0 ?: L+ p# K- S - U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法* X; o. M+ W' W* h9 r
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。, r+ N" V1 c2 m2 }8 j$ s& ^
O7 z1 M+ p% O! k! C
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|