[U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range

Marek Vasut marex at denx.de
Sun Sep 6 15:18:30 CEST 2015


On Sunday, September 06, 2015 at 03:12:44 PM, Thomas Chou wrote:
> Hi Marek,

Hi,

> On 09/06/2015 08:29 PM, Marek Vasut wrote:
> > We already do it on ARM though and the reason for this is to place U-Boot
> > at the end of the DRAM, so that most of the DRAM can be used by the user.
> 
> We place U-Boot at the end of the DRAM on nios2, too. :)
> 
> I will look into the relocation on nios2 next time. But for now, I would
> suggest that we skip this and move on to driver model.

These two things are orthogonal, so no problem :)

> > In fact, I am loading U-Boot with GDB thus far, so I am only copying it
> > once ;-) Where is the second copying coming from ?
> 
> That was true for gdb. But when you need to try out u-boot-dtb.bin on
> EPCS/sf, it will be another story..

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 ?

Best regards,
Marek Vasut


More information about the U-Boot mailing list