[imx8qmmek ][Jailhouse] Boot up with jh_mmcboot fail?

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

[imx8qmmek ][Jailhouse] Boot up with jh_mmcboot fail?

Jump to solution
2,995 Views
WolsYang
Contributor IV

Image and u-boot file come from LF_v5.10.72-2.2.0_images_IMX8QMMEK.zip.

 

 BuildInfo: 
  - SCFW 549b1e18, SECO-FW 2f7f6f59, IMX-MKIMAGE 7a277c8a, ATF 5782363
  - U-Boot 2021.04-lf_v2021.04+g263b27e076 

 

Flash to imx8qmmek :

 

sudo ~/mfgtools/uuu/uuu -b emmc_all ~/Downloads/imx8/imx-boot-imx8qmmek-sd.bin-flash_linux_m4 ~/Downloads/imx8/imx-image-full-imx8qmmek.wic

Success 1    Failure 0                                                                                                                                                                                                                                                                                                                                     
3:4      8/ 8 [Done                                  ] FB: done    

 

 Go to u-boot:

 

Normal Boot
Hit any key to stop autoboot:  
jh_mmcboot=setenv fdt_file imx8qm-mek-root.dtb;setenv boot_os 'scu_rm dtb ${fdt_addr}; booti ${loadaddr} - ${fdt_addr};'; run mmcboot;
=> run jh_mmcboot

 

 And got fail:

 

Booting from mmc ...
106496 bytes read in 3 ms (33.9 MiB/s)
Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000
Loading hdp firmware Complete
136386 bytes read in 4 ms (32.5 MiB/s)
fdt addr 0000000083000000
partition_alloc: os_part, 7: parent_part, 6
sc_pm_set_resource_power_mode: resource:59 mode:0: res:4
Moving Image from 0x80280000 to 0x80400000, end=82150000
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 0000000083000000, end 00000000830244c1
Disable jr@40000 rsrc 502 not owned
Disable mu@31580000 rsrc 505 not owned
Disable i2c@3b230000 rsrc 308 not owned
Disable clock-controller@3b630000 rsrc 308 not owned
Disable intmux@3b400000 rsrc 309 not owned
Disable clock-controller@5a480000 rsrc 59 not owned
Disable can@5a8d0000 rsrc 105 not owned
Disable can@5a8e0000 rsrc 106 not owned
Disable can@5a8f0000 rsrc 107 not owned
Disable clock-controller@5acd0000 rsrc 105 not owned
Disable clock-controller@5ace0000 rsrc 106 not owned
Disable clock-controller@5acf0000 rsrc 107 not owned
Disable mmc@5b010000 rsrc 248 not owned
Disable clock-controller@5b200000 rsrc 248 not owned
Disable spi@5d120000 rsrc 237 not owned
Disable imx8qm_cm4@0 rsrc 278 not owned
Disable imx8qm_cm4@0 rsrc 297 not owned
Disable imx8x_cm4@1 rsrc 298 not owned
Disable imx8x_cm4@1 rsrc 317 not owned

Starting kernel ...

"Synchronous Abort" handler, esr 0x02000000
elr: 000000007a65e000 lr : 0000000080021d08 (reloc)
elr: 0000000081c60000 lr : 0000000087623d08
x0 : 0000000083000000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 0000000080400000 x5 : 0000000000000001
x6 : 0000000000000008 x7 : 0000000000000000
x8 : 0000000084e0cf88 x9 : 0000000000000002
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 0000000084e1fd76
x14: 0000000084e0dea0 x15: 000000008762322c
x16: 000000008765de54 x17: 0000000000000000
x18: 0000000084e1fd60 x19: 00000000876ea608
x20: 0000000000000000 x21: 0000000000000400
x22: 0000000000000003 x23: 0000000084e69e78
x24: 0000000000000003 x25: 0000000084e69e78
x26: 00000000876d3f98 x27: 0000000000000000
x28: 0000000084e69ea0 x29: 0000000084e0cfc0

Code: 676e696c 73657420 49282074 25205152 (000a2964) 
Resetting CPU ...

### ERROR ### Please RESET the board ###

 

 I also try yocto image, also got the same fail, anyone can help me?

0 Kudos
Reply
1 Solution
2,959 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

Correct the 5.10.72 does not support virtualization, this already know form the developers and will fixed in next version.

Regards

View solution in original post

0 Kudos
Reply
18 Replies
2,984 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello WolsYang,

Apparently you have problem with your board or there is no ready to boot form eMMC. Check if the boot switch is in correct position and download the correct images:

https://www.nxp.com/document/guide/get-started-with-the-i-mx-8quadmax-mek:GS-iMX-8QM-MEK

 

Regards

 

0 Kudos
Reply
2,979 Views
WolsYang
Contributor IV

When I run normally boot it work fine.

 

Hit any key to stop autoboot:  0 
=>boot
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to load 'boot.scr'
30118400 bytes read in 108 ms (266 MiB/s)
Booting from mmc ...
106496 bytes read in 3 ms (33.9 MiB/s)
Loading hdp firmware from 0x000000009c000000 offset 0x0000000000002000
Loading hdp firmware Complete
135667 bytes read in 4 ms (32.3 MiB/s)
Moving Image from 0x80280000 to 0x80400000, end=82150000
## Flattened Device Tree blob at 83000000
   Booting using the fdt blob at 0x83000000
   Using Device Tree in place at 0000000083000000, end 00000000830241f2
Disable jr@40000 rsrc 502 not owned
Disable mu@31580000 rsrc 505 not owned

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034]
[    0.000000] Linux version 5.10.72-lts-5.10.y+ga68e31b63f86 (oe-user@oe-host) (aarch64-poky-linux-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1.20210209) #1 SMP PREEMPT Tue Nov 23 06:02:20 UTC 2021
[    0.000000] Machine model: Freescale i.MX8QM MEK
[    0.000000] efi: UEFI not found.
[    0.000000] OF: fdt: Reserved memory: failed to reserve memory for node 'm4@0x88000000': base 0x0000000088000000, size 128 MiB
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000c0000000, size 960 MiB

 

What I want to do is flash Root cell and inmates(JainHouse) or Dom0 and DomU(Xen) in the same emmc.

I think I have to do partition in UUU fastboot or  SCFW, but I can't find any doc.

I notice that  i.MX Linux® User's Guide, Rev. LF5.10.9_1.0.0, 31 March 2021 has Chapter 12
Virtualization but in i.MX Linux® User's Guide, Rev. LF5.10.72_2.2.0, 17 December 2021 did not show anymore, is that mean 5.10.72 does not support Virtualization?

0 Kudos
Reply
2,968 Views
WolsYang
Contributor IV

Also, I notice that I don't have xl or jailhouse.

 

root@imx8qmmek:~# xl
-sh: xl: command not found
root@imx8qmmek:~# jailhouse
-sh: jailhouse: command not found
root@imx8qmmek:~# ls /lib/modules/5.10.72-lts-5.10.y+ga68e31b63f86/extra/
cryptodev.ko

 

But I have already added the following line in my build/local.conf

 

DISTRO_FEATURES_append = " jailhouse"
DISTRO_FEATURES_append = " xen"

 

 

0 Kudos
Reply
2,960 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi,

Correct the 5.10.72 does not support virtualization, this already know form the developers and will fixed in next version.

Regards

0 Kudos
Reply
812 Views
sai9
Contributor II
Hi,
i am using imxqxpc0mek board (yocto build), when i run jh_mmcboot in u-boot i am facing the following issue.
Booting from mmc ...
96773 bytes read in 18 ms (5.1 MiB/s)
fdt addr 0000000083000000
partition_alloc: os_part, 6: parent_part, 5
Bad Linux ARM64 Image magic!

0 Kudos
Reply
805 Views
Peng_Fan
NXP Employee
NXP Employee
run loadimage; run jh_mmcboot; You could give a try.

But the jailhouse support on i.MX8QXP is not supported by NXP release.
Kernel & Virtualization Engineer
793 Views
sai9
Contributor II
In my root partition i can see that the jailhouse directory is available in /usr/share/jailhouse. but i was still facing the same issue.

Can I get any documentation for adding custom jailhouse in yocto build.
0 Kudos
Reply
785 Views
Peng_Fan
NXP Employee
NXP Employee

The information you gave is too limited. Which release are u using? Attach full boot log?

Kernel & Virtualization Engineer
0 Kudos
Reply
179 Views
sai9
Contributor II

Below is my log file provided

0 Kudos
Reply
172 Views
Peng_Fan
NXP Employee
NXP Employee

Your inmate linux bootargs is not correct, try this:

clk_ignore_unused console=ttyLP2,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk0p2 rootwait rw

 

BTW: what is your fix to make error disapper?

Kernel & Virtualization Engineer
139 Views
sai9
Contributor II
Hi Peng,
i have changed the console=ttyLP1 and the inmate cell is booting but unable to mount rootfs.
And if i change to ttyLP0 and ttyLP3 as well i can see the same logs as mentioned above.

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,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk1p2 rw"
[ 680.474324] CPU2: shutdown
[ 680.477047] psci: CPU2 killed (polled 0 ms)
[ 680.530551] CPU3: shutdown
[ 680.533271] 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
[ 680.572260] Created Jailhouse cell "linux-inmate-demo"
Cell "linux-inmate-demo" can be loaded
Started cell "linux-inmate-demo"
[ 0.000000] Booting Linux on physical CPU 0x0000000002 [0x410fd042]
[ 0.000000] Linux version 5.4.24-2.1.0+gbabac008e5cf (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Tue Sep 10 13:53:29 UTC 2024
[ 0.000000] Machine model: Freescale i.MX8QXP MEK Inmate
[ 0.000000] earlycon: lpuart32 at MMIO32 0x000000005a060010 (options '115200')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fa000000
root@imx8qxpc0mek:~# [ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xfd5e6500-0xfd5e7fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] Zeroed struct page in unavailable ranges: 256 pages
[ 0.000000] Initmem setup node 0 [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu s58904 r8192 d31208 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 120960
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: clk_ignore_unused console=ttyLP1,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk1p2 rw
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 411832K/491520K available (16444K kernel code, 1444K rwdata, 6476K rodata, 2944K init, 1017K bss, 46920K reserved, 32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: 512 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 2 region 0:0x0000000051b40000
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x44c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 8.33MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1ec0311ec, max_idle_ns: 440795202152 ns
[ 0.000005] sched_clock: 56 bits at 8MHz, resolution 120ns, wraps every 2199023255541ns
[ 0.008204] Console: colour dummy device 80x25
[ 0.012397] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.66 BogoMIPS (lpj=33333)
[ 0.022160] pid_max: default: 32768 minimum: 301
[ 0.026686] LSM: Security Framework initializing
[ 0.031074] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.038012] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.069567] ASID allocator initialised with 32768 entries
[ 0.082645] rcu: Hierarchical SRCU implementation.
[ 0.096219] EFI services will not be available.
[ 0.108459] smp: Bringing up secondary CPUs ...
[ 0.144850] Detected VIPT I-cache on CPU1
[ 0.144900] GICv3: CPU1: found redistributor 3 region 0:0x0000000051b60000
[ 0.144965] CPU1: Booted secondary processor 0x0000000003 [0x410fd042]
[ 0.145092] smp: Brought up 1 node, 2 CPUs
[ 0.165552] SMP: Total of 2 processors activated.
[ 0.170056] CPU features: detected: 32-bit EL0 Support
[ 0.174995] CPU features: detected: CRC32 instructions
[ 0.193207] CPU: All CPU(s) started at EL1
[ 0.197026] alternatives: patching kernel code
[ 0.202853] devtmpfs: initialized
[ 0.214529] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.223759] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.231657] pinctrl core: initialized pinctrl subsystem
[ 0.237551] DMI not present or invalid.
[ 0.241463] NET: Registered protocol family 16
[ 0.258865] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.264618] audit: initializing netlink subsys (disabled)
[ 0.270072] audit: type=2000 audit(0.220:1): state=initialized audit_enabled=0 res=1
[ 0.277392] cpuidle: using governor menu
[ 0.281798] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.289294] Serial: AMBA PL011 UART driver
[ 0.293178] imx mu driver is registered.
[ 0.296843] imx rpmsg driver is registered.
[ 0.339184] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.345479] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.351890] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.358312] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.371226] cryptd: max_cpu_qlen set to 1000
[ 0.383607] ACPI: Interpreter disabled.
[ 0.391265] iommu: Default domain type: Translated
[ 0.396004] vgaarb: loaded
[ 0.398862] SCSI subsystem initialized
[ 0.402803] usbcore: registered new interface driver usbfs
[ 0.408016] usbcore: registered new interface driver hub
[ 0.413085] usbcore: registered new device driver usb
[ 0.418819] mc: Linux media interface: v0.10
[ 0.422802] videodev: Linux video capture interface: v2.00
[ 0.428109] pps_core: LinuxPPS API ver. 1 registered
[ 0.432773] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.441545] PTP clock support registered
[ 0.445463] EDAC MC: Ver: 3.0.0
[ 0.449420] No BMan portals available!
[ 0.453206] QMan: Allocated lookup table at (____ptrval____), entry count 65537
[ 0.460426] No QMan portals available!
[ 0.464401] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 0.470621] FPGA manager framework
[ 0.473848] Advanced Linux Sound Architecture Driver Initialized.
[ 0.480141] Bluetooth: Core ver 2.22
[ 0.483439] NET: Registered protocol family 31
[ 0.487676] Bluetooth: HCI device and connection manager initialized
[ 0.493767] Bluetooth: HCI socket layer initialized
[ 0.498436] Bluetooth: L2CAP socket layer initialized
[ 0.503282] Bluetooth: SCO socket layer initialized
[ 0.508808] imx-scu scu: NXP i.MX SCU Initialized
[ 0.513496] no irqsteer wakeup source supported!
[ 0.523289] random: fast init done
[ 0.531879] imx8qxp-pinctrl scu:pinctrl: initialized IMX pinctrl driver
[ 0.538817] clocksource: Switched to clocksource arch_sys_counter
[ 0.544778] VFS: Disk quotas dquot_6.6.0
[ 0.548459] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.555205] pnp: PnP ACPI: disabled
[ 0.568209] thermal_sys: Registered thermal governor 'step_wise'
[ 0.568215] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.574190] NET: Registered protocol family 2
[ 0.584989] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.593018] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.600407] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.607231] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.613337] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.619518] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.626328] NET: Registered protocol family 1
[ 0.630924] RPC: Registered named UNIX socket transport module.
[ 0.636468] RPC: Registered udp transport module.
[ 0.640963] RPC: Registered tcp transport module.
[ 0.645469] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.652220] PCI: CLS 0 bytes, default 64
[ 0.656962] kvm [1]: HYP mode not available
[ 0.669466] Initialise system trusted keyrings
[ 0.673769] workingset: timestamp_bits=44 max_order=17 bucket_order=0
[ 0.689484] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.696003] NFS: Registering the id_resolver key type
[ 0.700746] Key type id_resolver registered
[ 0.704707] Key type id_legacy registered
[ 0.708550] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.714983] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.721361] 9p: Installing v9fs 9p2000 file system support
[ 0.748252] Key type asymmetric registered
[ 0.752047] Asymmetric key parser 'x509' registered
[ 0.756779] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.763808] io scheduler mq-deadline registered
[ 0.768132] io scheduler kyber registered
[ 0.775926] pci-host-generic fd700000.pci: host bridge /pci@fd700000 ranges:
[ 0.782580] pci-host-generic fd700000.pci: MEM 0x10000000..0x1000ffff -> 0x10000000
[ 0.790116] pci-host-generic fd700000.pci: ECAM at [mem 0xfd700000-0xfd7fffff] for [bus 00]
[ 0.798236] pci-host-generic fd700000.pci: PCI host bridge to bus 0000:00
[ 0.804614] pci_bus 0000:00: root bus resource [bus 00]
[ 0.809612] pci_bus 0000:00: root bus resource [mem 0x10000000-0x1000ffff]
[ 0.816237] pci 0000:00:00.0: [110a:4106] type 00 class 0xff0000
[ 0.821991] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.828422] pci 0000:00:01.0: [110a:4106] type 00 class 0xff0001
[ 0.834072] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.842734] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10000fff]
[ 0.849121] pci 0000:00:01.0: BAR 0: assigned [mem 0x10001000-0x10001fff]
[ 0.858463] EINJ: ACPI disabled.
[ 0.868299] Bus freq driver module loaded
[ 0.878427] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.887312] fsl-lpuart 5a060000.serial: IRQ index 0 not found
[ 0.893239] 5a080000.serial: ttyLP2 at MMIO 0x5a080010 (irq = 8, base_baud = 5000000) is a FSL_LPUART
[ 0.902513] fsl-lpuart 5a080000.serial: DMA tx channel request failed, operating without tx DMA
[ 0.910728] fsl-lpuart 5a080000.serial: DMA rx channel request failed, operating without rx DMA
[ 0.927891] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 0.941733] loop: module loaded
[ 0.947668] imx ahci driver is registered.
[ 0.956106] libphy: Fixed MDIO Bus: probed
[ 0.961136] tun: Universal TUN/TAP device driver, 1.6
[ 0.966921] thunder_xcv, ver 1.0
[ 0.969913] thunder_bgx, ver 1.0
[ 0.973002] nicpf, ver 1.0
[ 0.976441] Freescale FM module, FMD API version 21.1.0
[ 0.981674] Freescale FM Ports module
[ 0.985041] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 0.990594] fsl_dpa: FSL DPAA Ethernet driver
[ 0.994776] fsl_advanced: FSL DPAA Advanced drivers:
[ 0.999399] fsl_proxy: FSL DPAA Proxy initialization driver
[ 1.004879] fsl_oh: FSL FMan Offline Parsing port driver
[ 1.011087] hclge is initializing
[ 1.014111] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 1.021046] hns3: Copyright (c) 2017 Huawei Corporation.
[ 1.026213] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.032888] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.038450] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.043975] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.049704] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[ 1.056318] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.061711] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.069163] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.075079] sky2: driver version 1.30
[ 1.079571] ivshmem-net 0000:00:01.0: enabling device (0000 -> 0002)
[ 1.085632] ivshmem-net 0000:00:01.0: TX memory at 0x00000000fda80000, size 0x000000000007f000
[ 1.093792] ivshmem-net 0000:00:01.0: RX memory at 0x00000000fda01000, size 0x000000000007f000
[ 1.102644] genirq: Setting trigger mode 1 for irq 11 failed (gic_set_type+0x0/0x168)
[ 1.126945] ivshmem-net: probe of 0000:00:01.0 failed with error -22
[ 1.133254] uio_ivshmem 0000:00:00.0: enabling device (0000 -> 0002)
[ 1.139263] uio_ivshmem 0000:00:00.0: state_table at 0x00000000fd900000, size 0x0000000000001000
[ 1.147641] uio_ivshmem 0000:00:00.0: rw_section at 0x00000000fd901000, size 0x0000000000009000
[ 1.155982] uio_ivshmem 0000:00:00.0: input_sections at 0x00000000fd90a000, size 0x0000000000006000
[ 1.164649] uio_ivshmem 0000:00:00.0: output_section at 0x00000000fd90e000, size 0x0000000000002000
[ 1.173349] genirq: Setting trigger mode 1 for irq 12 failed (gic_set_type+0x0/0x168)
[ 1.180849] uio_ivshmem: probe of 0000:00:00.0 failed with error -22
[ 1.187218] VFIO - User Level meta-driver version: 0.3
[ 1.194732] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.200879] ehci-pci: EHCI PCI platform driver
[ 1.205175] ehci-platform: EHCI generic platform driver
[ 1.210359] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.216172] ohci-pci: OHCI PCI platform driver
[ 1.220448] ohci-platform: OHCI generic platform driver
[ 1.226201] usbcore: registered new interface driver usb-storage
[ 1.231951] usbcore: registered new interface driver usbserial_generic
[ 1.238107] usbserial: USB Serial support registered for generic
[ 1.243871] usbcore: registered new interface driver ftdi_sio
[ 1.249356] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.256386] usbcore: registered new interface driver usb_serial_simple
[ 1.262625] usbserial: USB Serial support registered for carelink
[ 1.268457] usbserial: USB Serial support registered for zio
[ 1.273877] usbserial: USB Serial support registered for funsoft
[ 1.279631] usbserial: USB Serial support registered for flashloader
[ 1.285718] usbserial: USB Serial support registered for google
[ 1.291391] usbserial: USB Serial support registered for libtransistor
[ 1.297651] usbserial: USB Serial support registered for vivopay
[ 1.303402] usbserial: USB Serial support registered for moto_modem
[ 1.309408] usbserial: USB Serial support registered for motorola_tetra
[ 1.315762] usbserial: USB Serial support registered for novatel_gps
[ 1.321844] usbserial: USB Serial support registered for hp4x
[ 1.327339] usbserial: USB Serial support registered for suunto
[ 1.333012] usbserial: USB Serial support registered for siemens_mpi
[ 1.344052] i2c /dev entries driver
[ 1.350602] Bluetooth: HCI UART driver ver 2.3
[ 1.354734] Bluetooth: HCI UART protocol H4 registered
[ 1.359640] Bluetooth: HCI UART protocol BCSP registered
[ 1.364753] Bluetooth: HCI UART protocol LL registered
[ 1.369649] Bluetooth: HCI UART protocol ATH3K registered
[ 1.374842] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.380951] Bluetooth: HCI UART protocol Broadcom registered
[ 1.386274] Bluetooth: HCI UART protocol QCA registered
[ 1.393538] sdhci: Secure Digital Host Controller Interface driver
[ 1.399328] sdhci: Copyright(c) Pierre Ossman
[ 1.403762] Synopsys Designware Multimedia Card Interface Driver
[ 1.410182] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.416872] mmc0: CQHCI version 5.10
[ 1.451676] mmc0: SDHCI controller on 5b010000.mmc [5b010000.mmc] using ADMA
[ 1.460152] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.467953] usbcore: registered new interface driver usbhid
[ 1.473198] usbhid: USB HID core driver
[ 1.479117] No fsl,qman node
[ 1.481781] Freescale USDPAA process driver
[ 1.485797] fsl-usdpaa: no region found
[ 1.489470] Freescale USDPAA process IRQ driver
[ 1.507386] pktgen: Packet Generator for packet performance testing. Version: 2.75
[ 1.514952] NET: Registered protocol family 26
[ 1.519990] NET: Registered protocol family 10
[ 1.525031] Segment Routing with IPv6
[ 1.528519] NET: Registered protocol family 17
[ 1.532796] Bluetooth: RFCOMM TTY layer initialized
[ 1.537359] Bluetooth: RFCOMM socket layer initialized
[ 1.542308] Bluetooth: RFCOMM ver 1.11
[ 1.545872] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.550926] Bluetooth: BNEP filters: protocol multicast
[ 1.555954] Bluetooth: BNEP socket layer initialized
[ 1.560706] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.566382] Bluetooth: HIDP socket layer initialized
[ 1.571176] 8021q: 802.1Q VLAN Support v1.8
[ 1.575154] lib80211: common routines for IEEE802.11 drivers
[ 1.580718] 9pnet: Installing 9P2000 support
[ 1.584714] tsn generic netlink module v1 init...
[ 1.589277] Key type dns_resolver registered
[ 1.593995] registered taskstats version 1
[ 1.597806] Loading compiled-in X.509 certificates
[ 1.611869] mmc0: new DDR MMC card at address 0001
[ 1.623281] mmcblk0: mmc0:0001 R1J57L 29.1 GiB
[ 1.627869] mmcblk0boot0: mmc0:0001 R1J57L partition 1 8.00 MiB
[ 1.633756] mmcblk0boot1: mmc0:0001 R1J57L partition 2 8.00 MiB
[ 1.639606] mmcblk0rpmb: mmc0:0001 R1J57L partition 3 4.00 MiB, chardev (237:0)
[ 1.649407] Alternate GPT is invalid, using primary GPT.
[ 1.654166] imx_mu 5d200000.mailbox: ignoring dependency for device, assuming no driver
[ 1.654466] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14
[ 1.663052] imx_mu 5d280000.mailbox: ignoring dependency for device, assuming no driver
[ 1.677395] imx8qxp-lpcg-clk 5d400000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.687573] imx8qxp-lpcg-clk 5d410000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.697585] imx8qxp-lpcg-clk 5d420000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.707588] imx8qxp-lpcg-clk 5d430000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.717555] imx8qxp-lpcg-clk 5d440000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.727586] imx8qxp-lpcg-clk 5d450000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.737711] imx8qxp-lpcg-clk 5d460000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.747713] imx8qxp-lpcg-clk 5d470000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.757690] imx8qxp-lpcg-clk 59400000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.767646] imx8qxp-lpcg-clk 59410000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.777600] imx8qxp-lpcg-clk 59420000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.787620] imx8qxp-lpcg-clk 59440000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.797603] imx8qxp-lpcg-clk 59450000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.807599] imx8qxp-lpcg-clk 59460000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.817619] imx8qxp-lpcg-clk 59470000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.827658] imx8qxp-lpcg-clk 59580000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.837749] imx8qxp-lpcg-clk 59590000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.847764] imx8qxp-lpcg-clk 59c00000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.857758] imx8qxp-lpcg-clk 59c20000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.867743] imx8qxp-lpcg-clk 59c30000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.877816] imx8qxp-lpcg-clk 59c40000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.887823] imx8qxp-lpcg-clk 59c50000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.897822] imx8qxp-lpcg-clk 59d00000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.907789] imx8qxp-lpcg-clk 59d10000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.917754] imx8qxp-lpcg-clk 59d20000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.927799] imx8qxp-lpcg-clk 59d30000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.937913] imx8qxp-lpcg-clk 59d50000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.947973] imx8qxp-lpcg-clk 59d60000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.957986] imx8qxp-lpcg-clk 5a400000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.968075] imx8qxp-lpcg-clk 5a410000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.978113] imx8qxp-lpcg-clk 5a420000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.988102] imx8qxp-lpcg-clk 5a430000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.998096] imx8qxp-lpcg-clk 5a460000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.008084] imx8qxp-lpcg-clk 5a470000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.018066] imx8qxp-lpcg-clk 5a490000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.028040] imx8qxp-lpcg-clk 5a4d0000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.038086] imx8qxp-lpcg-clk 5ac80000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.048099] imx8qxp-lpcg-clk 5ac90000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.058126] imx8qxp-lpcg-clk 5ac00000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.068125] imx8qxp-lpcg-clk 5ac10000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.078100] imx8qxp-lpcg-clk 5ac20000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.088068] imx8qxp-lpcg-clk 5ac30000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.098043] imx8qxp-lpcg-clk 5acd0000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.108011] imx8qxp-lpcg-clk 5a590000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.117986] imx8qxp-lpcg-clk 5b210000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.127950] imx8qxp-lpcg-clk 5b220000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.137987] imx8qxp-lpcg-clk 5b230000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.148027] imx8qxp-lpcg-clk 5b240000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.158078] imx8qxp-lpcg-clk 5b260000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.168102] imx8qxp-lpcg-clk 5b270000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.178105] imx8qxp-lpcg-clk 5b280000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.188093] imx8qxp-lpcg-clk 5b290000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.198075] imx8qxp-lpcg-clk 5b290004.clock-controller: ignoring dependency for device, assuming no driver
[ 2.208072] mxs-dma 5b810000.dma-apbh: ignoring dependency for device, assuming no driver
[ 2.217228] hctosys: unable to open rtc device (rtc0)
[ 2.222381] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.231993] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.238251] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.238851] clk: Not disabling unused clocks
[ 2.246401] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 2.250493] ALSA device list:
[ 2.260738] No soundcards found.
[ 2.264016] Warning: unable to open an initial console.
[ 2.269248] VFS: Cannot open root device "mmcblk1p2" or unknown-block(0,0): error -6
[ 2.276552] Please append a correct "root=" boot option; here are the available partitions:
[ 2.284557] b300 30539776 mmcblk0
[ 2.284561] driver: mmcblk
[ 2.291047] b301 4096 mmcblk0p1 a0201e8d-7b04-4028-8042-7554870e3cf3
[ 2.291049]
[ 2.299637] b302 4096 mmcblk0p2 0dc631c5-f793-4db6-97c8-6b6053fb3081
[ 2.299639]
[ 2.308231] b303 65536 mmcblk0p3 398a0ce5-631b-4bc1-846c-263265193dbf
[ 2.308233]
[ 2.316808] b304 65536 mmcblk0p4 3861972d-c780-4236-a30d-426b73191ecd
[ 2.316810]
[ 2.325398] b305 65536 mmcblk0p5 c3a11b6f-f491-41f2-ae9c-f82a154baab6
[ 2.325400]
[ 2.333988] b306 65536 mmcblk0p6 95b24af8-2b96-4a7f-b752-b4b8eab00ed0
[ 2.333990]
[ 2.342574] b307 4096 mmcblk0p7 faaf9eff-4ede-4c9d-a529-94604fd06250
[ 2.342576]
[ 2.351180] b308 16384 mmcblk0p8 5dc2dc5a-244e-4b94-867c-071a32f1d858
[ 2.351182]
[ 2.359769] b309 1024 mmcblk0p9 e9135881-8916-4e0a-b334-02e7ecd9bc6b
[ 2.359771]
[ 2.368361] b30a 3670016 mmcblk0p10 bf367e22-0855-49eb-9a5b-60ea050d079a
[ 2.368363]
[ 2.377021] b30b 9652224 mmcblk0p11 a1562ae6-03c9-4e30-a9b5-5a2ae469c7f4
[ 2.377023]
[ 2.385697] b30c 1024 mmcblk0p12 6e827be8-4fe7-44d2-9da7-d1d53e62c65b
[ 2.385699]
[ 2.394370] b30d 1024 mmcblk0p13 40856f1f-711b-49f0-b9aa-553f2ccded4c
[ 2.394372]
[ 2.403055] b30e 1024 mmcblk0p14 3c6d72d3-291a-438e-a507-9c356c3de265
[ 2.403057]
[ 2.411732] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.419639] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.24-2.1.0+gbabac008e5cf #1
[ 2.426971] Hardware name: Freescale i.MX8QXP MEK Inmate (DT)
[ 2.432476] Call trace:
[ 2.434821] dump_backtrace+0x0/0x140
[ 2.438317] show_stack+0x14/0x20
[ 2.441490] dump_stack+0xb4/0xf8
[ 2.444656] panic+0x158/0x324
[ 2.447575] mount_block_root+0x1d0/0x284
[ 2.451408] mount_root+0x124/0x158
[ 2.454744] prepare_namespace+0x12c/0x18c
[ 2.458665] kernel_init_freeable+0x210/0x22c
[ 2.462835] kernel_init+0x10/0x100
[ 2.466173] ret_from_fork+0x10/0x18
[ 2.469595] SMP: stopping secondary CPUs
[ 2.473351] Kernel Offset: disabled
[ 2.476679] CPU features: 0x0002,20002008
[ 2.480513] Memory Limit: none
[ 2.483442] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---




0 Kudos
Reply
158 Views
sai9
Contributor II
Hi Peng,

Thanks for the input.
After setting the bootargs which you have suggested, i can see that my inmate is starting on the same console(0x5a060010). but the logs are stopping after reaching : [ 0.912188] printk: bootconsole [lpuart32] disabled
.The below is the log provided after running my linux-demo-cell.
My requirement is to get the logs in another uart port(0x5a070010). I am using gtkterm and my rootcell logs are coming on ttyUSB0 which is ttyLP0(0x5a060010). and the second uart is ttyUSB1 which is ttyLP1(0x5a070010).

Please correct if my Understanding is Wrong.

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=ttyLP2,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk0p2 rootwait rw"
[ 215.302442] CPU2: shutdown
[ 215.305171] psci: CPU2 killed (polled 0 ms)
[ 215.350400] CPU3: shutdown
[ 215.353125] 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
[ 215.394419] Created Jailhouse cell "linux-inmate-demo"
Cell "linux-inmate-demo" can be loaded
Started cell "linux-inmate-demo"
[ 0.000000] Booting Linux on physical CPU 0x0000000002 [0x410fd042]
[ 0.000000] Linux version 5.4.24-2.1.0+gbabac008e5cf (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Tue Sep 10 13:53:29 UTC 2024
[ 0.000000] Machine model: Freescale i.MX8QXP MEK Inmate
[ 0.000000] earlycon: lpuart32 at MMIO32 0x000000005a060010 (options '115200')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fa000000
root@imx8qxpc0mek:~# [ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xfd5e6500-0xfd5e7fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] Zeroed struct page in unavailable ranges: 256 pages
[ 0.000000] Initmem setup node 0 [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu s58904 r8192 d31208 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 120960
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: clk_ignore_unused console=ttyLP2,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk0p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 411832K/491520K available (16444K kernel code, 1444K rwdata, 6476K rodata, 2944K init, 1017K bss, 46920K reserved, 32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: 512 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 2 region 0:0x0000000051b40000
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x44c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 8.33MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1ec0311ec, max_idle_ns: 440795202152 ns
[ 0.000005] sched_clock: 56 bits at 8MHz, resolution 120ns, wraps every 2199023255541ns
[ 0.008197] Console: colour dummy device 80x25
[ 0.012388] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.66 BogoMIPS (lpj=33333)
[ 0.022154] pid_max: default: 32768 minimum: 301
[ 0.026677] LSM: Security Framework initializing
[ 0.031066] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.038006] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.069552] ASID allocator initialised with 32768 entries
[ 0.082627] rcu: Hierarchical SRCU implementation.
[ 0.096193] EFI services will not be available.
[ 0.108431] smp: Bringing up secondary CPUs ...
[ 0.144826] Detected VIPT I-cache on CPU1
[ 0.144877] GICv3: CPU1: found redistributor 3 region 0:0x0000000051b60000
[ 0.144942] CPU1: Booted secondary processor 0x0000000003 [0x410fd042]
[ 0.145056] smp: Brought up 1 node, 2 CPUs
[ 0.165520] SMP: Total of 2 processors activated.
[ 0.170023] CPU features: detected: 32-bit EL0 Support
[ 0.174966] CPU features: detected: CRC32 instructions
[ 0.193155] CPU: All CPU(s) started at EL1
[ 0.196966] alternatives: patching kernel code
[ 0.202795] devtmpfs: initialized
[ 0.214541] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.223767] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.231666] pinctrl core: initialized pinctrl subsystem
[ 0.237561] DMI not present or invalid.
[ 0.241475] NET: Registered protocol family 16
[ 0.258743] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.264494] audit: initializing netlink subsys (disabled)
[ 0.269926] audit: type=2000 audit(0.216:1): state=initialized audit_enabled=0 res=1
[ 0.277248] cpuidle: using governor menu
[ 0.281694] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.289217] Serial: AMBA PL011 UART driver
[ 0.293091] imx mu driver is registered.
[ 0.296760] imx rpmsg driver is registered.
[ 0.339088] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.345396] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.351799] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.358221] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.371080] cryptd: max_cpu_qlen set to 1000
[ 0.383484] ACPI: Interpreter disabled.
[ 0.388202] iommu: Default domain type: Translated
[ 0.393307] vgaarb: loaded
[ 0.396162] SCSI subsystem initialized
[ 0.404037] usbcore: registered new interface driver usbfs
[ 0.409212] usbcore: registered new interface driver hub
[ 0.414307] usbcore: registered new device driver usb
[ 0.420073] mc: Linux media interface: v0.10
[ 0.424066] videodev: Linux video capture interface: v2.00
[ 0.429376] pps_core: LinuxPPS API ver. 1 registered
[ 0.434029] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.442802] PTP clock support registered
[ 0.446724] EDAC MC: Ver: 3.0.0
[ 0.450669] No BMan portals available!
[ 0.454448] QMan: Allocated lookup table at (____ptrval____), entry count 65537
[ 0.461664] No QMan portals available!
[ 0.465632] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 0.471837] FPGA manager framework
[ 0.475058] Advanced Linux Sound Architecture Driver Initialized.
[ 0.481371] Bluetooth: Core ver 2.22
[ 0.484688] NET: Registered protocol family 31
[ 0.488911] Bluetooth: HCI device and connection manager initialized
[ 0.495001] Bluetooth: HCI socket layer initialized
[ 0.499671] Bluetooth: L2CAP socket layer initialized
[ 0.504519] Bluetooth: SCO socket layer initialized
[ 0.510071] imx-scu scu: NXP i.MX SCU Initialized
[ 0.514763] no irqsteer wakeup source supported!
[ 0.524579] random: fast init done
[ 0.533209] imx8qxp-pinctrl scu:pinctrl: initialized IMX pinctrl driver
[ 0.540213] clocksource: Switched to clocksource arch_sys_counter
[ 0.546138] VFS: Disk quotas dquot_6.6.0
[ 0.549821] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.556572] pnp: PnP ACPI: disabled
[ 0.569647] thermal_sys: Registered thermal governor 'step_wise'
[ 0.569652] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.575609] NET: Registered protocol family 2
[ 0.586407] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.594434] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.601825] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.608649] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.614750] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.620935] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.627748] NET: Registered protocol family 1
[ 0.632348] RPC: Registered named UNIX socket transport module.
[ 0.637887] RPC: Registered udp transport module.
[ 0.642382] RPC: Registered tcp transport module.
[ 0.646887] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.653630] PCI: CLS 0 bytes, default 64
[ 0.658422] kvm [1]: HYP mode not available
[ 0.671057] Initialise system trusted keyrings
[ 0.675347] workingset: timestamp_bits=44 max_order=17 bucket_order=0
[ 0.691176] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.697620] NFS: Registering the id_resolver key type
[ 0.702353] Key type id_resolver registered
[ 0.706324] Key type id_legacy registered
[ 0.710167] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.716602] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.723009] 9p: Installing v9fs 9p2000 file system support
[ 0.750126] Key type asymmetric registered
[ 0.753922] Asymmetric key parser 'x509' registered
[ 0.758650] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.765687] io scheduler mq-deadline registered
[ 0.770009] io scheduler kyber registered
[ 0.777810] pci-host-generic fd700000.pci: host bridge /pci@fd700000 ranges:
[ 0.784472] pci-host-generic fd700000.pci: MEM 0x10000000..0x1000ffff -> 0x10000000
[ 0.792000] pci-host-generic fd700000.pci: ECAM at [mem 0xfd700000-0xfd7fffff] for [bus 00]
[ 0.800120] pci-host-generic fd700000.pci: PCI host bridge to bus 0000:00
[ 0.806498] pci_bus 0000:00: root bus resource [bus 00]
[ 0.811497] pci_bus 0000:00: root bus resource [mem 0x10000000-0x1000ffff]
[ 0.818125] pci 0000:00:00.0: [110a:4106] type 00 class 0xff0000
[ 0.823877] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.830292] pci 0000:00:01.0: [110a:4106] type 00 class 0xff0001
[ 0.835945] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.844614] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10000fff]
[ 0.850995] pci 0000:00:01.0: BAR 0: assigned [mem 0x10001000-0x10001fff]
[ 0.860359] EINJ: ACPI disabled.
[ 0.870195] Bus freq driver module loaded
[ 0.880428] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.889275] fsl-lpuart 5a070000.serial: IRQ index 0 not found
[ 0.895292] 5a080000.serial: ttyLP2 at MMIO 0x5a080010 (irq = 8, base_baud = 5000000) is a FSL_LPUART
[ 0.904055] printk: console [ttyLP2] enabled
[ 0.912188] printk: bootconsole [lpuart32] disabled


0 Kudos
Reply
126 Views
Peng_Fan
NXP Employee
NXP Employee

inmate is using ttyLP2, please open the other uart console to see the log there. i.MX8QXP MEK has four uart as I recall.

Kernel & Virtualization Engineer
0 Kudos
Reply
74 Views
sai9
Contributor II
Hi Peng,

could you please provide any input for it.
Thanks in advance.

regards
sai9
0 Kudos
Reply
70 Views
Peng_Fan
NXP Employee
NXP Employee

Your log shows emmc has been detected, so please format it and install rootfs for inmate in emmc, then in inmate args use it as rootfs:

[ 1.679831] mmc0: new DDR MMC card at address 0001
[ 1.687576] mmcblk0: mmc0:0001 R1J57L 29.1 GiB
[ 1.692174] mmcblk0boot0: mmc0:0001 R1J57L partition 1 8.00 MiB
[ 1.698029] mmcblk0boot1: mmc0:0001 R1J57L partition 2 8.00 MiB
[ 1.703884] mmcblk0rpmb: mmc0:0001 R1J57L partition 3 4.00 MiB, chardev (237:0)

 

For inmate uart, inmate earlycon is reusing root uart as earlyconsole, but after inmate normal console created, inmate will use ttyLP2 as normal console, not ttyLP1. Please make sure your inmate dts has pinctrl set for this uart.

Kernel & Virtualization Engineer
0 Kudos
Reply
95 Views
sai9
Contributor II

Hi Peng,

I gave the below command, the initial logs and kernel logs are being pushed into the root cell (ttyLP0). There is no data on any of the other three ports (I have attached a screen shot).

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=ttyLP2,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk1p2 rootwait rw"

Screenshot from 2024-09-18 17-38-20.png

And even in the ttyLP0 port, the inmate cell is not booting further.
[ 2.333373] Waiting for root device /dev/mmcblk1p2...

I have one quick question, did you mean here ttyLP2 is rs232 port or the uart port from same USB?

I have the rootfs in sd card which is at mmcblk1p2 partition and using mmcblk0p2 gives a kernel panic error.

[ 2.411732] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 2.419639] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.24-2.1.0+gbabac008e5cf #1
[ 2.426971] Hardware name: Freescale i.MX8QXP MEK Inmate (DT)
[ 2.432476] Call trace:
[ 2.434821] dump_backtrace+0x0/0x140
[ 2.438317] show_stack+0x14/0x20
[ 2.441490] dump_stack+0xb4/0xf8
[ 2.444656] panic+0x158/0x324
[ 2.447575] mount_block_root+0x1d0/0x284
[ 2.451408] mount_root+0x124/0x158
[ 2.454744] prepare_namespace+0x12c/0x18c
[ 2.458665] kernel_init_freeable+0x210/0x22c
[ 2.462835] kernel_init+0x10/0x100
[ 2.466173] ret_from_fork+0x10/0x18
[ 2.469595] SMP: stopping secondary CPUs
[ 2.473351] Kernel Offset: disabled
[ 2.476679] CPU features: 0x0002,20002008
[ 2.480513] Memory Limit: none
[ 2.483442] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

 

Logs from mmcblk1p2:

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=ttyLP2,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk1p2 rootwait rw"
[ 3862.106086] CPU2: shutdown
[ 3862.108808] psci: CPU2 killed (polled 0 ms)
[ 3862.158049] CPU3: shutdown
[ 3862.160777] 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
[ 3862.200380] Created Jailhouse cell "linux-inmate-demo"
Cell "linux-inmate-demo" can be loaded
Started cell "linux-inmate-demo"
[ 0.000000] Booting Linux on physical CPU 0x0000000002 [0x410fd042]
[ 0.000000] Linux version 5.4.24-2.1.0+gbabac008e5cf (oe-user@oe-host) (gcc version 9.2.0 (GCC)) #1 SMP PREEMPT Tue Sep 10 13:53:29 UTC 2024
[ 0.000000] Machine model: Freescale i.MX8QXP MEK Inmate
[ 0.000000] earlycon: lpuart32 at MMIO32 0x000000005a060010 (options '115200')
[ 0.000000] printk: bootconsole [lpuart32] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fa000000
root@imx8qxpc0mek:~# [ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xfd5e6500-0xfd5e7fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] Zeroed struct page in unavailable ranges: 256 pages
[ 0.000000] Initmem setup node 0 [mem 0x00000000df700000-0x00000000fd6fffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu s58904 r8192 d31208 u98304
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 120960
[ 0.000000] Policy zone: DMA32
[ 0.000000] Kernel command line: clk_ignore_unused console=ttyLP2,115200 earlycon=lpuart32,mmio32,0x5a060010,115200 cma=32MB root=/dev/mmcblk1p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 6, 262144 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 411832K/491520K available (16444K kernel code, 1444K rwdata, 6476K rodata, 2944K init, 1017K bss, 46920K reserved, 32768K cma-reserved)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: 512 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 2 region 0:0x0000000051b40000
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x44c with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 8.33MHz (virt).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x1ec0311ec, max_idle_ns: 440795202152 ns
[ 0.000006] sched_clock: 56 bits at 8MHz, resolution 120ns, wraps every 2199023255541ns
[ 0.008197] Console: colour dummy device 80x25
[ 0.012382] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.66 BogoMIPS (lpj=33333)
[ 0.022151] pid_max: default: 32768 minimum: 301
[ 0.026680] LSM: Security Framework initializing
[ 0.031061] Mount-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.038006] Mountpoint-cache hash table entries: 1024 (order: 1, 8192 bytes, linear)
[ 0.069553] ASID allocator initialised with 32768 entries
[ 0.082622] rcu: Hierarchical SRCU implementation.
[ 0.096204] EFI services will not be available.
[ 0.108449] smp: Bringing up secondary CPUs ...
[ 0.144839] Detected VIPT I-cache on CPU1
[ 0.144889] GICv3: CPU1: found redistributor 3 region 0:0x0000000051b60000
[ 0.144952] CPU1: Booted secondary processor 0x0000000003 [0x410fd042]
[ 0.145068] smp: Brought up 1 node, 2 CPUs
[ 0.165537] SMP: Total of 2 processors activated.
[ 0.170039] CPU features: detected: 32-bit EL0 Support
[ 0.174981] CPU features: detected: CRC32 instructions
[ 0.193163] CPU: All CPU(s) started at EL1
[ 0.196978] alternatives: patching kernel code
[ 0.202794] devtmpfs: initialized
[ 0.214502] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.223727] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.231633] pinctrl core: initialized pinctrl subsystem
[ 0.237524] DMI not present or invalid.
[ 0.241434] NET: Registered protocol family 16
[ 0.258819] DMA: preallocated 256 KiB pool for atomic allocations
[ 0.264569] audit: initializing netlink subsys (disabled)
[ 0.270009] audit: type=2000 audit(0.220:1): state=initialized audit_enabled=0 res=1
[ 0.277338] cpuidle: using governor menu
[ 0.281783] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.289290] Serial: AMBA PL011 UART driver
[ 0.293164] imx mu driver is registered.
[ 0.296837] imx rpmsg driver is registered.
[ 0.309484] sysfs: cannot create duplicate filename '/bus/platform/devices/5a080000.serial'
[ 0.317364] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.24-2.1.0+gbabac008e5cf #1
[ 0.324682] Hardware name: Freescale i.MX8QXP MEK Inmate (DT)
[ 0.330184] Call trace:
[ 0.332531] dump_backtrace+0x0/0x140
[ 0.336028] show_stack+0x14/0x20
[ 0.339199] dump_stack+0xb4/0xf8
[ 0.342369] sysfs_warn_dup+0x5c/0x78
[ 0.345868] sysfs_do_create_link_sd.isra.0+0xe4/0xf0
[ 0.350706] sysfs_create_link+0x20/0x40
[ 0.354461] bus_add_device+0x64/0x110
[ 0.358045] device_add+0x31c/0x648
[ 0.361382] of_device_add+0x40/0x58
[ 0.364798] of_platform_device_create_pdata+0xdc/0x130
[ 0.369804] of_platform_bus_create+0x178/0x3a8
[ 0.374138] of_platform_bus_create+0x1c0/0x3a8
[ 0.378475] of_platform_populate+0x50/0xd8
[ 0.382483] of_platform_default_populate_init+0xac/0xc8
[ 0.387569] do_one_initcall+0x50/0x190
[ 0.391237] kernel_init_freeable+0x194/0x22c
[ 0.395408] kernel_init+0x10/0x100
[ 0.398742] ret_from_fork+0x10/0x18
[ 0.432088] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.438400] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.444798] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.451220] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.460439] cryptd: max_cpu_qlen set to 1000
[ 0.472883] ACPI: Interpreter disabled.
[ 0.480519] iommu: Default domain type: Translated
[ 0.485350] vgaarb: loaded
[ 0.488196] SCSI subsystem initialized
[ 0.492203] usbcore: registered new interface driver usbfs
[ 0.497391] usbcore: registered new interface driver hub
[ 0.502484] usbcore: registered new device driver usb
[ 0.508236] mc: Linux media interface: v0.10
[ 0.512226] videodev: Linux video capture interface: v2.00
[ 0.517532] pps_core: LinuxPPS API ver. 1 registered
[ 0.522192] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.530971] PTP clock support registered
[ 0.534892] EDAC MC: Ver: 3.0.0
[ 0.538825] No BMan portals available!
[ 0.542625] QMan: Allocated lookup table at (____ptrval____), entry count 65537
[ 0.549854] No QMan portals available!
[ 0.553831] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 0.560030] FPGA manager framework
[ 0.563265] Advanced Linux Sound Architecture Driver Initialized.
[ 0.569587] Bluetooth: Core ver 2.22
[ 0.572889] NET: Registered protocol family 31
[ 0.577123] Bluetooth: HCI device and connection manager initialized
[ 0.583213] Bluetooth: HCI socket layer initialized
[ 0.587878] Bluetooth: L2CAP socket layer initialized
[ 0.592726] Bluetooth: SCO socket layer initialized
[ 0.598251] imx-scu scu: NXP i.MX SCU Initialized
[ 0.602953] no irqsteer wakeup source supported!
[ 0.611937] random: fast init done
[ 0.620015] imx8qxp-pinctrl scu:pinctrl: initialized IMX pinctrl driver
[ 0.627118] clocksource: Switched to clocksource arch_sys_counter
[ 0.633142] VFS: Disk quotas dquot_6.6.0
[ 0.636836] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.643594] pnp: PnP ACPI: disabled
[ 0.656584] thermal_sys: Registered thermal governor 'step_wise'
[ 0.656589] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.662544] NET: Registered protocol family 2
[ 0.673330] tcp_listen_portaddr_hash hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 0.681390] TCP established hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 0.688725] TCP bind hash table entries: 4096 (order: 4, 65536 bytes, linear)
[ 0.695582] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.701694] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.707886] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 0.714677] NET: Registered protocol family 1
[ 0.719302] RPC: Registered named UNIX socket transport module.
[ 0.724844] RPC: Registered udp transport module.
[ 0.729352] RPC: Registered tcp transport module.
[ 0.733848] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.740599] PCI: CLS 0 bytes, default 64
[ 0.745389] kvm [1]: HYP mode not available
[ 0.757962] Initialise system trusted keyrings
[ 0.762274] workingset: timestamp_bits=44 max_order=17 bucket_order=0
[ 0.777903] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.784491] NFS: Registering the id_resolver key type
[ 0.789230] Key type id_resolver registered
[ 0.793194] Key type id_legacy registered
[ 0.797036] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.803478] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.809855] 9p: Installing v9fs 9p2000 file system support
[ 0.836892] Key type asymmetric registered
[ 0.840684] Asymmetric key parser 'x509' registered
[ 0.845414] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[ 0.852447] io scheduler mq-deadline registered
[ 0.856770] io scheduler kyber registered
[ 0.864525] pci-host-generic fd700000.pci: host bridge /pci@fd700000 ranges:
[ 0.871188] pci-host-generic fd700000.pci: MEM 0x10000000..0x1000ffff -> 0x10000000
[ 0.878721] pci-host-generic fd700000.pci: ECAM at [mem 0xfd700000-0xfd7fffff] for [bus 00]
[ 0.886838] pci-host-generic fd700000.pci: PCI host bridge to bus 0000:00
[ 0.893218] pci_bus 0000:00: root bus resource [bus 00]
[ 0.898214] pci_bus 0000:00: root bus resource [mem 0x10000000-0x1000ffff]
[ 0.904842] pci 0000:00:00.0: [110a:4106] type 00 class 0xff0000
[ 0.910595] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.917009] pci 0000:00:01.0: [110a:4106] type 00 class 0xff0001
[ 0.922662] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.931333] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10000fff]
[ 0.937717] pci 0000:00:01.0: BAR 0: assigned [mem 0x10001000-0x10001fff]
[ 0.947052] EINJ: ACPI disabled.
[ 0.956831] Bus freq driver module loaded
[ 0.966999] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.975873] fsl-lpuart 5a060000.serial: IRQ index 0 not found
[ 0.981332] fsl-lpuart 5a080000.serial: IRQ index 0 not found
[ 0.995611] cacheinfo: Unable to detect cache hierarchy for CPU 0
[ 1.009383] loop: module loaded
[ 1.015325] imx ahci driver is registered.
[ 1.023682] libphy: Fixed MDIO Bus: probed
[ 1.028710] tun: Universal TUN/TAP device driver, 1.6
[ 1.034502] thunder_xcv, ver 1.0
[ 1.037504] thunder_bgx, ver 1.0
[ 1.040589] nicpf, ver 1.0
[ 1.043978] Freescale FM module, FMD API version 21.1.0
[ 1.049181] Freescale FM Ports module
[ 1.052545] fsl_mac: fsl_mac: FSL FMan MAC API based driver
[ 1.058083] fsl_dpa: FSL DPAA Ethernet driver
[ 1.062257] fsl_advanced: FSL DPAA Advanced drivers:
[ 1.066872] fsl_proxy: FSL DPAA Proxy initialization driver
[ 1.072349] fsl_oh: FSL FMan Offline Parsing port driver
[ 1.078457] hclge is initializing
[ 1.081496] hns3: Hisilicon Ethernet Network Driver for Hip08 Family - version
[ 1.088412] hns3: Copyright (c) 2017 Huawei Corporation.
[ 1.093574] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[ 1.100256] e1000: Copyright (c) 1999-2006 Intel Corporation.
[ 1.105819] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[ 1.111345] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[ 1.117083] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[ 1.123689] igb: Copyright (c) 2007-2014 Intel Corporation.
[ 1.129082] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[ 1.136536] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[ 1.142461] sky2: driver version 1.30
[ 1.146937] ivshmem-net 0000:00:01.0: enabling device (0000 -> 0002)
[ 1.153007] ivshmem-net 0000:00:01.0: TX memory at 0x00000000fda80000, size 0x000000000007f000
[ 1.161151] ivshmem-net 0000:00:01.0: RX memory at 0x00000000fda01000, size 0x000000000007f000
[ 1.170011] genirq: Setting trigger mode 1 for irq 11 failed (gic_set_type+0x0/0x168)
[ 1.195247] ivshmem-net: probe of 0000:00:01.0 failed with error -22
[ 1.201542] uio_ivshmem 0000:00:00.0: enabling device (0000 -> 0002)
[ 1.207558] uio_ivshmem 0000:00:00.0: state_table at 0x00000000fd900000, size 0x0000000000001000
[ 1.215927] uio_ivshmem 0000:00:00.0: rw_section at 0x00000000fd901000, size 0x0000000000009000
[ 1.224267] uio_ivshmem 0000:00:00.0: input_sections at 0x00000000fd90a000, size 0x0000000000006000
[ 1.232932] uio_ivshmem 0000:00:00.0: output_section at 0x00000000fd90e000, size 0x0000000000002000
[ 1.241651] genirq: Setting trigger mode 1 for irq 12 failed (gic_set_type+0x0/0x168)
[ 1.249146] uio_ivshmem: probe of 0000:00:00.0 failed with error -22
[ 1.255520] VFIO - User Level meta-driver version: 0.3
[ 1.263013] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.269158] ehci-pci: EHCI PCI platform driver
[ 1.273442] ehci-platform: EHCI generic platform driver
[ 1.278624] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.284433] ohci-pci: OHCI PCI platform driver
[ 1.288721] ohci-platform: OHCI generic platform driver
[ 1.294457] usbcore: registered new interface driver usb-storage
[ 1.300193] usbcore: registered new interface driver usbserial_generic
[ 1.306355] usbserial: USB Serial support registered for generic
[ 1.312122] usbcore: registered new interface driver ftdi_sio
[ 1.317614] usbserial: USB Serial support registered for FTDI USB Serial Device
[ 1.324633] usbcore: registered new interface driver usb_serial_simple
[ 1.330872] usbserial: USB Serial support registered for carelink
[ 1.336720] usbserial: USB Serial support registered for zio
[ 1.342141] usbserial: USB Serial support registered for funsoft
[ 1.347888] usbserial: USB Serial support registered for flashloader
[ 1.353974] usbserial: USB Serial support registered for google
[ 1.359646] usbserial: USB Serial support registered for libtransistor
[ 1.365899] usbserial: USB Serial support registered for vivopay
[ 1.371654] usbserial: USB Serial support registered for moto_modem
[ 1.377664] usbserial: USB Serial support registered for motorola_tetra
[ 1.384012] usbserial: USB Serial support registered for novatel_gps
[ 1.390093] usbserial: USB Serial support registered for hp4x
[ 1.395591] usbserial: USB Serial support registered for suunto
[ 1.401273] usbserial: USB Serial support registered for siemens_mpi
[ 1.412264] i2c /dev entries driver
[ 1.418757] Bluetooth: HCI UART driver ver 2.3
[ 1.422888] Bluetooth: HCI UART protocol H4 registered
[ 1.427792] Bluetooth: HCI UART protocol BCSP registered
[ 1.432910] Bluetooth: HCI UART protocol LL registered
[ 1.437803] Bluetooth: HCI UART protocol ATH3K registered
[ 1.442999] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.449116] Bluetooth: HCI UART protocol Broadcom registered
[ 1.454427] Bluetooth: HCI UART protocol QCA registered
[ 1.461699] sdhci: Secure Digital Host Controller Interface driver
[ 1.467487] sdhci: Copyright(c) Pierre Ossman
[ 1.471905] Synopsys Designware Multimedia Card Interface Driver
[ 1.478298] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.484975] mmc0: CQHCI version 5.10
[ 1.519753] mmc0: SDHCI controller on 5b010000.mmc [5b010000.mmc] using ADMA
[ 1.528241] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.536042] usbcore: registered new interface driver usbhid
[ 1.541283] usbhid: USB HID core driver
[ 1.547226] No fsl,qman node
[ 1.549887] Freescale USDPAA process driver
[ 1.553903] fsl-usdpaa: no region found
[ 1.557566] Freescale USDPAA process IRQ driver
[ 1.575250] pktgen: Packet Generator for packet performance testing. Version: 2.75
[ 1.582797] NET: Registered protocol family 26
[ 1.587858] NET: Registered protocol family 10
[ 1.592898] Segment Routing with IPv6
[ 1.596379] NET: Registered protocol family 17
[ 1.600656] Bluetooth: RFCOMM TTY layer initialized
[ 1.605210] Bluetooth: RFCOMM socket layer initialized
[ 1.610163] Bluetooth: RFCOMM ver 1.11
[ 1.613728] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 1.618782] Bluetooth: BNEP filters: protocol multicast
[ 1.623808] Bluetooth: BNEP socket layer initialized
[ 1.628558] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 1.634245] Bluetooth: HIDP socket layer initialized
[ 1.639019] 8021q: 802.1Q VLAN Support v1.8
[ 1.643005] lib80211: common routines for IEEE802.11 drivers
[ 1.648574] 9pnet: Installing 9P2000 support
[ 1.652573] tsn generic netlink module v1 init...
[ 1.657114] Key type dns_resolver registered
[ 1.661902] registered taskstats version 1
[ 1.665707] Loading compiled-in X.509 certificates
[ 1.679831] mmc0: new DDR MMC card at address 0001
[ 1.687576] mmcblk0: mmc0:0001 R1J57L 29.1 GiB
[ 1.692174] mmcblk0boot0: mmc0:0001 R1J57L partition 1 8.00 MiB
[ 1.698029] mmcblk0boot1: mmc0:0001 R1J57L partition 2 8.00 MiB
[ 1.703884] mmcblk0rpmb: mmc0:0001 R1J57L partition 3 4.00 MiB, chardev (237:0)
[ 1.713695] Alternate GPT is invalid, using primary GPT.
[ 1.718789] mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 p11 p12 p13 p14
[ 1.721675] imx_mu 5d200000.mailbox: ignoring dependency for device, assuming no driver
[ 1.733717] imx_mu 5d280000.mailbox: ignoring dependency for device, assuming no driver
[ 1.742671] imx8qxp-lpcg-clk 5d400000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.752709] imx8qxp-lpcg-clk 5d410000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.762692] imx8qxp-lpcg-clk 5d420000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.772663] imx8qxp-lpcg-clk 5d430000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.782622] imx8qxp-lpcg-clk 5d440000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.792699] imx8qxp-lpcg-clk 5d450000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.802721] imx8qxp-lpcg-clk 5d460000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.812714] imx8qxp-lpcg-clk 5d470000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.822687] imx8qxp-lpcg-clk 59400000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.832716] imx8qxp-lpcg-clk 59410000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.842722] imx8qxp-lpcg-clk 59420000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.852703] imx8qxp-lpcg-clk 59440000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.862671] imx8qxp-lpcg-clk 59450000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.872634] imx8qxp-lpcg-clk 59460000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.882595] imx8qxp-lpcg-clk 59470000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.892547] imx8qxp-lpcg-clk 59580000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.902549] imx8qxp-lpcg-clk 59590000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.912558] imx8qxp-lpcg-clk 59c00000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.922530] imx8qxp-lpcg-clk 59c20000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.932567] imx8qxp-lpcg-clk 59c30000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.942540] imx8qxp-lpcg-clk 59c40000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.952491] imx8qxp-lpcg-clk 59c50000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.962426] imx8qxp-lpcg-clk 59d00000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.972375] imx8qxp-lpcg-clk 59d10000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.982297] imx8qxp-lpcg-clk 59d20000.clock-controller: ignoring dependency for device, assuming no driver
[ 1.992243] imx8qxp-lpcg-clk 59d30000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.002278] imx8qxp-lpcg-clk 59d50000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.012279] imx8qxp-lpcg-clk 59d60000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.022275] imx8qxp-lpcg-clk 5a400000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.032335] imx8qxp-lpcg-clk 5a410000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.042349] imx8qxp-lpcg-clk 5a420000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.052331] imx8qxp-lpcg-clk 5a430000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.062301] imx8qxp-lpcg-clk 5a460000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.072276] imx8qxp-lpcg-clk 5a470000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.082302] imx8qxp-lpcg-clk 5a490000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.092286] imx8qxp-lpcg-clk 5a4d0000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.102282] imx8qxp-lpcg-clk 5ac80000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.112253] imx8qxp-lpcg-clk 5ac90000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.122256] imx8qxp-lpcg-clk 5ac00000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.132342] imx8qxp-lpcg-clk 5ac10000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.142357] imx8qxp-lpcg-clk 5ac20000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.152345] imx8qxp-lpcg-clk 5ac30000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.162312] imx8qxp-lpcg-clk 5acd0000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.172279] imx8qxp-lpcg-clk 5a590000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.182256] imx8qxp-lpcg-clk 5b210000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.192234] imx8qxp-lpcg-clk 5b220000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.202222] imx8qxp-lpcg-clk 5b230000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.212193] imx8qxp-lpcg-clk 5b240000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.222156] imx8qxp-lpcg-clk 5b260000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.232296] imx8qxp-lpcg-clk 5b270000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.242361] imx8qxp-lpcg-clk 5b280000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.252389] imx8qxp-lpcg-clk 5b290000.clock-controller: ignoring dependency for device, assuming no driver
[ 2.262372] imx8qxp-lpcg-clk 5b290004.clock-controller: ignoring dependency for device, assuming no driver
[ 2.272348] mxs-dma 5b810000.dma-apbh: ignoring dependency for device, assuming no driver
[ 2.281502] hctosys: unable to open rtc device (rtc0)
[ 2.286661] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 2.296263] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 2.302500] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
[ 2.303139] clk: Not disabling unused clocks
[ 2.310651] platform regulatory.0: Falling back to sysfs fallback for: regulatory.db
[ 2.314742] ALSA device list:
[ 2.325044] No soundcards found.
[ 2.328271] Warning: unable to open an initial console.
[ 2.333373] Waiting for root device /dev/mmcblk1p2...

root@imx8qxpc0mek:~# [ 62.591293] cfg80211: failed to load regulatory.db

 

any quick reply would be appreciated

Thanks!

Sai

0 Kudos
Reply
179 Views
sai9
Contributor II
Hi peng,
Thanks for your help.
i have successfully able to boot from jh_mmcboot. I am able to start the linux-demo-cell but the problem i am facing is that i could not able to see the inmate cell log(ttyLP1).
0 Kudos
Reply
2,707 Views
Peng_Fan
NXP Employee
NXP Employee

Not very accurate. Jailhouse on i.MX8M* family is supported.

 

For the dump issue above on i.MX8QM, I could give a few suggestions to debug:

elr: 000000007a65e000 lr : 0000000080021d08 (reloc)
elr: 0000000081c60000 lr : 0000000087623d08
x0 : 0000000083000000 x1 : 0000000000000000
x2 : 0000000000000000 x3 : 0000000000000000
x4 : 0000000080400000 x5 : 0000000000000001
x6 : 0000000000000008 x7 : 0000000000000000
x8 : 0000000084e0cf88 x9 : 0000000000000002
x10: 000000000a200023 x11: 0000000000000002
x12: 0000000000000002 x13: 0000000084e1fd76
x14: 0000000084e0dea0 x15: 000000008762322c
x16: 000000008765de54 x17: 0000000000000000
x18: 0000000084e1fd60 x19: 00000000876ea608
x20: 0000000000000000 x21: 0000000000000400
x22: 0000000000000003 x23: 0000000084e69e78
x24: 0000000000000003 x25: 0000000084e69e78
x26: 00000000876d3f98 x27: 0000000000000000
x28: 0000000084e69ea0 x29: 0000000084e0cfc0

Code: 676e696c 73657420 49282074 25205152 (000a2964) 
Resetting CPU ...

 From the upper log, elr shows where the issue triggers, aarch64-poky-linux-objdump -D u-boot > u.s. find out the instruction, then see what the instruciton is doing, accessing which address, then locate to which registers, then see if it is scu_rm create partition cause this issue or not. 

Kernel & Virtualization Engineer