Does the u-boot copy itself to DRAM or the ROM code copies u-boot to DRAM ?

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

Does the u-boot copy itself to DRAM or the ROM code copies u-boot to DRAM ?

跳至解决方案
2,589 次查看
adityanagal
Contributor III

Hi ,

I am working on IMX6 solo based target board. Considering NOR flash is interfaced with IMX6 solo ,

when the CPU boots up , it checks for the IVT (Image Vector Table) in the NOR Flash , calculate the offset as per the NOR Flash , add it to the base address and then jump to the DCD table( Device Configuration data ) , read the configuration registers and initialize the peripheral .

My questions are :

1)  once the DRAM is initialsed by the ROM , does the u-boot copies/loads itself to the DRAM or the ROM copies/loads the u-boot to the DRAM ?

2) Do the some instructions get executed directly from the NOR flash prior relocating the u-boot to the DRAM ?

Kindly suggest

Regards ,

Aditya Nagal

1 解答
1,950 次查看
marius_grigoras
NXP Employee
NXP Employee

Hi,

1. u-boot copies/loads itself to the DRAM

2. yes, of course.

These are the main points in the code for u-boot:

_start

reset

relocate_code

relocate_done

U-boot code relocate itself to the DRAM memory between relocate_code and relocate_done, the execute some steps for preparing the call to linux kernel.

Regards,

Marius

在原帖中查看解决方案

2 回复数
1,951 次查看
marius_grigoras
NXP Employee
NXP Employee

Hi,

1. u-boot copies/loads itself to the DRAM

2. yes, of course.

These are the main points in the code for u-boot:

_start

reset

relocate_code

relocate_done

U-boot code relocate itself to the DRAM memory between relocate_code and relocate_done, the execute some steps for preparing the call to linux kernel.

Regards,

Marius

1,950 次查看
adityanagal
Contributor III

Thanks a lot!!

Regard,

Aditya Nagal

0 项奖励
回复