From: Steven Scholz Date: Tue, 23 Nov 2004 16:42:54 +0100 Subject: [U-Boot-Users] CONFIG_BOOTBINFUNC for AT91RM9200 In-Reply-To: <41A34505.4030209@imc-berlin.de> References: <41A34505.4030209@imc-berlin.de> Message-ID: <41A35A7E.1020605@imc-berlin.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Wolfgang, is there a standard way in U-Boot to prevent to the startup code from relocating into RAM? I know that arm920t figures out the currebt address. compares it to _TEXT_BASE and decides wether to relocate or not. relocate: /* relocate U-Boot to RAM */ adr r0, _start /* r0 <- current position of code */ ldr r1, _TEXT_BASE /* test if we run from flash or RAM */ cmp r0, r1 /* don't reloc during debug */ So there might be no need for a define like CFG_DONT_RELOCATE. But how about other cpus? (I am asking cause you wrapped the relocate code in cpu/at91rm9200/start.S with CONFIG_BOOTBINFUNC instead of using the above technique. Thanks, Steven