u-boot relocate to DDR

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

u-boot relocate to DDR

1,400 次查看
t_alex
Contributor III

Hi,

In the u-boot code, once after the post tests are done, u-boot will relocate itself to DDR and continue running from in_ram.

However after calling the relocate function it seems the code does not run from in_ram at all.

Inside the relocate function (in start.S), before the blr instruction to run from the new location in DDR, I purposely stop to dump out the new u-boot content in DDR and I can see it there.

How would I go about troubleshoot this problem?

标签 (1)
标记 (2)
0 项奖励
2 回复数

696 次查看
t_alex
Contributor III

We finally find out what seems to be the problem. When creating TLB for DDR, by default MAS2_M (memory coherency required) is set, and we could not run code at all from DDR. We tried to set to MAS2_I | MAS2_G and it is able to run.

Is this a bug in the processor?

0 项奖励

696 次查看
scottwood
NXP Employee
NXP Employee

Perhaps there's a problem with the memory timings, causing it to work for single word accesses but fail on burst reads when an entire cache line is accessed at once.

0 项奖励