主题 : 用jlink烧录uboot成功了,当时可以用,为什么复位就恢复到默认的supervivi了 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 28121
精华: 0
发帖: 58
金钱: 290 两
威望: 58 点
贡献值: 0 点
综合积分: 116 分
注册时间: 2010-09-06
最后登录: 2017-09-13
楼主  发表于: 2010-09-06 10:52

 用jlink烧录uboot成功了,当时可以用,为什么复位就恢复到默认的supervivi了

管理提醒: 本帖被 kasim 从 Linux技术交流专区 移动到本区(2010-09-06)
这个问题困扰了我快一个月了,那位大虾,救救我

我用jlink烧录uboot成功了,当时可以用,为什么复位就恢复到默认的supervivi了
下面是在jlink commander的命令

下载并运行init.bin
如果是nand启动
loadbin e:\init.bin 0
setpc 0
g

如果是nor启动
loadbin e:\init.bin 0x40000000
setpc 0x40000000
g

下载uboot
h
loadbin.e:\u-boot.bin x033f80000
setpc 0x33f80000
g
到这里uboot就能正常的运行
当时复位或者重启就会恢复到默认的supervivi

******************************************************************************
我按照手册上的方法也试过了
用supervivi下载uboot,但是打到nand启动时,出现了白屏,超级终端也没有反映
[ 此帖被kasim在2010-09-06 20:31重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-09-06 11:40
loadbin.e:\u-boot.bin x033f80000
setpc 0x33f80000
g

这只是把u-boot 下载到SDRAM中并运行, 并没有将它下载到NAND Flash中,重启后NAND Flash里当然还是原来的程序镜像(supervivi)

我按照手册上的方法也试过了
用supervivi下载uboot,但是打到nand启动时,出现了白屏,超级终端也没有反映

如果uboot成功写入NAND Flash了,这说明你的u-boot的nand boot功能有问题,无法从NAND Flash中启动自己。
"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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
2楼  发表于: 2010-09-06 13:42
Tekkaman已经移植了一个适用于128M/256M/1G NAND Flash版本的mini2440的u-boot,参考这个帖子:
http://www.aiothome.net/read.php?tid-3539.html
"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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-09-06 16:32

 回 4楼(376240497) 的帖子

抱歉,我没用过这个u-boot,帮不了你。
"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: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
4楼  发表于: 2010-09-06 20:30

 Re:回 5楼(kasim) 的帖子

引用第7楼376240497于2010-09-06 20:24发表的 回 5楼(kasim) 的帖子 :
版主,终于OK了,happy,谢谢啦
遇到同样的问题,可以来问我啊

恭喜,不过我想还是把你解决问题的经验留下来对大家会比较有帮助,谢谢!
"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."