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,568件の閲覧回数
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,929件の閲覧回数
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,930件の閲覧回数
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,929件の閲覧回数
adityanagal
Contributor III

Thanks a lot!!

Regard,

Aditya Nagal

0 件の賞賛
返信