From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vladimir "Farcaller" Pouzanov Date: Mon, 16 Oct 2006 19:09:31 +0300 Subject: [U-Boot-Users] What is u-boot relocation address? References: 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 Vladimir "Farcaller" Pouzanov wrote: > Is it ok that TEXT_BASE of 0x0 leads to crash? Also U-boot seems to follow > TEXT_BASE value after relocation: Now I'm completely confused... CFG_MONITOR_BASE is u-boot startting location before relocation? CFG_FLASH_BASE is the same? TEXT_BASE is... hm... (same as both constants above) 0x0? Doesn't work. And shouldn't work: 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 */ beq stack_setup _start == 0 so is _TEXT_BASE, result = no relocation and crash.... Please help :( -- Sincerely, Vladimir "Farcaller" Pouzanov http://hackndev.com