Skip to contentSkip to conversation

Secure memory

U-Boot York Sun 2 participants 3 messages Nov 6, 2015 – Nov 10, 2015

lore
Share & tools
lore

York Sun

author
#0 lore raw

Albert,

I am trying to separate secure memory and non-secure memory for ARMv8. Before I go too far, I'd like to check with you to see if there is already some code implemented.

Basically what I am trying to do is to mark most DDR memory non-secure because we have some non-secure masters such as SDHC DMA. I also want to reserve some memory for TrustZone application. In order to do that, I need to put the MMU tables in secure memory. I will need to modify common/board_f.c to process reserve_mmu() differently for secure and non-secure mode.

Please let me know if running u-boot in non-secure mode is a bad idea.

York

author
#1 lore raw
Quoted 6 lines · York Sun

Albert,

I am trying to separate secure memory and non-secure memory for ARMv8. Before I go too far, I'd like to check with you to see if there is already some code implemented.

Quoted 8 lines

Basically what I am trying to do is to mark most DDR memory non-secure because we have some non-secure masters such as SDHC DMA. I also want to reserve some memory for TrustZone application. In order to do that, I need to put the MMU tables in secure memory. I will need to modify common/board_f.c to process reserve_mmu() differently for secure and non-secure mode.

Please let me know if running u-boot in non-secure mode is a bad idea.

I didn't hear from you so I went ahead to implement the change. Please review the patches, coming soon.

York

#2 lore raw

Hello York,

Quoted 2 lines · York Sun

I didn't hear from you so I went ahead to implement the change. Please review the patches, coming soon.

Will do.

[BTW, I have no firm opinion on running U-Boot in secure or non-secure mode -- I'm from the generation to whom a bootlader has, or should have, all privileges, including the one of running non-secure. :)]

Quoted 1 line

York

Amicalement,

Signature · 1 line
Albert.