|
|
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑
5 c5 p' ~0 f0 n+ u! q' [; r( l7 y7 n& ~0 Z
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。' ~4 Z( W6 e2 K
9 ]9 H( h4 K' e1 e/ X) A但是这样的流程太复杂!8 g9 c# n4 L$ q' G
% r- F" r: V9 ]; C# o: q* f我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)6 a' h* _" N; W# s; e% q
/ e. }# p) p# |8 q% h+ G- MMC boot...4 Y0 B$ s# f6 ?8 @# y& _
- davinci: 0
9 w: T2 B( M" u& |' z S0 z - spl: mmc device found; |( }7 t0 M% I+ q5 U
- ( l6 Y- D# q' I) T s4 ^2 K0 X. d
- ) r' U0 Q4 f" Y4 M$ y% A
- U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)7 j* }8 M3 G; q" P$ n* j8 O! j, _
7 J( j$ ^! i/ L. D: h- I2C: ready" l5 k# y: F8 H3 ^
- DRAM: 128 MiB- f3 x: p- J# Y1 G! t- \+ C
- WARNING: Caches not enabled
/ D, b" P4 K+ n2 K" ]8 P' |6 v - NAND: 512 MiB3 d: X* ?" I) @& Z: n
- MMC: davinci: 0
( G: [8 X( E' g! p8 t - Bad block table not found for chip 0
! X7 F# s5 S, T) e$ p - Bad block table not found for chip 04 S: Z7 W7 l5 A
- Bad block table written to 0x00001ffe0000, version 0x01
1 }$ _+ v) X* E, @ - Bad block table written to 0x00001ffc0000, version 0x01
8 u) |2 B+ R, m, m Q4 F - *** Warning - bad CRC, using default environment
5 U( {7 X! ^: C3 Q5 y, h
- f, f: ^' c* _5 X$ m+ [: t- In: serial$ E% A$ g ?2 _
- Out: serial
7 k$ a( O$ B5 G Z* L4 c - Err: serial
1 a0 \/ C+ d% c - Net: No ETH PHY detected!!!
9 C! b5 x7 }1 Q% I/ ? - Error: Ethernet init failed!! V5 M% s1 P( K# N
- Board Net Initialization Failed. o) G+ R- K4 m, } V, t$ K
- DaVinci-EMAC5 z2 x; Q* k# d
- Hit any key to stop autoboot: 0
; e1 V r4 p( n; Y - mmc0 is current device' v, [5 _* g1 F6 L6 D# f, d8 C
- $ g/ A0 a0 |& T, E G- B1 V
- ** Unable to use mmc 0:1 for fatload **4 |$ D! b' X3 F% U" U
; M5 y: G7 ?+ E6 }/ \; F- ** Unable to use mmc 0:1 for fatload **
, v( U) e; E* \+ {! L( M' ] - : e" ]+ G5 C2 M% _
- Loading from nand0, offset 0x120000
# v9 a: o$ s2 E0 J$ v - ** Unknown image type
9 C7 |, k6 J& V: T" z - SF: Unsupported manufacturer ff
3 G7 E) f4 c9 e) Y: O4 R$ g - Failed to initialize SPI flash at 0:0
% O3 E, w+ T3 o5 J4 X - U-Boot >
复制代码 想求助一下怎么办,有没有能简化debug流程的方法: ]1 x3 ?* `, P( U2 b
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。) A+ A. [$ z0 E5 {$ C& K
; h+ U6 T( D1 z8 J* J |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
|