imx8mp jailhouse can not boot another kernel,boot kernel fail

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

imx8mp jailhouse can not boot another kernel,boot kernel fail

58 Views
jimmyhua
Contributor I

[root@jailhouse]#insmod jailhouse.ko
[root@jailhouse]#cat fdf_[ 64.477482] cfg80211: failed to load regulatory.db
kernel.sh
#!/bin/bash
./jailhouse enable ./imx8mp.cell
./jailhouse cell linux ./imx8mp-linux-demo.cell /run/media/mmcblk2p1/Image -d /r un/media/mmcblk2p1/imx8mp-evk-inmate.dtb -c "clk_ignore_unused console=ttymxc1,1 15200 earlycon=ec_imx6q,0x30860000,115200 root=/dev/mmcblk2p2 rootwait rw"

[root@jailhouse]#cat fdf_kernel.sh
#!/bin/bash
./jailhouse enable ./imx8mp.cell
./jailhouse cell linux ./imx8mp-linux-demo.cell /run/media/mmcblk2p1/Image -d /r un/media/mmcblk2p1/imx8mp-evk-inmate.dtb -c "clk_ignore_unused console=ttymxc1,1 15200 earlycon=ec_imx6q,0x30860000,115200 root=/dev/mmcblk2p2 rootwait rw"

[root@jailhouse]#./fdf_kernel.sh

Initializing Jailhouse hypervisor v0.12 (334-gd9fffb80) on CPU 1
Code location: 0x0000ffffc0200800
Page pool usage after early setup: mem 39/993, remap 0/131072
Initializing processors:
CPU 1... OK
CPU 3... OK
CPU 2... OK
CPU 0... OK
Initializing unit: irqchip
Initializing unit: ARM SMMU v3
Initializing unit: ARM SMMU
Initializing unit: PVU IOMMU
Initializing unit: PCI
Adding virtual PCI device 00:02.0 to cell "imx8mp"
Adding virtual PCI device 00:03.0 to cell "imx8mp"
Adding virtual PCI device 00:00.0 to cell "imx8mp"
Adding virtual PCI device 00:01.0 to cell "imx8mp"
Page pool usage after late setup: mem 69/993, remap 144/131072
Activating hypervisor
[ 87.808445] pci-host-generic fd700000.pci: host bridge /pci@0 ranges:
[ 87.814951] pci-host-generic fd700000.pci: MEM 0x00fd800000..0x00fd807ff f -> 0x00fd800000
[ 87.823628] pci-host-generic fd700000.pci: ECAM at [mem 0xfd700000-0xfd7fffff ] for [bus 00]
[ 87.832078] pci-host-generic fd700000.pci: PCI host bridge to bus 0002:00
[ 87.838898] pci_bus 0002:00: root bus resource [bus 00]
[ 87.844143] pci_bus 0002:00: root bus resource [mem 0xfd800000-0xfd807fff]
[ 87.851058] pci 0002:00:00.0: [110a:4106] type 00 class 0xff0000
[ 87.857095] pci 0002:00:00.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 87.863735] pci 0002:00:01.0: [110a:4106] type 00 class 0xff0001
[ 87.869776] pci 0002:00:01.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 87.876348] pci 0002:00:02.0: [110a:4106] type 00 class 0xffc002
[ 87.882382] pci 0002:00:02.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 87.888910] pci 0002:00:03.0: [110a:4106] type 00 class 0xffc003
[ 87.894943] pci 0002:00:03.0: reg 0x10: [mem 0x00000000-0x00000fff]
[ 87.903413] pci 0002:00:00.0: BAR 0: assigned [mem 0xfd800000-0xfd800fff]
[ 87.910223] pci 0002:00:01.0: BAR 0: assigned [mem 0xfd801000-0xfd801fff]
[ 87.917025] pci 0002:00:02.0: BAR 0: assigned [mem 0xfd802000-0xfd802fff]
[ 87.923830] pci 0002:00:03.0: BAR 0: assigned [mem 0xfd803000-0xfd803fff]
[ 87.930844] uio_ivshmem 0002:00:00.0: enabling device (0000 -> 0002)
[ 87.937267] uio_ivshmem 0002:00:00.0: state_table at 0x00000000fd9f0000, size 0x0000000000001000
[ 87.946070] uio_ivshmem 0002:00:00.0: rw_section at 0x00000000fd9f1000, size 0x0000000000009000
[ 87.954787] uio_ivshmem 0002:00:00.0: input_sections at 0x00000000fd9fa000, s ize 0x0000000000006000
[ 87.963852] uio_ivshmem 0002:00:00.0: output_section at 0x00000000fd9fa000, s ize 0x0000000000002000
[ 87.973376] ivshmem-net 0002:00:01.0: enabling device (0000 -> 0002)
[ 87.979836] ivshmem-net 0002:00:01.0: TX memory at 0x00000000fda01000, size 0 x000000000007f000
[ 87.988462] ivshmem-net 0002:00:01.0: RX memory at 0x00000000fda80000, size 0 x000000000007f000
[ 87.997779] The Jailhouse is opening.
[ 88.928879] config size=1164,cell_params.config_address=0x00000000d9ed0850
[ 88.935795] jailhouse_cmd_cell_create,193
[ 88.939813] jailhouse_cmd_cell_create,204
[ 88.943828] jailhouse_cmd_cell_create,209
[ 88.947843] jailhouse_cmd_cell_create,216
[ 88.989480] psci: CPU2 killed (polled 0 ms)
[ 89.045455] psci: CPU3 killed (polled 0 ms)
Adding virtual PCI device 00:02.0 to cell "linux-inmate-demo"
Shared memory connection established, peer cells:
"imx8mp"
Adding virtual PCI device 00:03.0 to cell "linux-inmate-demo"
Shared memory connection established, peer cells:
"imx8mp"
Adding virtual PCI device 00:00.0 to cell "linux-inmate-demo"
Shared memory connection established, peer cells:
"imx8mp"
Adding virtual PCI device 00:01.0 to cell "linux-inmate-demo"
Shared memory connection established, peer cells:
"imx8mp"
Created cell "linux-inmate-demo"
Page pool usage after cell creation: mem 86/993, remap 144/131072
[ 89.126900] Created Jailhouse cell "linux-inmate-demo"
Unhandled data read at 0x30b600c0(4)

FATAL: unhandled trap (exception class 0x24)
Cell state before exception:
pc: ffff800008d464b4 lr: ffff800008d467d8 spsr: 20000005 EL1
sp: ffff80000a4238c0 elr: ffff800008d464b4 esr: 24 1 1810007
x0: ffff000004c80580 x1: ffff80000a7c00c0 x2: 0000000000000001
x3: 0000000000000000 x4: 0000000000000000 x5: ffff0000046a2a00
x6: ffff0000046a2a00 x7: 0000000000000000 x8: fefefefefefefeff
x9: ffff00000467b574 x10: 0000000000000990 x11: 0000000000000000
x12: 0000000000000001 x13: 0000000000000001 x14: 0000000000000260
x15: 00000003d495f450 x16: 0000000000000fcc x17: 0000000000000000
x18: 0000000000000001 x19: 0000000000000000 x20: ffff000004c80a40
x21: 000000000bebc200 x22: 0000000000000002 x23: 0000000000000000
x24: ffff000004c80580 x25: 0000000017d78400 x26: ffff000004419d38
x27: 0000000000000000 x28: 0000000000000000 x29: ffff80000a4238c0

Parking CPU 0 (Cell: "imx8mp")

 

0 Kudos
Reply
0 Replies