From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dinh Nguyen Date: Mon, 9 Mar 2015 16:40:57 -0500 Subject: [U-Boot] [PATCHv2 02/20] arm: socfpga: spl: Add SRAM section In-Reply-To: <201503052159.00646.marex@denx.de> References: <1425313688-23595-1-git-send-email-dinguyen@opensource.altera.com> <201503042039.25004.marex@denx.de> <54F77A66.3010405@opensource.altera.com> <201503052159.00646.marex@denx.de> Message-ID: <54FE1369.1020208@opensource.altera.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 3/5/15 2:59 PM, Marek Vasut wrote: > On Wednesday, March 04, 2015 at 10:34:30 PM, Dinh Nguyen wrote: >> On 03/04/2015 01:39 PM, Marek Vasut wrote: >>> On Wednesday, March 04, 2015 at 07:52:04 PM, Dinh Nguyen wrote: >>>> On 03/04/2015 06:39 AM, Marek Vasut wrote: >>>>> On Monday, March 02, 2015 at 05:27:50 PM, >>>>> dinguyen at opensource.altera.com >>> >>> wrote: >>>>>> From: Dinh Nguyen >>>>>> >>>>>> Add a section of SRAM to the SPL linker file. >>>>>> >>>>>> Signed-off-by: Dinh Nguyen >>>>> >>>>> Hi! >>>>> >>>>> Can we not use the generic SPL stuff ( ./arch/arm/cpu/u-boot-spl.lds ) >>>>> here instead please ? >>>> >>>> I looked at this, but I didn't see way to overlay in an SRAM section. Do >>>> you have an example of how to do this? >>> >>> Hi! >>> >>> Is it really needed at all in the first place ? Why ? >> >> Isn't this need to specify the SPL to be located in the sram section? I >> see other platforms doing the same thing, ie. zynq, sunxi. > > CONFIG_SPL_TEXT_BASE is what specifies the address to which the SPL is linked. > This is the address where the BootROM should place the SPL and jump to it's > first instruction. > > I don't think you explicitly need to hack linker scripts to add this section. Ah yes, I think I can make use of it now. > > btw. Tom Rini has a different email address (@konsulko) now. Right...saw it right after I sent out this series. > > btw2. is there any way I can help you with hacking on the SPL please ? > Let me post a v3 within this week, and I would appreciate any help. Does posting the series to git repo help you to help me? Dinh