From mboxrd@z Thu Jan 1 00:00:00 1970 From: Fabio Estevam Date: Fri, 14 Jan 2011 16:33:58 -0200 Subject: [U-Boot] [RFC] ARM: mx31pdk: Use the new relocation scheme In-Reply-To: <4D2F004B.9090204@denx.de> References: <1294836544-24512-1-git-send-email-fabio.estevam@freescale.com> <4D2F004B.9090204@denx.de> Message-ID: <4D309716.4000905@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Stefano, On 1/13/2011 11:38 AM, Stefano Babic wrote: > On 01/12/2011 01:49 PM, Fabio Estevam wrote: >> Hi, > > Hi Fabio, > >> >> I am trying to make the new relocation scheme to work on the mx31pdk board. >> >> With this patch applied the mx31pdk build works, but not able to get a U-boot prompt yet. > > I have tried to imagine some issues, but I cannot find a clear reason. > Building with your patch I checked that nand_spl is still less than 2KB > code, and that matches the NAND page, as required by i.MX31 - so it is > not a problem. > > Have you tried to disable the relocation, just to check if the > relocation is an issue with CONFIG_SKIP_RELOCATE_UBOOT ? This is not a > solution, but only to check what happens. Yes, I tried to disable relocation and U-boot still fails to boot. >> >> I copied the nand_spl/board/karo/tx25/u-boot.lds to the mx31pdk one. >> >> I am not certain whether the CONFIG_SYS_TEXT_BASE should be changed or not: >> >> ifdef CONFIG_NAND_SPL >> CONFIG_SYS_TEXT_BASE = 0x87ec0000 >> else >> CONFIG_SYS_TEXT_BASE = 0x87f00000 >> endif > > I think they are ok - both addresses are valid RAM addresses. The > relocation will move then the code at the end of the RAM. And as I > understood from i.MX31 manual, the NFC controller does not use the IRAM > at all, so the area pointed by your starting stack pointer should not be > overwritten. > >> >> If anyone has any comments/suggestions I will appreciate it. > > No great idea, really. Probably you need to attach a JTAG debugger and > see what happens. Yes, I am setting up a OpenOCD JTAG here to debug this. Thanks, Fabio Estevam