This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA80XMEVM: Jailhouse

Part Number: DRA80XMEVM

Hi

I am woking on J721E EVM Jailhouse Hypervisor, i am getting kernel panic while creating cell, running below the script file /usr/share/ti/util-scripts/demo/cockpit-demo-cluster-VM.sh

the script consists below commands

#!/bin/bash
#Utility to run integrated cockpit on DRA8xx devices
#This script needs to be run on the root cell (cluster VM)

monitor_ivi_vm() {
        sleep 100
        ti-heartbeat-are-you-there
}


####### Start here
##################

/usr/share/jailhouse/linux-demo.sh

cluster -d /dev/dri/card0 </dev/null 2>/dev/null  1>&2 &

monitor_ivi_vm 2>/dev/null  1>&2 &

/usr/share/ti/util-scripts/demo/crash-VM.sh 2>/dev/null  1>&2 &

linux-demo.sh file

! /bin/sh
jailhouse enable /usr/share/jailhouse/cells/k3-j721e-evm.cell

# Wait for jailhouse to be ready
sleep 5

# Launch uart-demo inmate to ready console for linux inmate
# and destroy it after it runs for 5 seconds
jailhouse cell create /usr/share/jailhouse/cells/k3-j721e-evm-uart-demo.cell
jailhouse cell load uart-demo /usr/share/jailhouse/inmates/uart-demo.bin
jailhouse cell start uart-demo
sleep 5
jailhouse cell destroy uart-demo

# Launch linux inmate
jailhouse cell create /usr/share/jailhouse/cells/k3-j721e-evm-linux-demo.cell
jailhouse cell load j721e-evm-linux-demo /usr/libexec/jailhouse/linux-loader.bin -a 0x0 -s "kernel=0x8a0280000 dtb=0x8a0000000" -a 0x1000 /boot/Image -a 0x8a0280000 /usr/share/jailhouse/inmate-k3-j721e-evm.dtb -a 0x8a0000000
jailhouse cell start j721e-evm-linux-demo

Below are the logs,

Hello 2465 from cell!

Hello 2466 from cell!
Hello [    0.000000] Booting Linux on physical CPU 0x0000000001 [0x411fd080]
[    0.000000] Linux version 4.19.50-g79386bfefc (oe-user@oe-host) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.039
[    0.000000] Machine model: Texas Instruments J721E Inmate Model
[    0.000000] earlycon: ns16550a0 at MMIO32 0x0000000002810000 (options '')
[    0.000000] bootconsole [ns16550a0] enabled
[    0.000000] cma: Reserved 512 MiB at 0x00000008e0000000
[    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] random: get_random_bytes called from start_kernel+0x94/0x3e4 with crng_init=0
[    0.000000] percpu: Embedded 2 pages/cpu s48536 r8192 d74344 u131072
[    0.000000] Detected PIPT I-cache on CPU0
[    0.000000] CPU features: enabling workaround for EL2 vector hardening
[    0.000000] Built 1 zonelists, mobility grouping off.  Total pages: 24552
[    0.000000] Kernel command line: console=ttyS1,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait earlycon=ns16550a,mmio32,0x2810000
[    0.000000] Dentry cache hash table entries: 262144 (order: 5, 2097152 bytes)
[    0.000000] Inode-cache hash table entries: 131072 (order: 4, 1048576 bytes)
[    0.000000] Memory: 1029184K/1572864K available (8254K kernel code, 722K rwdata, 3008K rodata, 576K init, 657K bss, 19392K reserved, 524288K)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[    0.000000] GICv3: Distributor has no Range Selector support
[    0.000000] GICv3: no VLPI support, no direct LPI support
[    0.000000] ITS: No ITS available, not enabling LPIs
[    0.000000] GICv3: CPU0: found redistributor 1 region 0:0x0000000001920000
[    0.000000] arch_timer: cp15 timer(s) running at 200.00MHz (virt).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049d3e8, max_idle_ns: 440795210634 ns
[    0.000003] sched_clock: 56 bits at 200MHz, resolution 5ns, wraps every 4398046511102ns
[    0.008653] Console: colour dummy device 80x25
[    0.013432] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=800000)
[    0.024572] pid_max: default: 32768 minimum: 301
[    0.029532] Security Framework initialized
[    0.033972] Mount-cache hash table entries: 8192 (order: 0, 65536 bytes)
[    0.041141] Mountpoint-cache hash table entries: 8192 (order: 0, 65536 bytes)
[    0.072916] ASID allocator initialised with 32768 entries
[    0.086746] rcu: Hierarchical SRCU implementation.
[    0.107980] smp: Bringing up secondary CPUs ...
[    0.112841] smp: Brought up 1 node, 1 CPU
[    0.117123] SMP: Total of 1 processors activated.
[    0.122164] CPU features: detected: GIC system register CPU interface
[    0.129043] CPU features: detected: 32-bit EL0 Support
[    0.135510] CPU: All CPU(s) started at EL1
[    0.139911] alternatives: patching kernel code
[    0.145159] devtmpfs: initialized
[    0.153041] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.163470] futex hash table entries: 256 (order: -2, 16384 bytes)
[    0.170464] pinctrl core: initialized pinctrl subsystem
[    0.176520] NET: Registered protocol family 16
[    0.181665] vdso: 2 pages (1 code @ (____ptrval____), 1 data @ (____ptrval____))
[    0.189593] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[    0.199243] DMA: preallocated 256 KiB pool for atomic allocations
[    0.214015] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[    0.221228] HugeTLB registered 512 MiB page size, pre-allocated 0 pages
[    0.232352] cryptd: max_cpu_qlen set to 1000
[    0.245342] media: Linux media interface: v0.10
[    0.250236] videodev: Linux video capture interface: v2.00
[    0.256142] pps_core: LinuxPPS API ver. 1 registered
[    0.261449] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.271235] PTP clock support registered
[    0.275453] EDAC MC: Ver: 3.0.0
[    0.283586] Advanced Linux Sound Architecture Driver Initialized.
[    0.290517] clocksource: Switched to clocksource arch_sys_counter
[    0.297181] VFS: Disk quotas dquot_6.6.0
[    0.301451] VFS: Dquot-cache hash table entries: 8192 (order 0, 65536 bytes)
[    0.311380] NET: Registered protocol family 2
[    0.316384] tcp_listen_portaddr_hash hash table entries: 4096 (order: 0, 65536 bytes)
[    0.324884] TCP established hash table entries: 16384 (order: 1, 131072 bytes)
[    0.332718] TCP bind hash table entries: 16384 (order: 2, 262144 bytes)
[    0.339925] TCP: Hash tables configured (established 16384 bind 16384)
[    0.346977] UDP hash table entries: 2048 (order: 0, 65536 bytes)
[    0.353456] UDP-Lite hash table entries: 2048 (order: 0, 65536 bytes)
[    0.360469] NET: Registered protocol family 1
[    0.377701] RPC: Registered named UNIX socket transport module.
[    0.384061] RPC: Registered udp transport module.
[    0.389098] RPC: Registered tcp transport module.
[    0.394126] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.401303] hw perfevents: enabled with armv8_pmuv3 PMU driver, 7 counters available
[    0.411252] Initialise system trusted keyrings
[    0.416143] workingset: timestamp_bits=46 max_order=15 bucket_order=0
[    0.424706] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.435433] NFS: Registering the id_resolver key type
[    0.440868] Key type id_resolver registered
[    0.445344] Key type id_legacy registered
[    0.449643] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.456919] 9p: Installing v9fs 9p2000 file system support
[    0.464208] Key type asymmetric registered
[    0.468628] Asymmetric key parser 'x509' registered
[    0.473861] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    0.481812] io scheduler noop registered
[    0.486011] io scheduler deadline registered
[    0.490651] io scheduler cfq registered (default)
[    0.495660] io scheduler mq-deadline registered
[    0.500478] io scheduler kyber registered
[    0.505190] pinctrl-single 11c000.pinmux: 173 pins, size 692
[    0.515747] pci-host-generic 76000000.pci: host bridge /pci@76000000 ranges:
[    0.523286] pci-host-generic 76000000.pci:   MEM 0x10000000..0x1000ffff -> 0x10000000
[    0.531651] pci-host-generic 76000000.pci: ECAM at [mem 0x76000000-0x760fffff] for [bus 00]
[    0.540603] pci-host-generic 76000000.pci: PCI host bridge to bus 0000:00
[    0.547836] pci_bus 0000:00: root bus resource [bus 00]
[    0.553395] pci_bus 0000:00: root bus resource [mem 0x10000000-0x1000ffff]
[    0.561044] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x100000ff 64bit]
[    0.569276] virtio-pci 0000:00:00.0: enabling device (0000 -> 0002)
[    0.576955] Serial: 8250/16550 driver, 10 ports, IRQ sharing enabled
[    0.584944] cacheinfo: Unable to detect cache hierarchy for CPU 0
[    0.594040] brd: module loaded
[    0.599892] loop: module loaded
[    0.603635] libphy: Fixed MDIO Bus: probed
[    0.608167] tun: Universal TUN/TAP device driver, 1.6
[    0.613689] igbvf: Intel(R) Gigabit Virtual Function Network Driver - version 2.4.0-k
[    0.622054] igbvf: Copyright (c) 2009 - 2012 Intel Corporation.
[    0.628416] sky2: driver version 1.30
[    0.632565] VFIO - User Level meta-driver version: 0.3
[    0.642340] i2c /dev entries driver
[    0.646278] sdhci: Secure Digital Host Controller Interface driver
[    0.652860] sdhci: Copyright(c) Pierre Ossman
[    0.657645] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.663842] ledtrig-cpu: registered to indicate activity on CPUs
[    0.671032] NET: Registered protocol family 17
[    0.675849] 9pnet: Installing 9P2000 support
[    0.680448] Key type dns_resolver registered
[    0.685225] registered taskstats version 1
[    0.689588] Loading compiled-in X.509 certificates
[    0.696992] ti-sci 44083000.dmsc: ABI: 2.6 (firmware rev 0x0013 '19.6.1-v2019.06a (Terrific Llam')
[    1.056410] cdns-dp-phy 5050000.serdes: 4 lanes, max bit rate 5.400 Gbps
[    1.073973] omap8250 2810000.serial: PM domain pd:278 will not be powered off
[    1.081799] console [ttyS1] disabled
[    1.085691] 2810000.serial: ttyS1 at MMIO 0x2810000 (irq = 7, base_baud = 3000000) is a 8250
[    1.094772] console [ttyS1] enabled
[    1.094772] console [ttyS1] enabled
[    1.101877] bootconsole [ns16550a0] disabled
[    1.101877] bootconsole [ns16550a0] disabled
[    1.127836] mmc0: Unknown controller version (4). You may experience problems.
[    1.166109] mmc0: SDHCI controller on 4f80000.sdhci [4f80000.sdhci] using ADMA 64-bit
[    1.181530] hctosys: unable to open rtc device (rtc0)
[    1.218745] mmc0: new HS400 MMC card at address 0001
[    1.228492] mmcblk0: mmc0:0001 S0J56X 14.8 GiB
[    1.233589] mmcblk0boot0: mmc0:0001 S0J56X partition 1 31.5 MiB
[    1.240046] mmcblk0boot1: mmc0:0001 S0J56X partition 2 31.5 MiB
[    1.246168] mmcblk0rpmb: mmc0:0001 S0J56X partition 3 4.00 MiB, chardev (242:0)
[    1.336621] ALSA device list:
[    1.339667]   No soundcards found.
[    1.346346] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2): error -6
[    1.354344] Please append a correct "root=" boot option; here are the available partitions:
[    1.362728] 0100            4096 ram0
[    1.362730]  (driver?)
[    1.368906] 0101            4096 ram1
[    1.368908]  (driver?)
[    1.375039] 0102            4096 ram2
[    1.375041]  (driver?)
[    1.381148] 0103            4096 ram3
[    1.381150]  (driver?)
[    1.387270] 0104            4096 ram4
[    1.387272]  (driver?)
[    1.393374] 0105            4096 ram5
[    1.393376]  (driver?)
[    1.399496] 0106            4096 ram6
[    1.399497]  (driver?)
[    1.405601] 0107            4096 ram7
[    1.405602]  (driver?)
[    1.411731] 0108            4096 ram8
[    1.411734]  (driver?)
[    1.417847] 0109            4096 ram9
[    1.417849]  (driver?)
[    1.423974] 010a            4096 ram10
[    1.423976]  (driver?)
[    1.430169] 010b            4096 ram11
[    1.430170]  (driver?)
[    1.436389] 010c            4096 ram12
[    1.436391]  (driver?)
[    1.442599] 010d            4096 ram13
[    1.442601]  (driver?)
[    1.448791] 010e            4096 ram14
[    1.448792]  (driver?)
[    1.455001] 010f            4096 ram15
[    1.455003]  (driver?)
[    1.461200] b300        15540224 mmcblk0
[    1.461205]  driver: mmcblk
[    1.468047] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[    1.476469] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.50-g79386bfefc #1
[    1.483504] Hardware name: Texas Instruments J721E Inmate Model (DT)
[    1.489840] Call trace:
[    1.492287]  dump_backtrace+0x0/0x158
[    1.495941]  show_stack+0x14/0x20
[    1.499247]  dump_stack+0x90/0xb4
[    1.502553]  panic+0x120/0x27c
[    1.505599]  mount_block_root+0x1b4/0x264
[    1.509598]  mount_root+0x11c/0x148
[    1.513083]  prepare_namespace+0x158/0x1a0
[    1.517172]  kernel_init_freeable+0x208/0x228
[    1.521519]  kernel_init+0x10/0xfc
[    1.524912]  ret_from_fork+0x10/0x18
[    1.528478] Kernel Offset: disabled
[    1.531956] CPU features: 0x0,21006008
[    1.535691] Memory Limit: none

[    1.538739] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2) ]---