hello, everyone. I'm porting jailhouse to rk3568 which running open
harmony.
jailhouse.ko, jailhouse.bin, jailhouse were ready, and i wrote a basic root
cell to test it.
but when i `jailhouse enable rk3568.cell`, the system reboot. can someone
help me pls?
thanks
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/ca381c51-0921-42cf-ad8f-2b6f6727ce6dn%40googlegroups.com.
#include <jailhouse/types.h>
#include <jailhouse/cell-config.h>
struct {
struct jailhouse_system header;
__u64 cpus[1];
struct jailhouse_memory mem_regions[4];
struct jailhouse_irqchip irqchips[1];
struct jailhouse_pci_device pci_devices[0];
} __attribute__((packed)) config = {
.header = {
.signature = JAILHOUSE_SYSTEM_SIGNATURE,
.architecture = JAILHOUSE_ARM64,
.revision = JAILHOUSE_CONFIG_REVISION,
.flags = JAILHOUSE_SYS_VIRTUAL_DEBUG_CONSOLE,
.hypervisor_memory = {
.phys_start = 0x7a000000, // reserved
.size = 0x01000000, // 16M
},
.debug_console = {
.address = 0xfe660000, // uart2
.size = 0x1000,
.type = JAILHOUSE_CON_TYPE_8250,
.flags = JAILHOUSE_CON_ACCESS_MMIO |
JAILHOUSE_CON_REGDIST_4,
},
.platform_info = {
.pci_mmconfig_base = 0xfe280000, // PCIe3x2_APB
.pci_mmconfig_end_bus = 0,
.pci_is_virtual = 1,
.pci_domain = 1,
.arm = {
.gic_version = 3,
.gicd_base = 0xfd400000,
.gicr_base = 0xfd460000,
.maintenance_irq = 25,
},
},
.root_cell = {
.name = "RK3568",
.cpu_set_size = sizeof(config.cpus),
.num_memory_regions = ARRAY_SIZE(config.mem_regions),
.num_irqchips = ARRAY_SIZE(config.irqchips),
.num_pci_devices = ARRAY_SIZE(config.pci_devices),
},
},
.cpus = {
0b1111,
},
.mem_regions = {
{
.phys_start = 0x110000,
.virt_start = 0x110000,
.size = 0xf0000,
.flags = JAILHOUSE_MEM_READ |
JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_EXECUTE,
},
{
.phys_start = 0x200000,
.virt_start = 0x200000,
.size = 0x8200000,
.flags = JAILHOUSE_MEM_READ |
JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_EXECUTE,
},
{
.phys_start = 0x9400000,
.virt_start = 0x9400000,
.size = 0x67e00000,
.flags = JAILHOUSE_MEM_READ |
JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_EXECUTE,
},
{
.phys_start = 0xfe660000,
.virt_start = 0xfe660000,
.size = 0x1000,
.flags = JAILHOUSE_MEM_READ |
JAILHOUSE_MEM_WRITE |
JAILHOUSE_MEM_IO |
JAILHOUSE_MEM_ROOTSHARED,
},
},
.irqchips = {
{
.address = 0xfd400000,
.pin_base = 32,
.pin_bitmap = {
0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff,
},
},
},
.pci_devices = {
},
};