Xen implementation on Imx8quadmax

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

Xen implementation on Imx8quadmax

2,913 Views
Naresh123
Contributor I

Technical Support Request: Xen Hypervisor / Dom0 Boot Issues

1. Hardware Environment:

  • Module: Apalis iMX8 QuadMax 4GB (V1.1)

  • Carrier Board: Ixora V1.3A

  • Serial Connection: Using UART_A (Serial Debug Console) via RS232-to-USB converter.

2. Software Environment (Validated via Bitbake):

  • BSP Version: 6.4.0-devel (Kirkstone)

  • Kernel Version: 5.15.129-6.4.0

  • Xen Version: 4.16 

3. Issue Description:

  • Issue A (Serial Console): The serial output is consistently garbled/unreadable even when set to 115200 baud, 8-N-1. I have checked my baud rate settings and physical wiring.

  • Issue B (Xen/Dom0): The system is not booting into the Xen Hypervisor. Commands like xl info fail with "cannot init xl context," and uname -r shows the standard Linux kernel running on bare metal.

4. Observations:

  • The Xen binary (xen-apalis-imx8) is present in the deploy folder but does not appear to be loaded by U-Boot.

  • Standard Linux boots successfully, but virtualization features are inaccessible.

5. Request:

  • Please provide the correct U-Boot environment settings for the Ixora 1.3A board to properly load the Xen hypervisor binary before the Dom0 kernel.

  • Guidance on why the serial console output remains garbled despite using standard 115200 settings.

    APALIS-IMX8-KIT

0 Kudos
Reply
8 Replies

2,610 Views
Shivu_Guru_24
Contributor I

hi @Naresh123  how you are enabling xen hypervisor ? can you share me the documnets

 

0 Kudos
Reply

2,605 Views
Naresh123
Contributor I

Hi @Shivu_Guru_24 

I have added the xen in my yocto image and after the build , I have flash to my imx8 and for checking in serial port , with command xl info , it was showing no such directlory found.

 

0 Kudos
Reply

2,596 Views
Shivu_Guru_24
Contributor I

@Naresh123 I need to enable the xen support on latest Android kernel?

Can you please support how to enable documentation?

 

0 Kudos
Reply

2,591 Views
Naresh123
Contributor I

@Shivu_Guru_24 

Did you build the yocto with added xen?

Are you able to see Dom0 and DomU?

Are you able to make partitions?

0 Kudos
Reply

2,587 Views
Shivu_Guru_24
Contributor I

@Naresh123 i have some questions

i need to run Android and Freertos as guest vm on top of hypervisor i am just exploring before starting   

which yocto is having added xen 

we need to enable xen manually, right?

I did not sync Yoto code if i sync latest Yocto how to enable xen?

after enabling it Linux acts as dom0 right?

 

we can run Android and freertos as guest (DOmU)

 

0 Kudos
Reply

2,834 Views
Naresh123
Contributor I

Hello @Zhiming_Liu 

To clarify, I am using the official Toradex BSP 6.4.0 (Kirkstone), not the stock NXP release. This environment was built using the  toradex minimal image layers. Since this is a standard Toradex software/hardware combination (Apalis iMX8 on Ixora), I am looking for the specific U-Boot command sequence required by this BSP version to boot Xen.

 

 

0 Kudos
Reply

2,640 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Naresh123 

If you are using Toradex BSP 6.4.0, we don't know the command you need on this BSP. It's not released from NXP.

Best Regards,
Zhiming

0 Kudos
Reply

2,843 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @Naresh123 

Due to differences between Toradex's BSP and NXP's BSP, we are unable to provide precise assistance. Please seek help on the Toradex community.

Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2326418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EXen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2326418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH3%20id%3D%22toc-hId-2028341207%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%20id%3D%22toc-hId-2028345299%22%3ETechnical%20Support%20Request%3A%20Xen%20Hypervisor%20%2F%20Dom0%20Boot%20Issues%3C%2FH3%3E%3CP%3E%3CSTRONG%3E1.%20Hardware%20Environment%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EModule%3A%3C%2FSTRONG%3E%20Apalis%20iMX8%20QuadMax%204GB%20(V1.1)%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ECarrier%20Board%3A%3C%2FSTRONG%3E%20Ixora%20V1.3A%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3ESerial%20Connection%3A%3C%2FSTRONG%3E%20Using%20UART_A%20(Serial%20Debug%20Console)%20via%20RS232-to-USB%20converter.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3E2.%20Software%20Environment%20(Validated%20via%20Bitbake)%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EBSP%20Version%3A%3C%2FSTRONG%3E%206.4.0-devel%20(Kirkstone)%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EKernel%20Version%3A%3C%2FSTRONG%3E%205.15.129-6.4.0%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EXen%20Version%3A%3C%2FSTRONG%3E%204.16%26nbsp%3B%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3E3.%20Issue%20Description%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3E%3CSTRONG%3EIssue%20A%20(Serial%20Console)%3A%3C%2FSTRONG%3E%20The%20serial%20output%20is%20consistently%20garbled%2Funreadable%20even%20when%20set%20to%20115200%20baud%2C%208-N-1.%20I%20have%20checked%20my%20baud%20rate%20settings%20and%20physical%20wiring.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3E%3CSTRONG%3EIssue%20B%20(Xen%2FDom0)%3A%3C%2FSTRONG%3E%20The%20system%20is%20not%20booting%20into%20the%20Xen%20Hypervisor.%20Commands%20like%20xl%20info%20fail%20with%20%22cannot%20init%20xl%20context%2C%22%20and%20uname%20-r%20shows%20the%20standard%20Linux%20kernel%20running%20on%20bare%20metal.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3E4.%20Observations%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EThe%20Xen%20binary%20(xen-apalis-imx8)%20is%20present%20in%20the%20deploy%20folder%20but%20does%20not%20appear%20to%20be%20loaded%20by%20U-Boot.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EStandard%20Linux%20boots%20successfully%2C%20but%20virtualization%20features%20are%20inaccessible.%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3CSTRONG%3E5.%20Request%3A%3C%2FSTRONG%3E%3C%2FP%3E%3CUL%3E%3CLI%3E%3CP%3EPlease%20provide%20the%20correct%20%3CSTRONG%3EU-Boot%20environment%20settings%3C%2FSTRONG%3E%20for%20the%20Ixora%201.3A%20board%20to%20properly%20load%20the%20Xen%20hypervisor%20binary%20before%20the%20Dom0%20kernel.%3C%2FP%3E%3C%2FLI%3E%3CLI%3E%3CP%3EGuidance%20on%20why%20the%20serial%20console%20output%20remains%20garbled%20despite%20using%20standard%20115200%20settings.%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fc-pwmxy87654%2FAPALIS-IMX8-KIT%2Fpd-p%2FAPALIS-IMX8-KIT%22%20class%3D%22lia-product-mention%22%20data-product%3D%222887-1%22%20target%3D%22_blank%22%3EAPALIS-IMX8-KIT%3C%2FA%3E%3C%2FP%3E%3C%2FLI%3E%3C%2FUL%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327422%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260399%22%20target%3D%22_blank%22%3E%40Naresh123%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDue%20to%20differences%20between%20Toradex's%20BSP%20and%20NXP's%20BSP%2C%20we%20are%20unable%20to%20provide%20precise%20assistance.%20Please%20seek%20help%20on%20the%20Toradex%20community.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2327547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2327547%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F151788%22%20target%3D%22_blank%22%3E%40Zhiming_Liu%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20clarify%2C%20I%20am%20using%20the%20official%20%3CSTRONG%3EToradex%20BSP%206.4.0%20(Kirkstone)%3C%2FSTRONG%3E%2C%20not%20the%20stock%20NXP%20release.%20This%20environment%20was%20built%20using%20the%26nbsp%3B%20toradex%20minimal%20image%20layers.%20Since%20this%20is%20a%20standard%20Toradex%20software%2Fhardware%20combination%20(Apalis%20iMX8%20on%20Ixora)%2C%20I%20am%20looking%20for%20the%20specific%20U-Boot%20command%20sequence%20required%20by%20this%20BSP%20version%20to%20boot%20Xen.%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328943%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328943%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260363%22%20target%3D%22_blank%22%3E%40Shivu_Guru_24%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20added%20the%20xen%20in%20my%20yocto%20image%20and%20after%20the%20build%20%2C%20I%20have%20flash%20to%20my%20imx8%20and%20for%20checking%20in%20serial%20port%20%2C%20with%20command%20xl%20info%20%2C%20it%20was%20showing%20no%20such%20directlory%20found.%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328950%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260363%22%20target%3D%22_blank%22%3E%40Shivu_Guru_24%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EDid%20you%20build%20the%20yocto%20with%20added%20xen%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAre%20you%20able%20to%20see%20Dom0%20and%20DomU%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAre%20you%20able%20to%20make%20partitions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328897%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328897%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260399%22%20target%3D%22_blank%22%3E%40Naresh123%3C%2FA%3E%26nbsp%3B%20how%20you%20are%20enabling%20xen%20hypervisor%20%3F%20can%20you%20share%20me%20the%20documnets%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328954%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328954%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260399%22%20target%3D%22_blank%22%3E%40Naresh123%3C%2FA%3E%26nbsp%3Bi%20have%20some%20questions%3C%2FP%3E%3CP%3Ei%20need%20to%20run%20Android%20and%20Freertos%20as%20guest%20vm%20on%20top%20of%20hypervisor%20i%20am%20just%20exploring%20before%20starting%26nbsp%3B%20%26nbsp%3B%3C%2FP%3E%3CP%3Ewhich%20yocto%20is%20having%20added%20xen%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%3Ewe%20need%20to%20enable%20xen%20manually%2C%20right%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EI%20did%20not%20sync%20Yoto%20code%20if%20i%20sync%20latest%20Yocto%20how%20to%20enable%20xen%3F%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Eafter%20enabling%20it%20Linux%20acts%20as%20dom0%20right%3F%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSPAN%3Ewe%20can%20run%20Android%20and%20freertos%20as%20guest%20(DOmU)%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328947%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260399%22%20target%3D%22_blank%22%3E%40Naresh123%3C%2FA%3E%26nbsp%3BI%20need%20to%20enable%20the%20xen%20support%20on%20latest%20Android%20kernel%3F%3C%2FP%3E%3CP%3ECan%20you%20please%20support%20how%20to%20enable%20documentation%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2328585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Xen%20implementation%20on%20Imx8quadmax%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2328585%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F260399%22%20target%3D%22_blank%22%3E%40Naresh123%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EIf%20you%20are%20using%26nbsp%3B%3CSTRONG%3EToradex%20BSP%206.4.0%3C%2FSTRONG%3E%2C%20we%20don't%20know%20the%20command%20you%20need%20on%20this%20BSP.%20It's%20not%20released%20from%20NXP.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E