It looks like that The T4240 e6500 L3 cache can be used as SRAM for your memory test code.
The u-boot binary image is 768KBytes. The T4240 e6500 L2 SRAM bank size is 512KBytes. Therefore the T2080 e6500 L2 SRAM cannot be used for u-boot.
It looks like that your memory test code can be loaded to L2 SRAM. Board can be restarted after memory test for u-boot loading.
Have a great day,
Pavel Chubakov
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------