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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
1,699 Views
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 Solution
1,060 Views
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

View solution in original post

2 Replies
1,061 Views
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,060 Views
adityanagal
Contributor III

Thanks a lot!!

Regard,

Aditya Nagal

0 Kudos