rockchip-linux / u-boot

U-Boot tree for pending commits
113 stars 79 forks source link

RK3288 Uboot execution in EL2 mode #28

Open hiwudery opened 6 years ago

hiwudery commented 6 years ago

Hi: How to make uboot of rk3288 execution in EL2 mode? Because I want to use the hardware virtualization in rk3288, uboot is required to start at EL2 mode to make ARM KVM hypervision work.

Thank you

-Jack

wom-bat commented 3 years ago

I'd like this too.

I've tried enabling CONFIG_CPU_V7_HAS_NONSEC, CONFIG_ARCH_SUPPORT_PSCI and CONFIG_CPU_V7_HAS_VIRT, but there's something wrong: the instruction to set the coprocessors to NonSec mode at mcr p15, 0, r0, c1, c1, 2 @ NSACR = all copros to non-sec in nonsec_virt.S line 84 causes an illegal instruction trap.