[U-Boot-Users] Startup for ARM boards?

Anders Larsen
2003-09-24T09:20:21Z

Steven Scholz <steven.scholz@imc-berlin.de> schreibt:
>PPC boards basicly have a board_init_f(), doing initialization, then
>relocating
>the code from flash to ram using relocate_code(), and then continue in
>ram with
>board_init_r().
>
>I can't find anything like this in the ARM based files?

Try again - it's all there (only, the naming is different)!
>
>How is that done? Is that the same for all ARM boards?

Execution starts in cpu/<your-cpu-here>/start.S which does the initial
initialization, helped by board/<your-board-here>/memsetup.S
When memsetup.S has set up the (S)(D)RAM, start.S relocates the code
from flash to RAM and continues with start_armboot() in lib_arm/board.c

This is practically identical for all ARM boards, yes (but watch out
for the details ;-).

HTH
Cheers
Anders