Dear Sir, Trying to create an custom (E-call) Inmate linux demo cell via Jailhouse in NXP i.MX 8MQ EVK Board. Steps Followed: 1. We were facing 4 KB SHM bus error issue, and we tried to fix it. Jailhouse requires physical memory addresses to be at least 4 KB-aligned, and ideally 1 MB-aligned for better safety. IVSHMEM_DEVICE = "/dev/uio0" # ls -l /sys/class/uio/uio0 lrwxrwxrwx 1 root root 0 Jul  2 15:49 /sys/class/uio/uio0 -> ../../devices/platform/bfb00000.pci/pci0002:00/0002:00:00.0/uio/uio0 # cat /sys/class/uio/uio0/maps/map0/size 0x0000000000001000 This means: The IVSHMEM memory size exposed to our inmate Linux is 0x1000 bytes = 4096 bytes (4 KB). Our Python or C code must not write more than 4096 bytes, or we will get a SIGBUS / Bus error 2. To increase the IVSHMEM memory size for our Jailhouse inmate (guest Linux), we need to modify the .cell configuration file of our inmate, specifically the ivshmem region size. Than I started modifying "/usr/share/jailhouse/cells/imx8mq-linux-demo.c" with  Location: "/yocto_imx_linux/build/tmp/work/imx8mqevk-poky-linux/jailhouse/0.2-r0/git/configs/arm64" I tried to modify above location in file 'imx8mq-linux-demo.c' I try to update SHEM size from 4 KB to 64 or 128KB, with below code snippet { .phys_start = 0xbfdf1000, .virt_start = 0xbfdf1000, .size = 0x9000, //Change to e.g. 64 KB: { .phys_start = 0xbfdf1000, .virt_start = 0xbfdf1000, .size = 0x10000, // 64 KB //Or 128 KB: .size = 0x20000, // 128 KB We tried to create a custom layers as bb files, tried below steps for custom jailhouse inmate cell creation " # Added meta-ecall to bblayers.conf: bitbake-layers add-layer ../sources/meta-ecall mkdir -p meta-ecall/recipes-jailhouse/jailhouse-cells/files cp path/to/ecall-inmate-linux-demo.c \ meta-ecall/recipes-jailhouse/jailhouse-cells/files/ #Created jailhouse-ecall.bb Recipe # sources/meta-ecall/recipes-jailhouse/jailhouse-cells/jailhouse-ecall.bb " DESCRIPTION = "E-Call Jailhouse cell configuration for i.MX8MQ" LICENSE = "MIT" LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/MIT;md5=0835a315f0c7f09f2a8d0a9a2f0f4b07" SRC_URI = "file://ecall-inmate-linux-demo.c" S = "${WORKDIR}" # Build jailhouse-cell-linux from jailhouse-native DEPENDS = "jailhouse-native" do_compile() { ${STAGING_DIR_NATIVE}/usr/bin/jailhouse-cell-linux \ ${S}/ecall-inmate-linux-demo.c } do_install() { install -d ${D}${datadir}/jailhouse/cells install -m 0644 ${S}/ecall-inmate-linux-demo.cell \ ${D}${datadir}/jailhouse/cells/ } FILES:${PN} = "${datadir}/jailhouse/cells/*" # Added to local.conf IMAGE_INSTALL:append = " jailhouse jailhouse-ecall" bitbake core-image-minimal " " Issue Facing:- We are facing issue with compilation,  how to compile the linux-inmate-demo.c file and generate .o and .cell file? How to create proper .bb file for compiling linux-inmate-demo.c file and generate .o and .cell file and adding to final image.? Please provide us any Application note you have for creating Custom Jailhouse inmate cell creation Or Any link to previous NXP community ticket having the same solution? Also please correct us about above steps and provide solution.