I attach .dts and .c for linux non-root cell
I added a part about virtual address for linux-loader.
After adding that point, I typed "sudo jailhouse cell linux 
config/jetson-tx1-linux-demo.cell /boot/Image -d 
config/dts/inmate-jetson-tx1.dtb -i /boot/intrd -c "console=ttyS0, 115200"  (I 
use root-cell kernel and roofs path:/boot. is it ok?)
And i can see the text "Started cell jetson-tx1-linux-demo".
It seem to be succeed my non-root cell. is it right?
But, I can't see the boot log or connect through the terminal.
Do I have something to supplement?
Thank you

-- 
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].
For more options, visit https://groups.google.com/d/optout.

Attachment: inmate-jetson-tx1.dts
Description: Binary data

/*
 * Jailhouse, a Linux-based partitioning hypervisor
 * Authors : [email protected]
 */
 
#include <jailhouse/types.h>
#include <jailhouse/cell-config.h>

#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))

struct {
        struct jailhouse_cell_desc cell;
        __u64 cpus[1];
        struct jailhouse_memory mem_regions[2];
        struct jailhouse_irqchip irqchips[2];
} __attribute__((packed)) config = {
        .cell = {
                .signature = JAILHOUSE_CELL_DESC_SIGNATURE,
                .revision = JAILHOUSE_CONFIG_REVISION,
                .name = "jetson-tx1-linux-demo",
                //commerg만 하던지 아니면 console같이 하던지
                .flags = 
JAILHOUSE_CELL_PASSIVE_COMMREG|JAILHOUSE_CELL_DEBUG_CONSOLE,

                .cpu_set_size = sizeof(config.cpus),
                .num_memory_regions = ARRAY_SIZE(config.mem_regions),
                .num_irqchips = ARRAY_SIZE(config.irqchips),
        },
        //0Xf  : 1st 2nd 3rd CPUs 1111
        //0xc  : 2nd and 3rd CPUs 1100
        //0x8  : 3rd CPU 1000
        //0x2  : ??  CPU 0010
        //0xc0 : ???
        .cpus = {
                0x8,
        },
        
        .mem_regions = {
                /* UART */ {
                        .phys_start = 0x70006000,
                        .virt_start = 0x70006000,
                        .size = 0x1000,
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                                JAILHOUSE_MEM_IO | JAILHOUSE_MEM_ROOTSHARED,
                },

                /* RAM */ { //linux-loader를 위해서 vir_addr=0x0이 필요함
                        .phys_start = 0xdb000000,
                        .virt_start = 0,
                        .size = 0x10000, 
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                                JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_DMA |
                                JAILHOUSE_MEM_LOADABLE,

                },
                
                /* RAM */ {
                        .phys_start = 0xdc000000,
                        .virt_start = 0xdc000000,
                        .size = 0x20000000, //512MB 할당, 0xdc00_0000~fc00_0000
                        //make sure to add "mem=1472M vmalloc=512M" to 
extlinux.conf
                        .flags = JAILHOUSE_MEM_READ | JAILHOUSE_MEM_WRITE |
                                JAILHOUSE_MEM_EXECUTE | JAILHOUSE_MEM_DMA |
                                JAILHOUSE_MEM_LOADABLE,

                },
        },
        .irqchips = { //<-tk1에서 가져옴
                /* GIC */ {
                        .address = 0x50041000,
                        .pin_base = 32,
                        .pin_bitmap = {
                                0, 0, 1 << (90+32 - 96)
                        },
                },
                /* GIC */ {
                        .address = 0x50041000,
                        .pin_base = 160,
                        .pin_bitmap = {
                                1 << (152+32 - 160),
                        },
                },
        },
};
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        

Reply via email to