Hi Leo,

On 9 October 2015 at 09:00, Leo Yan <leo.yan@linaro.org> wrote:
On Wed, May 27, 2015 at 05:30:12PM +0100, Peter Griffin wrote:

[...]

Do you have any update for using latest ATF + uboot? :)

The lastest U-Boot code which incorporates my latest patches is v2015.10-rc4 from upstream U-Boot tree here http://git.denx.de/u-boot.git.

I was running with that patch series OK on top of v2015.10-rc3 (so I've not actually tried -rc4, but -rc4 incorporates my latest series).

I was running that in conjunction with the ATF which switched to UART3 which was commit 9f96699c5b62ff1381d8b8838a66329eff2914ce. That setup was working OK for me.
 

- I tried two ATF versions, one version is to follow up u-boot-readme.txt
  to checkout commit log:

  git checkout 9a97502e8b3247dee95d4f0b48fc5d7154f40609

  Finally i saw ATF will trap into exception, so this very likely with
  memory barrier issues we found before (Or caused by DDR init).

That could be U-Boot relocating itself into the 16Mb TrustZone secured area of RAM. A patch in -rc4 fixes that (05e682d46799de7be0ed3200ae2543d47a35fe7b).
 

- Also tried latest ATF + uboot but cannot boot up; do you have some
  extra patches to fix this issue?

Are you using the mainline U-Boot,  v2015.10-rc4? 

i found the memory node in DTB will be overwritten in uboot, so want
to build uboot to debug this issue.

Ok, sounds good :)

regards,

Peter