分享

A RAM version of U-Boot on MIPS platform

 WUCANADA 2013-07-30

from     http://wricste./2009/12/ram-version-of-u-boot-on-mips-platform.html

First you should read this link:
http://www./wiki/DULG/CanUBootBeConfiguredSuchThatItCanBeStartedInRAM

There is no code in FLASH on my board,but i can use JTAG to init the CPU core and RAM,so i want to compile a RAM version U-Boot and run it on my board.If i can run the RAM version U-Boot,i can use it to update the FLASH.
Some change i have made:
1.Change the TEXT_BASE to 0xa0000000.
2.Remove some low level init code.
3.Remove the RAM init code.
4.Hardcode the RAM size.
Maybe i can't tell you how to compile a RAM version U-Boot,because different board with some difference,though it's minor,it sensitive to CPU ...
When run U-Boot from FLASH,there is a relocate process,i think this is the core part about U-Boot,if you understand it,you really understand how U-Boot run on MIPS.In fact,my RAM version U-Boot have relocate process too,but it relocate from a RAM address to another RAM address,it borrow the relocate mechanism,not remove it, i think this is the easiest way to implement a RAM version U-Boot on MIPS platform.

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多