i.MX8QM Xen hypervisor is not working

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

i.MX8QM Xen hypervisor is not working

1,745 Views
mallibeerala
Contributor III

Dear NXP Experts,

I am working on Xen Hypervisor in I.MX8 Quad max.

For this I downloaded L4.14.98_2.0.0_ga_images_MX8QMMEK.zip from NXP site and extracted this file.

In extracted folder, I used following command "sudo dd if=fsl-image-validation-imx-imx8qmmek.sdcard of=/dev/sdb bs=1M conv=fsync status=progress" for Image generation then Image is loaded into my SD card(Here SD card is connected to PC by using card reader), Then I connected SD card to I.MX8 Quad max board, Image loaded successfully.

Now I Reboot card again and Stopped at uboot and entered following command "run xenmmcboot", Now I am getting following error

Starting kernel ...

"Synchronous Abort" handler, esr 0x02000000
elr: 0000000079763000 lr : 0000000080021b58 (reloc)
elr: 00000000815b0000 lr : 0000000087e6eb58
x0 : 0000000083000000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 0000000080280000 x5 : 0000000000000001
x6 : 0000000000000008 x7 : 0000000000000000
x8 : 000000008565c340 x9 : 0000000000000002
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 000000008566adbe
x14: 000000008565c2cc x15: 0000000087e6e210
x16: 0000000000002080 x17: 0000000000000000
x18: 000000008566ada8 x19: 0000000087f0ac20
x20: 0000000000000000 x21: 0000000000000000
x22: 0000000000000003 x23: 00000000856b3928
x24: 0000000087efbdd0 x25: 0000000000000000
x26: 0000000087e6eb80 x27: 0000000000000400
x28: 00000000856b3470 x29: 000000008565c400

Resetting CPU ...

resetting ...

Please Help me to resolve this problem.

Thanks & Regards,
Mallikarjuna B.

0 Kudos
8 Replies

1,737 Views
jimmychan
NXP TechSupport
NXP TechSupport

We have more update version of BSP.

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

For Building the Xen, please refer to the Chapter 5.6.11 in i.MX Yocto Project User’s Guide​

 

0 Kudos

1,731 Views
mallibeerala
Contributor III

Hi jimmychan,

Thank you very much for your reply, Now I downloaded LF_v5.10_2.0.0_images_IMX8QMMEK.zip and used the command sudo dd if=imx-image-full-imx8qmmek.wic of=/dev/sdb bs=1M conv=fsync status=progress and Xen Image present in I.MX8QM board is loaded successfully.

After the completion of Xen Image boot process, now I run xl info then I am getting following error.

libxl: error: libxl_utils.c:820:libxl_cpu_bitmap_alloc: failed to retrieve the maximum number of cpus
libxl: error: libxl_utils.c:820:libxl_cpu_bitmap_alloc: failed to retrieve the maximum number of cpus
libxl: error: libxl_utils.c:820:libxl_cpu_bitmap_alloc: failed to retrieve the maximum number of cpus
host : imx8qmmek
release : 5.10.35-lts-5.10.y+gef3f2cfc6010
version : #1 SMP PREEMPT Tue Jun 8 14:42:10 UTC 2021
machine : aarch64
libxl: error: libxl.c:363:libxl_get_physinfo: getting physinfo: Permission denied
libxl_physinfo failed.
libxl: error: libxl_sched.c:166:libxl_get_scheduler: getting current scheduler id: Permission denied
get_scheduler sysctl failed.
xend_config_format : 4

Please help me to resolve this issue.

Thanks & Regards,
Mallikarjuna B.

0 Kudos

1,725 Views
jimmychan
NXP TechSupport
NXP TechSupport

Please read the Chapter 12 in i.MX Linux User’s Guide​

0 Kudos

1,719 Views
mallibeerala
Contributor III

Hi jimmychan,

I followed the procedure available in Chapter 12 in "i.MX Linux User’s Guide"​ and still I am getting same problem.

In Document after boot completed following command is used , "Umount /dev/mmcblk1p3; insmod /lib/modules/`uname -r`/kernel/driver/block/xen-blkback/xen-blkback.ko; xl create /etc/xen/domu-imx8qm-mek.cfg." but for me third partition is not generated, I got only mmcblk1p2.

While I running "xl create /etc/xen/domu-imx8qm-mek.cfg", I am getting following error

xencall: error: Could not obtain handle on privileged command interface: No such file or directory
libxl: error: libxl.c:102:libxl_ctx_alloc: cannot open libxc handle: No such file or directory
cannot init xl context

domu-imx8qm-mek.cfg file is not available in xen folder

Please help me to resolve this issue.

Note: I tried with following Images "imx-image-full-imx8qmmek.wic", "imx-image-multimedia-imx8qmmek.wic".

Thanks & Regards,
Mallikarjuna B.

0 Kudos

1,708 Views
jimmychan
NXP TechSupport
NXP TechSupport

In the demo image package, there is an example script uuu.xen.

0 Kudos

1,692 Views
mallibeerala
Contributor III

 

Hi jimmychan,

I found uuu.xen file in "L4.14.98_2.0.0_ga_images_MX8QMMEK" and I am running this script file from my PC for loading Image into SD card, but while I am executing I am getting following errors.

./uuu.xen: line 1: uuu_version: command not found
./uuu.xen: line 4: SDP:: command not found
./uuu.xen: line 8: SDPS:: command not found
./uuu.xen: line 13: SDPU:: command not found
./uuu.xen: line 14: SDPU:: command not found
./uuu.xen: line 15: SDPU:: command not found
./uuu.xen: line 21: SDPV:: command not found
./uuu.xen: line 22: SDPV:: command not found
./uuu.xen: line 23: SDPV:: command not found
./uuu.xen: line 26: FB:: command not found
./uuu.xen: line 27: FB:: command not found
./uuu.xen: line 28: FB:: command not found
./uuu.xen: line 29: FB:: command not found
./uuu.xen: line 30: FB:: command not found
./uuu.xen: line 31: FB:: command not found
./uuu.xen: line 32: FB:: command not found
./uuu.xen: line 35: syntax error near unexpected token `do'
./uuu.xen: line 35: `FBK: ucmd while [ ! -e /dev/mmcblk1 ]; do sleep 1; echo "wait for /dev/mmcblk1 appear"; done'

Please find attached script file.

uuu.xen file need to run from PC or I.MX8 Quad Max board?

0 Kudos

1,686 Views
jimmychan
NXP TechSupport
NXP TechSupport

UUU is the tool for programming the images to your board.

https://github.com/NXPmicro/mfgtools/wiki

 

uuu.xen is the script of UUU. It is needed to run with UUU.

0 Kudos

1,676 Views
mallibeerala
Contributor III

Hi Jimmychan,

Now I executed uuu.xen file using following command "sudo uuu uuu.xen" now uuu.xen file is executed without errors.

while analyzing the uuu.xen script we come to know that coping data from PC to target RAM is happening, but data not able to write into SD card and kernel panic is happening due to rootfs is not found.

Please find the attached (uuu.xen) scipt file and kernel_panic log file.

After experiment we come to know that

"FBK: ucmd while [ ! -e /dev/mmcblk1 ]; do sleep 1; echo "wait for /dev/mmcblk1 appear"; done" is waiting for infinite loop.

Query:

Is it possible to put any prints in uuu scripts?

0 Kudos