Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reserve some DDR RAM for secure use on Juno #233

Closed
sandrine-bailleux-arm opened this issue Jul 30, 2014 · 2 comments
Closed

Reserve some DDR RAM for secure use on Juno #233

sandrine-bailleux-arm opened this issue Jul 30, 2014 · 2 comments

Comments

@sandrine-bailleux-arm
Copy link

We should reserve some DDR RAM for secure use on Juno to make
development and testing of Trusted OSes easier, just like on FVP.

On Juno, this will be the (16 MB - 32 KB) region from 0xFF00_0000
to 0xFFFF_7FFF. This will reduce the first block of DRAM from 2048 MB
to 2032 MB, but maintain the 0x8000_0000 base address.

The last 32 KB of DRAM (i.e. 0xFFFF_8000 - 0xFFFF_FFFF) should be configured
such that the AP can't access it. This memory region is used by the SCP
for DDR retraining.

This requires updates to the memory protection controller (TZC-400)
configuration.

@diamond001
Copy link

hello, when I tested optee os with arm trusted firmware (I utilized optee os tee.bin as bl32 image) on juno platform, I got an error:
INFO: Using FIP
INFO: Loading file 'bl32.bin' at address 0x4023000
WARNING: Failed to reserve memory: 0x4023000 - 0x407e540
INFO: Trying to load image at address 0x4023000, size = 0x5b540
INFO: Current memory layout:
INFO: total region = [0x4023000, 0x4040000]
INFO: free region = [0x4023000, 0x4040000]
WARNING: Failed to load BL3-2 (-12)

I found that tee.bin is 172K, but the tzram free space for bl32 is 64K (./plat/juno/include/platform_def.h), it's smaller than the requested size.
I tried to modify the size of tzram for bl32, but the atf stop at the beginning of bl2:

VERBOSE: Reserved 12288 bytes (discarded 0 bytes below)
INFO: BL1: 0x4001000 - 0x4004000 [size = 12288] -- hugo -002
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.0(debug):bbb59e7
NOTICE: BL1: Built : 16:28:51, Dec 5 2014
INFO: BL1: RAM 0x4001000 - 0x4004000
VERBOSE: FIP header looks OK.
INFO: Using FIP
INFO: Loading file 'bl2.bin' at address 0x4053000
VERBOSE: Reserved 53248 bytes (discarded 32760 bytes above)
INFO: File 'bl2.bin' loaded: 0x4053000 - 0x4058008
VERBOSE: Reserved 12288 bytes (discarded 0 bytes below)
NOTICE: BL1: Booting BL2
INFO: BL1: BL2 address = 0x4053000
INFO: BL1: BL2 spsr = 0x3c5
VERBOSE: BL1: BL2 memory layout address = 0x4004000

Could you please tell me how to solve this problem?

@jenswi-linaro
Copy link

Answered in OP-TEE/optee_os#149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants