|
|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑 $ b' o W! l8 T
) K4 H* N& B4 S Z3 {
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。( I8 ^7 M# F( G2 o" q. J5 z& i' T
! s1 C: x4 f& l$ _; I$ k' T但是这样的流程太复杂!
2 u$ [; t5 \6 k0 g% B9 m% M% g- L! C' ]2 ] U- \% q9 O
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)9 o9 F, u5 R0 D
8 t, j0 @: N) D2 ]0 K' g7 P- MMC boot...3 z4 {" b; H+ Y) g; ]
- davinci: 0
" o" C( [/ k0 e6 R) o - spl: mmc device found
9 f1 L" R7 T# C8 L0 y- c
3 |6 [5 m* u7 t8 g; S* T
|9 p* A- a9 b- `8 i7 h4 Q3 X# J. V- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
: g1 S) R$ R I0 L$ G, A5 s. i. K - 6 ?- z" V; B6 n0 o0 L
- I2C: ready
* u7 {2 T1 y( J8 q; \; z! e - DRAM: 128 MiB
3 T1 O) C$ P1 u$ q" T - WARNING: Caches not enabled
9 k+ l8 B7 Q( w4 S9 Y3 i+ B" ` - NAND: 512 MiB
, e' g. D0 F1 {1 w( h - MMC: davinci: 0
# t3 F* Q$ t1 M2 {4 d/ E7 M - Bad block table not found for chip 0/ V" v* v( u. }1 v
- Bad block table not found for chip 0- g" } }( |+ Q, K) e a6 e) u" L
- Bad block table written to 0x00001ffe0000, version 0x01
7 A* O4 O5 C2 y3 g1 g - Bad block table written to 0x00001ffc0000, version 0x01
* \" @& k: T3 T2 A: m% a1 S - *** Warning - bad CRC, using default environment
; e: T* N; C2 X, f - & o. g( h4 S! u e S6 o
- In: serial
1 N: \3 i- Q0 b - Out: serial
% {; V% Q: {! ^ - Err: serial
: ] I/ c3 ~% f1 a - Net: No ETH PHY detected!!!
2 _2 A7 w8 Z! b+ B) {: S# _6 j - Error: Ethernet init failed!
( G7 g. \1 v; U" Y" A - Board Net Initialization Failed5 o6 y( C" F b2 J9 ~& M7 Q
- DaVinci-EMAC) N. C/ |8 e: D5 c
- Hit any key to stop autoboot: 00 h- l7 b, L0 ]& j
- mmc0 is current device# c: p. S$ G( r/ d6 Z2 Z
3 g4 |' ^; S9 \% h) N- R. x6 r& c" l- ** Unable to use mmc 0:1 for fatload **
6 c2 M: M* Y+ w2 O( S' ~# E
% l) T% ^9 q9 X& d5 ]# w- ** Unable to use mmc 0:1 for fatload **
' J) F* u0 q4 I4 Y
6 A+ g( g4 v8 q) i1 M; L: g3 G- Loading from nand0, offset 0x120000
" B; X: K6 l9 |4 _4 N) S# \ - ** Unknown image type
/ g7 y& V8 }/ X/ K6 V$ n" M1 q - SF: Unsupported manufacturer ff
% X1 F T6 S- J( i2 I4 y7 e - Failed to initialize SPI flash at 0:0
7 m0 m) i, P' U$ j S% r - U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法
' i+ C' \" Y r: R* j3 v每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。, m" [' E4 I( }
5 A6 S% b. \8 w: ]1 L
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|