Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-08-13 Thread Simon Glass
Hi Andy, On Sat, 6 Jul 2019 at 18:36, Andy Yan wrote: > > Hi Simon: > > Simon Glass 于2019年7月7日周日 上午1:16写道: >> >> Hi Andy, >> >> On Mon, 24 Jun 2019 at 04:37, Andy Yan wrote: >> > >> > Hi Simon: >> > >> > Glad to see you online again. >> > >> > On 2019/6/23 上午3:10, Simon Glass wrote: >> > > Hi A

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-07-06 Thread Andy Yan
Hi Simon: Simon Glass 于2019年7月7日周日 上午1:16写道: > Hi Andy, > > On Mon, 24 Jun 2019 at 04:37, Andy Yan wrote: > > > > Hi Simon: > > > > Glad to see you online again. > > > > On 2019/6/23 上午3:10, Simon Glass wrote: > > > Hi Andy, > > > > > > On Tue, 28 May 2019 at 09:34, Andy Yan > wrote: > > >> Hi

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-07-06 Thread Simon Glass
Hi Andy, On Mon, 24 Jun 2019 at 04:37, Andy Yan wrote: > > Hi Simon: > > Glad to see you online again. > > On 2019/6/23 上午3:10, Simon Glass wrote: > > Hi Andy, > > > > On Tue, 28 May 2019 at 09:34, Andy Yan wrote: > >> Hi Simon: > >> > >> On 2019/5/23 上午3:39, Simon Glass wrote: > >> > >> Hi Andy

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support

2019-06-30 Thread Kever Yang
Hi Simon, Andy,     I think you are mixing up two different topic, they should be separate: 1. re-use API in BootRom in SPL to make SPL have a small enough size; 2. Enable relocation feature so that we can use the space in low address freely; The 1st topic about re-use API in BootRom is depends

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-06-24 Thread Andy Yan
Hi Simon: Glad to see you online again. On 2019/6/23 上午3:10, Simon Glass wrote: Hi Andy, On Tue, 28 May 2019 at 09:34, Andy Yan wrote: Hi Simon: On 2019/5/23 上午3:39, Simon Glass wrote: Hi Andy, On Tue, 21 May 2019 at 19:56, Andy Yan wrote: Hi Simon: Simon Glass 于2019年5月22日周三 上午8:28写道:

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-06-22 Thread Simon Glass
Hi, On Tue, 28 May 2019 at 09:47, Andy Yan wrote: > > Hi Simon: > > On 2019/5/23 上午3:39, Simon Glass wrote: > > Hi Andy, > > On Tue, 21 May 2019 at 19:43, Andy Yan wrote: > > Hi Andre: > > Andre Przywara 于2019年5月20日周一 下午11:59写道: > > On Mon, 20 May 2019 14:34:01 +0800 > Andy Yan wrote: > > Hi,

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-06-22 Thread Simon Glass
Hi Andy, On Tue, 28 May 2019 at 09:34, Andy Yan wrote: > > Hi Simon: > > On 2019/5/23 上午3:39, Simon Glass wrote: > > Hi Andy, > > On Tue, 21 May 2019 at 19:56, Andy Yan wrote: > > Hi Simon: > > Simon Glass 于2019年5月22日周三 上午8:28写道: > > Hi Andy, > > On Tue, 21 May 2019 at 00:51, Andy Yan wrote: >

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-28 Thread Andy Yan
Hi Simon: On 2019/5/23 上午3:39, Simon Glass wrote: Hi Andy, On Tue, 21 May 2019 at 19:43, Andy Yan wrote: Hi Andre: Andre Przywara 于2019年5月20日周一 下午11:59写道: On Mon, 20 May 2019 14:34:01 +0800 Andy Yan wrote: Hi, On 2019/5/19 上午12:26, Simon Glass wrote: Hi Andy, Instead of this could y

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-28 Thread Andy Yan
Hi Simon: On 2019/5/23 上午3:39, Simon Glass wrote: Hi Andy, On Tue, 21 May 2019 at 19:56, Andy Yan wrote: Hi Simon: Simon Glass 于2019年5月22日周三 上午8:28写道: Hi Andy, On Tue, 21 May 2019 at 00:51, Andy Yan wrote: Hi Simon: On 2019/5/20 下午11:35, Simon Glass wrote: Hi Andy, On Mon, 20 May 201

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-22 Thread Simon Glass
Hi Andy, On Tue, 21 May 2019 at 19:56, Andy Yan wrote: > > Hi Simon: > > Simon Glass 于2019年5月22日周三 上午8:28写道: >> >> Hi Andy, >> >> On Tue, 21 May 2019 at 00:51, Andy Yan wrote: >> > >> > Hi Simon: >> > >> > On 2019/5/20 下午11:35, Simon Glass wrote: >> > > Hi Andy, >> > > >> > > On Mon, 20 May 201

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-22 Thread Simon Glass
Hi Andy, On Tue, 21 May 2019 at 19:43, Andy Yan wrote: > > Hi Andre: > > Andre Przywara 于2019年5月20日周一 下午11:59写道: > > > On Mon, 20 May 2019 14:34:01 +0800 > > Andy Yan wrote: > > > > Hi, > > > > > On 2019/5/19 上午12:26, Simon Glass wrote: > > > > Hi Andy, > > > > > > > > Instead of this could you

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-21 Thread Andy Yan
Hi Simon: Simon Glass 于2019年5月22日周三 上午8:28写道: > Hi Andy, > > On Tue, 21 May 2019 at 00:51, Andy Yan wrote: > > > > Hi Simon: > > > > On 2019/5/20 下午11:35, Simon Glass wrote: > > > Hi Andy, > > > > > > On Mon, 20 May 2019 at 00:34, Andy Yan > wrote: > > >> Hi Simon: > > >> > > >> On 2019/5/19 上

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-21 Thread Andy Yan
Hi Andre: Andre Przywara 于2019年5月20日周一 下午11:59写道: > On Mon, 20 May 2019 14:34:01 +0800 > Andy Yan wrote: > > Hi, > > > On 2019/5/19 上午12:26, Simon Glass wrote: > > > Hi Andy, > > > > > > Instead of this could you: > > > > > > - move ATF? > > > > All rockchip based arm64 ATF run from the start 6

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-21 Thread Simon Glass
Hi Andy, On Tue, 21 May 2019 at 00:51, Andy Yan wrote: > > Hi Simon: > > On 2019/5/20 下午11:35, Simon Glass wrote: > > Hi Andy, > > > > On Mon, 20 May 2019 at 00:34, Andy Yan wrote: > >> Hi Simon: > >> > >> On 2019/5/19 上午12:26, Simon Glass wrote: > >>> Hi Andy, > >>> > >>> Instead of this could

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-20 Thread Andy Yan
Hi Simon: On 2019/5/20 下午11:35, Simon Glass wrote: Hi Andy, On Mon, 20 May 2019 at 00:34, Andy Yan wrote: Hi Simon: On 2019/5/19 上午12:26, Simon Glass wrote: Hi Andy, Instead of this could you: - move ATF? All rockchip based arm64 ATF run from the start 64KB of dram as this will give conv

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-20 Thread Andre Przywara
On Mon, 20 May 2019 14:34:01 +0800 Andy Yan wrote: Hi, > On 2019/5/19 上午12:26, Simon Glass wrote: > > Hi Andy, > > > > Instead of this could you: > > > > - move ATF? > > All rockchip based arm64 ATF run from the start 64KB of dram as this > will give convenient for kernel manage the memory.

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-20 Thread Simon Glass
Hi Andy, On Mon, 20 May 2019 at 00:34, Andy Yan wrote: > > Hi Simon: > > On 2019/5/19 上午12:26, Simon Glass wrote: > > Hi Andy, > > > > Instead of this could you: > > > > - move ATF? > > All rockchip based arm64 ATF run from the start 64KB of dram as this > will give convenient for kernel manage t

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support【请注意,邮件由s...@google.com代发】

2019-05-19 Thread Andy Yan
Hi Simon: On 2019/5/19 上午12:26, Simon Glass wrote: Hi Andy, Instead of this could you: - move ATF? All rockchip based arm64 ATF run from the start 64KB of dram as this will give convenient for kernel manage the memory. On the other hand, change the ATF load address will break the compati

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support

2019-05-18 Thread Simon Glass
Hi Andy, Instead of this could you: - move ATF? - change the SPL load address so it is not in the way (since TPL can load to any address) - (in extremis) create a function which does a memmove() and a jump, copy it somewhere and run it (I think x86 does this) Regards, Simon On Thu, 16 May 2019

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support

2019-05-17 Thread Andy Yan
Hi Lukasz: On 2019/5/17 下午4:34, Lukasz Majewski wrote: On Thu, 16 May 2019 20:21:50 +0800 Andy Yan wrote: Some times we want to relocate spl code to dram after dram initialization or relocate spl code to a high memory to avoid code overid. For example on Rockchip armv8 platform, we run with

Re: [U-Boot] [PATCH v2 2/3] spl: add relocation support

2019-05-17 Thread Lukasz Majewski
On Thu, 16 May 2019 20:21:50 +0800 Andy Yan wrote: > Some times we want to relocate spl code to dram after dram > initialization or relocate spl code to a high memory to avoid > code overid. > > For example on Rockchip armv8 platform, we run with boot flow > TPL->SPL->ATF->U-Boot. > TPL run in s

[U-Boot] [PATCH v2 2/3] spl: add relocation support

2019-05-16 Thread Andy Yan
Some times we want to relocate spl code to dram after dram initialization or relocate spl code to a high memory to avoid code overid. For example on Rockchip armv8 platform, we run with boot flow TPL->SPL->ATF->U-Boot. TPL run in sram and is responsible for dram initialization. SPL run from the st