主题 : 关于tiny210uboot的问题呢 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 97876
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
贡献值: 0 点
综合积分: 12 分
注册时间: 2013-11-08
最后登录: 2014-04-14
楼主  发表于: 2014-02-25 11:10

 关于tiny210uboot的问题呢

各位老师请教个问题 网上下了个tiny210-u-boot-version4.0.tar 反汇编后发现函数lowlevel_init(初始化nand 内存等)地址是23e25730 远远超过了 垫脚石空间 为什么网上很多朋友都能用起了?我没能用起
[ 此帖被gongxk在2014-02-25 11:32重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2014-02-25 13:23

 回 楼主(gongxk) 的帖子

这部分代码是位置无关代码(Position Independent Code, PIC), 可以在任何位置执行。
"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: 97876
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
贡献值: 0 点
综合积分: 12 分
注册时间: 2013-11-08
最后登录: 2014-04-14
2楼  发表于: 2014-02-25 13:26
谢谢版主 有个这个问题 从lowlevel_init这个函数的地址来看 在拷贝nand到垫脚石(steppingstone)的时候 lowlevel_init这个代码的位置根本考不进去 如果能拷贝进去采用位置无关码来运行函数 现在拷贝不进去 就更运行不了了
[ 此帖被gongxk在2014-02-25 14:55重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2014-03-03 22:23

 回 2楼(gongxk) 的帖子

这部分拷贝动作是BootROM做的,你是怎么确定无法拷贝的?
"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."