imx8qxpc0mek-jailhouse

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

imx8qxpc0mek-jailhouse

290 Views
sai9
Contributor II

Hi,

i am working on enabling the jailhouse hypervisor on imx8qxpc0mek board, i have successfully enabled it.

After running the following command:

jailhouse cell linux /usr/share/jailhouse/cells/imx8qxp-linux-demo.cell  /run/media/mmcblk1p1/Image -d /run/media/mmcblk1p1/imx8qxp-mek-inmate.dtb -c "clk_ignore_unused console=ttyLP1,115200 earlycon=ec_imx8q,0x5a070010,115200 root=/dev/mmcblk1p1 rootwait rw"

 

root@imx8qxpc0mek:~# export PATH=$PATH:/usr/share/jailhouse/tools/
root@imx8qxpc0mek:~# jailhouse cell linux /usr/share/jailhouse/cells/imx8qxp-linux-demo.cell  /run/media/mmcblk1p1/Image -d /run/media/mmcblk1p1/imx8qxp-mek-inmate.dtb -c "clk_ignore_unused console=ttyLP1,115200 earlycon=ec_imx8q,0x5a070010,115200 root=/dev/mmcblk1p1 rootwait rw"
[  118.706548] CPU2: shutdown
[  118.709275] psci: CPU2 killed (polled 0 ms)
[  118.774510] CPU3: shutdown
[  118.777238] psci: CPU3 killed (polled 0 ms)
Adding virtual PCI device 00:00.0 to cell "linux-inmate-demo"
Shared memory connection established, peer cells:
"imx8qxp"
Adding virtual PCI device 00:01.0 to cell "linux-inmate-demo"
Shared memory connection established, peer cells:
"imx8qxp"
Created cell "linux-inmate-demo"
Page pool usage after cell creation: mem 90/992, remap 144/131072
[  118.818134] Created Jailhouse cell "linux-inmate-demo"
Cell "linux-inmate-demo" can be loaded
Started cell "linux-inmate-demo"

root@imx8qxpc0mek:~# jailhouse cell list
ID      Name                    State             Assigned CPUs           Failed CPUs             
0       imx8qxp                 running           0-1                                             
1       linux-inmate-demo       running           2-3                                             
root@imx8qxpc0mek:~# [  490.763777] audit: type=1006 audit(1720099801.336:4): pid=876 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res

The problem is when i open another port(/dev/ttyUSB1) i am not able to the jailhouse logs. i have also checked all other available ports.

Can anyone suggest me here.

Thanks,
sai

0 Kudos
Reply
3 Replies

266 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

I think there are serveral issues:

1. console=ttymxc0,115200 in your bootargs, but your inmate boot log show ttymxc1. Note, root cell and inmate not share uart console, inmate just use earlycon for print log on root cell in the beginning.

2. From your boot log, there is no mmcblk2p2, so you not burn eMMC with an valid image.

 

Regards

0 Kudos
Reply

216 Views
sai9
Contributor II
In my case, root cell console=ttyLP0 (0x5a060000,115200)
and inmate cell console=ttyLP1 (0x5a070000,115200)

Below is the dmesg logs.
root@imx8qxpc0mek:~# dmesg | grep -i "tty*"
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] Kernel command line: console=ttyLP0,115200 earlycon root=/dev/mmcblk1p2 rootwait rw
[ 0.577821] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 1.162200] 5a060000.serial: ttyLP0 at MMIO 0x5a060010 (irq = 49, base_baud = 5000000) is a FSL_LPUART
[ 1.171378] printk: console [ttyLP0] enabled
[ 1.207922] 5a070000.serial: ttyLP1 at MMIO 0x5a070010 (irq = 50, base_baud = 5000000) is a FSL_LPUART
[ 2.285631] Bluetooth: RFCOMM TTY layer initialized
[ 4.225970] imx-sc-rtc scu:rtc: setting system clock to 1970-01-01T00:03:23 UTC (203)
[ 5.749160] systemd[1]: system-getty.slice: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[ 7.458782] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[ 7.458784] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[ 7.468339] overlayfs: upper fs does not support xattr, falling back to index=off and metacopy=off.
[ 9.130374] Atheros 8031 ethernet 5b040000.ethernet-1:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=5b040000.ethernet-1:00, irq=POLL)
[ 10.196072] audit: type=1006 audit(1720099321.236:2): pid=721 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=1 res=1
[ 18.058476] audit: type=1006 audit(1720099329.100:3): pid=739 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=2 res=1
[ 490.202328] audit: type=1006 audit(1720099801.244:4): pid=907 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
root@imx8qxpc0mek:~#


I have modified the command to set the earlycon and console as below. Still I am unable to see the logs on earlycon logs and inmate cell logs.

root@imx8qxpc0mek:~# jailhouse cell linux /usr/share/jailhouse/cells/imx8qxp-linux-demo.cell /run/media/mmcblk1p1/Image -d /run/media/mmcblk1p1/imx8qxp-mek-inmate.dtb -c "clk_ignore_unused console=ttyLP1,115200 earlycon=lpuart32,0x5a060000,115200 root=/dev/mmcblk1p1 rootwait rw"
mek-inmate.dtb -c "clk_ignore_unused console=ttyLP1,115200 earlycon=lpuart32,0x5a060000,115200 root=/dev/mmcblk1p1 rootwait rw"
I am not sure where I am going wrong. Any quick response would be helpful.

Thanks,
sai9
0 Kudos
Reply

248 Views
sai9
Contributor II

Hi Team,
Thankyou for the reply. i have provided my logs. Could you please check and help me to resolve it.


Thanks,
sai9

0 Kudos
Reply