This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Selectively move to ram memory



Hi Experts,

I am having the pre-built MLO and u-boot file shipped for evm.

How to move selective codes to the RAM memory instead of MMC card ?

It can be done on compile time by mapping the respective addresses or will be done during the runtime during bootup ?

  • Hi,

    As i understand everything is moved to RAM for execution,
    So utimately MLO and u-boot both are loadded into the RAM and executinon starts,
    Your question is not clear, you should elaborate it for others to understand your problem.

    -Ankur

  • Hi Lyf,

    The given informations/ question which you asked is not clear as Ankur wrote,

    Please elaborate a bit on your problem/requirement.

    As Ankur wrote, MLO code runs at (executed) on internal RAM and u-boot runs at DDR RAM (external) and just storing location would be different like SD/MMC or NOR or NAND etc.,

  • Hi Titus,

    Consider the inbuilt RAM is having faster access than the external RAM. So I would like to move part of the frequently used code into the inbuilt RAM whereas the program which is accessed once a while can be moved to the external RAM. It is a kind of system optimization to execute the critical code in a faster manner. Can consider similar to Cache Memory model.

  • Hi Lyf,

    Inbuilt RAM (internal RAM) had less memory size, so you can't run much as you expected.

    It depends on your device , please refer to the your specific device data sheet.