From: Robert Schwebel Date: Wed, 24 Sep 2003 11:25:11 +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: <20030924092510.GK25427@pengutronix.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Sep 24, 2003 at 11:09:27AM +0200, Steven Scholz wrote: > I am trying to figure out how ARM based board start up. > > 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? > > How is that done? Is that the same for all ARM boards? Unfortunately, ARM is still different. For example, for the PXA it works like this: - cpu/pxa/start.S: reset code; relocate U-Boot to RAM (no probing); setup stack; clear BSS - lib_arm/board.c: start_armboot(): all kinds of uggly initialisation steps; init_sequence has a call to board_init(). Robert -- Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de Pengutronix - Linux Solutions for Science and Industry Handelsregister: Amtsgericht Hildesheim, HRA 2686 Hornemannstra?e 12, 31137 Hildesheim, Germany Phone: +49-5121-28619-0 | Fax: +49-5121-28619-4