Issue with Jailhouse hypervisor Inmate cell Creation for i.MX8MQ

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

Issue with Jailhouse hypervisor Inmate cell Creation for i.MX8MQ

4,886 Views
sumiteca09
Contributor II

Dear Sir,

Trying to create an custom (E-call) Inmate linux demo cell via Jailhouse in NXP i.MX 8MQ EVK Board.

All steps followed are added in attached 'NXP_Jailhouse_Ticket.txt' file.

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.

Labels (1)
Tags (2)
0 Kudos
Reply
15 Replies

4,824 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You can follow similar approach as NXP Harpoon Jailhouse integration trough a bbappend recipe.

See examples: meta-nxp-harpoon/recipes-extended/jailhouse/jailhouse-imx_%.bbappend at imx-linux-scarthgap · NXP/me...

User guide: https://www.nxp.com/docs/en/user-guide/Harpoon_USERS_GUIDE.pdf

Regards

0 Kudos
Reply

4,809 Views
sumiteca09
Contributor II

Hi Bio_TICFSL  

Thanks a lot for quick reply.

Since we are using i.MX NXP 8MQ EVK board 'i.MX 8MQuad', 
With Part Number "TDA6637".
So currently I have flashed Linux Yocto 5.15 Kirkstone '5.15.71-2.2.0'.

But in your reply for 'NXP Harpoon Jailhouse integration' we need 'i.MX Linux Yocto Project BSP 6.6.36-2.1.0 Harpoon v3 Release',.
For i.MX 8MQ board it support till 5.15 Kirkstone Image, and in your Harpoon User Guide 'UG10170' and 
Github link 'https://github.com/NXP/meta-nxp-harpoon/tree/imx-linux-scarthgap'

The following boards were tested in this release:

  • NXP i.MX 8MMini LPDDR4 EVK (imx8mm-lpddr4-evk)
  • NXP i.MX 8MNano LPDDR4 EVK (imx8mn-lpddr4-evk)
  • NXP i.MX 8MPlus LPDDR4 EVK (imx8mp-lpddr4-evk)

No mention of i.MX 8MQ, can you provide a specific Jailhouse solution for our board, or suggest some other possibility to create inmate cell?

Thanks a lot for support.

Thanks,
Sumit

0 Kudos
Reply

4,801 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

There is no jailhouse for MX8MQ, but is the same family of the MX8M you can take as base the github or take the 6.6.36 BSP.

Regards

0 Kudos
Reply

4,780 Views
sumiteca09
Contributor II

Hi Bio_TICFSL,

In your github link, we found some link for 5.15 Kirkstone:

https://github.com/NXP/meta-nxp-harpoon/blob/imx-linux-kirkstone/recipes-extended/jailhouse/jailhous...

https://github.com/NXP/meta-nxp-harpoon/tree/imx-linux-kirkstone

Will it help for our NXP i.MX8MQ board?

Thanks,

Sumit

Tags (1)
0 Kudos
Reply

4,799 Views
Peng_Fan
NXP Employee
NXP Employee

Let me give some tips:

 

1. Documentation/inter-cell-communication.md describes how the memory is arranged.

Each cell needs the follow regions for ivshmem:

- read-only region to hold state table, generally one page large
- one region that is read/writable for all peers
- one output region per peer that is only read-writeable for one of them

2. To i.MX8MQ

/* IVHSMEM shared memory region for 00:00.0 */ {
.phys_start = 0xbfdf0000,
.virt_start = 0xbfdf0000,
.size = 0x1000,
.flags = JAILHOUSE_MEM_READ,    ===> This is state table.
},
{
.phys_start = 0xbfdf1000,
.virt_start = 0xbfdf1000,
.size = 0x9000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE ,     ===> This is RW section. You could use this for communication. Or enlarge this.

},
{
.phys_start = 0xbfdfa000,
.virt_start = 0xbfdfa000,
.size = 0x2000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE ,   ==> This is root input/output
},
{
.phys_start = 0xbfdfc000,
.virt_start = 0xbfdfc000,
.size = 0x2000,
.flags = JAILHOUSE_MEM_READ,           ==> This is root input
},
{
.phys_start = 0xbfdfe000,
.virt_start = 0xbfdfe000,
.size = 0x2000,
.flags = JAILHOUSE_MEM_READ,      ==> This is root input

 

This is similar layout in imx8mq-inmate-linux.c.

 

You could configure RW and INPUT/OUTPUT SECTION, do not touch State section.

For INPUT/OUTPUT, if you define multiple regions, each region should be same size.

 

Regards

Peng.

Kernel & Virtualization Engineer
0 Kudos
Reply

4,776 Views
sumiteca09
Contributor II


Dear Peng Fan,

Thank you for your valuable guidance on IVSHMEM memory regions for Jailhouse on the i.MX 8MQ, as provided in your response regarding the state table, RW section, and input/output sections. We have incorporated your suggestions into our cell configuration, but we are still facing a persistent compilation error when trying to create a custom E-Call inmate cell using Yocto 5.15 Kirkstone (Linux 5.15.71-2.2.0) on the i.MX 8MQ EVK board. Below is a detailed summary of the issue, our attempts to resolve it, and the current status. We would greatly appreciate any specific references, application notes, or further guidance you can provide to help us overcome this issue.

Issue Summary
We are attempting to compile a custom E-Call inmate cell configuration (initially based on `imx8mq-linux-demo.c`, now using a simplified `ecall-inmate-linux-demo.c`) using the `jailhouse-cell-linux` tool. The compilation fails during the `do_compile` task of our `jailhouse-ecall.bb` recipe with the following error:
"
ERROR: jailhouse-ecall-1.0-r0 do_compile: ExecutionError('/home/automotive/yocto_imx_linux/build/tmp/work/armv8a-poky-linux/jailhouse-ecall/1.0-r0/temp/run.do_compile.225085', 1, None, None)
Log data follows:
DEBUG: Executing shell function do_compile
Not a cell configuration: /home/automotive/yocto_imx_linux/build/tmp/work/armv8a-poky-linux/jailhouse-ecall/1.0-r0/imx8mq-linux-demo.c
WARNING: exit code 1 from a shell command.
ERROR: Task (/home/automotive/yocto_imx_linux/sources/meta-ecall/recipes-jailhouse/jailhouse-cells/jailhouse-ecall.bb:do_compile) failed with exit code '1'
"

This error indicates that `jailhouse-cell-linux` does not recognize the cell configuration file as valid. Despite multiple attempts to resolve this, the issue persists.

Details of Attempts to Resolve
We have made several updates to our Yocto recipes, cell configuration, and environment based on community feedback and trial-and-error. Below is a summary of the key efforts:

1. Initial Setup and Error:
- Started with `jailhouse-ecall.bb` using `imx8mq-linux-demo.c` and `jailhouse-native.bb` based on the Siemens Jailhouse fork (`git://github.com/siemens/jailhouse.git;branch=master;SRCREV=e57d1eff`).
- Encountered errors related to missing `pyjailhouse` modules and incorrect `jailhouse-cell-linux` command syntax (e.g., misinterpreting `-I` as `CELLCONFIG`).

2. Recipe Updates:
- jailhouse-native.bb:
- Initially lacked header installation (`jailhouse/types.h`, `jailhouse/cell-config.h`). Updated to include:
"bitbake
install -d ${D}${includedir}/jailhouse
cp -r ${S}/include/jailhouse/*.h ${D}${includedir}/jailhouse/
"
- Switched to the NXP Jailhouse fork (`git://source.codeaurora.org/external/imx/imx-jailhouse.git;branch=imx_5.4.47_2.2.0;SRCREV=8bbe203`) to align with `jailhouse_0.12.bb` for i.MX 8MQ compatibility.
- Ensured `pyjailhouse` installation and `python3-native` dependency.
- jailhouse-ecall.bb:
- Corrected the 'jailhouse-cell-linux' command by removing an invalid '/dev/null' argument and using proper syntax:
"bitbake
${STAGING_BINDIR_NATIVE}/jailhouse-cell-linux \
${S}/ecall-inmate-linux-demo.c \
-o ${S}/ecall-inmate-linux-demo.cell
"
- Updated 'SRC_URI' to use `ecall-inmate-linux-demo.c` instead of `imx8mq-linux-demo.c` to focus on the E-Call use case.
- Added 'export C_INCLUDE_PATH' and 'PYTHONPATH' to ensure headers and Python modules are found.

3. Cell Configuration Updates:
- Simplified 'ecall-inmate-linux-demo.c' based on 'imx8mq-linux-demo.c' and your IVSHMEM guidance:
- State table: `0xbfdf0000`, 4 KB, read-only.
- RW section: `0xbfdf1000`, 64 KB, read/write.
- Root output: `0xbfdfa000`, 8 KB, read/write.
- Root input: `0xbfdfc000`, 8 KB, read-only.
- Included UART1 (`0x30860000`), RAM (`0xc0000000`, 256 MB), and communication region (`0x80000000`).
- Removed complex macros (e.g., `JAILHOUSE_SHMEM_NET_REGIONS`) to avoid parsing issues.
- Example configuration snippet:
".c
.mem_regions = {
/* IVSHMEM state table */
{
.phys_start = 0xbfdf0000,
.virt_start = 0xbfdf0000,
.size = 0x1000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_ROOTSHARED,
},
/* IVSHMEM RW section */
{
.phys_start = 0xbfdf1000,
.virt_start = 0xbfdf1000,
.size = 0x10000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_ROOTSHARED,
},
/* IVSHMEM root output */
{
.phys_start = 0xbfdfa000,
.virt_start = 0xbfdfa000,
.size = 0x2000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE | JAILHOUSE_MEM_ROOTSHARED,
},
/* IVSHMEM root input */
{
.phys_start = 0xbfdfc000,
.virt_start = 0xbfdfc000,
.size = 0x2000,
.flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_ROOTSHARED,
},
...
}
"

4. Dependency and Layer Configuration:
- Added `meta-ecall` and `meta-freescale` to `bblayers.conf`.
- Updated `local.conf`:
"conf
IMAGE_INSTALL:append = " jailhouse jailhouse-ecall python3"
DISTRO_FEATURES:append = " jailhouse virtualization"
"
- Verified `jailhouse_0.12.bb` uses the NXP fork for target deployment.
- Ensured `python3-native`, `pyjailhouse`, and headers are installed in the native sysroot (`${STAGING_DIR_NATIVE}/usr/share/jailhouse/tools/pyjailhouse/`, `${STAGING_DIR_NATIVE}/usr/include/jailhouse/`).

5. Manual Testing:
- Manually tested `jailhouse-cell-linux`:
"bash
export PYTHONPATH=/home/automotive/yocto_imx_linux/build/tmp/work/x86_64-linux/jailhouse-native/0.12-r0/image/usr/share/jailhouse/tools
export C_INCLUDE_PATH=/home/automotive/yocto_imx_linux/build/tmp/work/x86_64-linux/jailhouse-native/0.12-r0/image/usr/include/jailhouse
/home/automotive/yocto_imx_linux/build/tmp/work/x86_64-linux/jailhouse-native/0.12-r0/image/usr/bin/jailhouse-cell-linux \
/home/automotive/yocto_imx_linux/build/tmp/work/armv8a-poky-linux/jailhouse-ecall/1.0-r0/ecall-inmate-linux-demo.c \
-o ecall-inmate-linux-demo.cell
"
- Same error: `Not a cell configuration`.
- Verified sysroot contents: `pyjailhouse` modules, headers, and `jailhouse-cell-linux` are present.


Current Status
- The error `Not a cell configuration` persists despite:
- Correcting `jailhouse-cell-linux` syntax.
- Simplifying the cell configuration.
- Aligning `jailhouse-native.bb` with the NXP fork.
- Ensuring headers and `pyjailhouse` are installed.
- Other recipes (`jailhouse-native`, `jailhouse`) compile successfully, indicating the issue is specific to `jailhouse-ecall.bb` and the cell configuration parsing.

Questions and Request for Guidance
1. Could the error be due to a version mismatch between the NXP Jailhouse fork (`imx_5.4.47_2.2.0`) and our cell configuration? Are there specific requirements for `jailhouse-cell-linux` in this fork?
2. Is there an application note or user guide for creating custom Jailhouse inmate cells on i.MX 8MQ with Yocto 5.15 Kirkstone? We couldn’t find detailed documentation for this platform.
3. Are there known issues with `jailhouse-cell-linux` parsing complex configurations (e.g., IVSHMEM regions)? Should we further simplify the configuration?
4. Can you provide a reference `jailhouse-ecall.bb` recipe or example for compiling a `.cell` file for i.MX 8MQ?
5. Are there specific U-Boot or kernel configurations required for Jailhouse on i.MX 8MQ that we might be missing?

6. How to resolve the Jailhouse dependencies issue, for custom recipes/bb layers?

Attached Files (for Reference)
- `jailhouse-ecall.bb`: Updated recipe for E-Call cell.
- `jailhouse-native.bb`: Updated to NXP fork with headers.
- `ecall-inmate-linux-demo.c`: Simplified configuration with IVSHMEM regions.
- `imx8mq-linux-demo.c`: Original configuration (for reference).
- Verbose compilation log (if needed, please confirm how to share).

We are eager to resolve this issue to proceed with deploying the E-Call inmate cell and testing shared memory communication. Any insights, references, or corrections to our approach would be greatly appreciated.

Thank you for your support!

Best regards,
Sumit

Note:-Let me know if you need help refining the response or generating the verbose log!

0 Kudos
Reply

4,770 Views
Peng_Fan
NXP Employee
NXP Employee

I have little knowledge on Yocto stuff. Just share my build command:

. /opt/fsl-imx-internal-xwayland/6.12-styhead/environment-setup-armv8a-poky-linux

make KDIR=$HOME/linux/linux-lts-nxp CC="aarch64-poky-linux-gcc --sysroot=$SDKTARGETSYSROOT" ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux- V=1

Then the cells will be built out.

 

5.10 should be similar.

 

Please also share your compiled out cell file, let me have a look on why jailhouse-cell-linux report error on the cell.

 

Kernel & Virtualization Engineer
0 Kudos
Reply

4,767 Views
Peng_Fan
NXP Employee
NXP Employee

BTW:

This is wrong

     "bash

     export PYTHONPATH=/home/automotive/yocto_imx_linux/build/tmp/work/x86_64-linux/jailhouse-native/0.12-r0/image/usr/share/jailhouse/tools

     export C_INCLUDE_PATH=/home/automotive/yocto_imx_linux/build/tmp/work/x86_64-linux/jailhouse-native/0.12-r0/image/usr/include/jailhouse

     /home/automotive/yocto_imx_linux/build/tmp/work/x86_64-linux/jailhouse-native/0.12-r0/image/usr/bin/jailhouse-cell-linux \

     /home/automotive/yocto_imx_linux/build/tmp/work/armv8a-poky-linux/jailhouse-ecall/1.0-r0/ecall-inmate-linux-demo.c \

     -o ecall-inmate-linux-demo.cell

 

cells are compiled out by GCC, not jailhouse-cell-linux.

 

Kernel & Virtualization Engineer
0 Kudos
Reply

4,751 Views
sumiteca09
Contributor II

Dear PENG,

Thanks a lot your suggestions.
We are still facing issues, details are below:

Flow followed for Creating .cell File (Jailhouse Inmate Binary), SDK compilation commands:

Tool Chain Enviornment Setup:

 source /opt/fsl-imx-wayland/5.15-kirkstone/environment-setup-armv8a-poky-linux

PATH
bash: /opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/usr/bin:/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/usr/sbin:/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/bin:/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/sbin:/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/usr/bin/../x86_64-pokysdk-linux/bin:/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux:/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux-musl:/home/automotive/.local/bin:/home/automotive/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin: No such file or directory


aarch64-poky-linux-gcc -c -I/home/automotive/jailhouse/hypervisor/include -I/home/automotive/jailhouse/hypervisor/arch/arm64/include -I/home/automotive/jailhouse/include -nostdlib -nostartfiles -ffreestanding  ecall-inmate-linux-demo.c -o ecall-inmate-linux-demo.o

 

NOTE:-Jailhouse header files are not part of tool-chain, so we separately downloaded it in Jailhouse folder from Seimens (github version). We used header file for compiling, inmate-linux-demo.cell. We didn't do any modification in .c file.
For testing purpose we used default one.
 
Step 1: Link the .o to produce a flat ELF

aarch64-poky-linux-ld \
  -Ttext=0x0 \
  -nostdlib \
  -o ecall-inmate-linux-demo.elf \
  ecall-inmate-linux-demo.o
-Ttext=0x0 puts the .text section at address 0x0 for flat binary layout.

 

-nostdlib prevents linking standard C library (inmates don't need it).

 

Step 2: Convert ELF to raw binary .cell

aarch64-poky-linux-objcopy \
  -O binary \
  ecall-inmate-linux-demo.elf \
  ecall-inmate-linux-demo.cell

Verify the result:

file ecall-inmate-linux-demo.cell

Printed message:

ecall-inmate-linux-demo.cell: data

Removed the default imx8mq.cell and imx8mq-linux-demo.cell

 

Generated 'imx8mq.cell and imx8mq-linux-demo.cell' file is pushed to Target folder: '/usr/share/jailhouse/cells' 

After that enable Jailhouse with generated imx8mq.cell , and facing below error

/ jailhouse enable /usr/share/jailhouse/cells/imx8mq.cell
[ 2533.385877] jailhouse: Not a system configuration
JAILHOUSE_ENABLE: Invalid argument

 
Please provide guidance and if possible some USerGuide/Application note or Makefile/Proper GCC command, to resolve the issue.

Attaching makefile (it has all commands as mentioned above)

Compilation, 
 make
aarch64-poky-linux-gcc -nostdlib -nostartfiles -ffreestanding -I/home/automotive/jailhouse/hypervisor/include -I/home/automotive/jailhouse/hypervisor/arch/arm64/include -I/home/automotive/jailhouse/include -c imx8mq.c -o imx8mq.o
aarch64-poky-linux-ld -Ttext=0x0 -nostdlib -o imx8mq.elf imx8mq.o
aarch64-poky-linux-ld: warning: cannot find entry symbol _start; defaulting to 0000000000000000
aarch64-poky-linux-objcopy -O binary imx8mq.elf imx8mq.cell

It generated .elf , .cell and .o.
Verified file format with following commands:

file imx8mq.elf 
imx8mq.elf: ELF 64-bit LSB executable, ARM aarch64, version 1 (SYSV), statically linked, not stripped
file imx8mq.o 
imx8mq.o: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped

file imx8mq.cell 
imx8mq.cell: data

Thanks for support.

Sumit

 

 

 

 

0 Kudos
Reply

4,741 Views
Peng_Fan
NXP Employee
NXP Employee

So my understanding is you have compliation issue.

 

NXP has a repo: https://github.com/nxp-imx/imx-jailhouse

 

I not understand why you are trying to self build cell files. It is quite simple to build jailhouse and all cell files just using make. Even if you are using Simense repo, the docmumentation also says:

make [KDIR=/path/to/kernel/objects]

 

And my command to build all:

. /opt/fsl-imx-internal-xwayland/6.12-styhead/environment-setup-armv8a-poky-linux

export CROSS_COMPILE=aarch64-poky-linux-

unset CFLAGS

unset LDFLAGS

make KDIR=$HOME/linux/linux-lts-nxp CC="aarch64-poky-linux-gcc --sysroot=$SDKTARGETSYSROOT" ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux-

 

 

Kernel & Virtualization Engineer
0 Kudos
Reply

4,705 Views
sumiteca09
Contributor II

Hi Peng,

Thanks a lot for response, now we are able to compile cell.c code and generated .cell file.
"
Custom ecall-inmate-linux-demo cell created successfully, and the ecall-inmate-linux-demo guest is up and running.

Linux Host

root imx8mqevk:~jailhouse cell list

ID      Name                    State             Assigned CPUs           Failed CPUs

0       imx8mq                  running           0-1

1       ecall-inmate-linux-demo running           2-3

ecall-inmate-linux-demo guest

"
We are using /dev/uio0 device node for communication.
Tried some python code, write/send is successful on Root cell. At the same time, not able to receive anything to Linux demo inmate cell.
Later we moved to C programming code, attaching 'ivshmem_common.h', 'ivshmem_inmate.c', 'ivshmem_root.c', and Makefile.

Used below command for generating binaries
source /opt/fsl-imx-wayland/5.15-kirkstone/environment-setup-armv8a-poky-linux 
export CROSS_COMPILE=aarch64-poky-linux-
make KDIR=/home/automotive/yocto_imx_linux/build/tmp/work-shared/imx8mqevk/kernel-build-artifacts CC="aarch64-poky-linux-gcc --sysroot=$SDKTARGETSYSROOT" ARCH=arm64 CROSS_COMPILE=aarch64-poky-linux-
aarch64-poky-linux-gcc --sysroot=/opt/fsl-imx-wayland/5.15-kirkstone/sysroots/armv8a-poky-linux -Wall -O2 -o root ivshmem_root.c


We compiled using imx8mq tool chain, with above mentioned commands, on desktop side.
We want to copy generated binary to the Linux inmate demo cell.
We copied to root cell side successfully, but we don't know steps to copy or Compile on Inmate Linux demo cell?

Can you provide me how to do the same?
I am referring to NXP document 'UG10163' name 'iMX_Linux_user_guide_LF6.12.20_2.0.0'.

I want some working sample code and user guide to use this Linux demo inmate cell , so transmitting (some bundled data like JSON or String/Binary) data from Root cell and vis versa receiving from Linux Inmate demo cell.

Thanks,

Sumit

0 Kudos
Reply

4,422 Views
Peng_Fan
NXP Employee
NXP Employee

Executing your 'root' or 'inmate' in linux will trigger segment fault. 

To test ivshmem between two linux, you could do below:

in root cell: ivshmem-demo -d /dev/uio0 -t 2

in inmate cell: ivshmem-demo -d /dev/uio0 -t 0

Then you will see communication between the two cells.

The source code of ivshmem-demo is in imx-jailhouse/tools/demos/ivshmem-demo.c

 

Regarding how to copy files to inmate cell, after inmate linux starts up,

in inmate cell: ifconfig eth0 192.168.0.4

in root cell: ifconfig eth0 192.168.0.3

Then you could use scp to copy files from root to inmate.

Or you could configure ip forward in root cell to let inmate access external network.

Kernel & Virtualization Engineer
0 Kudos
Reply

3,996 Views
sumiteca09
Contributor II

Hi Peng,

 

Thanks a lot for support, We are able to copy 'scp' from root cell to inmate cell.

Basically we want to keep our E-call application with MQTT on Inmate cell side.

We are able to share read/write Shared memory from root to inmate cell. Also, we are able to give static IP to root/inmate cell as proposed by you.

 

Now we need an internet connection on inmate cell, for transmitting received data from root cell, to cloud.

We connected Quectel EC25 module to NXP i.MX8MQ board via USB port.

 

IFCONFIG on Root cell data:

"

 

 ifconfig

eth0: flags=-28669<UP,BROADCAST,MULTICAST,DYNAMIC>  mtu 1500

        ether 00:04:9f:05:a5:9c  txqueuelen 1000  (Ethernet)

        RX packets 0  bytes 0 (0.0 B)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 0  bytes 0 (0.0 B)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

 

 

eth1: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 16384

        inet 192.168.0.3  netmask 255.255.255.0  broadcast 192.168.0.255

        inet6 fe80::88f0:a7ff:fe40:2407  prefixlen 64  scopeid 0x20<link>

        ether 8a:f0:a7:40:24:07  txqueuelen 1000  (Ethernet)

        RX packets 41  bytes 7030 (6.8 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 71  bytes 18812 (18.3 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

 

 

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536

        inet 127.0.0.1  netmask 255.0.0.0

        inet6 ::1  prefixlen 128  scopeid 0x10<host>

        loop  txqueuelen 1000  (Local Loopback)

        RX packets 103  bytes 9268 (9.0 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 103  bytes 9268 (9.0 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

 

 

usb0: flags=-28605<UP,BROADCAST,RUNNING,MULTICAST,DYNAMIC>  mtu 1500

        inet 192.168.225.39  netmask 255.255.255.0  broadcast 192.168.225.255

        inet6 2401:4900:4bb5:e7a7:609f:c3ff:fe2c:903b  prefixlen 64  scopeid 0x0<global>

        inet6 fe80::609f:c3ff:fe2c:903b  prefixlen 64  scopeid 0x20<link>

        ether 62:9f:c3:2c:90:3b  txqueuelen 1000  (Ethernet)

        RX packets 84  bytes 7614 (7.4 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 117  bytes 13860 (13.5 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

 

 "

As you can see Internet connection is established on ROOT cell side.

Below is PING command output

"

root@imx8mqevk:/home ping 8.8.8.8

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.

64 bytes from 8.8.8.8: icmp_seq=1 ttl=114 time=193 ms

64 bytes from 8.8.8.8: icmp_seq=2 ttl=114 time=68.9 ms

64 bytes from 8.8.8.8: icmp_seq=3 ttl=114 time=62.8 ms

64 bytes from 8.8.8.8: icmp_seq=4 ttl=114 time=68.5 ms

64 bytes from 8.8.8.8: icmp_seq=5 ttl=114 time=66.5 ms

64 bytes from 8.8.8.8: icmp_seq=6 ttl=114 time=78.6 ms

64 bytes from 8.8.8.8: icmp_seq=7 ttl=114 time=71.0 ms

"

 

Now I am facing internet issue on Inmate cell, below if IFCONFIG log:

"

 

root@imx8mqevk:~ ifconfig

eth0      Link encap:Ethernet  HWaddr 6E:58:98:59:01:A0  

          inet addr:192.168.0.4  Bcast:192.168.0.255  Mask:255.255.255.0

          inet6 addr: fe80::6c58:98ff:fe59:1a0/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:16384  Metric:1

          RX packets:184 errors:0 dropped:0 overruns:0 frame:0

          TX packets:65 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:78814 (76.9 KiB)  TX bytes:14002 (13.6 KiB)

 

 

 

lo        Link encap:Local Loopback  

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:22 errors:0 dropped:0 overruns:0 frame:0

          TX packets:22 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:3897 (3.8 KiB)  TX bytes:3897 (3.8 KiB)

"

ALSO we tried :IP Forwarding on ROOT cell side:

 

To allow the inmate cell having external network access:

 

 In root cell

 

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -A FORWARD -i eth1 -o usb0 -j ACCEPT

iptables -A FORWARD -i usb0 -o eth1 -j ACCEPT

 

iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE

 

"

 

When I run above commands, I get below logs:

 

"

root@imx8mqevk:/home iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE

[ 1869.738194] audit: type=1325 audit(1755848821.593:11): table=nat family=2 entries=7 op=xt_replace pid=713 comm="iptables"

root@imx8mqevk:/home [ 1869.749806] audit: type=1300 audit(1755848821.593:11): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=aaaafd66a400 items=0 ppid=607 pid=713 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[ 1869.779649] audit: type=1327 audit(1755848821.593:11): proctitle=69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0075736230002D6A004D415351554552414445"  

"

 

Also putting Dmesg log from root cell

"

 

[   71.141601] Created Jailhouse cell "ecall-linux-inmate-demo"

[   77.822386] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready

[  206.451703] audit: type=1325 audit(1755847158.198:4): table=nat family=2 entries=0 op=xt_register pid=651 comm="iptables"

[  206.463131] audit: type=1300 audit(1755847158.198:4): arch=c00000b7 syscall=209 success=yes exit=0 a0=4 a1=0 a2=40 a3=ffffe78d01c0 items=0 ppid=607 pid=651 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[  206.493176] audit: type=1327 audit(1755847158.198:4): proctitle=69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0065746830002D6A004D415351554552414445

[  206.508268] audit: type=1325 audit(1755847158.202:5): table=nat family=2 entries=5 op=xt_replace pid=651 comm="iptables"

[  206.519201] audit: type=1300 audit(1755847158.202:5): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=aaaabb51c230 items=0 ppid=607 pid=651 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[  206.547353] audit: type=1327 audit(1755847158.202:5): proctitle=69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0065746830002D6A004D415351554552414445

[  217.506636] audit: type=1325 audit(1755847169.257:6): table=nat family=2 entries=6 op=xt_replace pid=657 comm="iptables"

[  217.517791] audit: type=1300 audit(1755847169.257:6): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=aaaaec783230 items=0 ppid=607 pid=657 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[  217.547639] audit: type=1327 audit(1755847169.257:6): proctitle=69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0075736230002D6A004D415351554552414445

[  294.389911] audit: type=1325 audit(1755847246.146:7): table=filter family=2 entries=0 op=xt_register pid=659 comm="iptables"

[  294.401564] audit: type=1300 audit(1755847246.146:7): arch=c00000b7 syscall=209 success=yes exit=0 a0=4 a1=0 a2=40 a3=fffff5707410 items=0 ppid=607 pid=659 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[  294.431369] audit: type=1327 audit(1755847246.146:7): proctitle=69707461626C6573002D4100464F5257415244002D690065746831002D6F0075736230002D6A00414343455054

[  294.445250] audit: type=1325 audit(1755847246.150:8): table=filter family=2 entries=4 op=xt_replace pid=659 comm="iptables"

[  294.456430] audit: type=1300 audit(1755847246.150:8): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=aaaaeb8d3950 items=0 ppid=607 pid=659 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[  294.484541] audit: type=1327 audit(1755847246.150:8): proctitle=69707461626C6573002D4100464F5257415244002D690065746831002D6F0075736230002D6A00414343455054

[  314.598783] audit: type=1325 audit(1755847266.267:9): table=filter family=2 entries=5 op=xt_replace pid=662 comm="iptables"

[  314.610726] audit: type=1300 audit(1755847266.267:9): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=aaaac05eaac0 items=0 ppid=607 pid=662 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[  314.640305] audit: type=1327 audit(1755847266.267:9): proctitle=69707461626C6573002D4100464F5257415244002D690075736230002D6F0065746831002D6A00414343455054

[  849.488680] audit: type=1006 audit(1755847801.267:10): pid=671 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1

[  849.501588] audit: type=1300 audit(1755847801.267:10): arch=c00000b7 syscall=64 success=yes exit=1 a0=3 a1=ffffc0aa76a0 a2=1 a3=ffff83653020 items=0 ppid=238 pid=671 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="crond" exe="/usr/sbin/crond" key=(null)

[  849.527425] audit: type=1327 audit(1755847801.267:10): proctitle=2F7573722F7362696E2F63726F6E64002D6E

[ 1869.738194] audit: type=1325 audit(1755848821.593:11): table=nat family=2 entries=7 op=xt_replace pid=713 comm="iptables"

[ 1869.749806] audit: type=1300 audit(1755848821.593:11): arch=c00000b7 syscall=208 success=yes exit=0 a0=4 a1=0 a2=40 a3=aaaafd66a400 items=0 ppid=607 pid=713 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=ttymxc0 ses=4294967295 comm="iptables" exe="/usr/sbin/xtables-legacy-multi" key=(null)

[ 1869.779649] audit: type=1327 audit(1755848821.593:11): proctitle=69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0075736230002D6A004D415351554552414445

 

 "

 

 

 

CAN YOU help us in resolving above Internet issue on Inmate cell?

 

0 Kudos
Reply

3,713 Views
Peng_Fan
NXP Employee
NXP Employee

Regarding how to setup network to allow inmate access internet, refer as below, you need to update to use usb net or eth net in your set.

  1. How to setup network for 2nd linux using network

     

    1. After first linux boots up
      1. sysctl -w net.ipv4.ip_forward=1
        sysctl -p /etc/sysctl.conf

    2. After root cell enabled
      1. iptables -A FORWARD -i eth1 -j ACCEPT

        iptables -A FORWARD -o eth1 -j ACCEPT
        iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

    3. After 2nd linux boots up

      1. ifconfig eth1 or 2 192.168.1.4 for the 1st linux root cell

         

      2. ifconfig eth0 192.168.1.5 for the 2nd linux inmate cell

      3. "ip route add default via 192.168.1.4 dev eth0" for the 2nd linux
        "ip route add 10.193.100.0/24 via 192.168.1.4 dev eth0" for 2nd linux

      4. Now you could "mount -t nfs 10.193.108.xx:/home/xxx/nfs /mnt"
      5. Update 10.193.xx.xx to yours according to your network, in step 3 and 4

 

Regards

Peng.

Kernel & Virtualization Engineer
0 Kudos
Reply

4,847 Views
sumiteca09
Contributor II

@Peng 
peng.fan@nxp.com


Please suggest some solution for Custom Jailhouse cell creation issue we are facing, as explained in above ticket?
Thanks for support.
Do let us know any further details required.

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2140013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIssue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20Sir%2C%3CBR%20%2F%3E%3CBR%20%2F%3ETrying%20to%20create%20an%20custom%20(E-call)%20Inmate%20linux%20demo%20cell%20via%20Jailhouse%20in%20NXP%20i.MX%208MQ%20EVK%20Board.%3C%2FP%3E%3CP%3EAll%20steps%20followed%20are%20added%20in%20attached%20'NXP_Jailhouse_Ticket.txt'%20file.%3C%2FP%3E%3CP%3E%3CSTRONG%3EIssue%20Facing%3C%2FSTRONG%3E%3A-%3CBR%20%2F%3EWe%20are%20facing%20issue%20with%20compilation%2C%26nbsp%3B%3CBR%20%2F%3Ehow%20to%20compile%20the%20linux-inmate-demo.c%20file%20and%20generate%20.o%20and%20.cell%20file%3F%3CBR%20%2F%3E%3CBR%20%2F%3EHow%20to%20create%20proper%20.bb%20file%20for%20compiling%26nbsp%3Blinux-inmate-demo.c%20file%20and%20generate%20.o%20and%20.cell%20file%20and%20adding%20to%20final%20image.%3F%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20provide%20us%20any%20Application%20note%20you%20have%20for%20creating%20Custom%20Jailhouse%20inmate%20cell%20creation%3CBR%20%2F%3EOr%3CBR%20%2F%3EAny%20link%20to%20previous%20NXP%20community%20ticket%20having%20the%20same%20solution%3F%3CBR%20%2F%3E%3CBR%20%2F%3EAlso%20please%20correct%20us%20about%20above%20steps%20and%20provide%20solution.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2140013%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX8ULP%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2158710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2158710%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CSPAN%3ERegarding%20how%20to%20setup%20network%20to%20allow%20inmate%20access%20internet%2C%20refer%20as%20below%2C%20you%20need%20to%20update%20to%20use%20usb%20net%20or%20eth%20net%20in%20your%20set.%3C%2FSPAN%3E%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%3CSPAN%3EHow%20to%20setup%20network%20for%202nd%20linux%20using%20network%3C%2FSPAN%3E%0A%3CBR%20%2F%3E%0A%3COL%3E%0A%3CLI%3EAfter%20first%20linux%20boots%20up%0A%3COL%3E%0A%3CLI%3E%0A%3CP%3Esysctl%20-w%20net.ipv4.ip_forward%3D1%3CBR%20%2F%3Esysctl%20-p%20%2Fetc%2Fsysctl.conf%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3EAfter%20root%20cell%20enabled%0A%3COL%3E%0A%3CLI%3Eiptables%20-A%20FORWARD%20-i%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22inline-comment-marker%20valid%22%20data-ref%3D%22f615ff36-649b-4a2f-b00f-198d5e620d26%22%3Eeth1%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-j%20ACCEPT%0A%3CP%3Eiptables%20-A%20FORWARD%20-o%20eth1%20-j%20ACCEPT%3CBR%20%2F%3Eiptables%20-t%20nat%20-A%20POSTROUTING%20-o%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22inline-comment-marker%20valid%22%20data-ref%3D%22146e8bb8-f437-4286-8931-0a0389a8472e%22%3Eeth0%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-j%20MASQUERADE%3C%2FP%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3EAfter%202nd%20linux%20boots%20up%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3E%0A%3CP%3Eifconfig%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20class%3D%22inline-comment-marker%20valid%22%20data-ref%3D%22994074e7-5e08-4caf-999a-14404308c3fe%22%3Eeth1%20or%202%3C%2FSPAN%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E192.168.1.4%20for%20the%201st%20linux%20root%20cell%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3Eifconfig%20eth0%20192.168.1.5%20for%20the%202nd%20linux%20inmate%20cell%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%0A%3CP%3E%22ip%20route%20add%20default%20via%20192.168.1.4%20dev%20eth0%22%20for%20the%202nd%20linux%3CBR%20%2F%3E%22ip%20route%20add%2010.193.100.0%2F24%20via%20192.168.1.4%20dev%20eth0%22%20for%202nd%20linux%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3ENow%20you%20could%20%22mount%20-t%20nfs%2010.193.108.xx%3A%2Fhome%2Fxxx%2Fnfs%20%2Fmnt%22%3C%2FLI%3E%0A%3CLI%3EUpdate%2010.193.xx.xx%20to%20yours%20according%20to%20your%20network%2C%20in%20step%203%20and%204%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EPeng.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2156605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2156605%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Peng%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EThanks%20a%20lot%20for%20support%2C%20We%20are%20able%20to%20copy%20'scp'%20from%20root%20cell%20to%20inmate%20cell.%3C%2FP%3E%3CP%3EBasically%20we%20want%20to%20keep%20our%20E-call%20application%20with%20MQTT%20on%20Inmate%20cell%20side.%3C%2FP%3E%3CP%3EWe%20are%20able%20to%20share%20read%2Fwrite%20Shared%20memory%20from%20root%20to%20inmate%20cell.%20Also%2C%20we%20are%20able%20to%20give%20static%20IP%20to%20root%2Finmate%20cell%20as%20proposed%20by%20you.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ENow%20we%20need%20an%20internet%20connection%20on%20inmate%20cell%2C%20for%20transmitting%20received%20data%20from%20root%20cell%2C%20to%20cloud.%3C%2FP%3E%3CP%3EWe%20connected%20Quectel%20EC25%20module%20to%20NXP%20i.MX8MQ%20board%20via%20USB%20port.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EIFCONFIG%20on%20Root%20cell%20data%3A%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3Bifconfig%3C%2FP%3E%3CP%3Eeth0%3A%20flags%3D-28669%3CUP%3E%26nbsp%3B%20mtu%201500%3C%2FUP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ether%2000%3A04%3A9f%3A05%3Aa5%3A9c%26nbsp%3B%20txqueuelen%201000%26nbsp%3B%20(Ethernet)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20packets%200%26nbsp%3B%20bytes%200%20(0.0%20B)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20errors%200%26nbsp%3B%20dropped%200%26nbsp%3B%20overruns%200%26nbsp%3B%20frame%200%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20packets%200%26nbsp%3B%20bytes%200%20(0.0%20B)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20errors%200%26nbsp%3B%20dropped%200%20overruns%200%26nbsp%3B%20carrier%200%26nbsp%3B%20collisions%200%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3Eeth1%3A%20flags%3D-28605%3CUP%3E%26nbsp%3B%20mtu%2016384%3C%2FUP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet%20192.168.0.3%26nbsp%3B%20netmask%20255.255.255.0%26nbsp%3B%20broadcast%20192.168.0.255%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet6%20fe80%3A%3A88f0%3Aa7ff%3Afe40%3A2407%26nbsp%3B%20prefixlen%2064%26nbsp%3B%20scopeid%200x20%3CLINK%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ether%208a%3Af0%3Aa7%3A40%3A24%3A07%26nbsp%3B%20txqueuelen%201000%26nbsp%3B%20(Ethernet)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20packets%2041%26nbsp%3B%20bytes%207030%20(6.8%20KiB)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20errors%200%26nbsp%3B%20dropped%200%26nbsp%3B%20overruns%200%26nbsp%3B%20frame%200%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20packets%2071%26nbsp%3B%20bytes%2018812%20(18.3%20KiB)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20errors%200%26nbsp%3B%20dropped%200%20overruns%200%26nbsp%3B%20carrier%200%26nbsp%3B%20collisions%200%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3Elo%3A%20flags%3D73%3CUP%3E%26nbsp%3B%20mtu%2065536%3C%2FUP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet%20127.0.0.1%26nbsp%3B%20netmask%20255.0.0.0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet6%20%3A%3A1%26nbsp%3B%20prefixlen%20128%26nbsp%3B%20scopeid%200x10%3CHOST%3E%3C%2FHOST%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20loop%26nbsp%3B%20txqueuelen%201000%26nbsp%3B%20(Local%20Loopback)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20packets%20103%26nbsp%3B%20bytes%209268%20(9.0%20KiB)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20errors%200%26nbsp%3B%20dropped%200%26nbsp%3B%20overruns%200%26nbsp%3B%20frame%200%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20packets%20103%26nbsp%3B%20bytes%209268%20(9.0%20KiB)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20errors%200%26nbsp%3B%20dropped%200%20overruns%200%26nbsp%3B%20carrier%200%26nbsp%3B%20collisions%200%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3Eusb0%3A%20flags%3D-28605%3CUP%3E%26nbsp%3B%20mtu%201500%3C%2FUP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet%20192.168.225.39%26nbsp%3B%20netmask%20255.255.255.0%26nbsp%3B%20broadcast%20192.168.225.255%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet6%202401%3A4900%3A4bb5%3Ae7a7%3A609f%3Ac3ff%3Afe2c%3A903b%26nbsp%3B%20prefixlen%2064%26nbsp%3B%20scopeid%200x0%3CGLOBAL%3E%3C%2FGLOBAL%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet6%20fe80%3A%3A609f%3Ac3ff%3Afe2c%3A903b%26nbsp%3B%20prefixlen%2064%26nbsp%3B%20scopeid%200x20%3CLINK%20%2F%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ether%2062%3A9f%3Ac3%3A2c%3A90%3A3b%26nbsp%3B%20txqueuelen%201000%26nbsp%3B%20(Ethernet)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20packets%2084%26nbsp%3B%20bytes%207614%20(7.4%20KiB)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20errors%200%26nbsp%3B%20dropped%200%26nbsp%3B%20overruns%200%26nbsp%3B%20frame%200%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20packets%20117%26nbsp%3B%20bytes%2013860%20(13.5%20KiB)%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20errors%200%26nbsp%3B%20dropped%200%20overruns%200%26nbsp%3B%20carrier%200%26nbsp%3B%20collisions%200%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%22%3C%2FP%3E%3CP%3EAs%20you%20can%20see%20Internet%20connection%20is%20established%20on%20ROOT%20cell%20side.%3C%2FP%3E%3CP%3EBelow%20is%20PING%20command%20output%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CP%3Eroot%40imx8mqevk%3A%2Fhome%20ping%208.8.8.8%3C%2FP%3E%3CP%3EPING%208.8.8.8%20(8.8.8.8)%2056(84)%20bytes%20of%20data.%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D1%20ttl%3D114%20time%3D193%20ms%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D2%20ttl%3D114%20time%3D68.9%20ms%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D3%20ttl%3D114%20time%3D62.8%20ms%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D4%20ttl%3D114%20time%3D68.5%20ms%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D5%20ttl%3D114%20time%3D66.5%20ms%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D6%20ttl%3D114%20time%3D78.6%20ms%3C%2FP%3E%3CP%3E64%20bytes%20from%208.8.8.8%3A%20icmp_seq%3D7%20ttl%3D114%20time%3D71.0%20ms%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ENow%20I%20am%20facing%20internet%20issue%20on%20Inmate%20cell%2C%20below%20if%20IFCONFIG%20log%3A%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eroot%40imx8mqevk%3A~%20ifconfig%3C%2FP%3E%3CP%3Eeth0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Link%20encap%3AEthernet%26nbsp%3B%20HWaddr%206E%3A58%3A98%3A59%3A01%3AA0%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet%20addr%3A192.168.0.4%26nbsp%3B%20Bcast%3A192.168.0.255%26nbsp%3B%20Mask%3A255.255.255.0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet6%20addr%3A%20fe80%3A%3A6c58%3A98ff%3Afe59%3A1a0%2F64%20Scope%3ALink%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20UP%20BROADCAST%20RUNNING%20MULTICAST%26nbsp%3B%20MTU%3A16384%26nbsp%3B%20Metric%3A1%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20packets%3A184%20errors%3A0%20dropped%3A0%20overruns%3A0%20frame%3A0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20packets%3A65%20errors%3A0%20dropped%3A0%20overruns%3A0%20carrier%3A0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20collisions%3A0%20txqueuelen%3A1000%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20bytes%3A78814%20(76.9%20KiB)%26nbsp%3B%20TX%20bytes%3A14002%20(13.6%20KiB)%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3Elo%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Link%20encap%3ALocal%20Loopback%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet%20addr%3A127.0.0.1%26nbsp%3B%20Mask%3A255.0.0.0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20inet6%20addr%3A%20%3A%3A1%2F128%20Scope%3AHost%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20UP%20LOOPBACK%20RUNNING%26nbsp%3B%20MTU%3A65536%26nbsp%3B%20Metric%3A1%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20packets%3A22%20errors%3A0%20dropped%3A0%20overruns%3A0%20frame%3A0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20TX%20packets%3A22%20errors%3A0%20dropped%3A0%20overruns%3A0%20carrier%3A0%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20collisions%3A0%20txqueuelen%3A1000%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20RX%20bytes%3A3897%20(3.8%20KiB)%26nbsp%3B%20TX%20bytes%3A3897%20(3.8%20KiB)%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CP%3EALSO%20we%20tried%20%3AIP%20Forwarding%20on%20ROOT%20cell%20side%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ETo%20allow%20the%20inmate%20cell%20having%20external%20network%20access%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3BIn%20root%20cell%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eecho%201%20%26gt%3B%20%2Fproc%2Fsys%2Fnet%2Fipv4%2Fip_forward%3C%2FP%3E%3CP%3Eiptables%20-A%20FORWARD%20-i%20eth1%20-o%20usb0%20-j%20ACCEPT%3C%2FP%3E%3CP%3Eiptables%20-A%20FORWARD%20-i%20usb0%20-o%20eth1%20-j%20ACCEPT%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Eiptables%20-t%20nat%20-A%20POSTROUTING%20-o%20usb0%20-j%20MASQUERADE%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%22%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EWhen%20I%20run%20above%20commands%2C%20I%20get%20below%20logs%3A%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%22%3C%2FP%3E%3CP%3Eroot%40imx8mqevk%3A%2Fhome%20iptables%20-t%20nat%20-A%20POSTROUTING%20-o%20usb0%20-j%20MASQUERADE%3C%2FP%3E%3CP%3E%5B%201869.738194%5D%20audit%3A%20type%3D1325%20audit(1755848821.593%3A11)%3A%20table%3Dnat%20family%3D2%20entries%3D7%20op%3Dxt_replace%20pid%3D713%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3Eroot%40imx8mqevk%3A%2Fhome%20%5B%201869.749806%5D%20audit%3A%20type%3D1300%20audit(1755848821.593%3A11)%3A%20arch%3Dc00000b7%20syscall%3D208%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Daaaafd66a400%20items%3D0%20ppid%3D607%20pid%3D713%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%201869.779649%5D%20audit%3A%20type%3D1327%20audit(1755848821.593%3A11)%3A%20proctitle%3D69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0075736230002D6A004D415351554552414445%22%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EAlso%20putting%20Dmesg%20log%20from%20root%20cell%3C%2FP%3E%3CP%3E%22%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%5B%26nbsp%3B%26nbsp%3B%2071.141601%5D%20Created%20Jailhouse%20cell%20%22ecall-linux-inmate-demo%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%26nbsp%3B%2077.822386%5D%20IPv6%3A%20ADDRCONF(NETDEV_CHANGE)%3A%20eth1%3A%20link%20becomes%20ready%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20206.451703%5D%20audit%3A%20type%3D1325%20audit(1755847158.198%3A4)%3A%20table%3Dnat%20family%3D2%20entries%3D0%20op%3Dxt_register%20pid%3D651%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20206.463131%5D%20audit%3A%20type%3D1300%20audit(1755847158.198%3A4)%3A%20arch%3Dc00000b7%20syscall%3D209%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Dffffe78d01c0%20items%3D0%20ppid%3D607%20pid%3D651%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20206.493176%5D%20audit%3A%20type%3D1327%20audit(1755847158.198%3A4)%3A%20proctitle%3D69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0065746830002D6A004D415351554552414445%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20206.508268%5D%20audit%3A%20type%3D1325%20audit(1755847158.202%3A5)%3A%20table%3Dnat%20family%3D2%20entries%3D5%20op%3Dxt_replace%20pid%3D651%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20206.519201%5D%20audit%3A%20type%3D1300%20audit(1755847158.202%3A5)%3A%20arch%3Dc00000b7%20syscall%3D208%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Daaaabb51c230%20items%3D0%20ppid%3D607%20pid%3D651%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20206.547353%5D%20audit%3A%20type%3D1327%20audit(1755847158.202%3A5)%3A%20proctitle%3D69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0065746830002D6A004D415351554552414445%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20217.506636%5D%20audit%3A%20type%3D1325%20audit(1755847169.257%3A6)%3A%20table%3Dnat%20family%3D2%20entries%3D6%20op%3Dxt_replace%20pid%3D657%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20217.517791%5D%20audit%3A%20type%3D1300%20audit(1755847169.257%3A6)%3A%20arch%3Dc00000b7%20syscall%3D208%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Daaaaec783230%20items%3D0%20ppid%3D607%20pid%3D657%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20217.547639%5D%20audit%3A%20type%3D1327%20audit(1755847169.257%3A6)%3A%20proctitle%3D69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0075736230002D6A004D415351554552414445%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20294.389911%5D%20audit%3A%20type%3D1325%20audit(1755847246.146%3A7)%3A%20table%3Dfilter%20family%3D2%20entries%3D0%20op%3Dxt_register%20pid%3D659%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20294.401564%5D%20audit%3A%20type%3D1300%20audit(1755847246.146%3A7)%3A%20arch%3Dc00000b7%20syscall%3D209%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Dfffff5707410%20items%3D0%20ppid%3D607%20pid%3D659%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20294.431369%5D%20audit%3A%20type%3D1327%20audit(1755847246.146%3A7)%3A%20proctitle%3D69707461626C6573002D4100464F5257415244002D690065746831002D6F0075736230002D6A00414343455054%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20294.445250%5D%20audit%3A%20type%3D1325%20audit(1755847246.150%3A8)%3A%20table%3Dfilter%20family%3D2%20entries%3D4%20op%3Dxt_replace%20pid%3D659%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20294.456430%5D%20audit%3A%20type%3D1300%20audit(1755847246.150%3A8)%3A%20arch%3Dc00000b7%20syscall%3D208%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Daaaaeb8d3950%20items%3D0%20ppid%3D607%20pid%3D659%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20294.484541%5D%20audit%3A%20type%3D1327%20audit(1755847246.150%3A8)%3A%20proctitle%3D69707461626C6573002D4100464F5257415244002D690065746831002D6F0075736230002D6A00414343455054%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20314.598783%5D%20audit%3A%20type%3D1325%20audit(1755847266.267%3A9)%3A%20table%3Dfilter%20family%3D2%20entries%3D5%20op%3Dxt_replace%20pid%3D662%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20314.610726%5D%20audit%3A%20type%3D1300%20audit(1755847266.267%3A9)%3A%20arch%3Dc00000b7%20syscall%3D208%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Daaaac05eaac0%20items%3D0%20ppid%3D607%20pid%3D662%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20314.640305%5D%20audit%3A%20type%3D1327%20audit(1755847266.267%3A9)%3A%20proctitle%3D69707461626C6573002D4100464F5257415244002D690075736230002D6F0065746831002D6A00414343455054%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20849.488680%5D%20audit%3A%20type%3D1006%20audit(1755847801.267%3A10)%3A%20pid%3D671%20uid%3D0%20old-auid%3D4294967295%20auid%3D0%20tty%3D(none)%20old-ses%3D4294967295%20ses%3D3%20res%3D1%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20849.501588%5D%20audit%3A%20type%3D1300%20audit(1755847801.267%3A10)%3A%20arch%3Dc00000b7%20syscall%3D64%20success%3Dyes%20exit%3D1%20a0%3D3%20a1%3Dffffc0aa76a0%20a2%3D1%20a3%3Dffff83653020%20items%3D0%20ppid%3D238%20pid%3D671%20auid%3D0%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3D(none)%20ses%3D3%20comm%3D%22crond%22%20exe%3D%22%2Fusr%2Fsbin%2Fcrond%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%26nbsp%3B%20849.527425%5D%20audit%3A%20type%3D1327%20audit(1755847801.267%3A10)%3A%20proctitle%3D2F7573722F7362696E2F63726F6E64002D6E%3C%2FP%3E%3CP%3E%5B%201869.738194%5D%20audit%3A%20type%3D1325%20audit(1755848821.593%3A11)%3A%20table%3Dnat%20family%3D2%20entries%3D7%20op%3Dxt_replace%20pid%3D713%20comm%3D%22iptables%22%3C%2FP%3E%3CP%3E%5B%201869.749806%5D%20audit%3A%20type%3D1300%20audit(1755848821.593%3A11)%3A%20arch%3Dc00000b7%20syscall%3D208%20success%3Dyes%20exit%3D0%20a0%3D4%20a1%3D0%20a2%3D40%20a3%3Daaaafd66a400%20items%3D0%20ppid%3D607%20pid%3D713%20auid%3D4294967295%20uid%3D0%20gid%3D0%20euid%3D0%20suid%3D0%20fsuid%3D0%20egid%3D0%20sgid%3D0%20fsgid%3D0%20tty%3Dttymxc0%20ses%3D4294967295%20comm%3D%22iptables%22%20exe%3D%22%2Fusr%2Fsbin%2Fxtables-legacy-multi%22%20key%3D(null)%3C%2FP%3E%3CP%3E%5B%201869.779649%5D%20audit%3A%20type%3D1327%20audit(1755848821.593%3A11)%3A%20proctitle%3D69707461626C6573002D74006E6174002D4100504F5354524F5554494E47002D6F0075736230002D6A004D415351554552414445%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%26nbsp%3B%22%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CP%3ECAN%20YOU%20help%20us%20in%20resolving%20above%20Internet%20issue%20on%20Inmate%20cell%3F%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2151287%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2151287%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EExecuting%20your%20'root'%20or%20'inmate'%20in%20linux%20will%20trigger%20segment%20fault.%26nbsp%3B%3C%2FP%3E%0A%3CP%3ETo%20test%20ivshmem%20between%20two%20linux%2C%20you%20could%20do%20below%3A%3C%2FP%3E%0A%3CP%3Ein%20root%20cell%3A%26nbsp%3Bivshmem-demo%20-d%20%2Fdev%2Fuio0%20-t%202%3C%2FP%3E%0A%3CP%3Ein%20inmate%20cell%3A%26nbsp%3Bivshmem-demo%20-d%20%2Fdev%2Fuio0%20-t%200%3C%2FP%3E%0A%3CP%3EThen%20you%20will%20see%20communication%20between%20the%20two%20cells.%3C%2FP%3E%0A%3CP%3EThe%20source%20code%20of%20ivshmem-demo%20is%20in%20imx-jailhouse%2Ftools%2Fdemos%2Fivshmem-demo.c%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegarding%20how%20to%20copy%20files%20to%20inmate%20cell%2C%20after%20inmate%20linux%20starts%20up%2C%3C%2FP%3E%0A%3CP%3Ein%20inmate%20cell%3A%20ifconfig%20eth0%20192.168.0.4%3C%2FP%3E%0A%3CP%3Ein%20root%20cell%3A%20ifconfig%20eth0%20192.168.0.3%3C%2FP%3E%0A%3CP%3EThen%20you%20could%20use%20scp%20to%20copy%20files%20from%20root%20to%20inmate.%3C%2FP%3E%0A%3CP%3EOr%20you%20could%20configure%20ip%20forward%20in%20root%20cell%20to%20let%20inmate%20access%20external%20network.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2148517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2148517%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Peng%2C%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20a%20lot%20for%20response%2C%20now%20we%20are%20able%20to%20compile%20cell.c%20code%20and%20generated%20.cell%20file.%3CBR%20%2F%3E%22%3CBR%20%2F%3ECustom%20ecall-inmate-linux-demo%20cell%20created%20successfully%2C%20and%20the%20ecall-inmate-linux-demo%20guest%20is%20up%20and%20running.%3C%2FP%3E%3CP%3ELinux%20Host%3C%2FP%3E%3CP%3Eroot%20imx8mqevk%3A~jailhouse%20cell%20list%3C%2FP%3E%3CP%3EID%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Name%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20State%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Assigned%20CPUs%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20Failed%20CPUs%3C%2FP%3E%3CP%3E0%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20imx8mq%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20running%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%200-1%3C%2FP%3E%3CP%3E1%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20ecall-inmate-linux-demo%20running%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%202-3%3C%2FP%3E%3CP%3Eecall-inmate-linux-demo%20guest%3C%2FP%3E%3CP%3E%22%3CBR%20%2F%3EWe%20are%20using%20%2Fdev%2Fuio0%20device%20node%20for%20communication.%3CBR%20%2F%3ETried%20some%20python%20code%2C%20write%2Fsend%20is%20successful%20on%20Root%20cell.%20At%20the%20same%20time%2C%20not%20able%20to%20receive%20anything%20to%20Linux%20demo%20inmate%20cell.%3CBR%20%2F%3ELater%20we%20moved%20to%20C%20programming%20code%2C%20attaching%20'ivshmem_common.h'%2C%20'ivshmem_inmate.c'%2C%20'ivshmem_root.c'%2C%20and%20Makefile.%3CBR%20%2F%3E%3CBR%20%2F%3EUsed%20below%20command%20for%20generating%20binaries%3CBR%20%2F%3E%3CSPAN%3Esource%20%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fenvironment-setup-armv8a-poky-linux%26nbsp%3B%3CBR%20%2F%3Eexport%20CROSS_COMPILE%3Daarch64-poky-linux-%3CBR%20%2F%3Emake%20KDIR%3D%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork-shared%2Fimx8mqevk%2Fkernel-build-artifacts%20CC%3D%22aarch64-poky-linux-gcc%20--sysroot%3D%24SDKTARGETSYSROOT%22%20ARCH%3Darm64%20CROSS_COMPILE%3Daarch64-poky-linux-%3CBR%20%2F%3Eaarch64-poky-linux-gcc%20--sysroot%3D%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Farmv8a-poky-linux%20-Wall%20-O2%20-o%20root%20ivshmem_root.c%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3EWe%20compiled%20using%20imx8mq%20tool%20chain%2C%20with%20above%20mentioned%20commands%2C%20on%20desktop%20side.%3CBR%20%2F%3EWe%20want%20to%20copy%20generated%20binary%20to%20the%20Linux%20inmate%20demo%20cell.%3CBR%20%2F%3EWe%20copied%20to%20root%20cell%20side%20successfully%2C%20but%20we%20don't%20know%20steps%20to%20copy%20or%20Compile%20on%20Inmate%20Linux%20demo%20cell%3F%3CBR%20%2F%3E%3CBR%20%2F%3ECan%20you%20provide%20me%20how%20to%20do%20the%20same%3F%3CBR%20%2F%3EI%20am%20referring%20to%20NXP%20document%20'UG10163'%20name%20'iMX_Linux_user_guide_LF6.12.20_2.0.0'.%3CBR%20%2F%3E%3CBR%20%2F%3EI%20want%20some%20working%20sample%20code%20and%20user%20guide%20to%20use%20this%20Linux%20demo%20inmate%20cell%20%2C%20so%20transmitting%20(some%20bundled%20data%20like%20JSON%20or%20String%2FBinary)%20data%20from%20Root%20cell%20and%20vis%20versa%20receiving%20from%20Linux%20Inmate%20demo%20cell.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3E%3CBR%20%2F%3ESumit%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2145714%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2145714%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ESo%20my%20understanding%20is%20you%20have%20compliation%20issue.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ENXP%20has%20a%20repo%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-jailhouse%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fnxp-imx%2Fimx-jailhouse%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EI%20not%20understand%20why%20you%20are%20trying%20to%20self%20build%20cell%20files.%20It%20is%20quite%20simple%20to%20build%20jailhouse%20and%20all%20cell%20files%20just%20using%20make.%20Even%20if%20you%20are%20using%20Simense%20repo%2C%20the%20docmumentation%20also%20says%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22notranslate%22%3E%3CCODE%3Emake%20%5BKDIR%3D%2Fpath%2Fto%2Fkernel%2Fobjects%5D%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CBR%20%2F%3E%0A%3CP%3EAnd%20my%20command%20to%20build%20all%3A%3C%2FP%3E%0A%3CP%3E.%20%2Fopt%2Ffsl-imx-internal-xwayland%2F6.12-styhead%2Fenvironment-setup-armv8a-poky-linux%3C%2FP%3E%0A%3CP%3Eexport%20CROSS_COMPILE%3Daarch64-poky-linux-%3C%2FP%3E%0A%3CP%3Eunset%20CFLAGS%3C%2FP%3E%0A%3CP%3Eunset%20LDFLAGS%3C%2FP%3E%0A%3CP%3Emake%20KDIR%3D%24HOME%2Flinux%2Flinux-lts-nxp%20CC%3D%22aarch64-poky-linux-gcc%20--sysroot%3D%24SDKTARGETSYSROOT%22%20ARCH%3Darm64%20CROSS_COMPILE%3Daarch64-poky-linux-%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2145176%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2145176%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EDear%20PENG%2C%3C%2FP%3E%3CP%3EThanks%20a%20lot%20your%20suggestions.%3CBR%20%2F%3EWe%20are%20still%20facing%20issues%2C%20details%20are%20below%3A%3C%2FP%3E%3CP%3EFlow%20followed%20for%20Creating%20.cell%20File%20(Jailhouse%20Inmate%20Binary)%2C%20SDK%20compilation%20commands%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3ETool%20Chain%20Enviornment%20Setup%3A%3C%2FP%3E%3CP%3E%26nbsp%3Bsource%20%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fenvironment-setup-armv8a-poky-linux%3C%2FP%3E%3CP%3E%3CSPAN%3EPATH%3CBR%20%2F%3Ebash%3A%20%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fusr%2Fbin%3A%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fusr%2Fsbin%3A%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fbin%3A%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fsbin%3A%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fusr%2Fbin%2F..%2Fx86_64-pokysdk-linux%2Fbin%3A%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fusr%2Fbin%2Faarch64-poky-linux%3A%2Fopt%2Ffsl-imx-wayland%2F5.15-kirkstone%2Fsysroots%2Fx86_64-pokysdk-linux%2Fusr%2Fbin%2Faarch64-poky-linux-musl%3A%2Fhome%2Fautomotive%2F.local%2Fbin%3A%2Fhome%2Fautomotive%2Fbin%3A%2Fusr%2Flocal%2Fsbin%3A%2Fusr%2Flocal%2Fbin%3A%2Fusr%2Fsbin%3A%2Fusr%2Fbin%3A%2Fsbin%3A%2Fbin%3A%2Fusr%2Fgames%3A%2Fusr%2Flocal%2Fgames%3A%2Fsnap%2Fbin%3A%2Fsnap%2Fbin%3A%20No%20such%20file%20or%20directory%3C%2FSPAN%3E%3CBR%20%2F%3E%3CBR%20%2F%3Eaarch64-poky-linux-gcc%20-c%20-I%2Fhome%2Fautomotive%2Fjailhouse%2Fhypervisor%2Finclude%20-I%2Fhome%2Fautomotive%2Fjailhouse%2Fhypervisor%2Farch%2Farm64%2Finclude%20-I%2Fhome%2Fautomotive%2Fjailhouse%2Finclude%20-nostdlib%20-nostartfiles%20-ffreestanding%26nbsp%3B%20ecall-inmate-linux-demo.c%20-o%20ecall-inmate-linux-demo.o%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3ENOTE%3A-Jailhouse%20header%20files%20are%20not%20part%20of%20tool-chain%2C%20so%20we%20separately%20downloaded%20it%20in%20Jailhouse%20folder%20from%20Seimens%20(github%20version).%20We%20used%20header%20file%20for%20compiling%2C%20inmate-linux-demo.cell.%26nbsp%3BWe%20didn't%20do%20any%20modification%20in%20.c%20file.%3CBR%20%2F%3EFor%20testing%20purpose%20we%20used%20default%20one.%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3EStep%201%3A%20Link%20the%20.o%20to%20produce%20a%20flat%20ELF%3CBR%20%2F%3E%3CBR%20%2F%3Eaarch64-poky-linux-ld%20%5C%3CBR%20%2F%3E%26nbsp%3B%20-Ttext%3D0x0%20%5C%3CBR%20%2F%3E%26nbsp%3B%20-nostdlib%20%5C%3CBR%20%2F%3E%26nbsp%3B%20-o%20ecall-inmate-linux-demo.elf%20%5C%3CBR%20%2F%3E%26nbsp%3B%20ecall-inmate-linux-demo.o%3CBR%20%2F%3E-Ttext%3D0x0%20puts%20the%20.text%20section%20at%20address%200x0%20for%20flat%20binary%20layout.%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E-nostdlib%20prevents%20linking%20standard%20C%20library%20(inmates%20don't%20need%20it).%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EStep%202%3A%20Convert%20ELF%20to%20raw%20binary%20.cell%3CBR%20%2F%3E%3CBR%20%2F%3Eaarch64-poky-linux-objcopy%20%5C%3CBR%20%2F%3E%26nbsp%3B%20-O%20binary%20%5C%3CBR%20%2F%3E%26nbsp%3B%20ecall-inmate-linux-demo.elf%20%5C%3CBR%20%2F%3E%26nbsp%3B%20ecall-inmate-linux-demo.cell%3CBR%20%2F%3E%3CBR%20%2F%3EVerify%20the%20result%3A%3CBR%20%2F%3E%3CBR%20%2F%3Efile%20ecall-inmate-linux-demo.cell%3C%2FP%3E%3CP%3EPrinted%20message%3A%3CBR%20%2F%3E%3CBR%20%2F%3Eecall-inmate-linux-demo.cell%3A%20data%3CBR%20%2F%3E%3CBR%20%2F%3ERemoved%20the%20default%20imx8mq.cell%20and%26nbsp%3Bimx8mq-linux-demo.cell%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EGenerated%20'imx8mq.cell%20and%26nbsp%3Bimx8mq-linux-demo.cell'%20file%20is%20pushed%20to%20Target%20folder%3A%20'%2Fusr%2Fshare%2Fjailhouse%2Fcells'%26nbsp%3B%3C%2FP%3E%3CP%3EAfter%20that%20enable%20Jailhouse%20with%20generated%26nbsp%3Bimx8mq.cell%20%2C%20and%20facing%20below%20error%3C%2FP%3E%3CP%3E%2F%20jailhouse%20enable%20%2Fusr%2Fshare%2Fjailhouse%2Fcells%2Fimx8mq.cell%3CBR%20%2F%3E%5B%202533.385877%5D%20jailhouse%3A%20Not%20a%20system%20configuration%3CBR%20%2F%3EJAILHOUSE_ENABLE%3A%20Invalid%20argument%3C%2FP%3E%3CP%3E%3CSPAN%3E%26nbsp%3B%3CBR%20%2F%3EPlease%20provide%20guidance%20and%20if%20possible%20some%20USerGuide%2FApplication%20note%20or%20Makefile%2FProper%20GCC%20command%2C%20to%20resolve%20the%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EAttaching%20makefile%20(it%20has%20all%20commands%20as%20mentioned%20above)%3CBR%20%2F%3E%3CBR%20%2F%3ECompilation%2C%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3Bmake%3CBR%20%2F%3Eaarch64-poky-linux-gcc%20-nostdlib%20-nostartfiles%20-ffreestanding%20-I%2Fhome%2Fautomotive%2Fjailhouse%2Fhypervisor%2Finclude%20-I%2Fhome%2Fautomotive%2Fjailhouse%2Fhypervisor%2Farch%2Farm64%2Finclude%20-I%2Fhome%2Fautomotive%2Fjailhouse%2Finclude%20-c%20imx8mq.c%20-o%20imx8mq.o%3CBR%20%2F%3Eaarch64-poky-linux-ld%20-Ttext%3D0x0%20-nostdlib%20-o%20imx8mq.elf%20imx8mq.o%3CBR%20%2F%3Eaarch64-poky-linux-ld%3A%20%3CSTRONG%3Ewarning%3C%2FSTRONG%3E%3A%20cannot%20find%20entry%20symbol%20_start%3B%20defaulting%20to%200000000000000000%3CBR%20%2F%3Eaarch64-poky-linux-objcopy%20-O%20binary%20imx8mq.elf%20imx8mq.cell%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EIt%20generated%20.elf%20%2C%20.cell%20and%20.o.%3CBR%20%2F%3EVerified%20file%20format%20with%20following%20commands%3A%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Efile%20imx8mq.elf%26nbsp%3B%3CBR%20%2F%3Eimx8mq.elf%3A%20ELF%2064-bit%20LSB%20executable%2C%20ARM%20aarch64%2C%20version%201%20(SYSV)%2C%20statically%20linked%2C%20not%20stripped%3CBR%20%2F%3Efile%20imx8mq.o%26nbsp%3B%3CBR%20%2F%3Eimx8mq.o%3A%20ELF%2064-bit%20LSB%20relocatable%2C%20ARM%20aarch64%2C%20version%201%20(SYSV)%2C%20not%20stripped%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3Efile%20imx8mq.cell%26nbsp%3B%3CBR%20%2F%3Eimx8mq.cell%3A%20data%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20for%20support.%3CBR%20%2F%3E%3CBR%20%2F%3ESumit%3C%2FSPAN%3E%3C%2FP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144371%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EBTW%3A%3C%2FP%3E%0A%3CP%3EThis%20is%20wrong%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%22bash%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20export%20PYTHONPATH%3D%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fjailhouse-native%2F0.12-r0%2Fimage%2Fusr%2Fshare%2Fjailhouse%2Ftools%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20export%20C_INCLUDE_PATH%3D%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fjailhouse-native%2F0.12-r0%2Fimage%2Fusr%2Finclude%2Fjailhouse%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fjailhouse-native%2F0.12-r0%2Fimage%2Fusr%2Fbin%2Fjailhouse-cell-linux%20%5C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fjailhouse-ecall%2F1.0-r0%2Fecall-inmate-linux-demo.c%20%5C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20-o%20ecall-inmate-linux-demo.cell%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3Ecells%20are%20compiled%20out%20by%20GCC%2C%20not%20jailhouse-cell-linux.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144334%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20little%20knowledge%20on%20Yocto%20stuff.%20Just%20share%20my%20build%20command%3A%3C%2FP%3E%0A%3CP%3E.%20%2Fopt%2Ffsl-imx-internal-xwayland%2F6.12-styhead%2Fenvironment-setup-armv8a-poky-linux%3C%2FP%3E%0A%3CP%3Emake%20KDIR%3D%24HOME%2Flinux%2Flinux-lts-nxp%20CC%3D%22aarch64-poky-linux-gcc%20--sysroot%3D%24SDKTARGETSYSROOT%22%20ARCH%3Darm64%20CROSS_COMPILE%3Daarch64-poky-linux-%20V%3D1%3C%2FP%3E%0A%3CP%3EThen%20the%20cells%20will%20be%20built%20out.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E5.10%20should%20be%20similar.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20also%20share%20your%20compiled%20out%20cell%20file%2C%20let%20me%20have%20a%20look%20on%20why%20jailhouse-cell-linux%20report%20error%20on%20the%20cell.%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%3CBR%20%2F%3EDear%20Peng%20Fan%2C%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20valuable%20guidance%20on%20IVSHMEM%20memory%20regions%20for%20Jailhouse%20on%20the%20i.MX%208MQ%2C%20as%20provided%20in%20your%20response%20regarding%20the%20state%20table%2C%20RW%20section%2C%20and%20input%2Foutput%20sections.%20We%20have%20incorporated%20your%20suggestions%20into%20our%20cell%20configuration%2C%20but%20we%20are%20still%20facing%20a%20persistent%20compilation%20error%20when%20trying%20to%20create%20a%20custom%20E-Call%20inmate%20cell%20using%20Yocto%205.15%20Kirkstone%20(Linux%205.15.71-2.2.0)%20on%20the%20i.MX%208MQ%20EVK%20board.%20Below%20is%20a%20detailed%20summary%20of%20the%20issue%2C%20our%20attempts%20to%20resolve%20it%2C%20and%20the%20current%20status.%20We%20would%20greatly%20appreciate%20any%20specific%20references%2C%20application%20notes%2C%20or%20further%20guidance%20you%20can%20provide%20to%20help%20us%20overcome%20this%20issue.%3C%2FP%3E%3CP%3EIssue%20Summary%3CBR%20%2F%3EWe%20are%20attempting%20to%20compile%20a%20custom%20E-Call%20inmate%20cell%20configuration%20(initially%20based%20on%20%60imx8mq-linux-demo.c%60%2C%20now%20using%20a%20simplified%20%60ecall-inmate-linux-demo.c%60)%20using%20the%20%60jailhouse-cell-linux%60%20tool.%20The%20compilation%20fails%20during%20the%20%60do_compile%60%20task%20of%20our%20%60jailhouse-ecall.bb%60%20recipe%20with%20the%20following%20error%3A%3CBR%20%2F%3E%22%3CBR%20%2F%3EERROR%3A%20jailhouse-ecall-1.0-r0%20do_compile%3A%20ExecutionError('%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fjailhouse-ecall%2F1.0-r0%2Ftemp%2Frun.do_compile.225085'%2C%201%2C%20None%2C%20None)%3CBR%20%2F%3ELog%20data%20follows%3A%3CBR%20%2F%3EDEBUG%3A%20Executing%20shell%20function%20do_compile%3CBR%20%2F%3ENot%20a%20cell%20configuration%3A%20%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fjailhouse-ecall%2F1.0-r0%2Fimx8mq-linux-demo.c%3CBR%20%2F%3EWARNING%3A%20exit%20code%201%20from%20a%20shell%20command.%3CBR%20%2F%3EERROR%3A%20Task%20(%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fsources%2Fmeta-ecall%2Frecipes-jailhouse%2Fjailhouse-cells%2Fjailhouse-ecall.bb%3Ado_compile)%20failed%20with%20exit%20code%20'1'%3CBR%20%2F%3E%22%3C%2FP%3E%3CP%3EThis%20error%20indicates%20that%20%60jailhouse-cell-linux%60%20does%20not%20recognize%20the%20cell%20configuration%20file%20as%20valid.%20Despite%20multiple%20attempts%20to%20resolve%20this%2C%20the%20issue%20persists.%3C%2FP%3E%3CP%3EDetails%20of%20Attempts%20to%20Resolve%3CBR%20%2F%3EWe%20have%20made%20several%20updates%20to%20our%20Yocto%20recipes%2C%20cell%20configuration%2C%20and%20environment%20based%20on%20community%20feedback%20and%20trial-and-error.%20Below%20is%20a%20summary%20of%20the%20key%20efforts%3A%3C%2FP%3E%3CP%3E1.%20Initial%20Setup%20and%20Error%3A%3CBR%20%2F%3E-%20Started%20with%20%60jailhouse-ecall.bb%60%20using%20%60imx8mq-linux-demo.c%60%20and%20%60jailhouse-native.bb%60%20based%20on%20the%20Siemens%20Jailhouse%20fork%20(%60git%3A%2F%2Fgithub.com%2Fsiemens%2Fjailhouse.git%3Bbranch%3Dmaster%3BSRCREV%3De57d1eff%60).%3CBR%20%2F%3E-%20Encountered%20errors%20related%20to%20missing%20%60pyjailhouse%60%20modules%20and%20incorrect%20%60jailhouse-cell-linux%60%20command%20syntax%20(e.g.%2C%20misinterpreting%20%60-I%60%20as%20%60CELLCONFIG%60).%3C%2FP%3E%3CP%3E2.%20Recipe%20Updates%3A%3CBR%20%2F%3E-%20jailhouse-native.bb%3A%3CBR%20%2F%3E-%20Initially%20lacked%20header%20installation%20(%60jailhouse%2Ftypes.h%60%2C%20%60jailhouse%2Fcell-config.h%60).%20Updated%20to%20include%3A%3CBR%20%2F%3E%22bitbake%3CBR%20%2F%3Einstall%20-d%20%24%7BD%7D%24%7Bincludedir%7D%2Fjailhouse%3CBR%20%2F%3Ecp%20-r%20%24%7BS%7D%2Finclude%2Fjailhouse%2F*.h%20%24%7BD%7D%24%7Bincludedir%7D%2Fjailhouse%2F%3CBR%20%2F%3E%22%3CBR%20%2F%3E-%20Switched%20to%20the%20NXP%20Jailhouse%20fork%20(%60git%3A%2F%2Fsource.codeaurora.org%2Fexternal%2Fimx%2Fimx-jailhouse.git%3Bbranch%3Dimx_5.4.47_2.2.0%3BSRCREV%3D8bbe203%60)%20to%20align%20with%20%60jailhouse_0.12.bb%60%20for%20i.MX%208MQ%20compatibility.%3CBR%20%2F%3E-%20Ensured%20%60pyjailhouse%60%20installation%20and%20%60python3-native%60%20dependency.%3CBR%20%2F%3E-%20jailhouse-ecall.bb%3A%3CBR%20%2F%3E-%20Corrected%20the%20'jailhouse-cell-linux'%20command%20by%20removing%20an%20invalid%20'%2Fdev%2Fnull'%20argument%20and%20using%20proper%20syntax%3A%3CBR%20%2F%3E%22bitbake%3CBR%20%2F%3E%24%7BSTAGING_BINDIR_NATIVE%7D%2Fjailhouse-cell-linux%20%5C%3CBR%20%2F%3E%24%7BS%7D%2Fecall-inmate-linux-demo.c%20%5C%3CBR%20%2F%3E-o%20%24%7BS%7D%2Fecall-inmate-linux-demo.cell%3CBR%20%2F%3E%22%3CBR%20%2F%3E-%20Updated%20'SRC_URI'%20to%20use%20%60ecall-inmate-linux-demo.c%60%20instead%20of%20%60imx8mq-linux-demo.c%60%20to%20focus%20on%20the%20E-Call%20use%20case.%3CBR%20%2F%3E-%20Added%20'export%20C_INCLUDE_PATH'%20and%20'PYTHONPATH'%20to%20ensure%20headers%20and%20Python%20modules%20are%20found.%3C%2FP%3E%3CP%3E3.%20Cell%20Configuration%20Updates%3A%3CBR%20%2F%3E-%20Simplified%20'ecall-inmate-linux-demo.c'%20based%20on%20'imx8mq-linux-demo.c'%20and%20your%20IVSHMEM%20guidance%3A%3CBR%20%2F%3E-%20State%20table%3A%20%600xbfdf0000%60%2C%204%20KB%2C%20read-only.%3CBR%20%2F%3E-%20RW%20section%3A%20%600xbfdf1000%60%2C%2064%20KB%2C%20read%2Fwrite.%3CBR%20%2F%3E-%20Root%20output%3A%20%600xbfdfa000%60%2C%208%20KB%2C%20read%2Fwrite.%3CBR%20%2F%3E-%20Root%20input%3A%20%600xbfdfc000%60%2C%208%20KB%2C%20read-only.%3CBR%20%2F%3E-%20Included%20UART1%20(%600x30860000%60)%2C%20RAM%20(%600xc0000000%60%2C%20256%20MB)%2C%20and%20communication%20region%20(%600x80000000%60).%3CBR%20%2F%3E-%20Removed%20complex%20macros%20(e.g.%2C%20%60JAILHOUSE_SHMEM_NET_REGIONS%60)%20to%20avoid%20parsing%20issues.%3CBR%20%2F%3E-%20Example%20configuration%20snippet%3A%3CBR%20%2F%3E%22.c%3CBR%20%2F%3E.mem_regions%20%3D%20%7B%3CBR%20%2F%3E%2F*%20IVSHMEM%20state%20table%20*%2F%3CBR%20%2F%3E%7B%3CBR%20%2F%3E.phys_start%20%3D%200xbfdf0000%2C%3CBR%20%2F%3E.virt_start%20%3D%200xbfdf0000%2C%3CBR%20%2F%3E.size%20%3D%200x1000%2C%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%20%7C%20JAILHOUSE_MEM_ROOTSHARED%2C%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%2F*%20IVSHMEM%20RW%20section%20*%2F%3CBR%20%2F%3E%7B%3CBR%20%2F%3E.phys_start%20%3D%200xbfdf1000%2C%3CBR%20%2F%3E.virt_start%20%3D%200xbfdf1000%2C%3CBR%20%2F%3E.size%20%3D%200x10000%2C%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%20%7C%20JAILHOUSE_MEM_WRITE%20%7C%20JAILHOUSE_MEM_ROOTSHARED%2C%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%2F*%20IVSHMEM%20root%20output%20*%2F%3CBR%20%2F%3E%7B%3CBR%20%2F%3E.phys_start%20%3D%200xbfdfa000%2C%3CBR%20%2F%3E.virt_start%20%3D%200xbfdfa000%2C%3CBR%20%2F%3E.size%20%3D%200x2000%2C%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%20%7C%20JAILHOUSE_MEM_WRITE%20%7C%20JAILHOUSE_MEM_ROOTSHARED%2C%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E%2F*%20IVSHMEM%20root%20input%20*%2F%3CBR%20%2F%3E%7B%3CBR%20%2F%3E.phys_start%20%3D%200xbfdfc000%2C%3CBR%20%2F%3E.virt_start%20%3D%200xbfdfc000%2C%3CBR%20%2F%3E.size%20%3D%200x2000%2C%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%20%7C%20JAILHOUSE_MEM_ROOTSHARED%2C%3CBR%20%2F%3E%7D%2C%3CBR%20%2F%3E...%3CBR%20%2F%3E%7D%3CBR%20%2F%3E%22%3C%2FP%3E%3CP%3E4.%20Dependency%20and%20Layer%20Configuration%3A%3CBR%20%2F%3E-%20Added%20%60meta-ecall%60%20and%20%60meta-freescale%60%20to%20%60bblayers.conf%60.%3CBR%20%2F%3E-%20Updated%20%60local.conf%60%3A%3CBR%20%2F%3E%22conf%3CBR%20%2F%3EIMAGE_INSTALL%3Aappend%20%3D%20%22%20jailhouse%20jailhouse-ecall%20python3%22%3CBR%20%2F%3EDISTRO_FEATURES%3Aappend%20%3D%20%22%20jailhouse%20virtualization%22%3CBR%20%2F%3E%22%3CBR%20%2F%3E-%20Verified%20%60jailhouse_0.12.bb%60%20uses%20the%20NXP%20fork%20for%20target%20deployment.%3CBR%20%2F%3E-%20Ensured%20%60python3-native%60%2C%20%60pyjailhouse%60%2C%20and%20headers%20are%20installed%20in%20the%20native%20sysroot%20(%60%24%7BSTAGING_DIR_NATIVE%7D%2Fusr%2Fshare%2Fjailhouse%2Ftools%2Fpyjailhouse%2F%60%2C%20%60%24%7BSTAGING_DIR_NATIVE%7D%2Fusr%2Finclude%2Fjailhouse%2F%60).%3C%2FP%3E%3CP%3E5.%20Manual%20Testing%3A%3CBR%20%2F%3E-%20Manually%20tested%20%60jailhouse-cell-linux%60%3A%3CBR%20%2F%3E%22bash%3CBR%20%2F%3Eexport%20PYTHONPATH%3D%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fjailhouse-native%2F0.12-r0%2Fimage%2Fusr%2Fshare%2Fjailhouse%2Ftools%3CBR%20%2F%3Eexport%20C_INCLUDE_PATH%3D%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fjailhouse-native%2F0.12-r0%2Fimage%2Fusr%2Finclude%2Fjailhouse%3CBR%20%2F%3E%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Fx86_64-linux%2Fjailhouse-native%2F0.12-r0%2Fimage%2Fusr%2Fbin%2Fjailhouse-cell-linux%20%5C%3CBR%20%2F%3E%2Fhome%2Fautomotive%2Fyocto_imx_linux%2Fbuild%2Ftmp%2Fwork%2Farmv8a-poky-linux%2Fjailhouse-ecall%2F1.0-r0%2Fecall-inmate-linux-demo.c%20%5C%3CBR%20%2F%3E-o%20ecall-inmate-linux-demo.cell%3CBR%20%2F%3E%22%3CBR%20%2F%3E-%20Same%20error%3A%20%60Not%20a%20cell%20configuration%60.%3CBR%20%2F%3E-%20Verified%20sysroot%20contents%3A%20%60pyjailhouse%60%20modules%2C%20headers%2C%20and%20%60jailhouse-cell-linux%60%20are%20present.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3ECurrent%20Status%3CBR%20%2F%3E-%20The%20error%20%60Not%20a%20cell%20configuration%60%20persists%20despite%3A%3CBR%20%2F%3E-%20Correcting%20%60jailhouse-cell-linux%60%20syntax.%3CBR%20%2F%3E-%20Simplifying%20the%20cell%20configuration.%3CBR%20%2F%3E-%20Aligning%20%60jailhouse-native.bb%60%20with%20the%20NXP%20fork.%3CBR%20%2F%3E-%20Ensuring%20headers%20and%20%60pyjailhouse%60%20are%20installed.%3CBR%20%2F%3E-%20Other%20recipes%20(%60jailhouse-native%60%2C%20%60jailhouse%60)%20compile%20successfully%2C%20indicating%20the%20issue%20is%20specific%20to%20%60jailhouse-ecall.bb%60%20and%20the%20cell%20configuration%20parsing.%3C%2FP%3E%3CP%3EQuestions%20and%20Request%20for%20Guidance%3CBR%20%2F%3E1.%20Could%20the%20error%20be%20due%20to%20a%20version%20mismatch%20between%20the%20NXP%20Jailhouse%20fork%20(%60imx_5.4.47_2.2.0%60)%20and%20our%20cell%20configuration%3F%20Are%20there%20specific%20requirements%20for%20%60jailhouse-cell-linux%60%20in%20this%20fork%3F%3CBR%20%2F%3E2.%20Is%20there%20an%20application%20note%20or%20user%20guide%20for%20creating%20custom%20Jailhouse%20inmate%20cells%20on%20i.MX%208MQ%20with%20Yocto%205.15%20Kirkstone%3F%20We%20couldn%E2%80%99t%20find%20detailed%20documentation%20for%20this%20platform.%3CBR%20%2F%3E3.%20Are%20there%20known%20issues%20with%20%60jailhouse-cell-linux%60%20parsing%20complex%20configurations%20(e.g.%2C%20IVSHMEM%20regions)%3F%20Should%20we%20further%20simplify%20the%20configuration%3F%3CBR%20%2F%3E4.%20Can%20you%20provide%20a%20reference%20%60jailhouse-ecall.bb%60%20recipe%20or%20example%20for%20compiling%20a%20%60.cell%60%20file%20for%20i.MX%208MQ%3F%3CBR%20%2F%3E5.%20Are%20there%20specific%20U-Boot%20or%20kernel%20configurations%20required%20for%20Jailhouse%20on%20i.MX%208MQ%20that%20we%20might%20be%20missing%3F%3C%2FP%3E%3CP%3E6.%20How%20to%20resolve%20the%20Jailhouse%20dependencies%20issue%2C%20for%20custom%20recipes%2Fbb%20layers%3F%3C%2FP%3E%3CP%3EAttached%20Files%20(for%20Reference)%3CBR%20%2F%3E-%20%60jailhouse-ecall.bb%60%3A%20Updated%20recipe%20for%20E-Call%20cell.%3CBR%20%2F%3E-%20%60jailhouse-native.bb%60%3A%20Updated%20to%20NXP%20fork%20with%20headers.%3CBR%20%2F%3E-%20%60ecall-inmate-linux-demo.c%60%3A%20Simplified%20configuration%20with%20IVSHMEM%20regions.%3CBR%20%2F%3E-%20%60imx8mq-linux-demo.c%60%3A%20Original%20configuration%20(for%20reference).%3CBR%20%2F%3E-%20Verbose%20compilation%20log%20(if%20needed%2C%20please%20confirm%20how%20to%20share).%3C%2FP%3E%3CP%3EWe%20are%20eager%20to%20resolve%20this%20issue%20to%20proceed%20with%20deploying%20the%20E-Call%20inmate%20cell%20and%20testing%20shared%20memory%20communication.%20Any%20insights%2C%20references%2C%20or%20corrections%20to%20our%20approach%20would%20be%20greatly%20appreciated.%3C%2FP%3E%3CP%3EThank%20you%20for%20your%20support!%3C%2FP%3E%3CP%3EBest%20regards%2C%3CBR%20%2F%3ESumit%3C%2FP%3E%3CP%3ENote%3A-Let%20me%20know%20if%20you%20need%20help%20refining%20the%20response%20or%20generating%20the%20verbose%20log!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2144288%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2144288%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3BBio_TICFSL%2C%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20your%20github%20link%2C%20we%20found%20some%20link%20for%205.15%20Kirkstone%3A%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Fblob%2Fimx-linux-kirkstone%2Frecipes-extended%2Fjailhouse%2Fjailhouse_%2525.bbappend%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Fblob%2Fimx-linux-kirkstone%2Frecipes-extended%2Fjailhouse%2Fjailhouse_%2525.bbappend%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Ftree%2Fimx-linux-kirkstone%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Ftree%2Fimx-linux-kirkstone%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3EWill%20it%20help%20for%20our%20NXP%20i.MX8MQ%20board%3F%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3C%2FP%3E%3CP%3ESumit%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143586%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143586%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ELet%20me%20give%20some%20tips%3A%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E1.%26nbsp%3BDocumentation%2Finter-cell-communication.md%20describes%20how%20the%20memory%20is%20arranged.%3C%2FP%3E%0A%3CP%3EEach%20cell%20needs%20the%20follow%20regions%20for%20ivshmem%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E-%20read-only%20region%20to%20hold%20state%20table%2C%20generally%20one%20page%20large%20%3CBR%20%2F%3E-%20one%20region%20that%20is%20read%2Fwritable%20for%20all%20peers%20%3CBR%20%2F%3E-%20one%20output%20region%20per%20peer%20that%20is%20only%20read-writeable%20for%20one%20of%20them%3C%2FP%3E%0A%3CP%3E2.%20To%20i.MX8MQ%3C%2FP%3E%0A%3CP%3E%2F*%20IVHSMEM%20shared%20memory%20region%20for%2000%3A00.0%20*%2F%20%7B%20%3CBR%20%2F%3E.phys_start%20%3D%200xbfdf0000%2C%20%3CBR%20%2F%3E.virt_start%20%3D%200xbfdf0000%2C%20%3CBR%20%2F%3E.size%20%3D%200x1000%2C%20%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%2C%26nbsp%3B%20%26nbsp%3B%20%3D%3D%3D%26gt%3B%20This%20is%20state%20table.%3CBR%20%2F%3E%7D%2C%20%3CBR%20%2F%3E%7B%20%3CBR%20%2F%3E.phys_start%20%3D%200xbfdf1000%2C%20%3CBR%20%2F%3E.virt_start%20%3D%200xbfdf1000%2C%20%3CBR%20%2F%3E.size%20%3D%200x9000%2C%20%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%20%7C%20JAILHOUSE_MEM_WRITE%20%2C%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3D%3D%3D%26gt%3B%20This%20is%20RW%20section.%20You%20could%20use%20this%20for%20communication.%20Or%20enlarge%20this.%3C%2FP%3E%0A%3CP%3E%7D%2C%20%3CBR%20%2F%3E%7B%20%3CBR%20%2F%3E.phys_start%20%3D%200xbfdfa000%2C%20%3CBR%20%2F%3E.virt_start%20%3D%200xbfdfa000%2C%20%3CBR%20%2F%3E.size%20%3D%200x2000%2C%20%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%20%7C%20JAILHOUSE_MEM_WRITE%20%2C%26nbsp%3B%20%26nbsp%3B%3D%3D%26gt%3B%20This%20is%20root%20input%2Foutput%3CBR%20%2F%3E%7D%2C%20%3CBR%20%2F%3E%7B%20%3CBR%20%2F%3E.phys_start%20%3D%200xbfdfc000%2C%20%3CBR%20%2F%3E.virt_start%20%3D%200xbfdfc000%2C%20%3CBR%20%2F%3E.size%20%3D%200x2000%2C%20%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%2C%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3D%3D%26gt%3B%20This%20is%20root%20input%3CBR%20%2F%3E%7D%2C%20%3CBR%20%2F%3E%7B%20%3CBR%20%2F%3E.phys_start%20%3D%200xbfdfe000%2C%20%3CBR%20%2F%3E.virt_start%20%3D%200xbfdfe000%2C%20%3CBR%20%2F%3E.size%20%3D%200x2000%2C%20%3CBR%20%2F%3E.flags%20%3D%20JAILHOUSE_MEM_READ%2C%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3D%3D%26gt%3B%20This%20is%20root%20input%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EThis%20is%20similar%20layout%20in%20imx8mq-inmate-linux.c.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EYou%20could%20configure%20RW%20and%20INPUT%2FOUTPUT%20SECTION%2C%20do%20not%20touch%20State%20section.%3C%2FP%3E%0A%3CP%3EFor%20INPUT%2FOUTPUT%2C%20if%20you%20define%20multiple%20regions%2C%20each%20region%20should%20be%20same%20size.%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ERegards%3C%2FP%3E%0A%3CP%3EPeng.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143581%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143581%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EThere%20is%20no%20jailhouse%20for%20MX8MQ%2C%20but%20is%20the%20same%20family%20of%20the%20MX8M%20you%20can%20take%20as%20base%20the%20github%20or%20take%20the%206.6.36%20BSP.%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2143304%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2143304%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3BBio_TICFSL%26nbsp%3B%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%20a%20lot%20for%20quick%20reply.%3CBR%20%2F%3E%3CBR%20%2F%3ESince%20we%20are%20using%20i.MX%20NXP%208MQ%20EVK%20board%20'i.MX%208MQuad'%2C%26nbsp%3B%3CBR%20%2F%3EWith%20Part%20Number%20%22TDA6637%22.%3CBR%20%2F%3ESo%20currently%20I%20have%20flashed%20Linux%20Yocto%205.15%20Kirkstone%20'%3CSPAN%3E5.15.71-2.2.0%3C%2FSPAN%3E'.%3CBR%20%2F%3E%3CBR%20%2F%3EBut%20in%20your%20reply%20for%20'%3CSPAN%3ENXP%20Harpoon%20Jailhouse%20integration%3C%2FSPAN%3E'%20we%20need%20'%3CSPAN%3Ei.MX%20Linux%20Yocto%20Project%20BSP%20%3CSTRONG%3E6.6.36-2.1.0%20Harpoon%3C%2FSTRONG%3E%20v3%20Release'%2C.%3CBR%20%2F%3EFor%20i.MX%208MQ%20board%20it%20support%20till%205.15%20Kirkstone%20Image%2C%20and%20in%20your%20Harpoon%20User%20Guide%20'UG10170'%20and%26nbsp%3B%3CBR%20%2F%3EGithub%20link%20'%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Ftree%2Fimx-linux-scarthgap'%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Ftree%2Fimx-linux-scarthgap'%3C%2FA%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThe%20following%20boards%20were%20tested%20in%20this%20release%3A%3C%2FP%3E%3CUL%3E%3CLI%3ENXP%20i.MX%208MMini%20LPDDR4%20EVK%20(imx8mm-lpddr4-evk)%3C%2FLI%3E%3CLI%3ENXP%20i.MX%208MNano%20LPDDR4%20EVK%20(imx8mn-lpddr4-evk)%3C%2FLI%3E%3CLI%3ENXP%20i.MX%208MPlus%20LPDDR4%20EVK%20(imx8mp-lpddr4-evk)%3C%2FLI%3E%3C%2FUL%3E%3CP%3ENo%20mention%20of%20i.MX%208MQ%2C%20can%20you%20provide%20a%20specific%20Jailhouse%20solution%20for%20our%20board%2C%20or%20suggest%20some%20other%20possibility%20to%20create%20inmate%20cell%3F%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EThanks%20a%20lot%20for%20support.%3CBR%20%2F%3E%3CBR%20%2F%3EThanks%2C%3CBR%20%2F%3ESumit%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2142781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2142781%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHello%2C%3C%2FP%3E%0A%3CP%3EYou%20can%20follow%20similar%20approach%20as%20NXP%20Harpoon%20Jailhouse%20integration%20trough%20a%20bbappend%20recipe.%3C%2FP%3E%0A%3CP%3ESee%20examples%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FNXP%2Fmeta-nxp-harpoon%2Fblob%2Fimx-linux-scarthgap%2Frecipes-extended%2Fjailhouse%2Fjailhouse-imx_%2525.bbappend%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Emeta-nxp-harpoon%2Frecipes-extended%2Fjailhouse%2Fjailhouse-imx_%25.bbappend%20at%20imx-linux-scarthgap%20%C2%B7%20NXP%2Fme...%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EUser%20guide%3A%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FHarpoon_USERS_GUIDE.pdf%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FHarpoon_USERS_GUIDE.pdf%3C%2FA%3E%3C%2FP%3E%0A%3CP%3ERegards%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2140689%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20Issue%20with%20Jailhouse%20hypervisor%20Inmate%20cell%20Creation%20for%20i.MX8MQ%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2140689%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%2F21960%22%20target%3D%22_blank%22%3E%40Peng%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CA%20href%3D%22mailto%3Apeng.fan%40nxp.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Epeng.fan%40nxp.com%3C%2FA%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20suggest%20some%20solution%20for%20Custom%20Jailhouse%20cell%20creation%20issue%20we%20are%20facing%2C%20as%20explained%20in%20above%20ticket%3F%3CBR%20%2F%3EThanks%20for%20support.%3CBR%20%2F%3EDo%20let%20us%20know%20any%20further%20details%20required.%3C%2FP%3E%3C%2FLINGO-BODY%3E