I’m doing build up u-boot based application.
I want to put all boot loader code into front of memory.
Because the application need continuously memory area.
And need access the memory by physical address.
I checked some more with the BL31 binary file.
BL31 bin file has loading target address at it’s header area.
I modified it by HEX editor and built the boot loader image.
It shows like below. (Changed!!! But…)
Load fip header from eMMC, src: 0x0000c200, des: 0x01400000, size: 0x00004000
New fip structure!
Load bl30 from eMMC, src: 0x00010200, des: 0x01100000, size: 0x0000d600
Load bl31 from eMMC, src: 0x00020200, des: 0x03100000, size: 0x0002c600
Load bl33 from eMMC, src: 0x00050200, des: 0x01000000, size: 0x00067000
But nothing is going after image load. Boot loader got hang up.
Maybe BL2 image has call routine for BL31 and it has relative addressing(RIP). (Not absolute)
I couldn’t found any 0x05100000 address in BL2 image. (or has code encrypted already?)
Anyway, It looks not easy before supporting from AMLogic.