From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Mon, 17 Jun 2013 18:01:29 +0200 Subject: [U-Boot] [PATCH v2 7/7] am335x_evm: Add support to boot from NOR. In-Reply-To: <51BF29F5.90905@newflow.co.uk> References: <1368469719-22406-1-git-send-email-trini@ti.com> <1368469719-22406-7-git-send-email-trini@ti.com> <51BF2089.90605@newflow.co.uk> <51BF2203.20206@ti.com> <51BF244E.9020603@newflow.co.uk> <51BF29F5.90905@newflow.co.uk> Message-ID: <51BF32D9.1090606@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Mark, On 17.06.2013 17:23, Mark Jackson wrote: > On 17/06/13 15:59, Mark Jackson wrote: >> On 17/06/13 15:49, Tom Rini wrote: >> >> >> >>> Did you copy the parts that setup the pinmuxing in s_init for NOR? >> >> This bit ? >> >> #ifdef CONFIG_NOR_BOOT >> asm("stmfd sp!, {r2 - r4}"); >> asm("movw r4, #0x8A4"); >> asm("movw r3, #0x44E1"); >> asm("orr r4, r4, r3, lsl #16"); >> asm("mov r2, #9"); >> asm("mov r3, #8"); >> asm("gpmc_mux: str r2, [r4], #4"); >> asm("subs r3, r3, #1"); >> asm("bne gpmc_mux"); >> asm("ldmfd sp!, {r2 - r4}"); >> #endif >> >> Yes ... :-) >> > > Below is my entire s_init() routine. > > One question ... the SPL code has:- > > ... > gd = &gdata; > ... > > But there seems to be no similar assignment when in NOR boot mode. > I'm no expert in the internal workings of u-boot, so I thought I'd > check, just in case !?! I just noticed you mentioning "gd" here and wanted to point you to a patch that fixed a gd-related boot issue for me on OMAP3: [U-Boot] [PATCH 1/3] arm: spl: Fix SPL booting for OMAP3 (sorry, I can't find a link to this patch right now and I'm in a hurry) Not sure if this has something to do with your problem (I don't have the time to dig into this mail thread today as I'm leaving right now). Cheers, Stefan