From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Chou Date: Sun, 6 Sep 2015 21:49:20 +0800 Subject: [U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range In-Reply-To: <201509061518.30258.marex@denx.de> References: <1441336526-23505-1-git-send-email-thomas@wytron.com.tw> <201509061429.51987.marex@denx.de> <55EC3BCC.2080900@wytron.com.tw> <201509061518.30258.marex@denx.de> Message-ID: <55EC4460.30504@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/06/2015 09:18 PM, Marek Vasut wrote: > Why so? The EPCS is memory mapped and U-Boot starts from it, right ? So > U-Boot can relocate itself to the end of DRAM , right ? No. EPCS contains a default boot copier which I said earlier. Please take a look at this, https://www.altera.com/support/support-resources/design-examples/intellectual-property/embedded/nios-ii/exm-alt-boot-methods.html Though the default EPCS boot copier works, it is not easy to update u-boot(-dtb).bin image with u-boot sf command. So I used a modified version, which copies the u-boot image from a fixed location on EPCS/sf to the end of DRAM. Best regards, Thomas Chou