From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Sat, 5 Sep 2015 10:17:05 +0800 Subject: [U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range In-Reply-To: <201509041559.43604.marex@denx.de> References: <1441336526-23505-1-git-send-email-thomas@wytron.com.tw> <1441369343-4638-1-git-send-email-thomas@wytron.com.tw> <1441369343-4638-5-git-send-email-thomas@wytron.com.tw> <201509041559.43604.marex@denx.de> Message-ID: <55EA50A1.8020108@wytron.com.tw> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Marek, On 09/04/2015 09:59 PM, Marek Vasut wrote: > Can't you just call relocate_code the same way arm does it in > arch/arm/lib/crt0.S ? We didn't include relocation records in nios2 binary image, so there is no real relocation like that of ARM. Altera provides small boot loaders for cfi/sf along with their nios2 jtag flash programmer, which will load the image to the linked address in sdram. The relocating loop in start.S works only if such Altera boot loader is not used, ie, booting directly from cfi flash. Best regards, Thomas Chou