[U-Boot] [PATCH] ARM: Allwinner: H3 SoC: Boot Allwinner H3 device in HYP mode.
ghl.bhrt at gmail.com
Mon Aug 10 12:49:10 CEST 2015
I working on porting Xen to Orange Pi mini 2(Allwinner H3) board.
When I try to boot xen on it, Shows following message.
- UART enabled -
- CPU booting -
- Xen must be entered in NS Hyp mode -
- Boot failed -
I assume that all allwinner core enable(start from internal ROM firmware)
in hyp mode and following code checks for hyp mode in u-boot( in arch/arm/
mrs r0, cpsr
and r1, r0, #0x1f @ mask mode bits
teq r1, #0x1a @ test for HYP mode
bicne r0, r0, #0x1f @ clear all mode bits
orrne r0, r0, #0x13 @ set SVC mode
orr r0, r0, #0xc0 @ disable FIQ and IRQ
But H3 SoC not start from HYP mode unlike AllWinner A20 start in HYP. Is
any specific different in booting of A20 and H3 before boot0 and u-boot
Can anyone help/guide me to enter into hyp mode in Allwinner H3 SoC based
Is any specific procedure to enter into HYP mode? i.e TI OMAP5 based device
require special SMC instruction to enter into HYP mode.
I am stuck at this point because it link with SoC internal information.
bharat.gohil at harman.com
More information about the U-Boot