|
|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑 ) H' }; y) F6 }) n2 U
' }1 e; v6 m! m/ T! }, B. C我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。
( p2 N' I6 F( z: }( R% J9 O1 z R7 }( [ F% E: v
但是这样的流程太复杂!, w+ g( X1 i6 g! h
9 ^, E' `# X s9 R( w$ F我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)# c! ^+ N" n, W1 y9 R) z( o- m& n
1 T( V8 |, A) E0 K& g8 i
- MMC boot...
7 y) P* L+ l% v5 m - davinci: 0
" z* T8 a% \- O9 E- n$ \ - spl: mmc device found, H, Y( u' u* L6 M3 ^) r5 g% o
- 2 C% N: {% w$ s2 P8 L6 z5 y& H7 X
- : x% ?- {) k4 x6 W2 \. X* g
- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
: d2 b0 I+ I- _. v9 D# U - B9 n n6 f' D- Z! g
- I2C: ready! T9 V( }2 |) r: k+ {+ O: i% b
- DRAM: 128 MiB5 i* `$ Z" l# c; [6 S Q. ~
- WARNING: Caches not enabled. c1 E7 ^9 y5 ^# u2 D
- NAND: 512 MiB N1 j4 E2 s2 r3 Q9 d+ x
- MMC: davinci: 0
; C8 m8 G, `$ [8 u- @ - Bad block table not found for chip 08 O3 W- D& |5 E
- Bad block table not found for chip 0
# z2 O4 o# {# J. d9 B! K - Bad block table written to 0x00001ffe0000, version 0x01
; _" P; Z% }/ C1 _/ T B* v - Bad block table written to 0x00001ffc0000, version 0x012 A( b/ ?# I) e0 T
- *** Warning - bad CRC, using default environment9 u( Z+ d2 \2 {! t. \) E3 e
, p% j% x2 h% ?0 O* J h: u3 Q; I- In: serial
8 f2 q; B, t& {% g) d: [ - Out: serial
7 M( \! s/ k$ y5 b - Err: serial+ Q% _9 D3 {& f8 t6 X" x/ Y
- Net: No ETH PHY detected!!!# Y+ c) ~5 n! y! c7 W s
- Error: Ethernet init failed!2 S5 d1 y: J o5 S G8 ~ {4 H
- Board Net Initialization Failed, W; N2 _: z4 k% _- ^2 V! e# Q
- DaVinci-EMAC& y5 F& E. f! `. l8 G5 Y
- Hit any key to stop autoboot: 05 Y: N$ c6 [$ @- V* O7 X
- mmc0 is current device8 x) D4 K/ T7 v: V$ V4 e
- 7 M( S* c+ z' w K
- ** Unable to use mmc 0:1 for fatload **
: d- L/ b D( z% o4 E! Y" r. g
4 v0 z/ k* l7 L- ** Unable to use mmc 0:1 for fatload **) Y" Q2 t+ G+ n$ E! t" \" G
! o) a1 S; R2 }- w# k' ?) z$ f% K- Loading from nand0, offset 0x120000# Z5 L0 I" _/ g$ o
- ** Unknown image type
" X- g% L- X( M - SF: Unsupported manufacturer ff
" a* q0 L% Z4 u" a! {) r - Failed to initialize SPI flash at 0:0. U& W" A5 d' W% |3 }. C7 ~
- U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法
) I9 X3 O7 B* F" z每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。. q ]6 E0 ^9 R' O
$ j0 B* B* g8 } y4 j5 k4 T
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|