imx8mp jailhouse boot another kernel,but can not mount filesystem

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

imx8mp jailhouse boot another kernel,but can not mount filesystem

272 Views
jimmyhua
Contributor I

./jailhouse enable ./imx8mp.cell
./jailhouse cell linux ./imx8mp-linux-demo.cell /run/media/mmcblk1p1/Image -d /run/media/mmcblk1p1/imx8mp-evk-inmate.dtb -c "clk_ignore_unused console=ttymxc3,115200 earlycon=ec_imx6q,0x30890000,115200 root=/dev/mmcblk2p2 rootwait rw"

boot another kernel

Started cell "linux-inmate-demo"
[ 0.000000] Booting Linux on physical CPU 0x0000000002 [0x410fd034]
[ 0.000000] Linux version 5.15.71 (jimmy@jimmy-virtual-machine) (aarch64-poky-linux-gcc (GCC) 11.3.0, GNU ld (GNU Binutils) 2.38.20220708) #27 SMP PREEMPT Tue Jun 25 15:48:06 CST 2024
[ 0.000000] Machine model: Freescale i.MX8MP EVK
[ 0.000000] earlycon: ec_imx6q0 at MMIO 0x0000000030890000 (options '115200')
[ 0.000000] printk: bootconsole [ec_imx6q0] enabled
[ 0.000000] efi: UEFI not found.
[root@jailhouse]#[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x00000000c0000000-0x00000000fd6fffff]
[ 0.000000] NUMA: NODE_DATA [mem 0xfd50f800-0xfd511fff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA [mem 0x00000000c0000000-0x00000000fd6fffff]
[ 0.000000] DMA32 empty
[ 0.000000] Normal empty
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000c0000000-0x00000000fd6fffff]
[ 0.000000] Initmem setup node 0 [mem 0x00000000c0000000-0x00000000fd6fffff]
[ 0.000000] On node 0, zone DMA: 10496 pages in unavailable ranges
[ 0.000000] cma: Reserved 32 MiB at 0x00000000fa000000
[ 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 20 pages/cpu s41432 r8192 d32296 u81920
[ 0.000000] Detected VIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: ARM erratum 845719
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 247716
[ 0.000000] Policy zone: DMA
[ 0.000000] Kernel command line: clk_ignore_unused console=ttymxc3,115200 earlycon=ec_imx6q,0x30890000,115200 root=/dev/mmcblk2p2 rootwait rw
[ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 921820K/1006592K available (18816K kernel code, 1610K rwdata, 7672K rodata, 3136K init, 531K bss, 52004K 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 event tracing is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=256 to nr_cpu_ids=2.
[ 0.000000] Trampoline variant of 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: 160 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] Root IRQ handler: gic_handle_irq
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: CPU0: found redistributor 2 region 0:0x00000000388c0000
[ 0.000000] ITS: No ITS available, not enabling LPIs
[ 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.000000] sched_clock: 56 bits at 8MHz, resolution 120ns, wraps every 2199023255541ns
[ 0.007807] Calibrating delay loop (skipped), value calculated using timer frequency.. 16.66 BogoMIPS (lpj=33333)
[ 0.017505] pid_max: default: 32768 minimum: 301
[ 0.021962] LSM: Security Framework initializing
[ 0.026406] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.033423] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 0.042144] rcu: Hierarchical SRCU implementation.
[ 0.045743] EFI services will not be available.
[ 0.049963] smp: Bringing up secondary CPUs ...
[ 0.054509] Detected VIPT I-cache on CPU1
[ 0.054541] GICv3: CPU1: found redistributor 3 region 0:0x00000000388e0000
[ 0.054597] CPU1: Booted secondary processor 0x0000000003 [0x410fd034]
[ 0.054677] smp: Brought up 1 node, 2 CPUs
[ 0.074760] SMP: Total of 2 processors activated.
[ 0.079256] CPU features: detected: 32-bit EL0 Support
[ 0.084184] CPU features: detected: 32-bit EL1 Support
[ 0.089091] CPU features: detected: CRC32 instructions
[ 0.103597] CPU: All CPU(s) started at EL1
[ 0.104812] alternatives: patching kernel code
[ 0.109908] devtmpfs: initialized
[ 0.113219] KASLR disabled due to lack of seed
[ 0.116573] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.125797] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[ 0.133106] pinctrl core: initialized pinctrl subsystem
[ 0.137759] DMI not present or invalid.
[ 0.141435] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 0.150887] DMA: preallocated 128 KiB GFP_KERNEL pool for atomic allocations
[ 0.155227] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA pool for atomic allocations
[ 0.162669] DMA: preallocated 128 KiB GFP_KERNEL|GFP_DMA32 pool for atomic allocations
[ 0.169967] audit: initializing netlink subsys (disabled)
[ 0.175274] audit: type=2000 audit(0.116:1): state=initialized audit_enabled=0 res=1
[ 0.175751] thermal_sys: Registered thermal governor 'step_wise'
[ 0.182517] thermal_sys: Registered thermal governor 'power_allocator'
[ 0.188303] cpuidle: using governor menu
[ 0.198421] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 0.204804] ASID allocator initialised with 65536 entries
[ 0.210212] Serial: AMBA PL011 UART driver
[ 0.213888] imx mu driver is registered.
[ 0.217608] imx rpmsg driver is registered.
[ 0.235939] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 0.239754] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 0.246058] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 0.252484] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 0.260057] cryptd: max_cpu_qlen set to 1000
[ 0.265362] ACPI: Interpreter disabled.
[ 0.266917] iommu: Default domain type: Translated
[ 0.271314] iommu: DMA domain TLB invalidation policy: strict mode
[ 0.277450] vgaarb: loaded
[ 0.280112] SCSI subsystem initialized
[ 0.283771] usbcore: registered new interface driver usbfs
[ 0.288757] usbcore: registered new interface driver hub
[ 0.293824] usbcore: registered new device driver usb
[ 0.298863] mc: Linux media interface: v0.10
[ 0.302742] videodev: Linux video capture interface: v2.00
[ 0.308033] pps_core: LinuxPPS API ver. 1 registered
[ 0.312721] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.321479] PTP clock support registered
[ 0.325269] EDAC MC: Ver: 3.0.0
[ 0.328836] FPGA manager framework
[ 0.331531] Advanced Linux Sound Architecture Driver Initialized.
[ 0.337769] Bluetooth: Core ver 2.22
[ 0.340732] NET: Registered PF_BLUETOOTH protocol family
[ 0.345808] Bluetooth: HCI device and connection manager initialized
[ 0.351891] Bluetooth: HCI socket layer initialized
[ 0.356556] Bluetooth: L2CAP socket layer initialized
[ 0.361395] Bluetooth: SCO socket layer initialized
[ 0.366438] clocksource: Switched to clocksource arch_sys_counter
[ 0.372017] VFS: Disk quotas dquot_6.6.0
[ 0.375670] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 0.382356] pnp: PnP ACPI: disabled
[ 0.386374] NET: Registered PF_INET protocol family
[ 0.390324] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[ 0.398029] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes, linear)
[ 0.405339] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.412734] TCP established hash table entries: 8192 (order: 4, 65536 bytes, linear)
[ 0.420207] TCP bind hash table entries: 8192 (order: 5, 131072 bytes, linear)
[ 0.427159] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.433200] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.439491] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[ 0.446346] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 0.452033] RPC: Registered named UNIX socket transport module.
[ 0.457322] RPC: Registered udp transport module.
[ 0.461823] RPC: Registered tcp transport module.
[ 0.466311] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.473159] PCI: CLS 0 bytes, default 64
[ 0.476595] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[ 0.483739] kvm [1]: HYP mode not available
[ 0.490400] Initialise system trusted keyrings
[ 0.492069] workingset: timestamp_bits=42 max_order=18 bucket_order=0
[ 0.503026] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.506413] NFS: Registering the id_resolver key type
[ 0.510743] Key type id_resolver registered
[ 0.514720] Key type id_legacy registered
[ 0.518610] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.524975] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[ 0.532066] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.538192] 9p: Installing v9fs 9p2000 file system support
[ 0.577524] Key type asymmetric registered
[ 0.578721] Asymmetric key parser 'x509' registered
[ 0.583432] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 0.590469] io scheduler mq-deadline registered
[ 0.594801] io scheduler kyber registered
[ 0.599290] hello init
[ 0.601551] pci-host-generic fd700000.pci: host bridge /pci@fd700000 ranges:
[ 0.607757] pci-host-generic fd700000.pci: MEM 0x0010000000..0x001000ffff -> 0x0010000000
[ 0.616026] pci-host-generic fd700000.pci: ECAM at [mem 0xfd700000-0xfd7fffff] for [bus 00]
[ 0.624074] pci-host-generic fd700000.pci: PCI host bridge to bus 0000:00
[ 0.630472] pci_bus 0000:00: root bus resource [bus 00]
[ 0.635470] pci_bus 0000:00: root bus resource [mem 0x10000000-0x1000ffff]
[ 0.642076] pci 0000:00:00.0: [110a:4106] type 00 class 0xff0000
[ 0.647816] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.653995] pci 0000:00:01.0: [110a:4106] type 00 class 0xff0001
[ 0.659569] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.665700] pci 0000:00:02.0: [110a:4106] type 00 class 0xff8002
[ 0.671313] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.677452] pci 0000:00:03.0: [110a:4106] type 00 class 0xff8003
[ 0.683064] pci 0000:00:03.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 0.689342] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x10000fff]
[ 0.695558] pci 0000:00:01.0: BAR 0: assigned [mem 0x10001000-0x10001fff]
[ 0.702057] pci 0000:00:02.0: BAR 0: assigned [mem 0x10002000-0x10002fff]
[ 0.708556] pci 0000:00:03.0: BAR 0: assigned [mem 0x10003000-0x10003fff]
[ 0.715647] EINJ: ACPI disabled.
[ 0.719064] SoC: i.MX8MP revision unknown
[ 0.722108] Bus freq driver module loaded
[ 0.726089] virtio-ivshmem 0000:00:02.0: enabling device (0000 -> 0002)
[ 0.732170] virtio-ivshmem 0000:00:02.0: backend not ready
[ 0.737465] virtio-ivshmem 0000:00:03.0: enabling device (0000 -> 0002)
[ 0.743738] virtio-ivshmem 0000:00:03.0: backend not ready
[ 0.751462] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[ 0.756156] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 14, base_baud = 1500000) is a IMX
[ 0.763430] printk: console [ttymxc3] enabled
[ 0.769053] printk: bootconsole [ec_imx6q0] disabled

 

but ttymxc3 not print log, it like can not mount filesystem

0 Kudos
Reply
2 Replies

168 Views
Peng_Fan
NXP Employee
NXP Employee

[ 0.756156] 30a60000.serial: ttymxc3 at MMIO 0x30a60000 (irq = 14, base_baud = 1500000) is a IMX
[ 0.763430] printk: console [ttymxc3] enabled
[ 0.769053] printk: bootconsole [ec_imx6q0] disabled

inmate linux is using the other uart, please check the other uart log and see whether it is.

Kernel & Virtualization Engineer
0 Kudos
Reply

254 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

Jailhouse is not booting correctly something is missing in your dtb or is a bad building image, please check it.

Regards

0 Kudos
Reply