嵌入式开发者社区
标题:
从SD卡启动IPCLite程序的问题
[打印本页]
作者:
yhyhyh
时间:
2017-10-31 21:51
标题:
从SD卡启动IPCLite程序的问题
本帖最后由 yhyhyh 于 2017-10-31 21:53 编辑
W( p' |+ ?" n/ Z6 ?# D$ B) V
- r& [, G, F; ?6 c1 f7 |
我按照创龙IPCLite双核裸机通信PDF的流程,开发板从SD卡的Linux系统启动,将编译好的ais和bin文件烧到NAND FLASH中。然后从NAND FLASH启动,能看到程序运行。
. O* P) I; v& A
2 }$ X' k2 I* c o u: C
但是这样的流程太复杂!
0 i7 ?2 g! [5 X7 f
2 K" F8 V, C, f( k* w- Y
我想试一试能不能在电脑上的Ubuntu编译好程序,之后拷到SD卡中,然后开发板以SD卡启动,运行程序。我先把SD卡还原成普通的SD卡,然后把编译好的程序拷到SD卡后,以SD卡启动时,串口上显示直接进入uboot,如下。不能像PDF上一样(文末的图)
. \8 N- q" ], [7 [6 e
! s' [9 P( ~; S# H! h6 ~7 p* f
MMC boot...
4 d; M3 t/ i" M. H
davinci: 0
1 w. D, U5 j. A- Z% `% A
spl: mmc device found
0 c2 R% d: d5 G; B0 E& V( m+ F* n% L
, _& T. T9 v0 d$ W4 z
" v# ^, ]( [3 P' y4 C% a
U-Boot 2012.04.01-00059-g7363edf (Apr 21 2015 - 18:15:15)
6 D+ `4 i- v7 t7 R0 B
y' }: \) s7 U. M
I2C: ready
* n9 o6 N- W2 `" [# O L
DRAM: 128 MiB
+ h: _0 d: B+ ^" I* z
WARNING: Caches not enabled
+ j4 J0 i' s4 X, ~: \
NAND: 512 MiB
5 ]6 \& E# h3 ~, J( ^ g5 D* w
MMC: davinci: 0
+ y0 m" K. N" p* P8 [( z
Bad block table not found for chip 0
3 Y! n( {: _8 ^( h
Bad block table not found for chip 0
- f/ a3 l+ i. ?0 [: g; s
Bad block table written to 0x00001ffe0000, version 0x01
" b" b! l4 i' {; g1 }' J, |8 ]
Bad block table written to 0x00001ffc0000, version 0x01
0 ]% Q- O( X: Q1 a% A' Z8 k7 |
*** Warning - bad CRC, using default environment
8 h* |( o6 X( W8 q. I2 ^- Q3 h
; C- f( z4 j7 {
In: serial
* `* x# N& P, E. n1 l8 O
Out: serial
0 J% S& e1 `/ U& ?9 z4 Q" i% `8 i
Err: serial
6 g- h: A( U! @0 l0 n& B* n
Net: No ETH PHY detected!!!
% ~; O' E: e' C7 M1 {
Error: Ethernet init failed!
) M/ J: n; F8 Y# ~
Board Net Initialization Failed
) Y6 ?. K% N+ S/ G- z7 q/ c
DaVinci-EMAC
! q6 P( X: q4 D' X0 b
Hit any key to stop autoboot: 0
2 U9 a, r! S, \+ W% u, l
mmc0 is current device
( j% n. J E/ ^4 z3 g& h8 M
# F6 w7 O2 }$ Z z8 e* c
** Unable to use mmc 0:1 for fatload **
+ s3 I( P/ h3 ?# l
) P6 w% ~- s+ ]: v! A0 U
** Unable to use mmc 0:1 for fatload **
' |: r7 A; ~6 W( z* _# l4 |. ^
" J) z$ A% _' D g$ X
Loading from nand0, offset 0x120000
6 S$ m9 P! `% Y' y; C0 ]5 \+ b: ~
** Unknown image type
5 `0 o+ Q% j" ~( z
SF: Unsupported manufacturer ff
$ B- F A; |( L3 `" T6 I* i
Failed to initialize SPI flash at 0:0
3 P% G; _: n3 u7 A5 t/ e. C2 k
U-Boot >
复制代码
想求助一下怎么办,有没有能简化debug流程的方法
3 g& e, J1 t" s: D+ ]) e1 O
每次从电脑上的Ubuntu上拷贝程序到SD卡,再从SD卡启动Linux,在Linux中拷贝程序到NAND FLASH,再从NAND FLASH启动,太浪费时间了。
8 ~1 b' w' |* o; e& u3 W _ n
" t4 @" n2 {: F, X. w% L' S8 |/ S M2 ]
欢迎光临 嵌入式开发者社区 (https://www.51ele.net/)
Powered by Discuz! X3.4