jailhouse enable - request_mem_region failed for hypervisor memory.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

jailhouse enable - request_mem_region failed for hypervisor memory.

跳至解决方案
2,451 次查看
neo2
Contributor III

Hi, i.MX Virtualization User's Guide

Any idea why this is failing?

0root@imx8mqevk:~# jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell

[ 1372.528225] jailhouse: request_mem_region failed for hypervisor memory.
[ 1372.534954] jailhouse: Did you reserve the memory with "memmap=" or "mem="?
JAILHOUSE_ENABLE: Invalid argument
root@imx8mqevk:~#

0 项奖励
回复
1 解答
2,449 次查看
neo2
Contributor III

I worked out the missing step.

During the Linux boot - in the serial terminal it prompts to press a key.

Press a key and this enters U-boot terminal

Then 

run jh_mmcboot

etc.

Then this starts the Jailhouse DTB (Device Tree Blob)

Then I run type these commands...

insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/jailhouse.ko
insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/uio_ivshmem.ko
jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell

 

在原帖中查看解决方案

0 项奖励
回复
1 回复
2,450 次查看
neo2
Contributor III

I worked out the missing step.

During the Linux boot - in the serial terminal it prompts to press a key.

Press a key and this enters U-boot terminal

Then 

run jh_mmcboot

etc.

Then this starts the Jailhouse DTB (Device Tree Blob)

Then I run type these commands...

insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/jailhouse.ko
insmod /lib/modules/4.14.98-imx_4.14.98_2.0.0_ga+g1175b59/extra/driver/uio_ivshmem.ko
jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell

 

0 项奖励
回复