Hypervisor support on S32G

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hypervisor support on S32G

Jump to solution
2,086 Views
Mohamed-Azz
Contributor I

Hi,

I'm trying to run a Hypervisor on NXP S32. ( Hypervisor based on L4Re microkernel )

I've built the Arm Trusted firmware and used the uboot with it .

the board is booting correctly :

 

NOTICE: S32G TF-A: s32g_system_reNOTICE: BL2: v2.3(release):
NOTICE: BL2: Built : 17:34:57, Nov 7 2022
NOTICE: BL2: Booting BL31
NOTICE: BL31: v2.3(release):
NOTICE: BL31: Built : 17:35:03, Nov 7 2022


U-Boot 2020.04 (Nov 07 2022 - 17:34:30 +0000)

CPU: NXP S32G274A rev. 2.1.0
Reset cause: Destructive Reset
Model: NXP S32G2XX
Board: NXP S32G274A-RDB
DRAM: 3.5 GiB
MMC: FSL_SDHC: 0

 

Then when I run the Hypervisor uimage i got the error :

 


=> load mmc 0:1 0x84FFFFC0 uImage
572744736 bytes read in 24531 ms (22.3 MiB/s)
=> bootm 0x84FFFFC0
## Booting kernel from Legacy Image at 84ffffc0 ...
Image Name: L4 Image
Image Type: AArch64 Linux Kernel Image (uncompressed)
Data Size: 572744672 Bytes = 546.2 MiB
Load Address: 85000000
Entry Point: 85000000
Verifying Checksum ... OK
XIP Kernel Image

Starting kernel ...


L4 Bootstrapper
Version: 8.3.0
Kernel requires EL2 (virtualization) but running in EL1.

 

For info I added next flags when building uboot:

echo "CONFIG_S32_ATF_BOOT_FLOW=y" >> ./configs/s32g274ardb2_defconfig
echo "CONFIG_ARMV7_VIRT=y" >> ./configs/s32g274ardb2_defconfig
make s32g274ardb2_defconfig

Then for ATF i do :

make CROSS_COMPILE=aarch64-linux-gnu- \
ARCH=aarch64 \
PLAT=s32g \
S32G_HAS_HV=1 \
BL2_AT_EL3=1 \
BL33=%{ubootpath}/u-boot.bin

is there somthing missing ?

thank you

 

0 Kudos
Reply
1 Solution
2,064 Views
Mohamed-Azz
Contributor I

Hi Thanks you for the support ,

From Reading i find that my U-boot still misses somes config related to EL2 , enabled with XEN ( also theses config must be enabled using menuconfig ..or/and patch the .config file later )

  • Boot flow with TF-A  from ARM architecture/Select boot flow

  • Enable Xen EL2 Booting from ARM architecture

thanks you .

It's working now.

 

View solution in original post

0 Kudos
Reply
2 Replies
2,065 Views
Mohamed-Azz
Contributor I

Hi Thanks you for the support ,

From Reading i find that my U-boot still misses somes config related to EL2 , enabled with XEN ( also theses config must be enabled using menuconfig ..or/and patch the .config file later )

  • Boot flow with TF-A  from ARM architecture/Select boot flow

  • Enable Xen EL2 Booting from ARM architecture

thanks you .

It's working now.

 

0 Kudos
Reply
2,074 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You can download the proper documentation for S32G BSP linux, where you can find a chapter about hypervisor on S32G and how to building.

https://www.nxp.com/app-autopackagemgr/software-package-manager:AUTO-SW-PACKAGE-MANAGER

 

Regards

0 Kudos
Reply