U-boot CONFIG_SYS_TEXT_BASE 与 SDRAM 的关系 [英] Relationship between U-boot CONFIG_SYS_TEXT_BASE and SDRAM

查看:129
本文介绍了U-boot CONFIG_SYS_TEXT_BASE 与 SDRAM 的关系的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我对u-boot的理解如下

  1. ROM 代码加载 SPL
  2. SPL 初始化 RAM,并将 u-boot 加载到 CONFIG_SYS_TEXT_BASE RAM 地址
  3. u-boot 自行重新定位
  4. 启动内核

我检查了我的 u-boot 配置,CONFIG_SYS_TEXT_BASE0x80000000,但我很好奇,我的 RAM 大小只有 1G,它仍然可以正常工作.

1G 等于 0x40000000,小于 0x80000000

那么,我想知道我是否对CONFIG_SYS_TEXT_BASE有误解或我的概念有误?

解决方案

我检查了我的 u-boot 配置,CONFIG_SYS_TEXT_BASE 是 0x80000000,但我很好奇,我的 RAM 大小只有 1G,它仍然可以正常工作.

1G 等于 0x40000000,小于 0x80000000

那么,我想知道是我对CONFIG_SYS_TEXT_BASE有什么误解还是我的概念有误?

您对CONFIG_SYS_TEXT_BASE 的理解是正确的.错误的是RAM大小与RAM物理起始地址有关.RAM 从 0x80000000 开始,到 0xC0000000(1G 以后)结束.所以 0xC0000000-0x80000000 = 0x40000000 = 1G.

如果您的 ram 为 0xD0000000 并且为 1G 或类似的大小,您就会遇到问题.通常人们不会构建这样的系统.

At present, my understanding of u-boot is as follows

  1. ROM Code load SPL
  2. SPL initialize RAM, and load u-boot to CONFIG_SYS_TEXT_BASE RAM address
  3. u-boot relocates itself
  4. Boot the kernel

I check my u-boot configuration, CONFIG_SYS_TEXT_BASE is 0x80000000, but I am curious, my RAM size is only 1G, and it still can work fine.

1G is equal to 0x40000000, less than 0x80000000

So, I want to know if I have a misunderstanding about CONFIG_SYS_TEXT_BASE or my concept is wrong?

解决方案

I check my u-boot configuration, CONFIG_SYS_TEXT_BASE is 0x80000000, but I am curious, my RAM size is only 1G, and it still can work fine.

1G is equal to 0x40000000, less than 0x80000000

So, I want to know if I have a misunderstanding about CONFIG_SYS_TEXT_BASE or my concept is wrong?

Your understanding of CONFIG_SYS_TEXT_BASE is correct. What is wrong is that the RAM size is related to the RAM physical start address. The RAM starts at 0x80000000 and ends at 0xC0000000 (1G later). So 0xC0000000-0x80000000 = 0x40000000 = 1G.

You would have an issue if your ram was at 0xD0000000 an was 1G big or something like that. Normally people would not build such a system.

这篇关于U-boot CONFIG_SYS_TEXT_BASE 与 SDRAM 的关系的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆