主题 : u-boot rest 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 10181
精华: 0
发帖: 3
金钱: 25 两
威望: 11 点
综合积分: 6 分
注册时间: 2009-10-26
最后登录: 2009-12-25
楼主  发表于: 2009-12-01 16:11

 u-boot rest

Hi :
目前移植u-boot 2008-10出現下面問題,希望能幫忙...
1)我在u boot的環境下使用
setenv bootcmd 'tftp 30008000 60000 200000;bootm 30008000'
則可順利將執行kernel/rootfs

但若是使用setenv bootcmd 'nand read 30008000 60000 200000;go 30008000'
則會出現
NAND read: device 0 offset 0x60000, size 0x200000                              
2097152 bytes read: OK                                                        
## Starting application at 0x30800000 ...                                      
data abort                                                                      
pc : [<30800008>]          lr : [<33f8963c>]                                    
sp : 33f3fb84  ip : ffffffff     fp : 00000000                                  
r10: 33f3fcb3  r9 : 5ffb78fb     r8 : 33f3ffdc                                  
r7 : 00000000  r6 : 00000002     r5 : 33f3feac  r4 : 30800000                  
r3 : 30800000  r2 : 33f3feac     r1 : 33f3feac  r0 : 00000001                  
Flags: nZCv  IRQs off  FIQs off  Mode SVC_32                                    
Resetting CPU ...

最後就會reset.....

不知是否有人也曾碰過這種問題....
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2009-12-01 16:24
谁告诉你用go来启动内核的?
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 10181
精华: 0
发帖: 3
金钱: 25 两
威望: 11 点
综合积分: 6 分
注册时间: 2009-10-26
最后登录: 2009-12-25
2楼  发表于: 2009-12-01 18:05
之前上課時用的command,在"完全手冊"ch15也提到可以將程序下載至內存中,然後使用go命令執行它...