| 
 | 
 
Hi All, 
 
 I working on porting Xen to Orange Pi 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/cpu/armv7/start.S) 
 
         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 
         msr     cpsr,r0 
 
 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 start. 
 
 Can anyone help/guide me to enter into hyp mode in Allwinner H3 SoC based board? 
 
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. 
 
 Thanks and Regards, 
 Bharat Gohil |   
 
 
 
 |