From: Anders Larsen Date: Wed, 24 Sep 2003 11:20:21 +0200 Subject: [U-Boot-Users] Startup for ARM boards? In-Reply-To: <3F715F47.1000904@imc-berlin.de> References: <3F715F47.1000904@imc-berlin.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Steven Scholz 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//start.S which does the initial initialization, helped by board//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