嵌入式开发者社区
标题:
从SD卡启动IPCLite程序的问题
[打印本页]
作者:
yhyhyh
时间:
2017-10-31 21:51
标题:
从SD卡启动IPCLite程序的问题
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑
8 @1 u: \# U! Z& }6 i/ l; u0 L' x
2 v& Q4 o; J) T
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。
8 M6 I. |: L+ p/ f4 D" }: n
n& l; O+ r. `, U
但是这样的流程太复杂!
+ J. j3 ~9 F4 `" Q+ I
4 G- u0 P* R$ @9 |8 {! Q; j8 I0 ^
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)
* Q$ C# ]; h5 c1 a; a, ^
! q8 C0 ~2 W& f0 V2 v) S6 n* V
MMC boot...
& R; W0 `, H$ y( ^+ Z3 U1 I
davinci: 0
- M$ p4 Q- H& u; O
spl: mmc device found
& Z; r! Y( F! a2 Z- B* t
' R3 x" G% l" B& X
1 y3 W% e9 G; N$ L2 Y
U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
6 |; F3 p! I5 C% l1 K3 E
. C. K1 P4 \7 ]
I2C: ready
# G& W/ h% ^8 D5 c2 i
DRAM: 128 MiB
# D O, m9 h" B: h" ~/ M/ E- }
WARNING: Caches not enabled
8 T9 u& H- v) b8 D) V, o
NAND: 512 MiB
9 }+ ^* i6 B: v/ ~: U( n) u) P
MMC: davinci: 0
( W$ C4 u5 Y0 ?
Bad block table not found for chip 0
1 t) f2 k# m* c4 T* ?
Bad block table not found for chip 0
6 E+ y2 W/ }! c6 n1 f' d/ i6 _
Bad block table written to 0x00001ffe0000, version 0x01
+ o! M' C5 p: W( E8 j R9 U7 e
Bad block table written to 0x00001ffc0000, version 0x01
( `- x) J. V7 ]5 U' X7 P
*** Warning - bad CRC, using default environment
5 r7 V2 p' I( ]5 P3 U
: ]+ N% M% d/ j! L
In: serial
+ e7 s! w/ ]& G6 a6 _8 ^
Out: serial
: S* G2 C; A" N% s' o
Err: serial
* m& x; Q% e, q, B W
Net: No ETH PHY detected!!!
) Q1 Z8 n* t0 y* Z9 Y
Error: Ethernet init failed!
& l3 u- z' K$ u4 X/ ^
Board Net Initialization Failed
- g0 A2 I/ j+ s- p# H- @
DaVinci-EMAC
/ v5 ~9 w1 a- N6 t/ K
Hit any key to stop autoboot: 0
' z: D, \# i' w! a+ z
mmc0 is current device
' Q* ^/ w9 h+ I, e# g
" E6 @: ~- b. ^5 f4 `+ B) D
** Unable to use mmc 0:1 for fatload **
& R; P) q1 v/ n
7 |# \) ~+ c* V* B$ z
** Unable to use mmc 0:1 for fatload **
, k' Y+ q$ J5 f
w3 Y4 ^/ }) u1 j7 ~
Loading from nand0, offset 0x120000
0 x& C/ \! i1 p1 f! z' C" ^9 n7 l: T
** Unknown image type
k) ?* I2 N) b6 V. `/ e, e1 e) S
SF: Unsupported manufacturer ff
( |; n3 M! x0 f
Failed to initialize SPI flash at 0:0
& `8 @5 Q3 j0 E3 E6 o4 y
U-Boot >
复制代码
想求助一下怎么办,有没有能简化debug流程的方法
' H% x. ~. J8 \
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。
$ o& O+ J# Y% F5 w' u8 Y. j% K
+ ^! M2 i1 T6 T6 X( ?* [6 }
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4